@azure/arm-durabletask 1.0.0-beta.1
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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +114 -0
- package/dist/browser/api/durableTaskContext.d.ts +17 -0
- package/dist/browser/api/durableTaskContext.d.ts.map +1 -0
- package/dist/browser/api/durableTaskContext.js +34 -0
- package/dist/browser/api/durableTaskContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.d.ts.map +1 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.d.ts.map +1 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/schedulers/index.d.ts +3 -0
- package/dist/browser/api/schedulers/index.d.ts.map +1 -0
- package/dist/browser/api/schedulers/index.js +4 -0
- package/dist/browser/api/schedulers/index.js.map +1 -0
- package/dist/browser/api/schedulers/operations.d.ts +36 -0
- package/dist/browser/api/schedulers/operations.d.ts.map +1 -0
- package/dist/browser/api/schedulers/operations.js +176 -0
- package/dist/browser/api/schedulers/operations.js.map +1 -0
- package/dist/browser/api/schedulers/options.d.ts +26 -0
- package/dist/browser/api/schedulers/options.d.ts.map +1 -0
- package/dist/browser/api/schedulers/options.js +4 -0
- package/dist/browser/api/schedulers/options.js.map +1 -0
- package/dist/browser/api/taskHubs/index.d.ts +3 -0
- package/dist/browser/api/taskHubs/index.d.ts.map +1 -0
- package/dist/browser/api/taskHubs/index.js +4 -0
- package/dist/browser/api/taskHubs/index.js.map +1 -0
- package/dist/browser/api/taskHubs/operations.d.ts +28 -0
- package/dist/browser/api/taskHubs/operations.d.ts.map +1 -0
- package/dist/browser/api/taskHubs/operations.js +127 -0
- package/dist/browser/api/taskHubs/operations.js.map +1 -0
- package/dist/browser/api/taskHubs/options.d.ts +18 -0
- package/dist/browser/api/taskHubs/options.d.ts.map +1 -0
- package/dist/browser/api/taskHubs/options.js +4 -0
- package/dist/browser/api/taskHubs/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +4 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/schedulers/index.d.ts +27 -0
- package/dist/browser/classic/schedulers/index.d.ts.map +1 -0
- package/dist/browser/classic/schedulers/index.js +17 -0
- package/dist/browser/classic/schedulers/index.js.map +1 -0
- package/dist/browser/classic/taskHubs/index.d.ts +23 -0
- package/dist/browser/classic/taskHubs/index.d.ts.map +1 -0
- package/dist/browser/classic/taskHubs/index.js +15 -0
- package/dist/browser/classic/taskHubs/index.js.map +1 -0
- package/dist/browser/durableTaskClient.d.ts +20 -0
- package/dist/browser/durableTaskClient.d.ts.map +1 -0
- package/dist/browser/durableTaskClient.js +21 -0
- package/dist/browser/durableTaskClient.js.map +1 -0
- package/dist/browser/index.d.ts +11 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +316 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +313 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +107 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +168 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/durableTaskContext.d.ts +17 -0
- package/dist/commonjs/api/durableTaskContext.d.ts.map +1 -0
- package/dist/commonjs/api/durableTaskContext.js +37 -0
- package/dist/commonjs/api/durableTaskContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.d.ts.map +1 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/schedulers/index.d.ts +3 -0
- package/dist/commonjs/api/schedulers/index.d.ts.map +1 -0
- package/dist/commonjs/api/schedulers/index.js +13 -0
- package/dist/commonjs/api/schedulers/index.js.map +1 -0
- package/dist/commonjs/api/schedulers/operations.d.ts +36 -0
- package/dist/commonjs/api/schedulers/operations.d.ts.map +1 -0
- package/dist/commonjs/api/schedulers/operations.js +196 -0
- package/dist/commonjs/api/schedulers/operations.js.map +1 -0
- package/dist/commonjs/api/schedulers/options.d.ts +26 -0
- package/dist/commonjs/api/schedulers/options.d.ts.map +1 -0
- package/dist/commonjs/api/schedulers/options.js +5 -0
- package/dist/commonjs/api/schedulers/options.js.map +1 -0
- package/dist/commonjs/api/taskHubs/index.d.ts +3 -0
- package/dist/commonjs/api/taskHubs/index.d.ts.map +1 -0
- package/dist/commonjs/api/taskHubs/index.js +11 -0
- package/dist/commonjs/api/taskHubs/index.js.map +1 -0
- package/dist/commonjs/api/taskHubs/operations.d.ts +28 -0
- package/dist/commonjs/api/taskHubs/operations.d.ts.map +1 -0
- package/dist/commonjs/api/taskHubs/operations.js +141 -0
- package/dist/commonjs/api/taskHubs/operations.js.map +1 -0
- package/dist/commonjs/api/taskHubs/options.d.ts +18 -0
- package/dist/commonjs/api/taskHubs/options.d.ts.map +1 -0
- package/dist/commonjs/api/taskHubs/options.js +5 -0
- package/dist/commonjs/api/taskHubs/options.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +4 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/schedulers/index.d.ts +27 -0
- package/dist/commonjs/classic/schedulers/index.d.ts.map +1 -0
- package/dist/commonjs/classic/schedulers/index.js +20 -0
- package/dist/commonjs/classic/schedulers/index.js.map +1 -0
- package/dist/commonjs/classic/taskHubs/index.d.ts +23 -0
- package/dist/commonjs/classic/taskHubs/index.d.ts.map +1 -0
- package/dist/commonjs/classic/taskHubs/index.js +18 -0
- package/dist/commonjs/classic/taskHubs/index.js.map +1 -0
- package/dist/commonjs/durableTaskClient.d.ts +20 -0
- package/dist/commonjs/durableTaskClient.d.ts.map +1 -0
- package/dist/commonjs/durableTaskClient.js +25 -0
- package/dist/commonjs/durableTaskClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +11 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +13 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +316 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +352 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +110 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +171 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/durableTaskContext.d.ts +17 -0
- package/dist/esm/api/durableTaskContext.d.ts.map +1 -0
- package/dist/esm/api/durableTaskContext.js +34 -0
- package/dist/esm/api/durableTaskContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.d.ts.map +1 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.d.ts.map +1 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/schedulers/index.d.ts +3 -0
- package/dist/esm/api/schedulers/index.d.ts.map +1 -0
- package/dist/esm/api/schedulers/index.js +4 -0
- package/dist/esm/api/schedulers/index.js.map +1 -0
- package/dist/esm/api/schedulers/operations.d.ts +36 -0
- package/dist/esm/api/schedulers/operations.d.ts.map +1 -0
- package/dist/esm/api/schedulers/operations.js +176 -0
- package/dist/esm/api/schedulers/operations.js.map +1 -0
- package/dist/esm/api/schedulers/options.d.ts +26 -0
- package/dist/esm/api/schedulers/options.d.ts.map +1 -0
- package/dist/esm/api/schedulers/options.js +4 -0
- package/dist/esm/api/schedulers/options.js.map +1 -0
- package/dist/esm/api/taskHubs/index.d.ts +3 -0
- package/dist/esm/api/taskHubs/index.d.ts.map +1 -0
- package/dist/esm/api/taskHubs/index.js +4 -0
- package/dist/esm/api/taskHubs/index.js.map +1 -0
- package/dist/esm/api/taskHubs/operations.d.ts +28 -0
- package/dist/esm/api/taskHubs/operations.d.ts.map +1 -0
- package/dist/esm/api/taskHubs/operations.js +127 -0
- package/dist/esm/api/taskHubs/operations.js.map +1 -0
- package/dist/esm/api/taskHubs/options.d.ts +18 -0
- package/dist/esm/api/taskHubs/options.d.ts.map +1 -0
- package/dist/esm/api/taskHubs/options.js +4 -0
- package/dist/esm/api/taskHubs/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +4 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/schedulers/index.d.ts +27 -0
- package/dist/esm/classic/schedulers/index.d.ts.map +1 -0
- package/dist/esm/classic/schedulers/index.js +17 -0
- package/dist/esm/classic/schedulers/index.js.map +1 -0
- package/dist/esm/classic/taskHubs/index.d.ts +23 -0
- package/dist/esm/classic/taskHubs/index.d.ts.map +1 -0
- package/dist/esm/classic/taskHubs/index.js +15 -0
- package/dist/esm/classic/taskHubs/index.js.map +1 -0
- package/dist/esm/durableTaskClient.d.ts +20 -0
- package/dist/esm/durableTaskClient.d.ts.map +1 -0
- package/dist/esm/durableTaskClient.js +21 -0
- package/dist/esm/durableTaskClient.js.map +1 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +316 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +313 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +107 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +168 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/durableTaskContext.d.ts +17 -0
- package/dist/react-native/api/durableTaskContext.d.ts.map +1 -0
- package/dist/react-native/api/durableTaskContext.js +34 -0
- package/dist/react-native/api/durableTaskContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.d.ts.map +1 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/schedulers/index.d.ts +3 -0
- package/dist/react-native/api/schedulers/index.d.ts.map +1 -0
- package/dist/react-native/api/schedulers/index.js +4 -0
- package/dist/react-native/api/schedulers/index.js.map +1 -0
- package/dist/react-native/api/schedulers/operations.d.ts +36 -0
- package/dist/react-native/api/schedulers/operations.d.ts.map +1 -0
- package/dist/react-native/api/schedulers/operations.js +176 -0
- package/dist/react-native/api/schedulers/operations.js.map +1 -0
- package/dist/react-native/api/schedulers/options.d.ts +26 -0
- package/dist/react-native/api/schedulers/options.d.ts.map +1 -0
- package/dist/react-native/api/schedulers/options.js +4 -0
- package/dist/react-native/api/schedulers/options.js.map +1 -0
- package/dist/react-native/api/taskHubs/index.d.ts +3 -0
- package/dist/react-native/api/taskHubs/index.d.ts.map +1 -0
- package/dist/react-native/api/taskHubs/index.js +4 -0
- package/dist/react-native/api/taskHubs/index.js.map +1 -0
- package/dist/react-native/api/taskHubs/operations.d.ts +28 -0
- package/dist/react-native/api/taskHubs/operations.d.ts.map +1 -0
- package/dist/react-native/api/taskHubs/operations.js +127 -0
- package/dist/react-native/api/taskHubs/operations.js.map +1 -0
- package/dist/react-native/api/taskHubs/options.d.ts +18 -0
- package/dist/react-native/api/taskHubs/options.d.ts.map +1 -0
- package/dist/react-native/api/taskHubs/options.js +4 -0
- package/dist/react-native/api/taskHubs/options.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +4 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +11 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/schedulers/index.d.ts +27 -0
- package/dist/react-native/classic/schedulers/index.d.ts.map +1 -0
- package/dist/react-native/classic/schedulers/index.js +17 -0
- package/dist/react-native/classic/schedulers/index.js.map +1 -0
- package/dist/react-native/classic/taskHubs/index.d.ts +23 -0
- package/dist/react-native/classic/taskHubs/index.d.ts.map +1 -0
- package/dist/react-native/classic/taskHubs/index.js +15 -0
- package/dist/react-native/classic/taskHubs/index.js.map +1 -0
- package/dist/react-native/durableTaskClient.d.ts +20 -0
- package/dist/react-native/durableTaskClient.d.ts.map +1 -0
- package/dist/react-native/durableTaskClient.js +21 -0
- package/dist/react-native/durableTaskClient.js.map +1 -0
- package/dist/react-native/index.d.ts +11 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +316 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +313 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +107 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +168 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +239 -0
- package/review/arm-durabletask-api-operations.api.md +19 -0
- package/review/arm-durabletask-api-schedulers.api.md +59 -0
- package/review/arm-durabletask-api-taskHubs.api.md +44 -0
- package/review/arm-durabletask-api.api.md +27 -0
- package/review/arm-durabletask-models.api.md +183 -0
- package/review/arm-durabletask.api.md +305 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function taskHubSerializer(item) {
|
|
4
|
+
return {
|
|
5
|
+
properties: !item["properties"]
|
|
6
|
+
? item["properties"]
|
|
7
|
+
: taskHubPropertiesSerializer(item["properties"]),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function taskHubDeserializer(item) {
|
|
11
|
+
return {
|
|
12
|
+
id: item["id"],
|
|
13
|
+
name: item["name"],
|
|
14
|
+
type: item["type"],
|
|
15
|
+
systemData: !item["systemData"]
|
|
16
|
+
? item["systemData"]
|
|
17
|
+
: systemDataDeserializer(item["systemData"]),
|
|
18
|
+
properties: !item["properties"]
|
|
19
|
+
? item["properties"]
|
|
20
|
+
: taskHubPropertiesDeserializer(item["properties"]),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function taskHubPropertiesSerializer(item) {
|
|
24
|
+
return item;
|
|
25
|
+
}
|
|
26
|
+
export function taskHubPropertiesDeserializer(item) {
|
|
27
|
+
return {
|
|
28
|
+
provisioningState: item["provisioningState"],
|
|
29
|
+
dashboardUrl: item["dashboardUrl"],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** The status of the current operation */
|
|
33
|
+
export var KnownProvisioningState;
|
|
34
|
+
(function (KnownProvisioningState) {
|
|
35
|
+
/** Resource has been created. */
|
|
36
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
37
|
+
/** Resource creation failed. */
|
|
38
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
39
|
+
/** Resource creation was canceled. */
|
|
40
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
41
|
+
/** The resource is being provisioned */
|
|
42
|
+
KnownProvisioningState["Provisioning"] = "Provisioning";
|
|
43
|
+
/** The resource is updating */
|
|
44
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
45
|
+
/** The resource is being deleted */
|
|
46
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
47
|
+
/** The resource create request has been accepted */
|
|
48
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
49
|
+
})(KnownProvisioningState || (KnownProvisioningState = {}));
|
|
50
|
+
export function proxyResourceSerializer(item) {
|
|
51
|
+
return item;
|
|
52
|
+
}
|
|
53
|
+
export function proxyResourceDeserializer(item) {
|
|
54
|
+
return {
|
|
55
|
+
id: item["id"],
|
|
56
|
+
name: item["name"],
|
|
57
|
+
type: item["type"],
|
|
58
|
+
systemData: !item["systemData"]
|
|
59
|
+
? item["systemData"]
|
|
60
|
+
: systemDataDeserializer(item["systemData"]),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function resourceSerializer(item) {
|
|
64
|
+
return item;
|
|
65
|
+
}
|
|
66
|
+
export function resourceDeserializer(item) {
|
|
67
|
+
return {
|
|
68
|
+
id: item["id"],
|
|
69
|
+
name: item["name"],
|
|
70
|
+
type: item["type"],
|
|
71
|
+
systemData: !item["systemData"]
|
|
72
|
+
? item["systemData"]
|
|
73
|
+
: systemDataDeserializer(item["systemData"]),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export function systemDataDeserializer(item) {
|
|
77
|
+
return {
|
|
78
|
+
createdBy: item["createdBy"],
|
|
79
|
+
createdByType: item["createdByType"],
|
|
80
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
81
|
+
lastModifiedBy: item["lastModifiedBy"],
|
|
82
|
+
lastModifiedByType: item["lastModifiedByType"],
|
|
83
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
84
|
+
? item["lastModifiedAt"]
|
|
85
|
+
: new Date(item["lastModifiedAt"]),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** The kind of entity that created the resource. */
|
|
89
|
+
export var KnownCreatedByType;
|
|
90
|
+
(function (KnownCreatedByType) {
|
|
91
|
+
/** The entity was created by a user. */
|
|
92
|
+
KnownCreatedByType["User"] = "User";
|
|
93
|
+
/** The entity was created by an application. */
|
|
94
|
+
KnownCreatedByType["Application"] = "Application";
|
|
95
|
+
/** The entity was created by a managed identity. */
|
|
96
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
97
|
+
/** The entity was created by a key. */
|
|
98
|
+
KnownCreatedByType["Key"] = "Key";
|
|
99
|
+
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
100
|
+
export function errorResponseDeserializer(item) {
|
|
101
|
+
return {
|
|
102
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export function errorDetailDeserializer(item) {
|
|
106
|
+
return {
|
|
107
|
+
code: item["code"],
|
|
108
|
+
message: item["message"],
|
|
109
|
+
target: item["target"],
|
|
110
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
111
|
+
additionalInfo: !item["additionalInfo"]
|
|
112
|
+
? item["additionalInfo"]
|
|
113
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
export function errorDetailArrayDeserializer(result) {
|
|
117
|
+
return result.map((item) => {
|
|
118
|
+
return errorDetailDeserializer(item);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
122
|
+
return result.map((item) => {
|
|
123
|
+
return errorAdditionalInfoDeserializer(item);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
127
|
+
return {
|
|
128
|
+
type: item["type"],
|
|
129
|
+
info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export function _errorAdditionalInfoInfoDeserializer(item) {
|
|
133
|
+
return item;
|
|
134
|
+
}
|
|
135
|
+
export function _taskHubListResultDeserializer(item) {
|
|
136
|
+
return {
|
|
137
|
+
value: taskHubArrayDeserializer(item["value"]),
|
|
138
|
+
nextLink: item["nextLink"],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export function taskHubArraySerializer(result) {
|
|
142
|
+
return result.map((item) => {
|
|
143
|
+
return taskHubSerializer(item);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
export function taskHubArrayDeserializer(result) {
|
|
147
|
+
return result.map((item) => {
|
|
148
|
+
return taskHubDeserializer(item);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
export function schedulerSerializer(item) {
|
|
152
|
+
return {
|
|
153
|
+
tags: item["tags"],
|
|
154
|
+
location: item["location"],
|
|
155
|
+
properties: !item["properties"]
|
|
156
|
+
? item["properties"]
|
|
157
|
+
: schedulerPropertiesSerializer(item["properties"]),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
export function schedulerDeserializer(item) {
|
|
161
|
+
return {
|
|
162
|
+
tags: item["tags"],
|
|
163
|
+
location: item["location"],
|
|
164
|
+
id: item["id"],
|
|
165
|
+
name: item["name"],
|
|
166
|
+
type: item["type"],
|
|
167
|
+
systemData: !item["systemData"]
|
|
168
|
+
? item["systemData"]
|
|
169
|
+
: systemDataDeserializer(item["systemData"]),
|
|
170
|
+
properties: !item["properties"]
|
|
171
|
+
? item["properties"]
|
|
172
|
+
: schedulerPropertiesDeserializer(item["properties"]),
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
export function schedulerPropertiesSerializer(item) {
|
|
176
|
+
return {
|
|
177
|
+
ipAllowlist: item["ipAllowlist"].map((p) => {
|
|
178
|
+
return p;
|
|
179
|
+
}),
|
|
180
|
+
sku: schedulerSkuSerializer(item["sku"]),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
export function schedulerPropertiesDeserializer(item) {
|
|
184
|
+
return {
|
|
185
|
+
provisioningState: item["provisioningState"],
|
|
186
|
+
endpoint: item["endpoint"],
|
|
187
|
+
ipAllowlist: item["ipAllowlist"].map((p) => {
|
|
188
|
+
return p;
|
|
189
|
+
}),
|
|
190
|
+
sku: schedulerSkuDeserializer(item["sku"]),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export function schedulerSkuSerializer(item) {
|
|
194
|
+
return { name: item["name"], capacity: item["capacity"] };
|
|
195
|
+
}
|
|
196
|
+
export function schedulerSkuDeserializer(item) {
|
|
197
|
+
return {
|
|
198
|
+
name: item["name"],
|
|
199
|
+
capacity: item["capacity"],
|
|
200
|
+
redundancyState: item["redundancyState"],
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
/** The state of the resource redundancy */
|
|
204
|
+
export var KnownRedundancyState;
|
|
205
|
+
(function (KnownRedundancyState) {
|
|
206
|
+
/** The resource is not redundant */
|
|
207
|
+
KnownRedundancyState["None"] = "None";
|
|
208
|
+
/** The resource is zone redundant */
|
|
209
|
+
KnownRedundancyState["Zone"] = "Zone";
|
|
210
|
+
})(KnownRedundancyState || (KnownRedundancyState = {}));
|
|
211
|
+
export function trackedResourceSerializer(item) {
|
|
212
|
+
return { tags: item["tags"], location: item["location"] };
|
|
213
|
+
}
|
|
214
|
+
export function trackedResourceDeserializer(item) {
|
|
215
|
+
return {
|
|
216
|
+
id: item["id"],
|
|
217
|
+
name: item["name"],
|
|
218
|
+
type: item["type"],
|
|
219
|
+
systemData: !item["systemData"]
|
|
220
|
+
? item["systemData"]
|
|
221
|
+
: systemDataDeserializer(item["systemData"]),
|
|
222
|
+
tags: item["tags"],
|
|
223
|
+
location: item["location"],
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
export function schedulerUpdateSerializer(item) {
|
|
227
|
+
return {
|
|
228
|
+
properties: !item["properties"]
|
|
229
|
+
? item["properties"]
|
|
230
|
+
: schedulerPropertiesUpdateSerializer(item["properties"]),
|
|
231
|
+
tags: item["tags"],
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
export function schedulerPropertiesUpdateSerializer(item) {
|
|
235
|
+
return {
|
|
236
|
+
ipAllowlist: !item["ipAllowlist"]
|
|
237
|
+
? item["ipAllowlist"]
|
|
238
|
+
: item["ipAllowlist"].map((p) => {
|
|
239
|
+
return p;
|
|
240
|
+
}),
|
|
241
|
+
sku: !item["sku"] ? item["sku"] : schedulerSkuUpdateSerializer(item["sku"]),
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export function schedulerSkuUpdateSerializer(item) {
|
|
245
|
+
return { name: item["name"], capacity: item["capacity"] };
|
|
246
|
+
}
|
|
247
|
+
export function _schedulerListResultDeserializer(item) {
|
|
248
|
+
return {
|
|
249
|
+
value: schedulerArrayDeserializer(item["value"]),
|
|
250
|
+
nextLink: item["nextLink"],
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
export function schedulerArraySerializer(result) {
|
|
254
|
+
return result.map((item) => {
|
|
255
|
+
return schedulerSerializer(item);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
export function schedulerArrayDeserializer(result) {
|
|
259
|
+
return result.map((item) => {
|
|
260
|
+
return schedulerDeserializer(item);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
export function _operationListResultDeserializer(item) {
|
|
264
|
+
return {
|
|
265
|
+
value: operationArrayDeserializer(item["value"]),
|
|
266
|
+
nextLink: item["nextLink"],
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
export function operationArrayDeserializer(result) {
|
|
270
|
+
return result.map((item) => {
|
|
271
|
+
return operationDeserializer(item);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
export function operationDeserializer(item) {
|
|
275
|
+
return {
|
|
276
|
+
name: item["name"],
|
|
277
|
+
isDataAction: item["isDataAction"],
|
|
278
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
279
|
+
origin: item["origin"],
|
|
280
|
+
actionType: item["actionType"],
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
export function operationDisplayDeserializer(item) {
|
|
284
|
+
return {
|
|
285
|
+
provider: item["provider"],
|
|
286
|
+
resource: item["resource"],
|
|
287
|
+
operation: item["operation"],
|
|
288
|
+
description: item["description"],
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
292
|
+
export var KnownOrigin;
|
|
293
|
+
(function (KnownOrigin) {
|
|
294
|
+
/** Indicates the operation is initiated by a user. */
|
|
295
|
+
KnownOrigin["User"] = "user";
|
|
296
|
+
/** Indicates the operation is initiated by a system. */
|
|
297
|
+
KnownOrigin["System"] = "system";
|
|
298
|
+
/** Indicates the operation is initiated by a user or system. */
|
|
299
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
300
|
+
})(KnownOrigin || (KnownOrigin = {}));
|
|
301
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
302
|
+
export var KnownActionType;
|
|
303
|
+
(function (KnownActionType) {
|
|
304
|
+
/** Actions are for internal-only APIs. */
|
|
305
|
+
KnownActionType["Internal"] = "Internal";
|
|
306
|
+
})(KnownActionType || (KnownActionType = {}));
|
|
307
|
+
/** API Versions */
|
|
308
|
+
export var KnownVersions;
|
|
309
|
+
(function (KnownVersions) {
|
|
310
|
+
/** 2024-10-01-preview */
|
|
311
|
+
KnownVersions["V20241001Preview"] = "2024-10-01-preview";
|
|
312
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
313
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,iBAAiB,CAAC,IAAa;IAC7C,OAAO;QACL,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,2BAA2B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACpD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS;IAC3C,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7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,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,mBAAmB;AACnB,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A Task Hub resource belonging to the scheduler */\nexport interface TaskHub extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: TaskHubProperties;\n}\n\nexport function taskHubSerializer(item: TaskHub): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : taskHubPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function taskHubDeserializer(item: any): TaskHub {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : taskHubPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of Task Hub */\nexport interface TaskHubProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler dashboard */\n readonly dashboardUrl?: string;\n}\n\nexport function taskHubPropertiesSerializer(item: TaskHubProperties): any {\n return item;\n}\n\nexport function taskHubPropertiesDeserializer(item: any): TaskHubProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dashboardUrl: item[\"dashboardUrl\"],\n };\n}\n\n/** The status of the current operation */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** The resource is being provisioned */\n Provisioning = \"Provisioning\",\n /** The resource is updating */\n Updating = \"Updating\",\n /** The resource is being deleted */\n Deleting = \"Deleting\",\n /** The resource create request has been accepted */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the current operation \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Provisioning**: The resource is being provisioned \\\n * **Updating**: The resource is updating \\\n * **Deleting**: The resource is being deleted \\\n * **Accepted**: The resource create request has been accepted\n */\nexport type ProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The response of a TaskHub list operation. */\nexport interface _TaskHubListResult {\n /** The TaskHub items on this page */\n value: TaskHub[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _taskHubListResultDeserializer(item: any): _TaskHubListResult {\n return {\n value: taskHubArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function taskHubArraySerializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubSerializer(item);\n });\n}\n\nexport function taskHubArrayDeserializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubDeserializer(item);\n });\n}\n\n/** A Durable Task Scheduler resource */\nexport interface Scheduler extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerProperties;\n}\n\nexport function schedulerSerializer(item: Scheduler): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function schedulerDeserializer(item: any): Scheduler {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the Scheduler */\nexport interface SchedulerProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist: string[];\n /** SKU of the durable task scheduler */\n sku: SchedulerSku;\n}\n\nexport function schedulerPropertiesSerializer(item: SchedulerProperties): any {\n return {\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuSerializer(item[\"sku\"]),\n };\n}\n\nexport function schedulerPropertiesDeserializer(item: any): SchedulerProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n endpoint: item[\"endpoint\"],\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuDeserializer(item[\"sku\"]),\n };\n}\n\n/** The SKU (Stock Keeping Unit) assigned to this durable task scheduler */\nexport interface SchedulerSku {\n /** The name of the SKU */\n name: string;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuSerializer(item: SchedulerSku): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\nexport function schedulerSkuDeserializer(item: any): SchedulerSku {\n return {\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n redundancyState: item[\"redundancyState\"],\n };\n}\n\n/** The state of the resource redundancy */\nexport enum KnownRedundancyState {\n /** The resource is not redundant */\n None = \"None\",\n /** The resource is zone redundant */\n Zone = \"Zone\",\n}\n\n/**\n * The state of the resource redundancy \\\n * {@link KnownRedundancyState} can be used interchangeably with RedundancyState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: The resource is not redundant \\\n * **Zone**: The resource is zone redundant\n */\nexport type RedundancyState = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** The update request model for the Scheduler resource */\nexport interface SchedulerUpdate {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerPropertiesUpdate;\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function schedulerUpdateSerializer(item: SchedulerUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesUpdateSerializer(item[\"properties\"]),\n tags: item[\"tags\"],\n };\n}\n\n/** The Scheduler resource properties to be updated */\nexport interface SchedulerPropertiesUpdate {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist?: string[];\n /** SKU of the durable task scheduler */\n sku?: SchedulerSkuUpdate;\n}\n\nexport function schedulerPropertiesUpdateSerializer(item: SchedulerPropertiesUpdate): any {\n return {\n ipAllowlist: !item[\"ipAllowlist\"]\n ? item[\"ipAllowlist\"]\n : item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: !item[\"sku\"] ? item[\"sku\"] : schedulerSkuUpdateSerializer(item[\"sku\"]),\n };\n}\n\n/** The SKU (Stock Keeping Unit) properties to be updated */\nexport interface SchedulerSkuUpdate {\n /** The name of the SKU */\n name?: string;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuUpdateSerializer(item: SchedulerSkuUpdate): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\n/** The response of a Scheduler list operation. */\nexport interface _SchedulerListResult {\n /** The Scheduler items on this page */\n value: Scheduler[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _schedulerListResultDeserializer(item: any): _SchedulerListResult {\n return {\n value: schedulerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function schedulerArraySerializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerSerializer(item);\n });\n}\n\nexport function schedulerArrayDeserializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** API Versions */\nexport enum KnownVersions {\n /** 2024-10-01-preview */\n V20241001Preview = \"2024-10-01-preview\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DurableTaskClient } from "./durableTaskClient.js";
|
|
2
|
+
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
+
updateIntervalInMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The signal which can be used to abort requests.
|
|
10
|
+
*/
|
|
11
|
+
abortSignal?: AbortSignalLike;
|
|
12
|
+
/** Deserialization function for raw response body */
|
|
13
|
+
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
+
* useful when you want to create pollers on a different host or a poller
|
|
18
|
+
* needs to be constructed after the original one is not in scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: DurableTaskClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
+
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAQ3D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,iBAAiB,EACzB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _$deleteDeserialize, _createOrUpdateDeserialize } from "./api/taskHubs/operations.js";
|
|
4
|
+
import { _$deleteDeserialize as _$deleteDeserializeSchedulers, _updateDeserialize, _createOrUpdateDeserialize as _createOrUpdateDeserializeSchedulers, } from "./api/schedulers/operations.js";
|
|
5
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
6
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
7
|
+
/**
|
|
8
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
9
|
+
* useful when you want to create pollers on a different host or a poller
|
|
10
|
+
* needs to be constructed after the original one is not in scope.
|
|
11
|
+
*/
|
|
12
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
15
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
16
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
17
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
18
|
+
}
|
|
19
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
20
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
21
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
22
|
+
if (!deserializeHelper) {
|
|
23
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
|
|
24
|
+
}
|
|
25
|
+
return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
26
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
27
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
28
|
+
resourceLocationConfig,
|
|
29
|
+
restoreFrom: serializedState,
|
|
30
|
+
initialRequestUrl,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
const deserializeMap = {
|
|
34
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": {
|
|
35
|
+
deserializer: _$deleteDeserialize,
|
|
36
|
+
expectedStatuses: ["202", "204", "200"],
|
|
37
|
+
},
|
|
38
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": {
|
|
39
|
+
deserializer: _createOrUpdateDeserialize,
|
|
40
|
+
expectedStatuses: ["200", "201"],
|
|
41
|
+
},
|
|
42
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
|
|
43
|
+
deserializer: _$deleteDeserializeSchedulers,
|
|
44
|
+
expectedStatuses: ["202", "204", "200"],
|
|
45
|
+
},
|
|
46
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202"] },
|
|
47
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
|
|
48
|
+
deserializer: _createOrUpdateDeserializeSchedulers,
|
|
49
|
+
expectedStatuses: ["200", "201"],
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function getDeserializationHelper(urlStr, method) {
|
|
53
|
+
var _a, _b, _c, _d;
|
|
54
|
+
const path = new URL(urlStr).pathname;
|
|
55
|
+
const pathParts = path.split("/");
|
|
56
|
+
// Traverse list to match the longest candidate
|
|
57
|
+
// matchedLen: the length of candidate path
|
|
58
|
+
// matchedValue: the matched status code array
|
|
59
|
+
let matchedLen = -1, matchedValue;
|
|
60
|
+
// Iterate the responseMap to find a match
|
|
61
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
62
|
+
// Extracting the path from the map key which is in format
|
|
63
|
+
// GET /path/foo
|
|
64
|
+
if (!key.startsWith(method)) {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
const candidatePath = getPathFromMapKey(key);
|
|
68
|
+
// Get each part of the url path
|
|
69
|
+
const candidateParts = candidatePath.split("/");
|
|
70
|
+
// track if we have found a match to return the values found.
|
|
71
|
+
let found = true;
|
|
72
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
73
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
74
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
75
|
+
// If the current part of the candidate is a "template" part
|
|
76
|
+
// Try to use the suffix of pattern to match the path
|
|
77
|
+
// {guid} ==> $
|
|
78
|
+
// {guid}:export ==> :export$
|
|
79
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
80
|
+
if (!isMatched) {
|
|
81
|
+
found = false;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
// If the candidate part is not a template and
|
|
87
|
+
// the parts don't match mark the candidate as not found
|
|
88
|
+
// to move on with the next candidate path.
|
|
89
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
90
|
+
found = false;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// We finished evaluating the current candidate parts
|
|
95
|
+
// Update the matched value if and only if we found the longer pattern
|
|
96
|
+
if (found && candidatePath.length > matchedLen) {
|
|
97
|
+
matchedLen = candidatePath.length;
|
|
98
|
+
matchedValue = value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return matchedValue;
|
|
102
|
+
}
|
|
103
|
+
function getPathFromMapKey(mapKey) {
|
|
104
|
+
const pathStart = mapKey.indexOf("/");
|
|
105
|
+
return mapKey.slice(pathStart);
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,EACL,mBAAmB,IAAI,6BAA6B,EACpD,kBAAkB,EAClB,0BAA0B,IAAI,oCAAoC,GACnE,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAyB,EACzB,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,I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,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { DurableTaskClient } from \"./durableTaskClient.js\";\nimport { _$deleteDeserialize, _createOrUpdateDeserialize } from \"./api/taskHubs/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeSchedulers,\n _updateDeserialize,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeSchedulers,\n} from \"./api/schedulers/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: DurableTaskClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _$deleteDeserializeSchedulers,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _createOrUpdateDeserializeSchedulers,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
70
|
+
*/
|
|
71
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
72
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,G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