@azure/template-dpg 1.0.0-beta.1 → 1.0.0-beta.3
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 +4 -3
- package/dist/browser/WidgetServiceClient.d.ts.map +1 -0
- package/{dist-esm/src/src → dist/browser}/WidgetServiceClient.js +4 -9
- package/dist/browser/WidgetServiceClient.js.map +1 -0
- package/{types/src/src → dist/browser}/api/WidgetServiceContext.d.ts +4 -4
- 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 +11 -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 +22 -29
- 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 +12 -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 +17 -0
- package/dist/browser/rest/index.d.ts.map +1 -0
- package/{types/src/src/rest/index.d.ts → dist/browser/rest/index.js} +3 -6
- 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 → dist/browser}/rest/isUnexpected.js +5 -6
- 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 +13 -17
- package/dist/browser/rest/widgetServiceClient.js.map +1 -0
- package/{types/src → dist/commonjs}/WidgetServiceClient.d.ts +4 -10
- package/dist/commonjs/WidgetServiceClient.d.ts.map +1 -0
- package/dist/commonjs/WidgetServiceClient.js +76 -0
- package/dist/commonjs/WidgetServiceClient.js.map +7 -0
- package/{types/src → dist/commonjs}/api/WidgetServiceContext.d.ts +4 -11
- package/dist/commonjs/api/WidgetServiceContext.d.ts.map +1 -0
- package/dist/commonjs/api/WidgetServiceContext.js +47 -0
- package/dist/commonjs/api/WidgetServiceContext.js.map +7 -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 +30 -0
- package/dist/commonjs/api/foo.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +11 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +41 -0
- package/dist/commonjs/api/index.js.map +7 -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 +16 -0
- package/dist/commonjs/api/models.js.map +7 -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 +199 -0
- package/dist/commonjs/api/operations.js.map +7 -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 +16 -0
- package/dist/commonjs/common/interfaces.js.map +7 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +28 -0
- package/dist/commonjs/index.js.map +7 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -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 +16 -0
- package/dist/commonjs/rest/clientDefinitions.js.map +7 -0
- package/dist/commonjs/rest/index.d.ts +17 -0
- package/dist/commonjs/rest/index.d.ts.map +1 -0
- package/dist/commonjs/rest/index.js +43 -0
- package/dist/commonjs/rest/index.js.map +7 -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 +83 -0
- package/dist/commonjs/rest/isUnexpected.js.map +7 -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 +16 -0
- package/dist/commonjs/rest/models.js.map +7 -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 +16 -0
- package/dist/commonjs/rest/outputModels.js.map +7 -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 +16 -0
- package/dist/commonjs/rest/parameters.js.map +7 -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 +16 -0
- package/dist/commonjs/rest/responses.js.map +7 -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 +54 -0
- package/dist/commonjs/rest/widgetServiceClient.js.map +7 -0
- package/{types/latest → dist/commonjs}/tsdoc-metadata.json +11 -11
- 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 +4 -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 +22 -29
- 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/src → dist/esm}/rest/index.js +1 -6
- 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/src → dist/esm}/rest/isUnexpected.js +5 -6
- 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/rest/widgetServiceClient.js +42 -0
- 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 +53 -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 +164 -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 +14 -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 +74 -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 +42 -0
- package/dist/react-native/rest/widgetServiceClient.js.map +1 -0
- package/package.json +109 -85
- 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 +0 -26
- 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 +0 -53
- 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 +0 -18
- 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 +0 -19
- 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 +0 -24
- 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 +0 -11
- 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 +0 -12
- 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/models.d.ts +0 -0
- /package/{types/src → dist/browser}/logger.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
|
@@ -5,17 +5,11 @@
|
|
|
5
5
|
*
|
|
6
6
|
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
14
|
-
*/
|
|
15
|
-
import { StreamableMethod } from "@azure-rest/core-client";
|
|
16
|
-
import { RequestOptions } from "../common/interfaces.js";
|
|
17
|
-
import { AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse, WidgetServiceContext as Client, CreateWidget201Response, CreateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, ListWidgets200Response, ListWidgetsDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse } from "../rest/index.js";
|
|
18
|
-
import { AnalyzeResult, ColorType, Widget } from "./models.js";
|
|
8
|
+
import type { StreamableMethod } from "@azure-rest/core-client";
|
|
9
|
+
import type { RequestOptions } from "../common/interfaces.js";
|
|
10
|
+
import type { WidgetServiceContext as Client } from "../rest/clientDefinitions.js";
|
|
11
|
+
import type { AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, ListWidgets200Response, ListWidgetsDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse } from "../rest/index.js";
|
|
12
|
+
import type { AnalyzeResult, ColorType, Widget } from "./models.js";
|
|
19
13
|
export interface ListWidgetsOptions extends RequestOptions {
|
|
20
14
|
}
|
|
21
15
|
export interface GetWidgetOptions extends RequestOptions {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names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4C,GACpD,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,mBAA4C,GACpD,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAMzE;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,uBAAuB,GAAG,2BAA2B,GAC5D,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,6BAA6B;AAC7B,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,mBAA4C,GACpD,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,oBAA6C,GACrD,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAM3E;AAED,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,wBAAwB,GAAG,4BAA4B,GAC9D,OAAO,CAAC,aAAa,CAAC,CAQxB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,aAAa,CAAC,CAaxB"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
_analyzeWidgetDeserialize: () => _analyzeWidgetDeserialize,
|
|
21
|
+
_analyzeWidgetSend: () => _analyzeWidgetSend,
|
|
22
|
+
_createWidgetDeserialize: () => _createWidgetDeserialize,
|
|
23
|
+
_createWidgetSend: () => _createWidgetSend,
|
|
24
|
+
_deleteWidgetDeserialize: () => _deleteWidgetDeserialize,
|
|
25
|
+
_deleteWidgetSend: () => _deleteWidgetSend,
|
|
26
|
+
_getWidgetDeserialize: () => _getWidgetDeserialize,
|
|
27
|
+
_getWidgetSend: () => _getWidgetSend,
|
|
28
|
+
_listWidgetsDeserialize: () => _listWidgetsDeserialize,
|
|
29
|
+
_listWidgetsSend: () => _listWidgetsSend,
|
|
30
|
+
_updateWidgetDeserialize: () => _updateWidgetDeserialize,
|
|
31
|
+
_updateWidgetSend: () => _updateWidgetSend,
|
|
32
|
+
analyzeWidget: () => analyzeWidget,
|
|
33
|
+
createWidget: () => createWidget,
|
|
34
|
+
deleteWidget: () => deleteWidget,
|
|
35
|
+
getWidget: () => getWidget,
|
|
36
|
+
listWidgets: () => listWidgets,
|
|
37
|
+
updateWidget: () => updateWidget
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(operations_exports);
|
|
40
|
+
var import_core_rest_pipeline = require("@azure/core-rest-pipeline");
|
|
41
|
+
var import_rest = require("../rest/index.js");
|
|
42
|
+
var import_foo = require("./foo.js");
|
|
43
|
+
function _listWidgetsSend(context, options = { requestOptions: {} }) {
|
|
44
|
+
return context.path("/widgets").get({
|
|
45
|
+
allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
|
|
46
|
+
skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
|
|
47
|
+
headers: { ...options.requestOptions?.headers }
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
async function _listWidgetsDeserialize(result) {
|
|
51
|
+
if ((0, import_rest.isUnexpected)(result)) {
|
|
52
|
+
throw result.body;
|
|
53
|
+
}
|
|
54
|
+
return (result.body ?? []).map((p) => ({
|
|
55
|
+
id: p["id"],
|
|
56
|
+
weight: p["weight"],
|
|
57
|
+
color: p["color"]
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
async function listWidgets(context, options = { requestOptions: {} }) {
|
|
61
|
+
const result = await _listWidgetsSend(context, options);
|
|
62
|
+
return _listWidgetsDeserialize(result);
|
|
63
|
+
}
|
|
64
|
+
function _getWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
65
|
+
return context.path("/widgets/{id}", id).get({
|
|
66
|
+
allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
|
|
67
|
+
skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
|
|
68
|
+
headers: { ...options.requestOptions?.headers }
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
async function _getWidgetDeserialize(result) {
|
|
72
|
+
if ((0, import_rest.isUnexpected)(result)) {
|
|
73
|
+
throw result.body;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
id: result.body["id"],
|
|
77
|
+
weight: result.body["weight"],
|
|
78
|
+
color: result.body["color"]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
async function getWidget(context, id, options = { requestOptions: {} }) {
|
|
82
|
+
const result = await _getWidgetSend(context, id, options);
|
|
83
|
+
return _getWidgetDeserialize(result);
|
|
84
|
+
}
|
|
85
|
+
function _createWidgetSend(context, weight, color, options = { requestOptions: {} }) {
|
|
86
|
+
return context.path("/widgets").post({
|
|
87
|
+
allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
|
|
88
|
+
skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
|
|
89
|
+
headers: { ...options.requestOptions?.headers },
|
|
90
|
+
body: { weight, color }
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
async function _createWidgetDeserialize(result) {
|
|
94
|
+
if ((0, import_rest.isUnexpected)(result)) {
|
|
95
|
+
throw result.body;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
id: result.body["id"],
|
|
99
|
+
weight: result.body["weight"],
|
|
100
|
+
color: result.body["color"]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
async function createWidget(context, weight, color, options = { requestOptions: {} }) {
|
|
104
|
+
const result = await _createWidgetSend(context, weight, color, options);
|
|
105
|
+
return _createWidgetDeserialize(result);
|
|
106
|
+
}
|
|
107
|
+
function _updateWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
108
|
+
return context.path("/widgets/{id}", id).patch({
|
|
109
|
+
allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
|
|
110
|
+
skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
|
|
111
|
+
headers: { ...options.requestOptions?.headers },
|
|
112
|
+
body: { weight: options?.weight, color: options?.color }
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
async function _updateWidgetDeserialize(result) {
|
|
116
|
+
if ((0, import_rest.isUnexpected)(result)) {
|
|
117
|
+
throw result.body;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
id: result.body["id"],
|
|
121
|
+
weight: result.body["weight"],
|
|
122
|
+
color: result.body["color"]
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
async function updateWidget(context, id, options = { requestOptions: {} }) {
|
|
126
|
+
const result = await _updateWidgetSend(context, id, options);
|
|
127
|
+
return _updateWidgetDeserialize(result);
|
|
128
|
+
}
|
|
129
|
+
function _deleteWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
130
|
+
return context.path("/widgets/{id}", id).delete({
|
|
131
|
+
allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
|
|
132
|
+
skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
|
|
133
|
+
headers: { ...options.requestOptions?.headers }
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async function _deleteWidgetDeserialize(result) {
|
|
137
|
+
if ((0, import_rest.isUnexpected)(result)) {
|
|
138
|
+
throw result.body;
|
|
139
|
+
}
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
async function deleteWidget(context, id, options = { requestOptions: {} }) {
|
|
143
|
+
const result = await _deleteWidgetSend(context, id, options);
|
|
144
|
+
return _deleteWidgetDeserialize(result);
|
|
145
|
+
}
|
|
146
|
+
function _analyzeWidgetSend(context, id, options = { requestOptions: {} }) {
|
|
147
|
+
return context.path("/widgets/{id}/analyze", id).post({
|
|
148
|
+
allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
|
|
149
|
+
skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
|
|
150
|
+
headers: { ...options.requestOptions?.headers }
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
async function _analyzeWidgetDeserialize(result) {
|
|
154
|
+
if ((0, import_rest.isUnexpected)(result)) {
|
|
155
|
+
throw result.body;
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
summary: result.body["summary"]
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
async function analyzeWidget(context, id, options) {
|
|
162
|
+
try {
|
|
163
|
+
(0, import_foo.foo)();
|
|
164
|
+
const result = await _analyzeWidget(context, id, options);
|
|
165
|
+
return result;
|
|
166
|
+
} catch (error) {
|
|
167
|
+
console.error("Error occurred while calling analyzeWidget:", error);
|
|
168
|
+
if (error.message && error.statusCode) {
|
|
169
|
+
throw new import_core_rest_pipeline.RestError(error.message, { code: error.statusCode });
|
|
170
|
+
}
|
|
171
|
+
throw new Error(error);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async function _analyzeWidget(context, id, options = { requestOptions: {} }) {
|
|
175
|
+
const result = await _analyzeWidgetSend(context, id, options);
|
|
176
|
+
return _analyzeWidgetDeserialize(result);
|
|
177
|
+
}
|
|
178
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
179
|
+
0 && (module.exports = {
|
|
180
|
+
_analyzeWidgetDeserialize,
|
|
181
|
+
_analyzeWidgetSend,
|
|
182
|
+
_createWidgetDeserialize,
|
|
183
|
+
_createWidgetSend,
|
|
184
|
+
_deleteWidgetDeserialize,
|
|
185
|
+
_deleteWidgetSend,
|
|
186
|
+
_getWidgetDeserialize,
|
|
187
|
+
_getWidgetSend,
|
|
188
|
+
_listWidgetsDeserialize,
|
|
189
|
+
_listWidgetsSend,
|
|
190
|
+
_updateWidgetDeserialize,
|
|
191
|
+
_updateWidgetSend,
|
|
192
|
+
analyzeWidget,
|
|
193
|
+
createWidget,
|
|
194
|
+
deleteWidget,
|
|
195
|
+
getWidget,
|
|
196
|
+
listWidgets,
|
|
197
|
+
updateWidget
|
|
198
|
+
});
|
|
199
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/api/operations.ts"],
|
|
4
|
+
"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\nimport type { StreamableMethod } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\nimport type { RequestOptions } from \"../common/interfaces.js\";\nimport type { WidgetServiceContext as Client } from \"../rest/clientDefinitions.js\";\nimport type {\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n} from \"../rest/index.js\";\nimport { isUnexpected } from \"../rest/index.js\";\nimport { foo } from \"./foo.js\";\nimport type { 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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA,gCAA0B;AAiB1B,kBAA6B;AAC7B,iBAAoB;AAoBb,SAAS,iBACd,SACA,UAA8B,EAAE,gBAAgB,CAAC,EAAE,GACoB;AACvE,SAAO,QAAQ,KAAK,UAAU,EAAE,IAAI;AAAA,IAClC,yBAAyB,QAAQ,gBAAgB;AAAA,IACjD,iBAAiB,QAAQ,gBAAgB;AAAA,IACzC,SAAS,EAAE,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAChD,CAAC;AACH;AAEA,eAAsB,wBACpB,QACmB;AACnB,UAAI,0BAAa,MAAM,GAAG;AACxB,UAAM,O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B,CAAC,EAAE,GAC7B;AACxB,QAAM,SAAS,MAAM,mBAAmB,SAAS,IAAI,OAAO;AAC5D,SAAO,0BAA0B,MAAM;AACzC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -5,14 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
10
|
-
*
|
|
11
|
-
* Any changes you make here may be lost.
|
|
12
|
-
*
|
|
13
|
-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
14
|
-
*/
|
|
15
|
-
import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
|
|
8
|
+
import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
|
|
16
9
|
export interface RequestOptions {
|
|
17
10
|
requestOptions?: {
|
|
18
11
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;QAC9B,oEAAoE;QACpE,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC,mEAAmE;QACnE,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var interfaces_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(interfaces_exports);
|
|
16
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/common/interfaces.ts"],
|
|
4
|
+
"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\nimport type { 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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
3
|
+
*
|
|
4
|
+
* Any changes you make here may be lost.
|
|
5
|
+
*
|
|
6
|
+
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
|
+
*/
|
|
8
|
+
export type { Widget, ColorType, AnalyzeResult } from "./api/models.js";
|
|
9
|
+
export type { ListWidgetsOptions, GetWidgetOptions, CreateWidgetOptions, UpdateWidgetOptions, DeleteWidgetOptions, AnalyzeWidgetOptions, } from "./api/operations.js";
|
|
10
|
+
export { WidgetServiceClient, type WidgetServiceClientOptions } from "./WidgetServiceClient.js";
|
|
11
|
+
export type { RequestOptions } from "./common/interfaces.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxE,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAChG,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var src_exports = {};
|
|
19
|
+
__export(src_exports, {
|
|
20
|
+
WidgetServiceClient: () => import_WidgetServiceClient.WidgetServiceClient
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(src_exports);
|
|
23
|
+
var import_WidgetServiceClient = require("./WidgetServiceClient.js");
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
WidgetServiceClient
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"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\nexport type { Widget, ColorType, AnalyzeResult } from \"./api/models.js\";\nexport type {\n ListWidgetsOptions,\n GetWidgetOptions,\n CreateWidgetOptions,\n UpdateWidgetOptions,\n DeleteWidgetOptions,\n AnalyzeWidgetOptions,\n} from \"./api/operations.js\";\nexport { WidgetServiceClient, type WidgetServiceClientOptions } from \"./WidgetServiceClient.js\";\nexport type { RequestOptions } from \"./common/interfaces.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBA,iCAAqE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,MAAM,qCAA+B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var logger_exports = {};
|
|
19
|
+
__export(logger_exports, {
|
|
20
|
+
logger: () => logger
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(logger_exports);
|
|
23
|
+
var import_logger = require("@azure/logger");
|
|
24
|
+
const logger = (0, import_logger.createClientLogger)("widget");
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
logger
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/logger.ts"],
|
|
4
|
+
"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\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"widget\");\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,oBAAmC;AAC5B,MAAM,aAAS,kCAAmB,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -5,16 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* Any changes you make here may be lost.
|
|
12
|
-
*
|
|
13
|
-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
14
|
-
*/
|
|
15
|
-
import { ListWidgetsParameters, CreateWidgetParameters, GetWidgetParameters, UpdateWidgetParameters, DeleteWidgetParameters, AnalyzeWidgetParameters } from "./parameters.js";
|
|
16
|
-
import { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
|
|
17
|
-
import { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
8
|
+
import type { ListWidgetsParameters, CreateWidgetParameters, GetWidgetParameters, UpdateWidgetParameters, DeleteWidgetParameters, AnalyzeWidgetParameters } from "./parameters.js";
|
|
9
|
+
import type { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
|
|
10
|
+
import type { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
18
11
|
export interface ListWidgets {
|
|
19
12
|
/**
|
|
20
13
|
* List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,GAAG,CACD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,gBAAgB,CAAC,sBAAsB,GAAG,0BAA0B,CAAC,CAAC;IACzE;;;;;OAKG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,SAAS;IACxB,0BAA0B;IAC1B,GAAG,CACD,OAAO,CAAC,EAAE,mBAAmB,GAC5B,gBAAgB,CAAC,oBAAoB,GAAG,wBAAwB,CAAC,CAAC;IACrE;;;OAGG;IACH,KAAK,CACH,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;IAC3E,6BAA6B;IAC7B,MAAM,CACJ,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,aAAa;IAC5B,4HAA4H;IAC5H,IAAI,CACF,OAAO,CAAC,EAAE,uBAAuB,GAChC,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,MAAM;IACrB,6EAA6E;IAC7E,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,6FAA6F;IAC7F,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,uFAAuF;IACvF,CAAC,IAAI,EAAE,uBAAuB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,CAAC;CAC5D;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var clientDefinitions_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(clientDefinitions_exports);
|
|
16
|
+
//# sourceMappingURL=clientDefinitions.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/rest/clientDefinitions.ts"],
|
|
4
|
+
"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\nimport type {\n ListWidgetsParameters,\n CreateWidgetParameters,\n GetWidgetParameters,\n UpdateWidgetParameters,\n DeleteWidgetParameters,\n AnalyzeWidgetParameters,\n} from \"./parameters.js\";\nimport type {\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 type { 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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
3
|
+
*
|
|
4
|
+
* Any changes you make here may be lost.
|
|
5
|
+
*
|
|
6
|
+
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
|
+
*/
|
|
8
|
+
import WidgetServiceClient from "./widgetServiceClient.js";
|
|
9
|
+
export * from "./widgetServiceClient.js";
|
|
10
|
+
export type * from "./parameters.js";
|
|
11
|
+
export type * from "./responses.js";
|
|
12
|
+
export type * from "./clientDefinitions.js";
|
|
13
|
+
export * from "./isUnexpected.js";
|
|
14
|
+
export type * from "./models.js";
|
|
15
|
+
export type * from "./outputModels.js";
|
|
16
|
+
export default WidgetServiceClient;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,wBAAwB,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,mBAAmB,CAAC;AAEvC,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var rest_exports = {};
|
|
30
|
+
__export(rest_exports, {
|
|
31
|
+
default: () => rest_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(rest_exports);
|
|
34
|
+
var import_widgetServiceClient = __toESM(require("./widgetServiceClient.js"));
|
|
35
|
+
__reExport(rest_exports, require("./widgetServiceClient.js"), module.exports);
|
|
36
|
+
__reExport(rest_exports, require("./isUnexpected.js"), module.exports);
|
|
37
|
+
var rest_default = import_widgetServiceClient.default;
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
...require("./widgetServiceClient.js"),
|
|
41
|
+
...require("./isUnexpected.js")
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/rest/index.ts"],
|
|
4
|
+
"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\nimport WidgetServiceClient from \"./widgetServiceClient.js\";\n\nexport * from \"./widgetServiceClient.js\";\nexport type * from \"./parameters.js\";\nexport type * from \"./responses.js\";\nexport type * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport type * from \"./models.js\";\nexport type * from \"./outputModels.js\";\n\nexport default WidgetServiceClient;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,iCAAgC;AAEhC,yBAAc,qCAbd;AAiBA,yBAAc,8BAjBd;AAqBA,IAAO,eAAQ,2BAAAA;",
|
|
6
|
+
"names": ["WidgetServiceClient"]
|
|
7
|
+
}
|
|
@@ -5,14 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
10
|
-
*
|
|
11
|
-
* Any changes you make here may be lost.
|
|
12
|
-
*
|
|
13
|
-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
14
|
-
*/
|
|
15
|
-
import { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
|
|
8
|
+
import type { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
|
|
16
9
|
export declare function isUnexpected(response: ListWidgets200Response | ListWidgetsDefaultResponse): response is ListWidgetsDefaultResponse;
|
|
17
10
|
export declare function isUnexpected(response: CreateWidget201Response | CreateWidgetDefaultResponse): response is CreateWidgetDefaultResponse;
|
|
18
11
|
export declare function isUnexpected(response: GetWidget200Response | GetWidgetDefaultResponse): response is GetWidgetDefaultResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../../src/rest/isUnexpected.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AAWxB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,sBAAsB,GAAG,0BAA0B,GAC5D,QAAQ,IAAI,0BAA0B,CAAC;AAC1C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC"}
|