@azure-tools/communication-alpha-ids 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/README.md +29 -17
- package/dist/browser/alphaIdsClient.d.ts +24 -0
- package/dist/browser/alphaIdsClient.d.ts.map +1 -0
- package/dist/browser/alphaIdsClient.js +98 -0
- package/dist/browser/alphaIdsClient.js.map +1 -0
- package/dist/browser/generated/src/alphaIDsClient.d.ts +17 -0
- package/dist/browser/generated/src/alphaIDsClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/alphaIDsClient.js +13 -23
- package/dist/browser/generated/src/alphaIDsClient.js.map +1 -0
- package/dist/browser/generated/src/index.d.ts +5 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/dist/browser/generated/src/index.js +13 -0
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/models/index.d.ts +101 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/dist/browser/generated/src/models/index.js.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +8 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +77 -6
- package/dist/browser/generated/src/models/mappers.js.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +10 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +34 -3
- package/dist/browser/generated/src/models/parameters.js.map +1 -0
- package/dist/browser/generated/src/operations/alphaIds.d.ts +53 -0
- package/dist/browser/generated/src/operations/alphaIds.d.ts.map +1 -0
- package/dist/browser/generated/src/operations/alphaIds.js +227 -0
- package/dist/browser/generated/src/operations/alphaIds.js.map +1 -0
- package/dist/browser/generated/src/operations/index.d.ts +2 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operations/index.js +9 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/alphaIds.d.ts +32 -0
- package/dist/browser/generated/src/operationsInterfaces/alphaIds.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/alphaIds.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js +9 -0
- package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/generated/src/pagingHelper.d.ts +13 -0
- package/dist/browser/generated/src/pagingHelper.d.ts.map +1 -0
- package/dist/browser/generated/src/pagingHelper.js +30 -0
- package/dist/browser/generated/src/pagingHelper.js.map +1 -0
- package/dist/browser/generated/src/tracing.d.ts +2 -0
- package/dist/browser/generated/src/tracing.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/tracing.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +1 -1
- package/dist/browser/index.d.ts +3 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +5 -0
- package/{dist-esm/src → dist/browser}/index.js.map +1 -1
- package/dist/browser/models.d.ts +29 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js +4 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/utils/constants.d.ts +2 -0
- package/dist/browser/utils/constants.d.ts.map +1 -0
- package/dist/browser/utils/constants.js +4 -0
- package/{dist-esm/src → dist/browser}/utils/constants.js.map +1 -1
- package/dist/browser/utils/customPipelinePolicies.d.ts +11 -0
- package/dist/browser/utils/customPipelinePolicies.d.ts.map +1 -0
- package/dist/browser/utils/customPipelinePolicies.js +26 -0
- package/dist/browser/utils/customPipelinePolicies.js.map +1 -0
- package/dist/browser/utils/index.d.ts +3 -0
- package/dist/browser/utils/index.d.ts.map +1 -0
- package/dist/browser/utils/index.js +5 -0
- package/dist/browser/utils/index.js.map +1 -0
- package/dist/browser/utils/logger.d.ts +5 -0
- package/dist/browser/utils/logger.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/utils/logger.js +1 -1
- package/{dist-esm/src → dist/browser}/utils/logger.js.map +1 -1
- package/dist/commonjs/alphaIdsClient.d.ts +24 -0
- package/dist/commonjs/alphaIdsClient.d.ts.map +1 -0
- package/dist/commonjs/alphaIdsClient.js +102 -0
- package/dist/commonjs/alphaIdsClient.js.map +1 -0
- package/dist/commonjs/generated/src/alphaIDsClient.d.ts +17 -0
- package/dist/commonjs/generated/src/alphaIDsClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/alphaIDsClient.js +81 -0
- package/dist/commonjs/generated/src/alphaIDsClient.js.map +1 -0
- package/dist/commonjs/generated/src/index.d.ts +5 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +19 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +101 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/index.js +10 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts +8 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +161 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +10 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +91 -0
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/src/operations/alphaIds.d.ts +53 -0
- package/dist/commonjs/generated/src/operations/alphaIds.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/alphaIds.js +232 -0
- package/dist/commonjs/generated/src/operations/alphaIds.js.map +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src → dist/commonjs/generated/src/operations}/index.js +4 -3
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/alphaIds.d.ts +32 -0
- package/dist/commonjs/generated/src/operationsInterfaces/alphaIds.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/alphaIds.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/alphaIds.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/src/pagingHelper.d.ts +13 -0
- package/dist/commonjs/generated/src/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/generated/src/pagingHelper.js +34 -0
- package/dist/commonjs/generated/src/pagingHelper.js.map +1 -0
- package/dist/commonjs/generated/src/tracing.d.ts +2 -0
- package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
- package/dist/commonjs/generated/src/tracing.js +17 -0
- package/dist/commonjs/generated/src/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +3 -0
- 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/models.d.ts +29 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/utils/constants.d.ts +2 -0
- package/dist/commonjs/utils/constants.d.ts.map +1 -0
- package/dist/commonjs/utils/constants.js +7 -0
- package/dist/commonjs/utils/constants.js.map +1 -0
- package/dist/commonjs/utils/customPipelinePolicies.d.ts +11 -0
- package/dist/commonjs/utils/customPipelinePolicies.d.ts.map +1 -0
- package/dist/commonjs/utils/customPipelinePolicies.js +29 -0
- package/dist/commonjs/utils/customPipelinePolicies.js.map +1 -0
- package/dist/commonjs/utils/index.d.ts +3 -0
- package/dist/commonjs/utils/index.d.ts.map +1 -0
- package/dist/commonjs/utils/index.js +8 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/utils/logger.d.ts +5 -0
- package/dist/commonjs/utils/logger.d.ts.map +1 -0
- package/dist/commonjs/utils/logger.js +11 -0
- package/dist/commonjs/utils/logger.js.map +1 -0
- package/dist/esm/alphaIdsClient.d.ts +24 -0
- package/dist/esm/alphaIdsClient.d.ts.map +1 -0
- package/dist/esm/alphaIdsClient.js +98 -0
- package/dist/esm/alphaIdsClient.js.map +1 -0
- package/dist/esm/generated/src/alphaIDsClient.d.ts +17 -0
- package/dist/esm/generated/src/alphaIDsClient.d.ts.map +1 -0
- package/dist/esm/generated/src/alphaIDsClient.js +76 -0
- package/dist/esm/generated/src/alphaIDsClient.js.map +1 -0
- package/dist/esm/generated/src/index.d.ts +5 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +13 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +101 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces → dist/esm/generated/src/models}/index.js +1 -1
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +8 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +158 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +10 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +88 -0
- package/dist/esm/generated/src/models/parameters.js.map +1 -0
- package/dist/esm/generated/src/operations/alphaIds.d.ts +53 -0
- package/dist/esm/generated/src/operations/alphaIds.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/alphaIds.js +227 -0
- package/dist/esm/generated/src/operations/alphaIds.js.map +1 -0
- package/dist/esm/generated/src/operations/index.d.ts +2 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/index.js +9 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/alphaIds.d.ts +32 -0
- package/dist/esm/generated/src/operationsInterfaces/alphaIds.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/alphaIds.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/alphaIds.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/src/pagingHelper.d.ts +13 -0
- package/dist/esm/generated/src/pagingHelper.d.ts.map +1 -0
- package/dist/esm/generated/src/pagingHelper.js +30 -0
- package/dist/esm/generated/src/pagingHelper.js.map +1 -0
- package/dist/esm/generated/src/tracing.d.ts +2 -0
- package/dist/esm/generated/src/tracing.d.ts.map +1 -0
- package/dist/esm/generated/src/tracing.js +14 -0
- package/dist/esm/generated/src/tracing.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models.d.ts +29 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/dist/esm/utils/constants.js +4 -0
- package/dist/esm/utils/constants.js.map +1 -0
- package/dist/esm/utils/customPipelinePolicies.d.ts +11 -0
- package/dist/esm/utils/customPipelinePolicies.d.ts.map +1 -0
- package/dist/esm/utils/customPipelinePolicies.js +26 -0
- package/dist/esm/utils/customPipelinePolicies.js.map +1 -0
- package/dist/esm/utils/index.d.ts +3 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/logger.d.ts +5 -0
- package/dist/esm/utils/logger.d.ts.map +1 -0
- package/dist/esm/utils/logger.js +8 -0
- package/dist/esm/utils/logger.js.map +1 -0
- package/dist/react-native/alphaIdsClient.d.ts +24 -0
- package/dist/react-native/alphaIdsClient.d.ts.map +1 -0
- package/dist/react-native/alphaIdsClient.js +98 -0
- package/dist/react-native/alphaIdsClient.js.map +1 -0
- package/dist/react-native/generated/src/alphaIDsClient.d.ts +17 -0
- package/dist/react-native/generated/src/alphaIDsClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/alphaIDsClient.js +76 -0
- package/dist/react-native/generated/src/alphaIDsClient.js.map +1 -0
- package/dist/react-native/generated/src/index.d.ts +5 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +13 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +101 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations → dist/react-native/generated/src/models}/index.js +1 -1
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +8 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +158 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +10 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +88 -0
- package/dist/react-native/generated/src/models/parameters.js.map +1 -0
- package/dist/react-native/generated/src/operations/alphaIds.d.ts +53 -0
- package/dist/react-native/generated/src/operations/alphaIds.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/alphaIds.js +227 -0
- package/dist/react-native/generated/src/operations/alphaIds.js.map +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts +2 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/index.js +9 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/alphaIds.d.ts +32 -0
- package/dist/react-native/generated/src/operationsInterfaces/alphaIds.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/alphaIds.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/alphaIds.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/src/pagingHelper.d.ts +13 -0
- package/dist/react-native/generated/src/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/generated/src/pagingHelper.js +30 -0
- package/dist/react-native/generated/src/pagingHelper.js.map +1 -0
- package/dist/react-native/generated/src/tracing.d.ts +2 -0
- package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
- package/dist/react-native/generated/src/tracing.js +14 -0
- package/dist/react-native/generated/src/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +3 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +5 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models.d.ts +29 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/utils/constants.d.ts +2 -0
- package/dist/react-native/utils/constants.d.ts.map +1 -0
- package/dist/react-native/utils/constants.js +4 -0
- package/dist/react-native/utils/constants.js.map +1 -0
- package/dist/react-native/utils/customPipelinePolicies.d.ts +11 -0
- package/dist/react-native/utils/customPipelinePolicies.d.ts.map +1 -0
- package/dist/react-native/utils/customPipelinePolicies.js +26 -0
- package/dist/react-native/utils/customPipelinePolicies.js.map +1 -0
- package/dist/react-native/utils/index.d.ts +3 -0
- package/dist/react-native/utils/index.d.ts.map +1 -0
- package/dist/react-native/utils/index.js +5 -0
- package/dist/react-native/utils/index.js.map +1 -0
- package/dist/react-native/utils/logger.d.ts +5 -0
- package/dist/react-native/utils/logger.d.ts.map +1 -0
- package/dist/react-native/utils/logger.js +8 -0
- package/dist/react-native/utils/logger.js.map +1 -0
- package/package.json +83 -70
- package/dist/index.js +0 -386
- package/dist/index.js.map +0 -1
- package/dist-esm/src/alphaIdsClient.js +0 -34
- package/dist-esm/src/alphaIdsClient.js.map +0 -1
- package/dist-esm/src/generated/src/alphaIDsClient.js.map +0 -1
- package/dist-esm/src/generated/src/index.js.map +0 -1
- package/dist-esm/src/generated/src/models/index.js.map +0 -1
- package/dist-esm/src/generated/src/models/mappers.js.map +0 -1
- package/dist-esm/src/generated/src/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/src/operations/alphaIds.js +0 -80
- package/dist-esm/src/generated/src/operations/alphaIds.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/alphaIds.js.map +0 -1
- package/dist-esm/src/index.js +0 -5
- package/dist-esm/src/models.js +0 -4
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/utils/constants.js +0 -4
- package/dist-esm/src/utils/index.js +0 -5
- package/dist-esm/src/utils/index.js.map +0 -1
- package/types/communication-alpha-ids.d.ts +0 -49
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/alphaIds.js +0 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SupportedCountries = exports.DynamicAlphaIdConfiguration = exports.CommunicationError = exports.CommunicationErrorResponse = exports.AlphaId = exports.AcquiredAlphaIds = void 0;
|
|
11
|
+
exports.AcquiredAlphaIds = {
|
|
12
|
+
type: {
|
|
13
|
+
name: "Composite",
|
|
14
|
+
className: "AcquiredAlphaIds",
|
|
15
|
+
modelProperties: {
|
|
16
|
+
alphaIds: {
|
|
17
|
+
serializedName: "alphaIds",
|
|
18
|
+
type: {
|
|
19
|
+
name: "Sequence",
|
|
20
|
+
element: {
|
|
21
|
+
type: {
|
|
22
|
+
name: "Composite",
|
|
23
|
+
className: "AlphaId"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
nextLink: {
|
|
29
|
+
serializedName: "nextLink",
|
|
30
|
+
type: {
|
|
31
|
+
name: "String"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.AlphaId = {
|
|
38
|
+
type: {
|
|
39
|
+
name: "Composite",
|
|
40
|
+
className: "AlphaId",
|
|
41
|
+
modelProperties: {
|
|
42
|
+
value: {
|
|
43
|
+
serializedName: "value",
|
|
44
|
+
type: {
|
|
45
|
+
name: "String"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
countryCode: {
|
|
49
|
+
serializedName: "countryCode",
|
|
50
|
+
type: {
|
|
51
|
+
name: "String"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
purchaseDate: {
|
|
55
|
+
serializedName: "purchaseDate",
|
|
56
|
+
type: {
|
|
57
|
+
name: "DateTime"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.CommunicationErrorResponse = {
|
|
64
|
+
type: {
|
|
65
|
+
name: "Composite",
|
|
66
|
+
className: "CommunicationErrorResponse",
|
|
67
|
+
modelProperties: {
|
|
68
|
+
error: {
|
|
69
|
+
serializedName: "error",
|
|
70
|
+
type: {
|
|
71
|
+
name: "Composite",
|
|
72
|
+
className: "CommunicationError"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.CommunicationError = {
|
|
79
|
+
type: {
|
|
80
|
+
name: "Composite",
|
|
81
|
+
className: "CommunicationError",
|
|
82
|
+
modelProperties: {
|
|
83
|
+
code: {
|
|
84
|
+
serializedName: "code",
|
|
85
|
+
required: true,
|
|
86
|
+
type: {
|
|
87
|
+
name: "String"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
message: {
|
|
91
|
+
serializedName: "message",
|
|
92
|
+
required: true,
|
|
93
|
+
type: {
|
|
94
|
+
name: "String"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
target: {
|
|
98
|
+
serializedName: "target",
|
|
99
|
+
readOnly: true,
|
|
100
|
+
type: {
|
|
101
|
+
name: "String"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
details: {
|
|
105
|
+
serializedName: "details",
|
|
106
|
+
readOnly: true,
|
|
107
|
+
type: {
|
|
108
|
+
name: "Sequence",
|
|
109
|
+
element: {
|
|
110
|
+
type: {
|
|
111
|
+
name: "Composite",
|
|
112
|
+
className: "CommunicationError"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
innerError: {
|
|
118
|
+
serializedName: "innererror",
|
|
119
|
+
type: {
|
|
120
|
+
name: "Composite",
|
|
121
|
+
className: "CommunicationError"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
exports.DynamicAlphaIdConfiguration = {
|
|
128
|
+
type: {
|
|
129
|
+
name: "Composite",
|
|
130
|
+
className: "DynamicAlphaIdConfiguration",
|
|
131
|
+
modelProperties: {
|
|
132
|
+
enabled: {
|
|
133
|
+
serializedName: "enabled",
|
|
134
|
+
required: true,
|
|
135
|
+
type: {
|
|
136
|
+
name: "Boolean"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
exports.SupportedCountries = {
|
|
143
|
+
type: {
|
|
144
|
+
name: "Composite",
|
|
145
|
+
className: "SupportedCountries",
|
|
146
|
+
modelProperties: {
|
|
147
|
+
countries: {
|
|
148
|
+
serializedName: "countries",
|
|
149
|
+
type: {
|
|
150
|
+
name: "Sequence",
|
|
151
|
+
element: {
|
|
152
|
+
type: {
|
|
153
|
+
name: "String"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=mappers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,I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AAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,oBAAoB;yBAChC;qBACF;iBACF;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,oBAAoB;iBAChC;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,2BAA2B,GAA+B;IACrE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,6BAA6B;QACxC,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,kBAAkB,GAA+B;IAC5D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oBAAoB;QAC/B,eAAe,EAAE;YACf,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const AcquiredAlphaIds: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AcquiredAlphaIds\",\n modelProperties: {\n alphaIds: {\n serializedName: \"alphaIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"AlphaId\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const AlphaId: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AlphaId\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"String\"\n }\n },\n countryCode: {\n serializedName: \"countryCode\",\n type: {\n name: \"String\"\n }\n },\n purchaseDate: {\n serializedName: \"purchaseDate\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const DynamicAlphaIdConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DynamicAlphaIdConfiguration\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const SupportedCountries: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SupportedCountries\",\n modelProperties: {\n countries: {\n serializedName: \"countries\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
|
|
2
|
+
export declare const accept: OperationParameter;
|
|
3
|
+
export declare const endpoint: OperationURLParameter;
|
|
4
|
+
export declare const skip: OperationQueryParameter;
|
|
5
|
+
export declare const top: OperationQueryParameter;
|
|
6
|
+
export declare const apiVersion: OperationQueryParameter;
|
|
7
|
+
export declare const contentType: OperationParameter;
|
|
8
|
+
export declare const enabled: OperationParameter;
|
|
9
|
+
export declare const nextLink: OperationURLParameter;
|
|
10
|
+
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,uBASlB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,uBASjB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,kBAGrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.nextLink = exports.enabled = exports.contentType = exports.apiVersion = exports.top = exports.skip = exports.endpoint = exports.accept = void 0;
|
|
11
|
+
const mappers_js_1 = require("../models/mappers.js");
|
|
12
|
+
exports.accept = {
|
|
13
|
+
parameterPath: "accept",
|
|
14
|
+
mapper: {
|
|
15
|
+
defaultValue: "application/json",
|
|
16
|
+
isConstant: true,
|
|
17
|
+
serializedName: "Accept",
|
|
18
|
+
type: {
|
|
19
|
+
name: "String"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.endpoint = {
|
|
24
|
+
parameterPath: "endpoint",
|
|
25
|
+
mapper: {
|
|
26
|
+
serializedName: "endpoint",
|
|
27
|
+
required: true,
|
|
28
|
+
type: {
|
|
29
|
+
name: "String"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
skipEncoding: true
|
|
33
|
+
};
|
|
34
|
+
exports.skip = {
|
|
35
|
+
parameterPath: ["options", "skip"],
|
|
36
|
+
mapper: {
|
|
37
|
+
defaultValue: 0,
|
|
38
|
+
serializedName: "skip",
|
|
39
|
+
type: {
|
|
40
|
+
name: "Number"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.top = {
|
|
45
|
+
parameterPath: ["options", "top"],
|
|
46
|
+
mapper: {
|
|
47
|
+
defaultValue: 100,
|
|
48
|
+
serializedName: "top",
|
|
49
|
+
type: {
|
|
50
|
+
name: "Number"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.apiVersion = {
|
|
55
|
+
parameterPath: "apiVersion",
|
|
56
|
+
mapper: {
|
|
57
|
+
defaultValue: "2023-07-12",
|
|
58
|
+
isConstant: true,
|
|
59
|
+
serializedName: "api-version",
|
|
60
|
+
type: {
|
|
61
|
+
name: "String"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.contentType = {
|
|
66
|
+
parameterPath: ["options", "contentType"],
|
|
67
|
+
mapper: {
|
|
68
|
+
defaultValue: "application/merge-patch+json",
|
|
69
|
+
isConstant: true,
|
|
70
|
+
serializedName: "Content-Type",
|
|
71
|
+
type: {
|
|
72
|
+
name: "String"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
exports.enabled = {
|
|
77
|
+
parameterPath: "enabled",
|
|
78
|
+
mapper: mappers_js_1.DynamicAlphaIdConfiguration
|
|
79
|
+
};
|
|
80
|
+
exports.nextLink = {
|
|
81
|
+
parameterPath: "nextLink",
|
|
82
|
+
mapper: {
|
|
83
|
+
serializedName: "nextLink",
|
|
84
|
+
required: true,
|
|
85
|
+
type: {
|
|
86
|
+
name: "String"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
skipEncoding: true
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,qDAAwG;AAE3F,QAAA,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,aAAa,EAAE,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,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { DynamicAlphaIdConfiguration as DynamicAlphaIdConfigurationMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const skip: OperationQueryParameter = {\n parameterPath: [\"options\", \"skip\"],\n mapper: {\n defaultValue: 0,\n serializedName: \"skip\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const top: OperationQueryParameter = {\n parameterPath: [\"options\", \"top\"],\n mapper: {\n defaultValue: 100,\n serializedName: \"top\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2023-07-12\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/merge-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const enabled: OperationParameter = {\n parameterPath: \"enabled\",\n mapper: DynamicAlphaIdConfigurationMapper\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { AlphaIds } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AlphaIDsClient } from "../alphaIDsClient.js";
|
|
4
|
+
import { AlphaId, AlphaIdsGetAlphaIdsOptionalParams, AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams, AlphaIdsGetDynamicAlphaIdConfigurationResponse, AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams, AlphaIdsUpsertDynamicAlphaIdConfigurationResponse, AlphaIdsGetDynamicAlphaIdCountriesOptionalParams, AlphaIdsGetDynamicAlphaIdCountriesResponse, AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams, AlphaIdsGetPreRegisteredAlphaIdCountriesResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing AlphaIds operations. */
|
|
6
|
+
export declare class AlphaIdsImpl implements AlphaIds {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class AlphaIds class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AlphaIDsClient);
|
|
13
|
+
/**
|
|
14
|
+
* Gets the list of alpha ids for the current resource.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listAlphaIds(options?: AlphaIdsGetAlphaIdsOptionalParams): PagedAsyncIterableIterator<AlphaId>;
|
|
18
|
+
private getAlphaIdsPagingPage;
|
|
19
|
+
private getAlphaIdsPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the list of alpha ids for the current resource.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _getAlphaIds;
|
|
25
|
+
/**
|
|
26
|
+
* Get the Dynamic Alpha ID configuration that's applied for the current resource.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
getDynamicAlphaIdConfiguration(options?: AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams): Promise<AlphaIdsGetDynamicAlphaIdConfigurationResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates or updates Dynamic Alpha ID Configuration for the current resource.
|
|
32
|
+
* @param enabled Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
upsertDynamicAlphaIdConfiguration(enabled: boolean, options?: AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams): Promise<AlphaIdsUpsertDynamicAlphaIdConfigurationResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the list of countries that support Dynamic Alpha IDs.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
getDynamicAlphaIdCountries(options?: AlphaIdsGetDynamicAlphaIdCountriesOptionalParams): Promise<AlphaIdsGetDynamicAlphaIdCountriesResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the list of countries that support Pre-Registered Alpha IDs.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
getPreRegisteredAlphaIdCountries(options?: AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams): Promise<AlphaIdsGetPreRegisteredAlphaIdCountriesResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* GetAlphaIdsNext
|
|
48
|
+
* @param nextLink The nextLink from the previous successful call to the GetAlphaIds method.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
private _getAlphaIdsNext;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=alphaIds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alphaIds.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/alphaIds.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,OAAO,EAEP,iCAAiC,EAEjC,oDAAoD,EACpD,8CAA8C,EAC9C,uDAAuD,EACvD,iDAAiD,EACjD,gDAAgD,EAChD,0CAA0C,EAC1C,sDAAsD,EACtD,gDAAgD,EAEjD,MAAM,oBAAoB,CAAC;AAG5B,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAExC;;;OAGG;gBACS,MAAM,EAAE,cAAc;IAIlC;;;OAGG;IACI,YAAY,CACjB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,OAAO,CAAC;YAkBvB,qBAAqB;YAsBrB,oBAAoB;IAQnC;;;OAGG;YACW,YAAY;IAe1B;;;OAGG;IACG,8BAA8B,CAClC,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,8CAA8C,CAAC;IAa1D;;;;OAIG;IACG,iCAAiC,CACrC,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;IAa7D;;;OAGG;IACG,0BAA0B,CAC9B,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC;IAatD;;;OAGG;IACG,gCAAgC,CACpC,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;IAa5D;;;;OAIG;YACW,gBAAgB;CAe/B"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AlphaIdsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const tracing_js_1 = require("../tracing.js");
|
|
13
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
14
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
15
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
16
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
|
18
|
+
/** Class containing AlphaIds operations. */
|
|
19
|
+
class AlphaIdsImpl {
|
|
20
|
+
client;
|
|
21
|
+
/**
|
|
22
|
+
* Initialize a new instance of the class AlphaIds class.
|
|
23
|
+
* @param client Reference to the service client
|
|
24
|
+
*/
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Gets the list of alpha ids for the current resource.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listAlphaIds(options) {
|
|
33
|
+
const iter = this.getAlphaIdsPagingAll(options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.getAlphaIdsPagingPage(options, settings);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
async *getAlphaIdsPagingPage(options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._getAlphaIds(options);
|
|
54
|
+
let page = result.alphaIds || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._getAlphaIdsNext(continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.alphaIds || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async *getAlphaIdsPagingAll(options) {
|
|
68
|
+
for await (const page of this.getAlphaIdsPagingPage(options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets the list of alpha ids for the current resource.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
async _getAlphaIds(options) {
|
|
77
|
+
return tracing_js_1.tracingClient.withSpan("AlphaIDsClient._getAlphaIds", options ?? {}, async (options) => {
|
|
78
|
+
return this.client.sendOperationRequest({ options }, getAlphaIdsOperationSpec);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get the Dynamic Alpha ID configuration that's applied for the current resource.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
async getDynamicAlphaIdConfiguration(options) {
|
|
86
|
+
return tracing_js_1.tracingClient.withSpan("AlphaIDsClient.getDynamicAlphaIdConfiguration", options ?? {}, async (options) => {
|
|
87
|
+
return this.client.sendOperationRequest({ options }, getDynamicAlphaIdConfigurationOperationSpec);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Creates or updates Dynamic Alpha ID Configuration for the current resource.
|
|
92
|
+
* @param enabled Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource.
|
|
93
|
+
* @param options The options parameters.
|
|
94
|
+
*/
|
|
95
|
+
async upsertDynamicAlphaIdConfiguration(enabled, options) {
|
|
96
|
+
return tracing_js_1.tracingClient.withSpan("AlphaIDsClient.upsertDynamicAlphaIdConfiguration", options ?? {}, async (options) => {
|
|
97
|
+
return this.client.sendOperationRequest({ enabled, options }, upsertDynamicAlphaIdConfigurationOperationSpec);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Gets the list of countries that support Dynamic Alpha IDs.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
async getDynamicAlphaIdCountries(options) {
|
|
105
|
+
return tracing_js_1.tracingClient.withSpan("AlphaIDsClient.getDynamicAlphaIdCountries", options ?? {}, async (options) => {
|
|
106
|
+
return this.client.sendOperationRequest({ options }, getDynamicAlphaIdCountriesOperationSpec);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Gets the list of countries that support Pre-Registered Alpha IDs.
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
async getPreRegisteredAlphaIdCountries(options) {
|
|
114
|
+
return tracing_js_1.tracingClient.withSpan("AlphaIDsClient.getPreRegisteredAlphaIdCountries", options ?? {}, async (options) => {
|
|
115
|
+
return this.client.sendOperationRequest({ options }, getPreRegisteredAlphaIdCountriesOperationSpec);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* GetAlphaIdsNext
|
|
120
|
+
* @param nextLink The nextLink from the previous successful call to the GetAlphaIds method.
|
|
121
|
+
* @param options The options parameters.
|
|
122
|
+
*/
|
|
123
|
+
async _getAlphaIdsNext(nextLink, options) {
|
|
124
|
+
return tracing_js_1.tracingClient.withSpan("AlphaIDsClient._getAlphaIdsNext", options ?? {}, async (options) => {
|
|
125
|
+
return this.client.sendOperationRequest({ nextLink, options }, getAlphaIdsNextOperationSpec);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.AlphaIdsImpl = AlphaIdsImpl;
|
|
130
|
+
// Operation Specifications
|
|
131
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
132
|
+
const getAlphaIdsOperationSpec = {
|
|
133
|
+
path: "/alphaIds",
|
|
134
|
+
httpMethod: "GET",
|
|
135
|
+
responses: {
|
|
136
|
+
200: {
|
|
137
|
+
bodyMapper: Mappers.AcquiredAlphaIds
|
|
138
|
+
},
|
|
139
|
+
default: {
|
|
140
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],
|
|
144
|
+
urlParameters: [Parameters.endpoint],
|
|
145
|
+
headerParameters: [Parameters.accept],
|
|
146
|
+
serializer
|
|
147
|
+
};
|
|
148
|
+
const getDynamicAlphaIdConfigurationOperationSpec = {
|
|
149
|
+
path: "/alphaIds/dynamic/configuration",
|
|
150
|
+
httpMethod: "GET",
|
|
151
|
+
responses: {
|
|
152
|
+
200: {
|
|
153
|
+
bodyMapper: Mappers.DynamicAlphaIdConfiguration
|
|
154
|
+
},
|
|
155
|
+
default: {
|
|
156
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
queryParameters: [Parameters.apiVersion],
|
|
160
|
+
urlParameters: [Parameters.endpoint],
|
|
161
|
+
headerParameters: [Parameters.accept],
|
|
162
|
+
serializer
|
|
163
|
+
};
|
|
164
|
+
const upsertDynamicAlphaIdConfigurationOperationSpec = {
|
|
165
|
+
path: "/alphaIds/dynamic/configuration",
|
|
166
|
+
httpMethod: "PATCH",
|
|
167
|
+
responses: {
|
|
168
|
+
200: {
|
|
169
|
+
bodyMapper: Mappers.DynamicAlphaIdConfiguration
|
|
170
|
+
},
|
|
171
|
+
default: {
|
|
172
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
requestBody: {
|
|
176
|
+
parameterPath: { enabled: ["enabled"] },
|
|
177
|
+
mapper: { ...Mappers.DynamicAlphaIdConfiguration, required: true }
|
|
178
|
+
},
|
|
179
|
+
queryParameters: [Parameters.apiVersion],
|
|
180
|
+
urlParameters: [Parameters.endpoint],
|
|
181
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
182
|
+
mediaType: "json",
|
|
183
|
+
serializer
|
|
184
|
+
};
|
|
185
|
+
const getDynamicAlphaIdCountriesOperationSpec = {
|
|
186
|
+
path: "/alphaIds/dynamic/countries",
|
|
187
|
+
httpMethod: "GET",
|
|
188
|
+
responses: {
|
|
189
|
+
200: {
|
|
190
|
+
bodyMapper: Mappers.SupportedCountries
|
|
191
|
+
},
|
|
192
|
+
default: {
|
|
193
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
queryParameters: [Parameters.apiVersion],
|
|
197
|
+
urlParameters: [Parameters.endpoint],
|
|
198
|
+
headerParameters: [Parameters.accept],
|
|
199
|
+
serializer
|
|
200
|
+
};
|
|
201
|
+
const getPreRegisteredAlphaIdCountriesOperationSpec = {
|
|
202
|
+
path: "/alphaIds/pre-registered/countries",
|
|
203
|
+
httpMethod: "GET",
|
|
204
|
+
responses: {
|
|
205
|
+
200: {
|
|
206
|
+
bodyMapper: Mappers.SupportedCountries
|
|
207
|
+
},
|
|
208
|
+
default: {
|
|
209
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
queryParameters: [Parameters.apiVersion],
|
|
213
|
+
urlParameters: [Parameters.endpoint],
|
|
214
|
+
headerParameters: [Parameters.accept],
|
|
215
|
+
serializer
|
|
216
|
+
};
|
|
217
|
+
const getAlphaIdsNextOperationSpec = {
|
|
218
|
+
path: "{nextLink}",
|
|
219
|
+
httpMethod: "GET",
|
|
220
|
+
responses: {
|
|
221
|
+
200: {
|
|
222
|
+
bodyMapper: Mappers.AcquiredAlphaIds
|
|
223
|
+
},
|
|
224
|
+
default: {
|
|
225
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
urlParameters: [Parameters.endpoint, Parameters.nextLink],
|
|
229
|
+
headerParameters: [Parameters.accept],
|
|
230
|
+
serializer
|
|
231
|
+
};
|
|
232
|
+
//# sourceMappingURL=alphaIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alphaIds.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/alphaIds.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IACN,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,YAAY,CACjB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACvD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,qBAAqB,CAClC,OAA2C,EAC3C,QAAuB;QA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ACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AlphaIds } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AlphaIDsClient } from \"../alphaIDsClient.js\";\nimport {\n AlphaId,\n AlphaIdsGetAlphaIdsNextOptionalParams,\n AlphaIdsGetAlphaIdsOptionalParams,\n AlphaIdsGetAlphaIdsResponse,\n AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams,\n AlphaIdsGetDynamicAlphaIdConfigurationResponse,\n AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams,\n AlphaIdsUpsertDynamicAlphaIdConfigurationResponse,\n AlphaIdsGetDynamicAlphaIdCountriesOptionalParams,\n AlphaIdsGetDynamicAlphaIdCountriesResponse,\n AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams,\n AlphaIdsGetPreRegisteredAlphaIdCountriesResponse,\n AlphaIdsGetAlphaIdsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AlphaIds operations. */\nexport class AlphaIdsImpl implements AlphaIds {\n private readonly client: AlphaIDsClient;\n\n /**\n * Initialize a new instance of the class AlphaIds class.\n * @param client Reference to the service client\n */\n constructor(client: AlphaIDsClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of alpha ids for the current resource.\n * @param options The options parameters.\n */\n public listAlphaIds(\n options?: AlphaIdsGetAlphaIdsOptionalParams\n ): PagedAsyncIterableIterator<AlphaId> {\n const iter = this.getAlphaIdsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAlphaIdsPagingPage(options, settings);\n }\n };\n }\n\n private async *getAlphaIdsPagingPage(\n options?: AlphaIdsGetAlphaIdsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AlphaId[]> {\n let result: AlphaIdsGetAlphaIdsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAlphaIds(options);\n let page = result.alphaIds || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAlphaIdsNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.alphaIds || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAlphaIdsPagingAll(\n options?: AlphaIdsGetAlphaIdsOptionalParams\n ): AsyncIterableIterator<AlphaId> {\n for await (const page of this.getAlphaIdsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of alpha ids for the current resource.\n * @param options The options parameters.\n */\n private async _getAlphaIds(\n options?: AlphaIdsGetAlphaIdsOptionalParams\n ): Promise<AlphaIdsGetAlphaIdsResponse> {\n return tracingClient.withSpan(\n \"AlphaIDsClient._getAlphaIds\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getAlphaIdsOperationSpec\n ) as Promise<AlphaIdsGetAlphaIdsResponse>;\n }\n );\n }\n\n /**\n * Get the Dynamic Alpha ID configuration that's applied for the current resource.\n * @param options The options parameters.\n */\n async getDynamicAlphaIdConfiguration(\n options?: AlphaIdsGetDynamicAlphaIdConfigurationOptionalParams\n ): Promise<AlphaIdsGetDynamicAlphaIdConfigurationResponse> {\n return tracingClient.withSpan(\n \"AlphaIDsClient.getDynamicAlphaIdConfiguration\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getDynamicAlphaIdConfigurationOperationSpec\n ) as Promise<AlphaIdsGetDynamicAlphaIdConfigurationResponse>;\n }\n );\n }\n\n /**\n * Creates or updates Dynamic Alpha ID Configuration for the current resource.\n * @param enabled Indicates whether the use of Dynamic Alpha IDs is supported for a specific resource.\n * @param options The options parameters.\n */\n async upsertDynamicAlphaIdConfiguration(\n enabled: boolean,\n options?: AlphaIdsUpsertDynamicAlphaIdConfigurationOptionalParams\n ): Promise<AlphaIdsUpsertDynamicAlphaIdConfigurationResponse> {\n return tracingClient.withSpan(\n \"AlphaIDsClient.upsertDynamicAlphaIdConfiguration\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { enabled, options },\n upsertDynamicAlphaIdConfigurationOperationSpec\n ) as Promise<AlphaIdsUpsertDynamicAlphaIdConfigurationResponse>;\n }\n );\n }\n\n /**\n * Gets the list of countries that support Dynamic Alpha IDs.\n * @param options The options parameters.\n */\n async getDynamicAlphaIdCountries(\n options?: AlphaIdsGetDynamicAlphaIdCountriesOptionalParams\n ): Promise<AlphaIdsGetDynamicAlphaIdCountriesResponse> {\n return tracingClient.withSpan(\n \"AlphaIDsClient.getDynamicAlphaIdCountries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getDynamicAlphaIdCountriesOperationSpec\n ) as Promise<AlphaIdsGetDynamicAlphaIdCountriesResponse>;\n }\n );\n }\n\n /**\n * Gets the list of countries that support Pre-Registered Alpha IDs.\n * @param options The options parameters.\n */\n async getPreRegisteredAlphaIdCountries(\n options?: AlphaIdsGetPreRegisteredAlphaIdCountriesOptionalParams\n ): Promise<AlphaIdsGetPreRegisteredAlphaIdCountriesResponse> {\n return tracingClient.withSpan(\n \"AlphaIDsClient.getPreRegisteredAlphaIdCountries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getPreRegisteredAlphaIdCountriesOperationSpec\n ) as Promise<AlphaIdsGetPreRegisteredAlphaIdCountriesResponse>;\n }\n );\n }\n\n /**\n * GetAlphaIdsNext\n * @param nextLink The nextLink from the previous successful call to the GetAlphaIds method.\n * @param options The options parameters.\n */\n private async _getAlphaIdsNext(\n nextLink: string,\n options?: AlphaIdsGetAlphaIdsNextOptionalParams\n ): Promise<AlphaIdsGetAlphaIdsNextResponse> {\n return tracingClient.withSpan(\n \"AlphaIDsClient._getAlphaIdsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getAlphaIdsNextOperationSpec\n ) as Promise<AlphaIdsGetAlphaIdsNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getAlphaIdsOperationSpec: coreClient.OperationSpec = {\n path: \"/alphaIds\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcquiredAlphaIds\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getDynamicAlphaIdConfigurationOperationSpec: coreClient.OperationSpec = {\n path: \"/alphaIds/dynamic/configuration\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DynamicAlphaIdConfiguration\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst upsertDynamicAlphaIdConfigurationOperationSpec: coreClient.OperationSpec = {\n path: \"/alphaIds/dynamic/configuration\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DynamicAlphaIdConfiguration\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { enabled: [\"enabled\"] },\n mapper: { ...Mappers.DynamicAlphaIdConfiguration, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getDynamicAlphaIdCountriesOperationSpec: coreClient.OperationSpec = {\n path: \"/alphaIds/dynamic/countries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportedCountries\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getPreRegisteredAlphaIdCountriesOperationSpec: coreClient.OperationSpec = {\n path: \"/alphaIds/pre-registered/countries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SupportedCountries\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAlphaIdsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcquiredAlphaIds\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/*
|
|
2
3
|
* Copyright (c) Microsoft Corporation.
|
|
3
4
|
* Licensed under the MIT License.
|
|
@@ -5,7 +6,7 @@
|
|
|
5
6
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
7
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./alphaIds.js"), exports);
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wDAA8B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./alphaIds.js\";\n"]}
|