@azure/communication-rooms 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/index.js +1117 -0
- package/dist/index.js.map +1 -0
- package/dist-esm/src/generated/src/index.js +11 -0
- package/dist-esm/src/generated/src/index.js.map +1 -0
- package/dist-esm/src/generated/src/models/index.js +9 -0
- package/dist-esm/src/generated/src/models/index.js.map +1 -0
- package/dist-esm/src/generated/src/models/mappers.js +461 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -0
- package/dist-esm/src/generated/src/models/parameters.js +101 -0
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -0
- package/dist-esm/src/generated/src/operations/index.js +9 -0
- package/dist-esm/src/generated/src/operations/index.js.map +1 -0
- package/dist-esm/src/generated/src/operations/rooms.js +239 -0
- package/dist-esm/src/generated/src/operations/rooms.js.map +1 -0
- package/dist-esm/src/generated/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/generated/src/operationsInterfaces/rooms.js +9 -0
- package/dist-esm/src/generated/src/operationsInterfaces/rooms.js.map +1 -0
- package/dist-esm/src/generated/src/roomsApiClient.js +69 -0
- package/dist-esm/src/generated/src/roomsApiClient.js.map +1 -0
- package/dist-esm/src/generated/src/roomsApiClientContext.js +40 -0
- package/dist-esm/src/generated/src/roomsApiClientContext.js.map +1 -0
- package/dist-esm/src/index.js +6 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/logger.js +8 -0
- package/dist-esm/src/logger.js.map +1 -0
- package/dist-esm/src/models/mappers.js +43 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/models.js +4 -0
- package/dist-esm/src/models/models.js.map +1 -0
- package/dist-esm/src/models/options.js +4 -0
- package/dist-esm/src/models/options.js.map +1 -0
- package/dist-esm/src/models/uuid.js +13 -0
- package/dist-esm/src/models/uuid.js.map +1 -0
- package/dist-esm/src/roomsClient.js +136 -0
- package/dist-esm/src/roomsClient.js.map +1 -0
- package/dist-esm/src/tracing.js +12 -0
- package/dist-esm/src/tracing.js.map +1 -0
- package/package.json +130 -0
- package/types/communication-rooms.d.ts +188 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Microsoft
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Azure RoomsApi client library for JavaScript
|
|
2
|
+
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure RoomsApi client.
|
|
4
|
+
|
|
5
|
+
Communication Rooms Client
|
|
6
|
+
|
|
7
|
+
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-rooms) |
|
|
8
|
+
[Package (NPM)](https://www.npmjs.com/package/@azure/communication-rooms) |
|
|
9
|
+
[Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-rooms/samples)
|
|
10
|
+
|
|
11
|
+
## Getting started
|
|
12
|
+
|
|
13
|
+
### Currently supported environments
|
|
14
|
+
|
|
15
|
+
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
16
|
+
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
17
|
+
|
|
18
|
+
### Prerequisites
|
|
19
|
+
|
|
20
|
+
- An [Azure subscription][azure_sub].
|
|
21
|
+
|
|
22
|
+
### Install the `@azure/communication-rooms` package
|
|
23
|
+
|
|
24
|
+
Install the Azure RoomsApi client library for JavaScript with `npm`:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @azure/communication-rooms
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### JavaScript Bundle
|
|
31
|
+
|
|
32
|
+
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
33
|
+
|
|
34
|
+
## Key concepts
|
|
35
|
+
|
|
36
|
+
### RoomsApiClient
|
|
37
|
+
|
|
38
|
+
`RoomsApiClient` is the primary interface for developers using the Azure RoomsApi client library. Explore the methods on this client object to understand the different features of the Azure RoomsApi service that you can access.
|
|
39
|
+
|
|
40
|
+
## Troubleshooting
|
|
41
|
+
|
|
42
|
+
### Logging
|
|
43
|
+
|
|
44
|
+
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
45
|
+
|
|
46
|
+
```javascript
|
|
47
|
+
const { setLogLevel } = require("@azure/logger");
|
|
48
|
+
setLogLevel("info");
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
|
|
52
|
+
|
|
53
|
+
## Next steps
|
|
54
|
+
|
|
55
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-rooms/samples) directory for detailed examples on how to use this library.
|
|
56
|
+
|
|
57
|
+
## Contributing
|
|
58
|
+
|
|
59
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
60
|
+
|
|
61
|
+
## Related projects
|
|
62
|
+
|
|
63
|
+
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
[azure_cli]: https://docs.microsoft.com/cli/azure
|
|
68
|
+
[azure_sub]: https://azure.microsoft.com/free/
|
|
69
|
+
[azure_sub]: https://azure.microsoft.com/free/
|
|
70
|
+
[azure_portal]: https://portal.azure.com
|
|
71
|
+
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
72
|
+
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|