@azure/template-dpg 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -3
- package/README.md +4 -6
- package/{types/src/src → dist/browser}/WidgetServiceClient.d.ts +3 -2
- package/dist/browser/WidgetServiceClient.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/WidgetServiceClient.js +3 -9
- package/dist/browser/WidgetServiceClient.js.map +1 -0
- package/{types/src/src → dist/browser}/api/WidgetServiceContext.d.ts +3 -3
- package/dist/browser/api/WidgetServiceContext.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/api/WidgetServiceContext.js +2 -2
- package/dist/browser/api/WidgetServiceContext.js.map +1 -0
- package/dist/browser/api/foo.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/api/foo.js +1 -1
- package/dist/browser/api/foo.js.map +1 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/models.d.ts.map +1 -0
- package/dist/browser/api/models.js +4 -0
- package/dist/browser/api/models.js.map +1 -0
- package/{types/src/src → dist/browser}/api/operations.d.ts +5 -4
- package/dist/browser/api/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/api/operations.js +2 -2
- package/dist/browser/api/operations.js.map +1 -0
- package/{types/src/src → dist/browser}/common/interfaces.d.ts +1 -1
- package/dist/browser/common/interfaces.d.ts.map +1 -0
- package/dist/browser/common/interfaces.js +4 -0
- package/dist/browser/common/interfaces.js.map +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/index.js +1 -1
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/logger.js +1 -1
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{types/src/src → dist/browser}/rest/clientDefinitions.d.ts +3 -3
- package/{types/src → dist/browser}/rest/clientDefinitions.d.ts.map +1 -1
- package/dist/browser/rest/clientDefinitions.js +4 -0
- package/dist/browser/rest/clientDefinitions.js.map +1 -0
- package/dist/browser/rest/index.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/rest/index.js +1 -1
- package/dist/browser/rest/index.js.map +1 -0
- package/{types/src/src → dist/browser}/rest/isUnexpected.d.ts +1 -1
- package/dist/browser/rest/isUnexpected.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/rest/isUnexpected.js +1 -1
- package/dist/browser/rest/isUnexpected.js.map +1 -0
- package/dist/browser/rest/models.d.ts.map +1 -0
- package/dist/browser/rest/models.js +4 -0
- package/dist/browser/rest/models.js.map +1 -0
- package/dist/browser/rest/outputModels.d.ts.map +1 -0
- package/dist/browser/rest/outputModels.js +4 -0
- package/dist/browser/rest/outputModels.js.map +1 -0
- package/{types/src/src → dist/browser}/rest/parameters.d.ts +2 -2
- package/dist/browser/rest/parameters.d.ts.map +1 -0
- package/dist/browser/rest/parameters.js +4 -0
- package/dist/browser/rest/parameters.js.map +1 -0
- package/{types/src/src → dist/browser}/rest/responses.d.ts +2 -2
- package/dist/browser/rest/responses.d.ts.map +1 -0
- package/dist/browser/rest/responses.js +4 -0
- package/dist/browser/rest/responses.js.map +1 -0
- package/{types/src/src → dist/browser}/rest/widgetServiceClient.d.ts +3 -3
- package/dist/browser/rest/widgetServiceClient.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/rest/widgetServiceClient.js +2 -9
- package/dist/browser/rest/widgetServiceClient.js.map +1 -0
- package/{types/src → dist/commonjs}/WidgetServiceClient.d.ts +3 -9
- package/dist/commonjs/WidgetServiceClient.d.ts.map +1 -0
- package/dist/commonjs/WidgetServiceClient.js +56 -0
- package/dist/commonjs/WidgetServiceClient.js.map +1 -0
- package/{types/src → dist/commonjs}/api/WidgetServiceContext.d.ts +3 -10
- package/dist/commonjs/api/WidgetServiceContext.d.ts.map +1 -0
- package/dist/commonjs/api/WidgetServiceContext.js +18 -0
- package/dist/commonjs/api/WidgetServiceContext.js.map +1 -0
- package/{types/src → dist/commonjs}/api/foo.d.ts +0 -7
- package/dist/commonjs/api/foo.d.ts.map +1 -0
- package/dist/commonjs/api/foo.js +16 -0
- package/dist/commonjs/api/foo.js.map +1 -0
- package/{types/src → dist/commonjs}/api/index.d.ts +0 -7
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +15 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/{types/src → dist/commonjs}/api/models.d.ts +0 -7
- package/dist/commonjs/api/models.d.ts.map +1 -0
- package/dist/commonjs/api/models.js +5 -0
- package/dist/commonjs/api/models.js.map +1 -0
- package/{types/src → dist/commonjs}/api/operations.d.ts +5 -11
- package/dist/commonjs/api/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations.js +191 -0
- package/dist/commonjs/api/operations.js.map +1 -0
- package/{types/src → dist/commonjs}/common/interfaces.d.ts +1 -8
- package/dist/commonjs/common/interfaces.d.ts.map +1 -0
- package/dist/commonjs/common/interfaces.js +5 -0
- package/dist/commonjs/common/interfaces.js.map +1 -0
- package/{types/src → dist/commonjs}/index.d.ts +0 -7
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +8 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +15 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/{types/src → dist/commonjs}/rest/clientDefinitions.d.ts +3 -10
- package/dist/commonjs/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/rest/clientDefinitions.js +5 -0
- package/dist/commonjs/rest/clientDefinitions.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/index.d.ts +0 -7
- package/dist/commonjs/rest/index.d.ts.map +1 -0
- package/dist/commonjs/rest/index.js +22 -0
- package/dist/commonjs/rest/index.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/isUnexpected.d.ts +1 -8
- package/dist/commonjs/rest/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/rest/isUnexpected.js +78 -0
- package/dist/commonjs/rest/isUnexpected.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/models.d.ts +0 -7
- package/dist/commonjs/rest/models.d.ts.map +1 -0
- package/dist/commonjs/rest/models.js +5 -0
- package/dist/commonjs/rest/models.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/outputModels.d.ts +0 -7
- package/dist/commonjs/rest/outputModels.d.ts.map +1 -0
- package/dist/commonjs/rest/outputModels.js +5 -0
- package/dist/commonjs/rest/outputModels.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/parameters.d.ts +2 -9
- package/dist/commonjs/rest/parameters.d.ts.map +1 -0
- package/dist/commonjs/rest/parameters.js +5 -0
- package/dist/commonjs/rest/parameters.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/responses.d.ts +2 -9
- package/dist/commonjs/rest/responses.d.ts.map +1 -0
- package/dist/commonjs/rest/responses.js +5 -0
- package/dist/commonjs/rest/responses.js.map +1 -0
- package/{types/src → dist/commonjs}/rest/widgetServiceClient.d.ts +3 -10
- package/dist/commonjs/rest/widgetServiceClient.d.ts.map +1 -0
- package/dist/commonjs/rest/widgetServiceClient.js +42 -0
- package/dist/commonjs/rest/widgetServiceClient.js.map +1 -0
- package/{types/latest → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/WidgetServiceClient.d.ts +42 -0
- package/dist/esm/WidgetServiceClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/WidgetServiceClient.js +3 -16
- package/dist/esm/WidgetServiceClient.js.map +1 -0
- package/dist/esm/api/WidgetServiceContext.d.ts +19 -0
- package/dist/esm/api/WidgetServiceContext.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/esm}/api/WidgetServiceContext.js +2 -2
- package/dist/esm/api/WidgetServiceContext.js.map +1 -0
- package/dist/esm/api/foo.d.ts +9 -0
- package/dist/esm/api/foo.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/api/foo.js +1 -8
- package/dist/esm/api/foo.js.map +1 -0
- package/dist/esm/api/index.d.ts +11 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/esm}/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/models.d.ts +25 -0
- package/dist/esm/api/models.d.ts.map +1 -0
- package/dist/esm/api/models.js +4 -0
- package/dist/esm/api/models.js.map +1 -0
- package/dist/esm/api/operations.d.ts +68 -0
- package/dist/esm/api/operations.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/esm}/api/operations.js +2 -2
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/common/interfaces.d.ts +21 -0
- package/dist/esm/common/interfaces.d.ts.map +1 -0
- package/dist/esm/common/interfaces.js +4 -0
- package/dist/esm/common/interfaces.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/index.js +1 -1
- 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/src → dist/esm}/logger.js +1 -8
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/rest/clientDefinitions.d.ts +52 -0
- package/dist/esm/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/rest/clientDefinitions.js +4 -0
- package/dist/esm/rest/clientDefinitions.js.map +1 -0
- package/dist/esm/rest/index.d.ts +17 -0
- package/dist/esm/rest/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/rest/index.js +1 -8
- package/dist/esm/rest/index.js.map +1 -0
- package/dist/esm/rest/isUnexpected.d.ts +15 -0
- package/dist/esm/rest/isUnexpected.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/rest/isUnexpected.js +1 -1
- package/dist/esm/rest/isUnexpected.js.map +1 -0
- package/dist/esm/rest/models.d.ts +20 -0
- package/dist/esm/rest/models.d.ts.map +1 -0
- package/dist/esm/rest/models.js +4 -0
- package/dist/esm/rest/models.js.map +1 -0
- package/dist/esm/rest/outputModels.d.ts +25 -0
- package/dist/esm/rest/outputModels.d.ts.map +1 -0
- package/dist/esm/rest/outputModels.js +4 -0
- package/dist/esm/rest/outputModels.js.map +1 -0
- package/dist/esm/rest/parameters.d.ts +22 -0
- package/dist/esm/rest/parameters.d.ts.map +1 -0
- package/dist/esm/rest/parameters.js +4 -0
- package/dist/esm/rest/parameters.js.map +1 -0
- package/dist/esm/rest/responses.d.ts +63 -0
- package/dist/esm/rest/responses.d.ts.map +1 -0
- package/dist/esm/rest/responses.js +4 -0
- package/dist/esm/rest/responses.js.map +1 -0
- package/dist/esm/rest/widgetServiceClient.d.ts +16 -0
- package/dist/esm/rest/widgetServiceClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/rest/widgetServiceClient.js +2 -16
- package/dist/esm/rest/widgetServiceClient.js.map +1 -0
- package/dist/react-native/WidgetServiceClient.d.ts +42 -0
- package/dist/react-native/WidgetServiceClient.d.ts.map +1 -0
- package/dist/react-native/WidgetServiceClient.js +52 -0
- package/dist/react-native/WidgetServiceClient.js.map +1 -0
- package/dist/react-native/api/WidgetServiceContext.d.ts +19 -0
- package/dist/react-native/api/WidgetServiceContext.d.ts.map +1 -0
- package/dist/react-native/api/WidgetServiceContext.js +14 -0
- package/dist/react-native/api/WidgetServiceContext.js.map +1 -0
- package/dist/react-native/api/foo.d.ts +9 -0
- package/dist/react-native/api/foo.d.ts.map +1 -0
- package/dist/react-native/api/foo.js +13 -0
- package/dist/react-native/api/foo.js.map +1 -0
- package/dist/react-native/api/index.d.ts +11 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +5 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/models.d.ts +25 -0
- package/dist/react-native/api/models.d.ts.map +1 -0
- package/dist/react-native/api/models.js +4 -0
- package/dist/react-native/api/models.js.map +1 -0
- package/dist/react-native/api/operations.d.ts +68 -0
- package/dist/react-native/api/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations.js +171 -0
- package/dist/react-native/api/operations.js.map +1 -0
- package/dist/react-native/common/interfaces.d.ts +21 -0
- package/dist/react-native/common/interfaces.d.ts.map +1 -0
- package/dist/react-native/common/interfaces.js +4 -0
- package/dist/react-native/common/interfaces.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +4 -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 +12 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/rest/clientDefinitions.d.ts +52 -0
- package/dist/react-native/rest/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/rest/clientDefinitions.js +4 -0
- package/dist/react-native/rest/clientDefinitions.js.map +1 -0
- package/dist/react-native/rest/index.d.ts +17 -0
- package/dist/react-native/rest/index.d.ts.map +1 -0
- package/dist/react-native/rest/index.js +19 -0
- package/dist/react-native/rest/index.js.map +1 -0
- package/dist/react-native/rest/isUnexpected.d.ts +15 -0
- package/dist/react-native/rest/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/rest/isUnexpected.js +75 -0
- package/dist/react-native/rest/isUnexpected.js.map +1 -0
- package/dist/react-native/rest/models.d.ts +20 -0
- package/dist/react-native/rest/models.d.ts.map +1 -0
- package/dist/react-native/rest/models.js +4 -0
- package/dist/react-native/rest/models.js.map +1 -0
- package/dist/react-native/rest/outputModels.d.ts +25 -0
- package/dist/react-native/rest/outputModels.d.ts.map +1 -0
- package/dist/react-native/rest/outputModels.js +4 -0
- package/dist/react-native/rest/outputModels.js.map +1 -0
- package/dist/react-native/rest/parameters.d.ts +22 -0
- package/dist/react-native/rest/parameters.d.ts.map +1 -0
- package/dist/react-native/rest/parameters.js +4 -0
- package/dist/react-native/rest/parameters.js.map +1 -0
- package/dist/react-native/rest/responses.d.ts +63 -0
- package/dist/react-native/rest/responses.d.ts.map +1 -0
- package/dist/react-native/rest/responses.js +4 -0
- package/dist/react-native/rest/responses.js.map +1 -0
- package/dist/react-native/rest/widgetServiceClient.d.ts +16 -0
- package/dist/react-native/rest/widgetServiceClient.d.ts.map +1 -0
- package/dist/react-native/rest/widgetServiceClient.js +39 -0
- package/dist/react-native/rest/widgetServiceClient.js.map +1 -0
- package/package.json +108 -74
- package/dist/index.cjs +0 -370
- package/dist/index.cjs.map +0 -1
- package/dist-esm/src/WidgetServiceClient.js.map +0 -1
- package/dist-esm/src/api/WidgetServiceContext.js.map +0 -1
- package/dist-esm/src/api/foo.js.map +0 -1
- package/dist-esm/src/api/index.js.map +0 -1
- package/dist-esm/src/api/models.js +0 -4
- package/dist-esm/src/api/models.js.map +0 -1
- package/dist-esm/src/api/operations.js.map +0 -1
- package/dist-esm/src/common/interfaces.js +0 -4
- package/dist-esm/src/common/interfaces.js.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/logger.js.map +0 -1
- package/dist-esm/src/rest/clientDefinitions.js +0 -4
- package/dist-esm/src/rest/clientDefinitions.js.map +0 -1
- package/dist-esm/src/rest/index.js.map +0 -1
- package/dist-esm/src/rest/isUnexpected.js.map +0 -1
- package/dist-esm/src/rest/models.js +0 -4
- package/dist-esm/src/rest/models.js.map +0 -1
- package/dist-esm/src/rest/outputModels.js +0 -4
- package/dist-esm/src/rest/outputModels.js.map +0 -1
- package/dist-esm/src/rest/parameters.js +0 -4
- package/dist-esm/src/rest/parameters.js.map +0 -1
- package/dist-esm/src/rest/responses.js +0 -4
- package/dist-esm/src/rest/responses.js.map +0 -1
- package/dist-esm/src/rest/widgetServiceClient.js.map +0 -1
- package/dist-esm/src/src/WidgetServiceClient.js.map +0 -1
- package/dist-esm/src/src/api/WidgetServiceContext.js.map +0 -1
- package/dist-esm/src/src/api/foo.js.map +0 -1
- package/dist-esm/src/src/api/index.js.map +0 -1
- package/dist-esm/src/src/api/models.js +0 -4
- package/dist-esm/src/src/api/models.js.map +0 -1
- package/dist-esm/src/src/api/operations.js.map +0 -1
- package/dist-esm/src/src/common/interfaces.js +0 -4
- package/dist-esm/src/src/common/interfaces.js.map +0 -1
- package/dist-esm/src/src/index.js.map +0 -1
- package/dist-esm/src/src/logger.js.map +0 -1
- package/dist-esm/src/src/rest/clientDefinitions.js +0 -4
- package/dist-esm/src/src/rest/clientDefinitions.js.map +0 -1
- package/dist-esm/src/src/rest/index.js.map +0 -1
- package/dist-esm/src/src/rest/isUnexpected.js.map +0 -1
- package/dist-esm/src/src/rest/models.js +0 -4
- package/dist-esm/src/src/rest/models.js.map +0 -1
- package/dist-esm/src/src/rest/outputModels.js +0 -4
- package/dist-esm/src/src/rest/outputModels.js.map +0 -1
- package/dist-esm/src/src/rest/parameters.js +0 -4
- package/dist-esm/src/src/rest/parameters.js.map +0 -1
- package/dist-esm/src/src/rest/responses.js +0 -4
- package/dist-esm/src/src/rest/responses.js.map +0 -1
- package/dist-esm/src/src/rest/widgetServiceClient.js.map +0 -1
- package/types/latest/template-dpg.d.ts +0 -108
- package/types/samples-dev/createWidget.d.ts +0 -2
- package/types/samples-dev/createWidget.d.ts.map +0 -1
- package/types/src/WidgetServiceClient.d.ts.map +0 -1
- package/types/src/api/WidgetServiceContext.d.ts.map +0 -1
- package/types/src/api/foo.d.ts.map +0 -1
- package/types/src/api/index.d.ts.map +0 -1
- package/types/src/api/models.d.ts.map +0 -1
- package/types/src/api/operations.d.ts.map +0 -1
- package/types/src/common/interfaces.d.ts.map +0 -1
- package/types/src/index.d.ts.map +0 -1
- package/types/src/logger.d.ts.map +0 -1
- package/types/src/rest/index.d.ts.map +0 -1
- package/types/src/rest/isUnexpected.d.ts.map +0 -1
- package/types/src/rest/models.d.ts.map +0 -1
- package/types/src/rest/outputModels.d.ts.map +0 -1
- package/types/src/rest/parameters.d.ts.map +0 -1
- package/types/src/rest/responses.d.ts.map +0 -1
- package/types/src/rest/widgetServiceClient.d.ts.map +0 -1
- package/types/src/src/WidgetServiceClient.d.ts.map +0 -1
- package/types/src/src/api/WidgetServiceContext.d.ts.map +0 -1
- package/types/src/src/api/foo.d.ts.map +0 -1
- package/types/src/src/api/index.d.ts.map +0 -1
- package/types/src/src/api/models.d.ts.map +0 -1
- package/types/src/src/api/operations.d.ts.map +0 -1
- package/types/src/src/common/interfaces.d.ts.map +0 -1
- package/types/src/src/index.d.ts.map +0 -1
- package/types/src/src/logger.d.ts.map +0 -1
- package/types/src/src/rest/clientDefinitions.d.ts.map +0 -1
- package/types/src/src/rest/index.d.ts.map +0 -1
- package/types/src/src/rest/isUnexpected.d.ts.map +0 -1
- package/types/src/src/rest/models.d.ts.map +0 -1
- package/types/src/src/rest/outputModels.d.ts.map +0 -1
- package/types/src/src/rest/parameters.d.ts.map +0 -1
- package/types/src/src/rest/responses.d.ts.map +0 -1
- package/types/src/src/rest/widgetServiceClient.d.ts.map +0 -1
- package/types/test/public/widgetService.spec.d.ts +0 -2
- package/types/test/public/widgetService.spec.d.ts.map +0 -1
- /package/{types/src/src → dist/browser}/api/foo.d.ts +0 -0
- /package/{types/src/src → dist/browser}/api/index.d.ts +0 -0
- /package/{types/src/src → dist/browser}/api/models.d.ts +0 -0
- /package/{types/src/src → dist/browser}/index.d.ts +0 -0
- /package/{types/src → dist/browser}/logger.d.ts +0 -0
- /package/{types/src/src → dist/browser}/rest/index.d.ts +0 -0
- /package/{types/src/src → dist/browser}/rest/models.d.ts +0 -0
- /package/{types/src/src → dist/browser}/rest/outputModels.d.ts +0 -0
- /package/{types/src/src → dist/commonjs}/logger.d.ts +0 -0
package/dist/index.cjs
DELETED
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var coreAuth = require('@azure/core-auth');
|
|
6
|
-
var coreClient = require('@azure-rest/core-client');
|
|
7
|
-
var logger$1 = require('@azure/logger');
|
|
8
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
9
|
-
|
|
10
|
-
// Copyright (c) Microsoft Corporation.
|
|
11
|
-
const logger = logger$1.createClientLogger("widget");
|
|
12
|
-
|
|
13
|
-
// Copyright (c) Microsoft Corporation.
|
|
14
|
-
function createClient(endpoint, credentialOrOptions, options = {}) {
|
|
15
|
-
let credential;
|
|
16
|
-
if (coreAuth.isTokenCredential(credentialOrOptions)) {
|
|
17
|
-
credential = credentialOrOptions;
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
options = credentialOrOptions !== null && credentialOrOptions !== void 0 ? credentialOrOptions : {};
|
|
21
|
-
}
|
|
22
|
-
const client = _createClient(endpoint, options);
|
|
23
|
-
coreClient.addCredentialPipelinePolicy(client.pipeline, endpoint, { credential, clientOptions: options });
|
|
24
|
-
return client;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Initialize a new instance of `WidgetServiceContext`
|
|
28
|
-
* @param endpoint - The parameter endpoint
|
|
29
|
-
* @param options - the parameter for all optional parameters
|
|
30
|
-
*/
|
|
31
|
-
function _createClient(endpoint, options = {}) {
|
|
32
|
-
var _a, _b, _c, _d;
|
|
33
|
-
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}`;
|
|
34
|
-
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "1.0.0";
|
|
35
|
-
const userAgentInfo = `azsdk-js-widget-rest/1.0.0-beta.1`;
|
|
36
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
|
-
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
38
|
-
: `${userAgentInfo}`;
|
|
39
|
-
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
40
|
-
userAgentPrefix,
|
|
41
|
-
}, loggingOptions: {
|
|
42
|
-
logger: (_d = (_c = options.loggingOptions) === null || _c === void 0 ? void 0 : _c.logger) !== null && _d !== void 0 ? _d : logger.info,
|
|
43
|
-
} });
|
|
44
|
-
const client = coreClient.getClient(baseUrl, options);
|
|
45
|
-
return client;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Copyright (c) Microsoft Corporation.
|
|
49
|
-
// Licensed under the MIT license.
|
|
50
|
-
const responseMap = {
|
|
51
|
-
"GET /widgets": ["200"],
|
|
52
|
-
"POST /widgets": ["201"],
|
|
53
|
-
"GET /widgets/{id}": ["200"],
|
|
54
|
-
"PATCH /widgets/{id}": ["200"],
|
|
55
|
-
"DELETE /widgets/{id}": ["204"],
|
|
56
|
-
"POST /widgets/{id}/analyze": ["200"],
|
|
57
|
-
};
|
|
58
|
-
function isUnexpected(response) {
|
|
59
|
-
const lroOriginal = response.headers["x-ms-original-url"];
|
|
60
|
-
const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
|
|
61
|
-
const method = response.request.method;
|
|
62
|
-
let pathDetails = responseMap[`${method} ${url.pathname}`];
|
|
63
|
-
if (!pathDetails) {
|
|
64
|
-
pathDetails = getParametrizedPathSuccess(method, url.pathname);
|
|
65
|
-
}
|
|
66
|
-
return !pathDetails.includes(response.status);
|
|
67
|
-
}
|
|
68
|
-
function getParametrizedPathSuccess(method, path) {
|
|
69
|
-
var _a, _b, _c, _d;
|
|
70
|
-
const pathParts = path.split("/");
|
|
71
|
-
// Traverse list to match the longest candidate
|
|
72
|
-
// matchedLen: the length of candidate path
|
|
73
|
-
// matchedValue: the matched status code array
|
|
74
|
-
let matchedLen = -1, matchedValue = [];
|
|
75
|
-
// Iterate the responseMap to find a match
|
|
76
|
-
for (const [key, value] of Object.entries(responseMap)) {
|
|
77
|
-
// Extracting the path from the map key which is in format
|
|
78
|
-
// GET /path/foo
|
|
79
|
-
if (!key.startsWith(method)) {
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
const candidatePath = getPathFromMapKey(key);
|
|
83
|
-
// Get each part of the url path
|
|
84
|
-
const candidateParts = candidatePath.split("/");
|
|
85
|
-
// track if we have found a match to return the values found.
|
|
86
|
-
let found = true;
|
|
87
|
-
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
88
|
-
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
89
|
-
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
90
|
-
// If the current part of the candidate is a "template" part
|
|
91
|
-
// Try to use the suffix of pattern to match the path
|
|
92
|
-
// {guid} ==> $
|
|
93
|
-
// {guid}:export ==> :export$
|
|
94
|
-
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
95
|
-
if (!isMatched) {
|
|
96
|
-
found = false;
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
continue;
|
|
100
|
-
}
|
|
101
|
-
// If the candidate part is not a template and
|
|
102
|
-
// the parts don't match mark the candidate as not found
|
|
103
|
-
// to move on with the next candidate path.
|
|
104
|
-
if (candidateParts[i] !== pathParts[j]) {
|
|
105
|
-
found = false;
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
// We finished evaluating the current candidate parts
|
|
110
|
-
// Update the matched value if and only if we found the longer pattern
|
|
111
|
-
if (found && candidatePath.length > matchedLen) {
|
|
112
|
-
matchedLen = candidatePath.length;
|
|
113
|
-
matchedValue = value;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return matchedValue;
|
|
117
|
-
}
|
|
118
|
-
function getPathFromMapKey(mapKey) {
|
|
119
|
-
const pathStart = mapKey.indexOf("/");
|
|
120
|
-
return mapKey.slice(pathStart);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Copyright (c) Microsoft Corporation.
|
|
124
|
-
// Licensed under the MIT license.
|
|
125
|
-
/**
|
|
126
|
-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
127
|
-
*
|
|
128
|
-
* Any changes you make here may be lost.
|
|
129
|
-
*
|
|
130
|
-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
131
|
-
*/
|
|
132
|
-
/**
|
|
133
|
-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
134
|
-
*
|
|
135
|
-
* Any changes you make here may be lost.
|
|
136
|
-
*
|
|
137
|
-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
138
|
-
*/
|
|
139
|
-
function foo() {
|
|
140
|
-
console.log("foo");
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// Copyright (c) Microsoft Corporation.
|
|
144
|
-
function _listWidgetsSend(context, options = { requestOptions: {} }) {
|
|
145
|
-
var _a, _b, _c;
|
|
146
|
-
return context.path("/widgets").get({
|
|
147
|
-
allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
|
|
148
|
-
skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
|
|
149
|
-
headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
async function _listWidgetsDeserialize(result) {
|
|
153
|
-
var _a;
|
|
154
|
-
if (isUnexpected(result)) {
|
|
155
|
-
throw result.body;
|
|
156
|
-
}
|
|
157
|
-
return ((_a = result.body) !== null && _a !== void 0 ? _a : []).map((p) => ({
|
|
158
|
-
id: p["id"],
|
|
159
|
-
weight: p["weight"],
|
|
160
|
-
color: p["color"],
|
|
161
|
-
}));
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
|
|
165
|
-
*
|
|
166
|
-
* It does not accept any options or parameters.
|
|
167
|
-
*/
|
|
168
|
-
async function listWidgets(context, options = { requestOptions: {} }) {
|
|
169
|
-
const result = await _listWidgetsSend(context, options);
|
|
170
|
-
return _listWidgetsDeserialize(result);
|
|
171
|
-
}
|
|
172
|
-
function _getWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
173
|
-
var _a, _b, _c;
|
|
174
|
-
return context.path("/widgets/{id}", id).get({
|
|
175
|
-
allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
|
|
176
|
-
skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
|
|
177
|
-
headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
async function _getWidgetDeserialize(result) {
|
|
181
|
-
if (isUnexpected(result)) {
|
|
182
|
-
throw result.body;
|
|
183
|
-
}
|
|
184
|
-
return {
|
|
185
|
-
id: result.body["id"],
|
|
186
|
-
weight: result.body["weight"],
|
|
187
|
-
color: result.body["color"],
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
/** Get a widget by ID. */
|
|
191
|
-
async function getWidget(context, id, options = { requestOptions: {} }) {
|
|
192
|
-
const result = await _getWidgetSend(context, id, options);
|
|
193
|
-
return _getWidgetDeserialize(result);
|
|
194
|
-
}
|
|
195
|
-
function _createWidgetSend(context, weight, color, options = { requestOptions: {} }) {
|
|
196
|
-
var _a, _b, _c;
|
|
197
|
-
return context.path("/widgets").post({
|
|
198
|
-
allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
|
|
199
|
-
skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
|
|
200
|
-
headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
|
|
201
|
-
body: { weight: weight, color: color },
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
async function _createWidgetDeserialize(result) {
|
|
205
|
-
if (isUnexpected(result)) {
|
|
206
|
-
throw result.body;
|
|
207
|
-
}
|
|
208
|
-
return {
|
|
209
|
-
id: result.body["id"],
|
|
210
|
-
weight: result.body["weight"],
|
|
211
|
-
color: result.body["color"],
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Create a new widget.
|
|
216
|
-
*
|
|
217
|
-
* The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
|
|
218
|
-
* result in an error.
|
|
219
|
-
*/
|
|
220
|
-
async function createWidget(context, weight, color, options = { requestOptions: {} }) {
|
|
221
|
-
const result = await _createWidgetSend(context, weight, color, options);
|
|
222
|
-
return _createWidgetDeserialize(result);
|
|
223
|
-
}
|
|
224
|
-
function _updateWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
225
|
-
var _a, _b, _c;
|
|
226
|
-
return context.path("/widgets/{id}", id).patch({
|
|
227
|
-
allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
|
|
228
|
-
skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
|
|
229
|
-
headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
|
|
230
|
-
body: { weight: options === null || options === void 0 ? void 0 : options.weight, color: options === null || options === void 0 ? void 0 : options.color },
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
async function _updateWidgetDeserialize(result) {
|
|
234
|
-
if (isUnexpected(result)) {
|
|
235
|
-
throw result.body;
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
id: result.body["id"],
|
|
239
|
-
weight: result.body["weight"],
|
|
240
|
-
color: result.body["color"],
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
|
|
245
|
-
* are optional and will be updated within the widget if provided.
|
|
246
|
-
*/
|
|
247
|
-
async function updateWidget(context, id, options = { requestOptions: {} }) {
|
|
248
|
-
const result = await _updateWidgetSend(context, id, options);
|
|
249
|
-
return _updateWidgetDeserialize(result);
|
|
250
|
-
}
|
|
251
|
-
function _deleteWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
252
|
-
var _a, _b, _c;
|
|
253
|
-
return context.path("/widgets/{id}", id).delete({
|
|
254
|
-
allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
|
|
255
|
-
skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
|
|
256
|
-
headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
async function _deleteWidgetDeserialize(result) {
|
|
260
|
-
if (isUnexpected(result)) {
|
|
261
|
-
throw result.body;
|
|
262
|
-
}
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
/** Delete a widget by ID. */
|
|
266
|
-
async function deleteWidget(context, id, options = { requestOptions: {} }) {
|
|
267
|
-
const result = await _deleteWidgetSend(context, id, options);
|
|
268
|
-
return _deleteWidgetDeserialize(result);
|
|
269
|
-
}
|
|
270
|
-
function _analyzeWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
271
|
-
var _a, _b, _c;
|
|
272
|
-
return context.path("/widgets/{id}/analyze", id).post({
|
|
273
|
-
allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
|
|
274
|
-
skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
|
|
275
|
-
headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
async function _analyzeWidgetDeserialize(result) {
|
|
279
|
-
if (isUnexpected(result)) {
|
|
280
|
-
throw result.body;
|
|
281
|
-
}
|
|
282
|
-
return {
|
|
283
|
-
summary: result.body["summary"],
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* In this customization we will perform the following tasks in addition to the generated:
|
|
288
|
-
* - We are going to add special error handling for demonstration purposes
|
|
289
|
-
*/
|
|
290
|
-
async function analyzeWidget(context, id, options) {
|
|
291
|
-
try {
|
|
292
|
-
foo();
|
|
293
|
-
const result = await _analyzeWidget(context, id, options);
|
|
294
|
-
return result;
|
|
295
|
-
}
|
|
296
|
-
catch (error) {
|
|
297
|
-
console.error("Error occurred while calling analyzeWidget:", error);
|
|
298
|
-
if (error.message && error.statusCode) {
|
|
299
|
-
throw new coreRestPipeline.RestError(error.message, { code: error.statusCode });
|
|
300
|
-
}
|
|
301
|
-
throw new Error(error);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
/** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
|
|
305
|
-
async function _analyzeWidget(context, id, options = { requestOptions: {} }) {
|
|
306
|
-
const result = await _analyzeWidgetSend(context, id, options);
|
|
307
|
-
return _analyzeWidgetDeserialize(result);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
// Copyright (c) Microsoft Corporation.
|
|
311
|
-
function createWidgetService(endpoint, credentialOrOptions, options = {}) {
|
|
312
|
-
const baseUrl = endpoint;
|
|
313
|
-
if (coreAuth.isTokenCredential(credentialOrOptions)) {
|
|
314
|
-
return createClient(baseUrl, credentialOrOptions, options);
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
return createClient(baseUrl, credentialOrOptions);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
// Copyright (c) Microsoft Corporation.
|
|
322
|
-
class WidgetServiceClient {
|
|
323
|
-
constructor(endpoint, credentialOrOptions, options = {}) {
|
|
324
|
-
if (coreAuth.isTokenCredential(credentialOrOptions)) {
|
|
325
|
-
this._client = createWidgetService(endpoint, credentialOrOptions, options);
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
this._client = createWidgetService(endpoint, credentialOrOptions);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
|
|
333
|
-
*
|
|
334
|
-
* It does not accept any options or parameters.
|
|
335
|
-
*/
|
|
336
|
-
listWidgets(options = { requestOptions: {} }) {
|
|
337
|
-
return listWidgets(this._client, options);
|
|
338
|
-
}
|
|
339
|
-
/** Get a widget by ID. */
|
|
340
|
-
getWidget(id, options = { requestOptions: {} }) {
|
|
341
|
-
return getWidget(this._client, id, options);
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Create a new widget.
|
|
345
|
-
*
|
|
346
|
-
* The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
|
|
347
|
-
* result in an error.
|
|
348
|
-
*/
|
|
349
|
-
createWidget(weight, color, options = { requestOptions: {} }) {
|
|
350
|
-
return createWidget(this._client, weight, color, options);
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
|
|
354
|
-
* are optional and will be updated within the widget if provided.
|
|
355
|
-
*/
|
|
356
|
-
updateWidget(id, options = { requestOptions: {} }) {
|
|
357
|
-
return updateWidget(this._client, id, options);
|
|
358
|
-
}
|
|
359
|
-
/** Delete a widget by ID. */
|
|
360
|
-
deleteWidget(id, options = { requestOptions: {} }) {
|
|
361
|
-
return deleteWidget(this._client, id, options);
|
|
362
|
-
}
|
|
363
|
-
/** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
|
|
364
|
-
analyzeWidget(id, options = { requestOptions: {} }) {
|
|
365
|
-
return analyzeWidget(this._client, id, options);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
exports.WidgetServiceClient = WidgetServiceClient;
|
|
370
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/logger.ts","../src/rest/widgetServiceClient.ts","../src/rest/isUnexpected.ts","../src/api/foo.ts","../src/api/operations.ts","../src/api/WidgetServiceContext.ts","../src/WidgetServiceClient.ts"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"widget\");\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { ClientOptions, addCredentialPipelinePolicy, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { logger } from \"../logger.js\";\nimport { WidgetServiceContext } from \"./clientDefinitions.js\";\n\n/**\n * This customization adds credential support to the client. And overloads for when it is optional\n */\nexport default function createClient(\n endpoint: string,\n credential: TokenCredential,\n options?: ClientOptions\n): WidgetServiceContext;\nexport default function createClient(\n endpoint: string,\n options?: ClientOptions\n): WidgetServiceContext;\nexport default function createClient(\n endpoint: string,\n credentialOrOptions?: TokenCredential | ClientOptions,\n options: ClientOptions = {}\n): WidgetServiceContext {\n let credential: TokenCredential | undefined;\n if (isTokenCredential(credentialOrOptions)) {\n credential = credentialOrOptions;\n } else {\n options = credentialOrOptions ?? {};\n }\n\n const client = _createClient(endpoint, options);\n addCredentialPipelinePolicy(client.pipeline, endpoint, { credential, clientOptions: options });\n return client;\n}\n\n/**\n * Initialize a new instance of `WidgetServiceContext`\n * @param endpoint - The parameter endpoint\n * @param options - the parameter for all optional parameters\n */\nfunction _createClient(endpoint: string, options: ClientOptions = {}): WidgetServiceContext {\n const baseUrl = options.baseUrl ?? `${endpoint}`;\n options.apiVersion = options.apiVersion ?? \"1.0.0\";\n const userAgentInfo = `azsdk-js-widget-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n };\n const client = getClient(baseUrl, options) as WidgetServiceContext;\n return client;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport {\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /widgets\": [\"200\"],\n \"POST /widgets\": [\"201\"],\n \"GET /widgets/{id}\": [\"200\"],\n \"PATCH /widgets/{id}\": [\"200\"],\n \"DELETE /widgets/{id}\": [\"204\"],\n \"POST /widgets/{id}/analyze\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: ListWidgets200Response | ListWidgetsDefaultResponse\n): response is ListWidgetsDefaultResponse;\nexport function isUnexpected(\n response: CreateWidget201Response | CreateWidgetDefaultResponse\n): response is CreateWidgetDefaultResponse;\nexport function isUnexpected(\n response: GetWidget200Response | GetWidgetDefaultResponse\n): response is GetWidgetDefaultResponse;\nexport function isUnexpected(\n response: UpdateWidget200Response | UpdateWidgetDefaultResponse\n): response is UpdateWidgetDefaultResponse;\nexport function isUnexpected(\n response: DeleteWidget204Response | DeleteWidgetDefaultResponse\n): response is DeleteWidgetDefaultResponse;\nexport function isUnexpected(\n response: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse\n): response is AnalyzeWidgetDefaultResponse;\nexport function isUnexpected(\n response:\n | ListWidgets200Response\n | ListWidgetsDefaultResponse\n | CreateWidget201Response\n | CreateWidgetDefaultResponse\n | GetWidget200Response\n | GetWidgetDefaultResponse\n | UpdateWidget200Response\n | UpdateWidgetDefaultResponse\n | DeleteWidget204Response\n | DeleteWidgetDefaultResponse\n | AnalyzeWidget200Response\n | AnalyzeWidgetDefaultResponse\n): response is\n | ListWidgetsDefaultResponse\n | CreateWidgetDefaultResponse\n | GetWidgetDefaultResponse\n | UpdateWidgetDefaultResponse\n | DeleteWidgetDefaultResponse\n | AnalyzeWidgetDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\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: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\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","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\nexport function foo(): void {\n console.log(\"foo\");\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { StreamableMethod } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\nimport { RequestOptions } from \"../common/interfaces.js\";\nimport {\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n WidgetServiceContext as Client,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n isUnexpected,\n} from \"../rest/index.js\";\nimport { foo } from \"./foo.js\";\nimport { AnalyzeResult, ColorType, Widget } from \"./models.js\";\n\nexport interface ListWidgetsOptions extends RequestOptions {}\n\nexport interface GetWidgetOptions extends RequestOptions {}\n\nexport interface CreateWidgetOptions extends RequestOptions {}\n\nexport interface UpdateWidgetOptions extends RequestOptions {\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight?: number;\n /** The color of the widget. */\n color?: ColorType;\n}\n\nexport interface DeleteWidgetOptions extends RequestOptions {}\n\nexport interface AnalyzeWidgetOptions extends RequestOptions {}\n\nexport function _listWidgetsSend(\n context: Client,\n options: ListWidgetsOptions = { requestOptions: {} }\n): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse> {\n return context.path(\"/widgets\").get({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listWidgetsDeserialize(\n result: ListWidgets200Response | ListWidgetsDefaultResponse\n): Promise<Widget[]> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return (result.body ?? []).map((p) => ({\n id: p[\"id\"],\n weight: p[\"weight\"],\n color: p[\"color\"],\n }));\n}\n\n/**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\nexport async function listWidgets(\n context: Client,\n options: ListWidgetsOptions = { requestOptions: {} }\n): Promise<Widget[]> {\n const result = await _listWidgetsSend(context, options);\n return _listWidgetsDeserialize(result);\n}\n\nexport function _getWidgetSend(\n context: Client,\n id: string,\n options: GetWidgetOptions = { requestOptions: {} }\n): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).get({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getWidgetDeserialize(\n result: GetWidget200Response | GetWidgetDefaultResponse\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/** Get a widget by ID. */\nexport async function getWidget(\n context: Client,\n id: string,\n options: GetWidgetOptions = { requestOptions: {} }\n): Promise<Widget> {\n const result = await _getWidgetSend(context, id, options);\n return _getWidgetDeserialize(result);\n}\n\nexport function _createWidgetSend(\n context: Client,\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} }\n): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse> {\n return context.path(\"/widgets\").post({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n body: { weight: weight, color: color },\n });\n}\n\nexport async function _createWidgetDeserialize(\n result: CreateWidget201Response | CreateWidgetDefaultResponse\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\nexport async function createWidget(\n context: Client,\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} }\n): Promise<Widget> {\n const result = await _createWidgetSend(context, weight, color, options);\n return _createWidgetDeserialize(result);\n}\n\nexport function _updateWidgetSend(\n context: Client,\n id: string,\n options: UpdateWidgetOptions = { requestOptions: {} }\n): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).patch({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n body: { weight: options?.weight, color: options?.color },\n });\n}\n\nexport async function _updateWidgetDeserialize(\n result: UpdateWidget200Response | UpdateWidgetDefaultResponse\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\nexport async function updateWidget(\n context: Client,\n id: string,\n options: UpdateWidgetOptions = { requestOptions: {} }\n): Promise<Widget> {\n const result = await _updateWidgetSend(context, id, options);\n return _updateWidgetDeserialize(result);\n}\n\nexport function _deleteWidgetSend(\n context: Client,\n id: string,\n options: DeleteWidgetOptions = { requestOptions: {} }\n): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).delete({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _deleteWidgetDeserialize(\n result: DeleteWidget204Response | DeleteWidgetDefaultResponse\n): Promise<void> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return;\n}\n\n/** Delete a widget by ID. */\nexport async function deleteWidget(\n context: Client,\n id: string,\n options: DeleteWidgetOptions = { requestOptions: {} }\n): Promise<void> {\n const result = await _deleteWidgetSend(context, id, options);\n return _deleteWidgetDeserialize(result);\n}\n\nexport function _analyzeWidgetSend(\n context: Client,\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} }\n): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}/analyze\", id).post({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _analyzeWidgetDeserialize(\n result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse\n): Promise<AnalyzeResult> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n summary: result.body[\"summary\"],\n };\n}\n\n/**\n * In this customization we will perform the following tasks in addition to the generated:\n * - We are going to add special error handling for demonstration purposes\n */\nexport async function analyzeWidget(\n context: Client,\n id: string,\n options?: AnalyzeWidgetOptions\n): Promise<AnalyzeResult> {\n try {\n foo();\n const result = await _analyzeWidget(context, id, options);\n return result;\n } catch (error: any) {\n console.error(\"Error occurred while calling analyzeWidget:\", error);\n if (error.message && error.statusCode) {\n throw new RestError(error.message, { code: error.statusCode });\n }\n\n throw new Error(error);\n }\n}\n\n/** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\nasync function _analyzeWidget(\n context: Client,\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} }\n): Promise<AnalyzeResult> {\n const result = await _analyzeWidgetSend(context, id, options);\n return _analyzeWidgetDeserialize(result);\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { ClientOptions } from \"@azure-rest/core-client\";\nimport { TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport getClient, { WidgetServiceContext } from \"../rest/index.js\";\n\nexport { WidgetServiceContext } from \"../rest/index.js\";\n\nexport interface WidgetServiceClientOptions extends ClientOptions {}\n\n/**\n * This customization adds authentication to the client.\n */\nexport function createWidgetService(\n endpoint: string,\n options?: ClientOptions\n): WidgetServiceContext;\nexport function createWidgetService(\n endpoint: string,\n credential: TokenCredential,\n options?: ClientOptions\n): WidgetServiceContext;\nexport function createWidgetService(\n endpoint: string,\n credentialOrOptions?: TokenCredential | ClientOptions,\n options: ClientOptions = {}\n): WidgetServiceContext {\n const baseUrl = endpoint;\n if (isTokenCredential(credentialOrOptions)) {\n return getClient(baseUrl, credentialOrOptions, options);\n } else {\n return getClient(baseUrl, credentialOrOptions);\n }\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport {\n AnalyzeResult,\n AnalyzeWidgetOptions,\n ColorType,\n CreateWidgetOptions,\n DeleteWidgetOptions,\n GetWidgetOptions,\n ListWidgetsOptions,\n UpdateWidgetOptions,\n Widget,\n WidgetServiceClientOptions,\n WidgetServiceContext,\n analyzeWidget,\n createWidget,\n createWidgetService,\n deleteWidget,\n getWidget,\n listWidgets,\n updateWidget,\n} from \"./api/index.js\";\n\nexport { WidgetServiceClientOptions } from \"./api/WidgetServiceContext.js\";\n\nexport class WidgetServiceClient {\n private _client: WidgetServiceContext;\n\n /** */\n constructor(endpoint: string, options?: WidgetServiceClientOptions);\n constructor(endpoint: string, credential: TokenCredential, options?: WidgetServiceClientOptions);\n constructor(\n endpoint: string,\n credentialOrOptions?: TokenCredential | WidgetServiceClientOptions,\n options: WidgetServiceClientOptions = {}\n ) {\n if (isTokenCredential(credentialOrOptions)) {\n this._client = createWidgetService(endpoint, credentialOrOptions, options);\n } else {\n this._client = createWidgetService(endpoint, credentialOrOptions);\n }\n }\n\n /**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\n listWidgets(options: ListWidgetsOptions = { requestOptions: {} }): Promise<Widget[]> {\n return listWidgets(this._client, options);\n }\n\n /** Get a widget by ID. */\n getWidget(id: string, options: GetWidgetOptions = { requestOptions: {} }): Promise<Widget> {\n return getWidget(this._client, id, options);\n }\n\n /**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\n createWidget(\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} }\n ): Promise<Widget> {\n return createWidget(this._client, weight, color, options);\n }\n\n /**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\n updateWidget(id: string, options: UpdateWidgetOptions = { requestOptions: {} }): Promise<Widget> {\n return updateWidget(this._client, id, options);\n }\n\n /** Delete a widget by ID. */\n deleteWidget(id: string, options: DeleteWidgetOptions = { requestOptions: {} }): Promise<void> {\n return deleteWidget(this._client, id, options);\n }\n\n /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\n analyzeWidget(\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} }\n ): Promise<AnalyzeResult> {\n return analyzeWidget(this._client, id, options);\n }\n}\n"],"names":["createClientLogger","isTokenCredential","addCredentialPipelinePolicy","getClient","RestError"],"mappings":";;;;;;;;;AAAA;AAoBO,MAAM,MAAM,GAAGA,2BAAkB,CAAC,QAAQ,CAAC;;ACpBlD;AAoCc,SAAU,YAAY,CAClC,QAAgB,EAChB,mBAAqD,EACrD,OAAA,GAAyB,EAAE,EAAA;AAE3B,IAAA,IAAI,UAAuC,CAAC;AAC5C,IAAA,IAAIC,0BAAiB,CAAC,mBAAmB,CAAC,EAAE;QAC1C,UAAU,GAAG,mBAAmB,CAAC;AAClC,KAAA;AAAM,SAAA;QACL,OAAO,GAAG,mBAAmB,KAAnB,IAAA,IAAA,mBAAmB,cAAnB,mBAAmB,GAAI,EAAE,CAAC;AACrC,KAAA;IAED,MAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAChD,IAAAC,sCAA2B,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/F,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;AAIG;AACH,SAAS,aAAa,CAAC,QAAgB,EAAE,UAAyB,EAAE,EAAA;;IAClE,MAAM,OAAO,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAA,EAAG,QAAQ,CAAA,CAAE,CAAC;IACjD,OAAO,CAA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AC;IAED,6BAA6B;IAC7B,YAAY,CAAC,EAAU,EAAE,UAA+B,EAAE,cAAc,EAAE,EAAE,EAAE;QAC5E,OAAO,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,4HAA4H;IAC5H,aAAa,CACX,EAAU,EACV,UAAgC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEtD,OAAO,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport {\n AnalyzeResult,\n AnalyzeWidgetOptions,\n ColorType,\n CreateWidgetOptions,\n DeleteWidgetOptions,\n GetWidgetOptions,\n ListWidgetsOptions,\n UpdateWidgetOptions,\n Widget,\n WidgetServiceClientOptions,\n WidgetServiceContext,\n analyzeWidget,\n createWidget,\n createWidgetService,\n deleteWidget,\n getWidget,\n listWidgets,\n updateWidget,\n} from \"./api/index.js\";\n\nexport { WidgetServiceClientOptions } from \"./api/WidgetServiceContext.js\";\n\nexport class WidgetServiceClient {\n private _client: WidgetServiceContext;\n\n /** */\n constructor(endpoint: string, options?: WidgetServiceClientOptions);\n constructor(endpoint: string, credential: TokenCredential, options?: WidgetServiceClientOptions);\n constructor(\n endpoint: string,\n credentialOrOptions?: TokenCredential | WidgetServiceClientOptions,\n options: WidgetServiceClientOptions = {}\n ) {\n if (isTokenCredential(credentialOrOptions)) {\n this._client = createWidgetService(endpoint, credentialOrOptions, options);\n } else {\n this._client = createWidgetService(endpoint, credentialOrOptions);\n }\n }\n\n /**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\n listWidgets(options: ListWidgetsOptions = { requestOptions: {} }): Promise<Widget[]> {\n return listWidgets(this._client, options);\n }\n\n /** Get a widget by ID. */\n getWidget(id: string, options: GetWidgetOptions = { requestOptions: {} }): Promise<Widget> {\n return getWidget(this._client, id, options);\n }\n\n /**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\n createWidget(\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} }\n ): Promise<Widget> {\n return createWidget(this._client, weight, color, options);\n }\n\n /**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\n updateWidget(id: string, options: UpdateWidgetOptions = { requestOptions: {} }): Promise<Widget> {\n return updateWidget(this._client, id, options);\n }\n\n /** Delete a widget by ID. */\n deleteWidget(id: string, options: DeleteWidgetOptions = { requestOptions: {} }): Promise<void> {\n return deleteWidget(this._client, id, options);\n }\n\n /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\n analyzeWidget(\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} }\n ): Promise<AnalyzeResult> {\n return analyzeWidget(this._client, id, options);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetServiceContext.js","sourceRoot":"","sources":["../../../src/api/WidgetServiceContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,OAAO,EAAmB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,SAAmC,MAAM,kBAAkB,CAAC;AAkBnE,MAAM,UAAU,mBAAmB,CACjC,QAAgB,EAChB,mBAAqD,EACrD,UAAyB,EAAE;IAE3B,MAAM,OAAO,GAAG,QAAQ,CAAC;IACzB,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,EAAE;QAC1C,OAAO,SAAS,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;KACzD;SAAM;QACL,OAAO,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;KAChD;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { ClientOptions } from \"@azure-rest/core-client\";\nimport { TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport getClient, { WidgetServiceContext } from \"../rest/index.js\";\n\nexport { WidgetServiceContext } from \"../rest/index.js\";\n\nexport interface WidgetServiceClientOptions extends ClientOptions {}\n\n/**\n * This customization adds authentication to the client.\n */\nexport function createWidgetService(\n endpoint: string,\n options?: ClientOptions\n): WidgetServiceContext;\nexport function createWidgetService(\n endpoint: string,\n credential: TokenCredential,\n options?: ClientOptions\n): WidgetServiceContext;\nexport function createWidgetService(\n endpoint: string,\n credentialOrOptions?: TokenCredential | ClientOptions,\n options: ClientOptions = {}\n): WidgetServiceContext {\n const baseUrl = endpoint;\n if (isTokenCredential(credentialOrOptions)) {\n return getClient(baseUrl, credentialOrOptions, options);\n } else {\n return getClient(baseUrl, credentialOrOptions);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"foo.js","sourceRoot":"","sources":["../../../src/api/foo.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,GAAG;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\nexport function foo(): void {\n console.log(\"foo\");\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,GAOd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,GAGpB,MAAM,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nexport { Widget, ColorType, AnalyzeResult } from \"./models.js\";\nexport {\n listWidgets,\n getWidget,\n createWidget,\n updateWidget,\n deleteWidget,\n analyzeWidget,\n ListWidgetsOptions,\n GetWidgetOptions,\n CreateWidgetOptions,\n UpdateWidgetOptions,\n DeleteWidgetOptions,\n AnalyzeWidgetOptions,\n} from \"./operations.js\";\nexport {\n createWidgetService,\n WidgetServiceContext,\n WidgetServiceClientOptions,\n} from \"./WidgetServiceContext.js\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/api/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/** */\nexport interface Widget {\n /** The UUID of this widget. This is generated automatically by the service. */\n id: string;\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight: number;\n /** The color of the widget. */\n color: ColorType;\n}\n\n/** Type of ColorType */\n/** */\nexport type ColorType = \"red\" | \"blue\";\n\n/** */\nexport interface AnalyzeResult {\n /** */\n summary: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAcL,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAoB/B,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,UAA8B,EAAE,cAAc,EAAE,EAAE,EAAE;;IAEpD,OAAO,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC;QAClC,uBAAuB,EAAE,MAAA,OAAO,CAAC,cAAc,0CAAE,uBAAuB;QACxE,eAAe,EAAE,MAAA,OAAO,CAAC,cAAc,0CAAE,eAAe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licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { StreamableMethod } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\nimport { RequestOptions } from \"../common/interfaces.js\";\nimport {\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n WidgetServiceContext as Client,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n isUnexpected,\n} from \"../rest/index.js\";\nimport { foo } from \"./foo.js\";\nimport { AnalyzeResult, ColorType, Widget } from \"./models.js\";\n\nexport interface ListWidgetsOptions extends RequestOptions {}\n\nexport interface GetWidgetOptions extends RequestOptions {}\n\nexport interface CreateWidgetOptions extends RequestOptions {}\n\nexport interface UpdateWidgetOptions extends RequestOptions {\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight?: number;\n /** The color of the widget. */\n color?: ColorType;\n}\n\nexport interface DeleteWidgetOptions extends RequestOptions {}\n\nexport interface AnalyzeWidgetOptions extends RequestOptions {}\n\nexport function _listWidgetsSend(\n context: Client,\n options: ListWidgetsOptions = { requestOptions: {} }\n): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse> {\n return context.path(\"/widgets\").get({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listWidgetsDeserialize(\n result: ListWidgets200Response | ListWidgetsDefaultResponse\n): Promise<Widget[]> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return (result.body ?? []).map((p) => ({\n id: p[\"id\"],\n weight: p[\"weight\"],\n color: p[\"color\"],\n }));\n}\n\n/**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\nexport async function listWidgets(\n context: Client,\n options: ListWidgetsOptions = { requestOptions: {} }\n): Promise<Widget[]> {\n const result = await _listWidgetsSend(context, options);\n return _listWidgetsDeserialize(result);\n}\n\nexport function _getWidgetSend(\n context: Client,\n id: string,\n options: GetWidgetOptions = { requestOptions: {} }\n): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).get({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getWidgetDeserialize(\n result: GetWidget200Response | GetWidgetDefaultResponse\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/** Get a widget by ID. */\nexport async function getWidget(\n context: Client,\n id: string,\n options: GetWidgetOptions = { requestOptions: {} }\n): Promise<Widget> {\n const result = await _getWidgetSend(context, id, options);\n return _getWidgetDeserialize(result);\n}\n\nexport function _createWidgetSend(\n context: Client,\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} }\n): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse> {\n return context.path(\"/widgets\").post({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n body: { weight: weight, color: color },\n });\n}\n\nexport async function _createWidgetDeserialize(\n result: CreateWidget201Response | CreateWidgetDefaultResponse\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\nexport async function createWidget(\n context: Client,\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} }\n): Promise<Widget> {\n const result = await _createWidgetSend(context, weight, color, options);\n return _createWidgetDeserialize(result);\n}\n\nexport function _updateWidgetSend(\n context: Client,\n id: string,\n options: UpdateWidgetOptions = { requestOptions: {} }\n): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).patch({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n body: { weight: options?.weight, color: options?.color },\n });\n}\n\nexport async function _updateWidgetDeserialize(\n result: UpdateWidget200Response | UpdateWidgetDefaultResponse\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\nexport async function updateWidget(\n context: Client,\n id: string,\n options: UpdateWidgetOptions = { requestOptions: {} }\n): Promise<Widget> {\n const result = await _updateWidgetSend(context, id, options);\n return _updateWidgetDeserialize(result);\n}\n\nexport function _deleteWidgetSend(\n context: Client,\n id: string,\n options: DeleteWidgetOptions = { requestOptions: {} }\n): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).delete({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _deleteWidgetDeserialize(\n result: DeleteWidget204Response | DeleteWidgetDefaultResponse\n): Promise<void> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return;\n}\n\n/** Delete a widget by ID. */\nexport async function deleteWidget(\n context: Client,\n id: string,\n options: DeleteWidgetOptions = { requestOptions: {} }\n): Promise<void> {\n const result = await _deleteWidgetSend(context, id, options);\n return _deleteWidgetDeserialize(result);\n}\n\nexport function _analyzeWidgetSend(\n context: Client,\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} }\n): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}/analyze\", id).post({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _analyzeWidgetDeserialize(\n result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse\n): Promise<AnalyzeResult> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n summary: result.body[\"summary\"],\n };\n}\n\n/**\n * In this customization we will perform the following tasks in addition to the generated:\n * - We are going to add special error handling for demonstration purposes\n */\nexport async function analyzeWidget(\n context: Client,\n id: string,\n options?: AnalyzeWidgetOptions\n): Promise<AnalyzeResult> {\n try {\n foo();\n const result = await _analyzeWidget(context, id, options);\n return result;\n } catch (error: any) {\n console.error(\"Error occurred while calling analyzeWidget:\", error);\n if (error.message && error.statusCode) {\n throw new RestError(error.message, { code: error.statusCode });\n }\n\n throw new Error(error);\n }\n}\n\n/** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\nasync function _analyzeWidget(\n context: Client,\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} }\n): Promise<AnalyzeResult> {\n const result = await _analyzeWidgetSend(context, id, options);\n return _analyzeWidgetDeserialize(result);\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common/interfaces.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\n\nexport interface RequestOptions {\n requestOptions?: {\n /**\n * Headers to send along with the request\n */\n headers?: RawHttpHeadersInput;\n /** Set to true if the request is sent over HTTP instead of HTTPS */\n allowInsecureConnection?: boolean;\n /** Set to true if you want to skip encoding the path parameters */\n skipUrlEncoding?: boolean;\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA2BlC,OAAO,EAAE,mBAAmB,EAA8B,MAAM,0BAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nexport { Widget, ColorType, AnalyzeResult } from \"./api/models.js\";\nexport {\n ListWidgetsOptions,\n GetWidgetOptions,\n CreateWidgetOptions,\n UpdateWidgetOptions,\n DeleteWidgetOptions,\n AnalyzeWidgetOptions,\n} from \"./api/operations.js\";\nexport { WidgetServiceClient, WidgetServiceClientOptions } from \"./WidgetServiceClient.js\";\nexport { RequestOptions } from \"./common/interfaces.js\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"widget\");\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport {\n ListWidgetsParameters,\n CreateWidgetParameters,\n GetWidgetParameters,\n UpdateWidgetParameters,\n DeleteWidgetParameters,\n AnalyzeWidgetParameters,\n} from \"./parameters.js\";\nimport {\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n} from \"./responses.js\";\nimport { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ListWidgets {\n /**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\n get(\n options?: ListWidgetsParameters\n ): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse>;\n /**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\n post(\n options?: CreateWidgetParameters\n ): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse>;\n}\n\nexport interface GetWidget {\n /** Get a widget by ID. */\n get(\n options?: GetWidgetParameters\n ): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse>;\n /**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\n patch(\n options?: UpdateWidgetParameters\n ): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse>;\n /** Delete a widget by ID. */\n delete(\n options?: DeleteWidgetParameters\n ): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse>;\n}\n\nexport interface AnalyzeWidget {\n /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\n post(\n options?: AnalyzeWidgetParameters\n ): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/widgets' has methods for the following verbs: get, post */\n (path: \"/widgets\"): ListWidgets;\n /** Resource for '/widgets/\\{id\\}' has methods for the following verbs: get, patch, delete */\n (path: \"/widgets/{id}\", id: string): GetWidget;\n /** Resource for '/widgets/\\{id\\}/analyze' has methods for the following verbs: post */\n (path: \"/widgets/{id}/analyze\", id: string): AnalyzeWidget;\n}\n\nexport type WidgetServiceContext = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAElC,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport WidgetServiceClient from \"./widgetServiceClient.js\";\n\nexport * from \"./widgetServiceClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\n\nexport default WidgetServiceClient;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../../src/rest/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAiClC,MAAM,WAAW,GA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CAAC,CAAC,EAAE;gBACtC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;aACP;SACF;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE;YAC9C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;SACtB;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport {\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /widgets\": [\"200\"],\n \"POST /widgets\": [\"201\"],\n \"GET /widgets/{id}\": [\"200\"],\n \"PATCH /widgets/{id}\": [\"200\"],\n \"DELETE /widgets/{id}\": [\"204\"],\n \"POST /widgets/{id}/analyze\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: ListWidgets200Response | ListWidgetsDefaultResponse\n): response is ListWidgetsDefaultResponse;\nexport function isUnexpected(\n response: CreateWidget201Response | CreateWidgetDefaultResponse\n): response is CreateWidgetDefaultResponse;\nexport function isUnexpected(\n response: GetWidget200Response | GetWidgetDefaultResponse\n): response is GetWidgetDefaultResponse;\nexport function isUnexpected(\n response: UpdateWidget200Response | UpdateWidgetDefaultResponse\n): response is UpdateWidgetDefaultResponse;\nexport function isUnexpected(\n response: DeleteWidget204Response | DeleteWidgetDefaultResponse\n): response is DeleteWidgetDefaultResponse;\nexport function isUnexpected(\n response: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse\n): response is AnalyzeWidgetDefaultResponse;\nexport function isUnexpected(\n response:\n | ListWidgets200Response\n | ListWidgetsDefaultResponse\n | CreateWidget201Response\n | CreateWidgetDefaultResponse\n | GetWidget200Response\n | GetWidgetDefaultResponse\n | UpdateWidget200Response\n | UpdateWidgetDefaultResponse\n | DeleteWidget204Response\n | DeleteWidgetDefaultResponse\n | AnalyzeWidget200Response\n | AnalyzeWidgetDefaultResponse\n): response is\n | ListWidgetsDefaultResponse\n | CreateWidgetDefaultResponse\n | GetWidgetDefaultResponse\n | UpdateWidgetDefaultResponse\n | DeleteWidgetDefaultResponse\n | AnalyzeWidgetDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\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: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/rest/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nexport interface CreateWidget {\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight: number;\n /** The color of the widget. */\n color: \"red\" | \"blue\";\n}\n\nexport interface UpdateWidget {\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight?: number;\n /** The color of the widget. */\n color?: \"red\" | \"blue\";\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/rest/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nexport interface WidgetOutput {\n /** The UUID of this widget. This is generated automatically by the service. */\n id: string;\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight: number;\n /** The color of the widget. */\n color: \"red\" | \"blue\";\n}\n\nexport interface WidgetErrorOutput {\n /** The HTTP error code. */\n code: number;\n /** A human-readable message describing the error. */\n message: string;\n}\n\nexport interface AnalyzeResultOutput {\n summary: string;\n}\n"]}
|