@azure-tools/communication-short-codes 1.0.0-beta.4 → 1.0.0-beta.5
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 +175 -156
- package/dist/browser/generated/src/index.d.ts +4 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/index.js +3 -3
- package/dist/browser/generated/src/index.js.map +1 -0
- package/{types/communication-short-codes.d.ts → dist/browser/generated/src/models/index.d.ts} +422 -377
- 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 +23 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +74 -39
- package/dist/browser/generated/src/models/mappers.js.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +19 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
- package/dist/browser/generated/src/models/parameters.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-esm/src → dist/browser}/generated/src/operations/index.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operations/shortCodes.d.ts +143 -0
- package/dist/browser/generated/src/operations/shortCodes.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations/shortCodesOperations.js → dist/browser/generated/src/operations/shortCodes.js} +146 -107
- package/dist/browser/generated/src/operations/shortCodes.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-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/shortCodes.d.ts +80 -0
- package/dist/browser/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces/shortCodesOperations.js → dist/browser/generated/src/operationsInterfaces/shortCodes.js} +1 -1
- package/dist/browser/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
- package/dist/browser/generated/src/shortCodesClient.d.ts +17 -0
- package/dist/browser/generated/src/shortCodesClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/shortCodesClient.js +14 -7
- package/dist/browser/generated/src/shortCodesClient.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 +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/mappers.d.ts +2 -0
- package/dist/browser/mappers.d.ts.map +1 -0
- package/dist/browser/mappers.js +4 -0
- package/dist/browser/mappers.js.map +1 -0
- package/dist/browser/models.d.ts +34 -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/shortCodesClient.d.ts +31 -0
- package/dist/browser/shortCodesClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/shortCodesClient.js +45 -18
- package/dist/browser/shortCodesClient.js.map +1 -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/generated/src/index.d.ts +4 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +17 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +422 -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 +23 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +846 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +19 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +146 -0
- package/dist/commonjs/generated/src/models/parameters.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/commonjs/generated/src/operations/index.js +12 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operations/shortCodes.d.ts +143 -0
- package/dist/commonjs/generated/src/operations/shortCodes.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/shortCodes.js +605 -0
- package/dist/commonjs/generated/src/operations/shortCodes.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/operationsInterfaces/shortCodes.d.ts +80 -0
- package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
- package/dist/commonjs/generated/src/shortCodesClient.d.ts +17 -0
- package/dist/commonjs/generated/src/shortCodesClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/shortCodesClient.js +98 -0
- package/dist/commonjs/generated/src/shortCodesClient.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 +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +9 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/mappers.d.ts +2 -0
- package/dist/commonjs/mappers.d.ts.map +1 -0
- package/dist/commonjs/mappers.js +11 -0
- package/dist/commonjs/mappers.js.map +1 -0
- package/dist/commonjs/models.d.ts +34 -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/shortCodesClient.d.ts +31 -0
- package/dist/commonjs/shortCodesClient.d.ts.map +1 -0
- package/dist/commonjs/shortCodesClient.js +141 -0
- package/dist/commonjs/shortCodesClient.js.map +1 -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/generated/src/index.d.ts +4 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +12 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +422 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/dist/esm/generated/src/models/index.js +9 -0
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +23 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +843 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +19 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +143 -0
- package/dist/esm/generated/src/models/parameters.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/operations/shortCodes.d.ts +143 -0
- package/dist/esm/generated/src/operations/shortCodes.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/shortCodes.js +600 -0
- package/dist/esm/generated/src/operations/shortCodes.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/operationsInterfaces/shortCodes.d.ts +80 -0
- package/dist/esm/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/shortCodes.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
- package/dist/esm/generated/src/shortCodesClient.d.ts +17 -0
- package/dist/esm/generated/src/shortCodesClient.d.ts.map +1 -0
- package/dist/esm/generated/src/shortCodesClient.js +93 -0
- package/dist/esm/generated/src/shortCodesClient.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 +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mappers.d.ts +2 -0
- package/dist/esm/mappers.d.ts.map +1 -0
- package/dist/esm/mappers.js +4 -0
- package/dist/esm/mappers.js.map +1 -0
- package/dist/esm/models.d.ts +34 -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/shortCodesClient.d.ts +31 -0
- package/dist/esm/shortCodesClient.d.ts.map +1 -0
- package/dist/esm/shortCodesClient.js +137 -0
- package/dist/esm/shortCodesClient.js.map +1 -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/generated/src/index.d.ts +4 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +12 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +422 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/index.js +9 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +23 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +843 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +19 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +143 -0
- package/dist/react-native/generated/src/models/parameters.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/operations/shortCodes.d.ts +143 -0
- package/dist/react-native/generated/src/operations/shortCodes.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/shortCodes.js +600 -0
- package/dist/react-native/generated/src/operations/shortCodes.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/operationsInterfaces/shortCodes.d.ts +80 -0
- package/dist/react-native/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/shortCodes.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
- package/dist/react-native/generated/src/shortCodesClient.d.ts +17 -0
- package/dist/react-native/generated/src/shortCodesClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/shortCodesClient.js +93 -0
- package/dist/react-native/generated/src/shortCodesClient.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 +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/mappers.d.ts +2 -0
- package/dist/react-native/mappers.d.ts.map +1 -0
- package/dist/react-native/mappers.js +4 -0
- package/dist/react-native/mappers.js.map +1 -0
- package/dist/react-native/models.d.ts +34 -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/shortCodesClient.d.ts +31 -0
- package/dist/react-native/shortCodesClient.d.ts.map +1 -0
- package/dist/react-native/shortCodesClient.js +137 -0
- package/dist/react-native/shortCodesClient.js.map +1 -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 +88 -75
- package/dist/index.js +0 -1745
- package/dist/index.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/shortCodesOperations.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/shortCodesOperations.js.map +0 -1
- package/dist-esm/src/generated/src/shortCodesClient.js.map +0 -1
- package/dist-esm/src/index.js +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models.js +0 -4
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/shortCodesClient.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/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
package/dist/index.js
DELETED
|
@@ -1,1745 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var coreAuth = require('@azure/core-auth');
|
|
6
|
-
var communicationCommon = require('@azure/communication-common');
|
|
7
|
-
var coreTracing = require('@azure/core-tracing');
|
|
8
|
-
var logger$1 = require('@azure/logger');
|
|
9
|
-
var coreClient = require('@azure/core-client');
|
|
10
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
11
|
-
var tslib = require('tslib');
|
|
12
|
-
|
|
13
|
-
function _interopNamespace(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
15
|
-
var n = Object.create(null);
|
|
16
|
-
if (e) {
|
|
17
|
-
Object.keys(e).forEach(function (k) {
|
|
18
|
-
if (k !== 'default') {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return e[k]; }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
n["default"] = e;
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
32
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
33
|
-
|
|
34
|
-
/*
|
|
35
|
-
* Copyright (c) Microsoft Corporation.
|
|
36
|
-
* Licensed under the MIT License.
|
|
37
|
-
*
|
|
38
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
39
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
40
|
-
*/
|
|
41
|
-
const tracingClient = coreTracing.createTracingClient({
|
|
42
|
-
namespace: "Microsoft.Communication",
|
|
43
|
-
packageName: "@azure/communication-short-codes",
|
|
44
|
-
packageVersion: "1.0.0-beta.4"
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/*
|
|
48
|
-
* Copyright (c) Microsoft Corporation.
|
|
49
|
-
* Licensed under the MIT License.
|
|
50
|
-
*
|
|
51
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
52
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
53
|
-
*/
|
|
54
|
-
const ShortCodes = {
|
|
55
|
-
type: {
|
|
56
|
-
name: "Composite",
|
|
57
|
-
className: "ShortCodes",
|
|
58
|
-
modelProperties: {
|
|
59
|
-
shortCodes: {
|
|
60
|
-
serializedName: "shortCodes",
|
|
61
|
-
type: {
|
|
62
|
-
name: "Sequence",
|
|
63
|
-
element: {
|
|
64
|
-
type: {
|
|
65
|
-
name: "Composite",
|
|
66
|
-
className: "ShortCode"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
nextLink: {
|
|
72
|
-
serializedName: "nextLink",
|
|
73
|
-
type: {
|
|
74
|
-
name: "String"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
const ShortCode = {
|
|
81
|
-
type: {
|
|
82
|
-
name: "Composite",
|
|
83
|
-
className: "ShortCode",
|
|
84
|
-
modelProperties: {
|
|
85
|
-
number: {
|
|
86
|
-
serializedName: "number",
|
|
87
|
-
type: {
|
|
88
|
-
name: "String"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
numberType: {
|
|
92
|
-
serializedName: "numberType",
|
|
93
|
-
type: {
|
|
94
|
-
name: "String"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
countryCode: {
|
|
98
|
-
serializedName: "countryCode",
|
|
99
|
-
type: {
|
|
100
|
-
name: "String"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
programBriefIds: {
|
|
104
|
-
serializedName: "programBriefIds",
|
|
105
|
-
type: {
|
|
106
|
-
name: "Sequence",
|
|
107
|
-
element: {
|
|
108
|
-
type: {
|
|
109
|
-
name: "String"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
purchaseDate: {
|
|
115
|
-
serializedName: "purchaseDate",
|
|
116
|
-
type: {
|
|
117
|
-
name: "DateTime"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
const CommunicationErrorResponse = {
|
|
124
|
-
type: {
|
|
125
|
-
name: "Composite",
|
|
126
|
-
className: "CommunicationErrorResponse",
|
|
127
|
-
modelProperties: {
|
|
128
|
-
error: {
|
|
129
|
-
serializedName: "error",
|
|
130
|
-
type: {
|
|
131
|
-
name: "Composite",
|
|
132
|
-
className: "CommunicationError"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
const CommunicationError = {
|
|
139
|
-
type: {
|
|
140
|
-
name: "Composite",
|
|
141
|
-
className: "CommunicationError",
|
|
142
|
-
modelProperties: {
|
|
143
|
-
code: {
|
|
144
|
-
serializedName: "code",
|
|
145
|
-
required: true,
|
|
146
|
-
type: {
|
|
147
|
-
name: "String"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
message: {
|
|
151
|
-
serializedName: "message",
|
|
152
|
-
required: true,
|
|
153
|
-
type: {
|
|
154
|
-
name: "String"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
target: {
|
|
158
|
-
serializedName: "target",
|
|
159
|
-
readOnly: true,
|
|
160
|
-
type: {
|
|
161
|
-
name: "String"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
details: {
|
|
165
|
-
serializedName: "details",
|
|
166
|
-
readOnly: true,
|
|
167
|
-
type: {
|
|
168
|
-
name: "Sequence",
|
|
169
|
-
element: {
|
|
170
|
-
type: {
|
|
171
|
-
name: "Composite",
|
|
172
|
-
className: "CommunicationError"
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
innerError: {
|
|
178
|
-
serializedName: "innererror",
|
|
179
|
-
type: {
|
|
180
|
-
name: "Composite",
|
|
181
|
-
className: "CommunicationError"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
const USProgramBrief = {
|
|
188
|
-
type: {
|
|
189
|
-
name: "Composite",
|
|
190
|
-
className: "USProgramBrief",
|
|
191
|
-
modelProperties: {
|
|
192
|
-
id: {
|
|
193
|
-
serializedName: "id",
|
|
194
|
-
required: true,
|
|
195
|
-
type: {
|
|
196
|
-
name: "Uuid"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
status: {
|
|
200
|
-
serializedName: "status",
|
|
201
|
-
type: {
|
|
202
|
-
name: "String"
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
number: {
|
|
206
|
-
serializedName: "number",
|
|
207
|
-
type: {
|
|
208
|
-
name: "String"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
reviewNotes: {
|
|
212
|
-
serializedName: "reviewNotes",
|
|
213
|
-
type: {
|
|
214
|
-
name: "Sequence",
|
|
215
|
-
element: {
|
|
216
|
-
type: {
|
|
217
|
-
name: "Composite",
|
|
218
|
-
className: "ReviewNote"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
costs: {
|
|
224
|
-
serializedName: "costs",
|
|
225
|
-
type: {
|
|
226
|
-
name: "Sequence",
|
|
227
|
-
element: {
|
|
228
|
-
type: {
|
|
229
|
-
name: "Composite",
|
|
230
|
-
className: "ShortCodeCost"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
submissionDate: {
|
|
236
|
-
serializedName: "submissionDate",
|
|
237
|
-
type: {
|
|
238
|
-
name: "DateTime"
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
statusUpdatedDate: {
|
|
242
|
-
serializedName: "statusUpdatedDate",
|
|
243
|
-
type: {
|
|
244
|
-
name: "DateTime"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
programDetails: {
|
|
248
|
-
serializedName: "programDetails",
|
|
249
|
-
type: {
|
|
250
|
-
name: "Composite",
|
|
251
|
-
className: "ProgramDetails"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
companyInformation: {
|
|
255
|
-
serializedName: "companyInformation",
|
|
256
|
-
type: {
|
|
257
|
-
name: "Composite",
|
|
258
|
-
className: "CompanyInformation"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
messageDetails: {
|
|
262
|
-
serializedName: "messageDetails",
|
|
263
|
-
type: {
|
|
264
|
-
name: "Composite",
|
|
265
|
-
className: "MessageDetails"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
trafficDetails: {
|
|
269
|
-
serializedName: "trafficDetails",
|
|
270
|
-
type: {
|
|
271
|
-
name: "Composite",
|
|
272
|
-
className: "TrafficDetails"
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
attachments: {
|
|
276
|
-
serializedName: "attachments",
|
|
277
|
-
type: {
|
|
278
|
-
name: "Sequence",
|
|
279
|
-
element: {
|
|
280
|
-
type: {
|
|
281
|
-
name: "Composite",
|
|
282
|
-
className: "ProgramBriefAttachmentSummary"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
const ReviewNote = {
|
|
291
|
-
type: {
|
|
292
|
-
name: "Composite",
|
|
293
|
-
className: "ReviewNote",
|
|
294
|
-
modelProperties: {
|
|
295
|
-
message: {
|
|
296
|
-
serializedName: "message",
|
|
297
|
-
type: {
|
|
298
|
-
name: "String"
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
date: {
|
|
302
|
-
serializedName: "date",
|
|
303
|
-
type: {
|
|
304
|
-
name: "DateTime"
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
const ShortCodeCost = {
|
|
311
|
-
type: {
|
|
312
|
-
name: "Composite",
|
|
313
|
-
className: "ShortCodeCost",
|
|
314
|
-
modelProperties: {
|
|
315
|
-
amount: {
|
|
316
|
-
serializedName: "amount",
|
|
317
|
-
required: true,
|
|
318
|
-
type: {
|
|
319
|
-
name: "Number"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
currencyCode: {
|
|
323
|
-
serializedName: "currencyCode",
|
|
324
|
-
required: true,
|
|
325
|
-
type: {
|
|
326
|
-
name: "String"
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
billingFrequency: {
|
|
330
|
-
serializedName: "billingFrequency",
|
|
331
|
-
required: true,
|
|
332
|
-
type: {
|
|
333
|
-
name: "String"
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
const ProgramDetails = {
|
|
340
|
-
type: {
|
|
341
|
-
name: "Composite",
|
|
342
|
-
className: "ProgramDetails",
|
|
343
|
-
modelProperties: {
|
|
344
|
-
isVanity: {
|
|
345
|
-
serializedName: "isVanity",
|
|
346
|
-
type: {
|
|
347
|
-
name: "Boolean"
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
preferredVanityNumbers: {
|
|
351
|
-
serializedName: "preferredVanityNumbers",
|
|
352
|
-
type: {
|
|
353
|
-
name: "Sequence",
|
|
354
|
-
element: {
|
|
355
|
-
type: {
|
|
356
|
-
name: "String"
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
numberType: {
|
|
362
|
-
serializedName: "numberType",
|
|
363
|
-
type: {
|
|
364
|
-
name: "String"
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
isPoliticalCampaign: {
|
|
368
|
-
serializedName: "isPoliticalCampaign",
|
|
369
|
-
type: {
|
|
370
|
-
name: "Boolean"
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
name: {
|
|
374
|
-
serializedName: "name",
|
|
375
|
-
type: {
|
|
376
|
-
name: "String"
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
description: {
|
|
380
|
-
serializedName: "description",
|
|
381
|
-
type: {
|
|
382
|
-
name: "String"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
url: {
|
|
386
|
-
serializedName: "url",
|
|
387
|
-
type: {
|
|
388
|
-
name: "String"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
callToActionTypes: {
|
|
392
|
-
serializedName: "callToActionTypes",
|
|
393
|
-
type: {
|
|
394
|
-
name: "Sequence",
|
|
395
|
-
element: {
|
|
396
|
-
type: {
|
|
397
|
-
name: "Enum",
|
|
398
|
-
allowedValues: [
|
|
399
|
-
"website",
|
|
400
|
-
"pointOfSale",
|
|
401
|
-
"sms",
|
|
402
|
-
"interactiveVoiceResponse"
|
|
403
|
-
]
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
callToActionUrl: {
|
|
409
|
-
serializedName: "callToActionUrl",
|
|
410
|
-
type: {
|
|
411
|
-
name: "String"
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
callToAction: {
|
|
415
|
-
serializedName: "callToAction",
|
|
416
|
-
type: {
|
|
417
|
-
name: "String"
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
termsOfServiceUrl: {
|
|
421
|
-
serializedName: "termsOfServiceUrl",
|
|
422
|
-
type: {
|
|
423
|
-
name: "String"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
privacyPolicyUrl: {
|
|
427
|
-
serializedName: "privacyPolicyUrl",
|
|
428
|
-
type: {
|
|
429
|
-
name: "String"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
expectedDateOfService: {
|
|
433
|
-
serializedName: "expectedDateOfService",
|
|
434
|
-
type: {
|
|
435
|
-
name: "DateTime"
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
const CompanyInformation = {
|
|
442
|
-
type: {
|
|
443
|
-
name: "Composite",
|
|
444
|
-
className: "CompanyInformation",
|
|
445
|
-
modelProperties: {
|
|
446
|
-
name: {
|
|
447
|
-
serializedName: "name",
|
|
448
|
-
type: {
|
|
449
|
-
name: "String"
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
url: {
|
|
453
|
-
serializedName: "url",
|
|
454
|
-
type: {
|
|
455
|
-
name: "String"
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
address: {
|
|
459
|
-
serializedName: "address",
|
|
460
|
-
type: {
|
|
461
|
-
name: "String"
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
contactInformation: {
|
|
465
|
-
serializedName: "contactInformation",
|
|
466
|
-
type: {
|
|
467
|
-
name: "Composite",
|
|
468
|
-
className: "ContactInformation"
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
customerCareInformation: {
|
|
472
|
-
serializedName: "customerCareInformation",
|
|
473
|
-
type: {
|
|
474
|
-
name: "Composite",
|
|
475
|
-
className: "CustomerCareInformation"
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
|
-
const ContactInformation = {
|
|
482
|
-
type: {
|
|
483
|
-
name: "Composite",
|
|
484
|
-
className: "ContactInformation",
|
|
485
|
-
modelProperties: {
|
|
486
|
-
name: {
|
|
487
|
-
serializedName: "name",
|
|
488
|
-
type: {
|
|
489
|
-
name: "String"
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
phone: {
|
|
493
|
-
serializedName: "phone",
|
|
494
|
-
type: {
|
|
495
|
-
name: "String"
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
email: {
|
|
499
|
-
serializedName: "email",
|
|
500
|
-
type: {
|
|
501
|
-
name: "String"
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
const CustomerCareInformation = {
|
|
508
|
-
type: {
|
|
509
|
-
name: "Composite",
|
|
510
|
-
className: "CustomerCareInformation",
|
|
511
|
-
modelProperties: {
|
|
512
|
-
tollFreeNumber: {
|
|
513
|
-
serializedName: "tollFreeNumber",
|
|
514
|
-
type: {
|
|
515
|
-
name: "String"
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
email: {
|
|
519
|
-
serializedName: "email",
|
|
520
|
-
type: {
|
|
521
|
-
name: "String"
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
const MessageDetails = {
|
|
528
|
-
type: {
|
|
529
|
-
name: "Composite",
|
|
530
|
-
className: "MessageDetails",
|
|
531
|
-
modelProperties: {
|
|
532
|
-
supportedProtocol: {
|
|
533
|
-
serializedName: "supportedProtocol",
|
|
534
|
-
type: {
|
|
535
|
-
name: "String"
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
recurrence: {
|
|
539
|
-
serializedName: "recurrence",
|
|
540
|
-
type: {
|
|
541
|
-
name: "String"
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
|
-
helpAnswerToUser: {
|
|
545
|
-
serializedName: "helpAnswerToUser",
|
|
546
|
-
type: {
|
|
547
|
-
name: "String"
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
optOutAnswerToUser: {
|
|
551
|
-
serializedName: "optOutAnswerToUser",
|
|
552
|
-
type: {
|
|
553
|
-
name: "String"
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
optInMessageToUser: {
|
|
557
|
-
serializedName: "optInMessageToUser",
|
|
558
|
-
type: {
|
|
559
|
-
name: "String"
|
|
560
|
-
}
|
|
561
|
-
},
|
|
562
|
-
optInAnswerFromUser: {
|
|
563
|
-
serializedName: "optInAnswerFromUser",
|
|
564
|
-
type: {
|
|
565
|
-
name: "String"
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
optInConfirmationMessageToUser: {
|
|
569
|
-
serializedName: "optInConfirmationMessageToUser",
|
|
570
|
-
type: {
|
|
571
|
-
name: "String"
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
directionality: {
|
|
575
|
-
serializedName: "directionality",
|
|
576
|
-
type: {
|
|
577
|
-
name: "String"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
useCases: {
|
|
581
|
-
serializedName: "useCases",
|
|
582
|
-
type: {
|
|
583
|
-
name: "Sequence",
|
|
584
|
-
element: {
|
|
585
|
-
type: {
|
|
586
|
-
name: "Composite",
|
|
587
|
-
className: "UseCase"
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
const UseCase = {
|
|
596
|
-
type: {
|
|
597
|
-
name: "Composite",
|
|
598
|
-
className: "UseCase",
|
|
599
|
-
modelProperties: {
|
|
600
|
-
contentType: {
|
|
601
|
-
serializedName: "contentType",
|
|
602
|
-
type: {
|
|
603
|
-
name: "String"
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
customContentType: {
|
|
607
|
-
serializedName: "customContentType",
|
|
608
|
-
type: {
|
|
609
|
-
name: "String"
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
examples: {
|
|
613
|
-
serializedName: "examples",
|
|
614
|
-
type: {
|
|
615
|
-
name: "Sequence",
|
|
616
|
-
element: {
|
|
617
|
-
type: {
|
|
618
|
-
name: "Composite",
|
|
619
|
-
className: "MessageExampleSequence"
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
const MessageExampleSequence = {
|
|
628
|
-
type: {
|
|
629
|
-
name: "Composite",
|
|
630
|
-
className: "MessageExampleSequence",
|
|
631
|
-
modelProperties: {
|
|
632
|
-
messages: {
|
|
633
|
-
serializedName: "messages",
|
|
634
|
-
type: {
|
|
635
|
-
name: "Sequence",
|
|
636
|
-
element: {
|
|
637
|
-
type: {
|
|
638
|
-
name: "Composite",
|
|
639
|
-
className: "MessageExample"
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
const MessageExample = {
|
|
648
|
-
type: {
|
|
649
|
-
name: "Composite",
|
|
650
|
-
className: "MessageExample",
|
|
651
|
-
modelProperties: {
|
|
652
|
-
direction: {
|
|
653
|
-
serializedName: "direction",
|
|
654
|
-
type: {
|
|
655
|
-
name: "String"
|
|
656
|
-
}
|
|
657
|
-
},
|
|
658
|
-
text: {
|
|
659
|
-
serializedName: "text",
|
|
660
|
-
type: {
|
|
661
|
-
name: "String"
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
const TrafficDetails = {
|
|
668
|
-
type: {
|
|
669
|
-
name: "Composite",
|
|
670
|
-
className: "TrafficDetails",
|
|
671
|
-
modelProperties: {
|
|
672
|
-
totalMonthlyVolume: {
|
|
673
|
-
constraints: {
|
|
674
|
-
InclusiveMaximum: 2147483647,
|
|
675
|
-
InclusiveMinimum: 0
|
|
676
|
-
},
|
|
677
|
-
serializedName: "totalMonthlyVolume",
|
|
678
|
-
type: {
|
|
679
|
-
name: "Number"
|
|
680
|
-
}
|
|
681
|
-
},
|
|
682
|
-
monthlyAverageMessagesFromUser: {
|
|
683
|
-
constraints: {
|
|
684
|
-
InclusiveMaximum: 2147483647,
|
|
685
|
-
InclusiveMinimum: 0
|
|
686
|
-
},
|
|
687
|
-
serializedName: "monthlyAverageMessagesFromUser",
|
|
688
|
-
type: {
|
|
689
|
-
name: "Number"
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
monthlyAverageMessagesToUser: {
|
|
693
|
-
constraints: {
|
|
694
|
-
InclusiveMaximum: 2147483647,
|
|
695
|
-
InclusiveMinimum: 0
|
|
696
|
-
},
|
|
697
|
-
serializedName: "monthlyAverageMessagesToUser",
|
|
698
|
-
type: {
|
|
699
|
-
name: "Number"
|
|
700
|
-
}
|
|
701
|
-
},
|
|
702
|
-
isSpiky: {
|
|
703
|
-
serializedName: "isSpiky",
|
|
704
|
-
type: {
|
|
705
|
-
name: "Boolean"
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
spikeDetails: {
|
|
709
|
-
serializedName: "spikeDetails",
|
|
710
|
-
type: {
|
|
711
|
-
name: "String"
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
estimatedRampUpTimeInDays: {
|
|
715
|
-
constraints: {
|
|
716
|
-
InclusiveMaximum: 2147483647,
|
|
717
|
-
InclusiveMinimum: 0
|
|
718
|
-
},
|
|
719
|
-
serializedName: "estimatedRampUpTimeInDays",
|
|
720
|
-
type: {
|
|
721
|
-
name: "Number"
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
const ProgramBriefAttachmentSummary = {
|
|
728
|
-
type: {
|
|
729
|
-
name: "Composite",
|
|
730
|
-
className: "ProgramBriefAttachmentSummary",
|
|
731
|
-
modelProperties: {
|
|
732
|
-
id: {
|
|
733
|
-
serializedName: "id",
|
|
734
|
-
type: {
|
|
735
|
-
name: "Uuid"
|
|
736
|
-
}
|
|
737
|
-
},
|
|
738
|
-
type: {
|
|
739
|
-
serializedName: "type",
|
|
740
|
-
type: {
|
|
741
|
-
name: "String"
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
fileName: {
|
|
745
|
-
serializedName: "fileName",
|
|
746
|
-
type: {
|
|
747
|
-
name: "String"
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
const USProgramBriefs = {
|
|
754
|
-
type: {
|
|
755
|
-
name: "Composite",
|
|
756
|
-
className: "USProgramBriefs",
|
|
757
|
-
modelProperties: {
|
|
758
|
-
programBriefs: {
|
|
759
|
-
serializedName: "programBriefs",
|
|
760
|
-
type: {
|
|
761
|
-
name: "Sequence",
|
|
762
|
-
element: {
|
|
763
|
-
type: {
|
|
764
|
-
name: "Composite",
|
|
765
|
-
className: "USProgramBrief"
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
nextLink: {
|
|
771
|
-
serializedName: "nextLink",
|
|
772
|
-
type: {
|
|
773
|
-
name: "String"
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
};
|
|
779
|
-
const ProgramBriefAttachment = {
|
|
780
|
-
type: {
|
|
781
|
-
name: "Composite",
|
|
782
|
-
className: "ProgramBriefAttachment",
|
|
783
|
-
modelProperties: {
|
|
784
|
-
id: {
|
|
785
|
-
serializedName: "id",
|
|
786
|
-
required: true,
|
|
787
|
-
type: {
|
|
788
|
-
name: "Uuid"
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
type: {
|
|
792
|
-
serializedName: "type",
|
|
793
|
-
required: true,
|
|
794
|
-
type: {
|
|
795
|
-
name: "String"
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
fileName: {
|
|
799
|
-
serializedName: "fileName",
|
|
800
|
-
required: true,
|
|
801
|
-
type: {
|
|
802
|
-
name: "String"
|
|
803
|
-
}
|
|
804
|
-
},
|
|
805
|
-
fileSizeInBytes: {
|
|
806
|
-
serializedName: "fileSizeInBytes",
|
|
807
|
-
type: {
|
|
808
|
-
name: "Number"
|
|
809
|
-
}
|
|
810
|
-
},
|
|
811
|
-
fileType: {
|
|
812
|
-
serializedName: "fileType",
|
|
813
|
-
required: true,
|
|
814
|
-
type: {
|
|
815
|
-
name: "String"
|
|
816
|
-
}
|
|
817
|
-
},
|
|
818
|
-
fileContentBase64: {
|
|
819
|
-
serializedName: "fileContentBase64",
|
|
820
|
-
required: true,
|
|
821
|
-
type: {
|
|
822
|
-
name: "String"
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
const ProgramBriefAttachments = {
|
|
829
|
-
type: {
|
|
830
|
-
name: "Composite",
|
|
831
|
-
className: "ProgramBriefAttachments",
|
|
832
|
-
modelProperties: {
|
|
833
|
-
attachments: {
|
|
834
|
-
serializedName: "attachments",
|
|
835
|
-
type: {
|
|
836
|
-
name: "Sequence",
|
|
837
|
-
element: {
|
|
838
|
-
type: {
|
|
839
|
-
name: "Composite",
|
|
840
|
-
className: "ProgramBriefAttachment"
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
nextLink: {
|
|
846
|
-
serializedName: "nextLink",
|
|
847
|
-
type: {
|
|
848
|
-
name: "String"
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
};
|
|
854
|
-
|
|
855
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
856
|
-
__proto__: null,
|
|
857
|
-
ShortCodes: ShortCodes,
|
|
858
|
-
ShortCode: ShortCode,
|
|
859
|
-
CommunicationErrorResponse: CommunicationErrorResponse,
|
|
860
|
-
CommunicationError: CommunicationError,
|
|
861
|
-
USProgramBrief: USProgramBrief,
|
|
862
|
-
ReviewNote: ReviewNote,
|
|
863
|
-
ShortCodeCost: ShortCodeCost,
|
|
864
|
-
ProgramDetails: ProgramDetails,
|
|
865
|
-
CompanyInformation: CompanyInformation,
|
|
866
|
-
ContactInformation: ContactInformation,
|
|
867
|
-
CustomerCareInformation: CustomerCareInformation,
|
|
868
|
-
MessageDetails: MessageDetails,
|
|
869
|
-
UseCase: UseCase,
|
|
870
|
-
MessageExampleSequence: MessageExampleSequence,
|
|
871
|
-
MessageExample: MessageExample,
|
|
872
|
-
TrafficDetails: TrafficDetails,
|
|
873
|
-
ProgramBriefAttachmentSummary: ProgramBriefAttachmentSummary,
|
|
874
|
-
USProgramBriefs: USProgramBriefs,
|
|
875
|
-
ProgramBriefAttachment: ProgramBriefAttachment,
|
|
876
|
-
ProgramBriefAttachments: ProgramBriefAttachments
|
|
877
|
-
});
|
|
878
|
-
|
|
879
|
-
/*
|
|
880
|
-
* Copyright (c) Microsoft Corporation.
|
|
881
|
-
* Licensed under the MIT License.
|
|
882
|
-
*
|
|
883
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
884
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
885
|
-
*/
|
|
886
|
-
const accept = {
|
|
887
|
-
parameterPath: "accept",
|
|
888
|
-
mapper: {
|
|
889
|
-
defaultValue: "application/json",
|
|
890
|
-
isConstant: true,
|
|
891
|
-
serializedName: "Accept",
|
|
892
|
-
type: {
|
|
893
|
-
name: "String"
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
const endpoint = {
|
|
898
|
-
parameterPath: "endpoint",
|
|
899
|
-
mapper: {
|
|
900
|
-
serializedName: "endpoint",
|
|
901
|
-
required: true,
|
|
902
|
-
type: {
|
|
903
|
-
name: "String"
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
skipEncoding: true
|
|
907
|
-
};
|
|
908
|
-
const skip = {
|
|
909
|
-
parameterPath: ["options", "skip"],
|
|
910
|
-
mapper: {
|
|
911
|
-
defaultValue: 0,
|
|
912
|
-
serializedName: "skip",
|
|
913
|
-
type: {
|
|
914
|
-
name: "Number"
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
const top = {
|
|
919
|
-
parameterPath: ["options", "top"],
|
|
920
|
-
mapper: {
|
|
921
|
-
defaultValue: 100,
|
|
922
|
-
serializedName: "top",
|
|
923
|
-
type: {
|
|
924
|
-
name: "Number"
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
};
|
|
928
|
-
const apiVersion = {
|
|
929
|
-
parameterPath: "apiVersion",
|
|
930
|
-
mapper: {
|
|
931
|
-
defaultValue: "2022-09-06",
|
|
932
|
-
isConstant: true,
|
|
933
|
-
serializedName: "api-version",
|
|
934
|
-
type: {
|
|
935
|
-
name: "String"
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
};
|
|
939
|
-
const contentType = {
|
|
940
|
-
parameterPath: ["options", "contentType"],
|
|
941
|
-
mapper: {
|
|
942
|
-
defaultValue: "application/merge-patch+json",
|
|
943
|
-
isConstant: true,
|
|
944
|
-
serializedName: "Content-Type",
|
|
945
|
-
type: {
|
|
946
|
-
name: "String"
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
|
-
const body = {
|
|
951
|
-
parameterPath: ["options", "body"],
|
|
952
|
-
mapper: USProgramBrief
|
|
953
|
-
};
|
|
954
|
-
const programBriefId = {
|
|
955
|
-
parameterPath: "programBriefId",
|
|
956
|
-
mapper: {
|
|
957
|
-
serializedName: "programBriefId",
|
|
958
|
-
required: true,
|
|
959
|
-
type: {
|
|
960
|
-
name: "Uuid"
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
const contentType1 = {
|
|
965
|
-
parameterPath: ["options", "contentType"],
|
|
966
|
-
mapper: {
|
|
967
|
-
defaultValue: "application/json",
|
|
968
|
-
isConstant: true,
|
|
969
|
-
serializedName: "Content-Type",
|
|
970
|
-
type: {
|
|
971
|
-
name: "String"
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
const attachmentId = {
|
|
976
|
-
parameterPath: "attachmentId",
|
|
977
|
-
mapper: {
|
|
978
|
-
serializedName: "attachmentId",
|
|
979
|
-
required: true,
|
|
980
|
-
type: {
|
|
981
|
-
name: "Uuid"
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
const nextLink = {
|
|
986
|
-
parameterPath: "nextLink",
|
|
987
|
-
mapper: {
|
|
988
|
-
serializedName: "nextLink",
|
|
989
|
-
required: true,
|
|
990
|
-
type: {
|
|
991
|
-
name: "String"
|
|
992
|
-
}
|
|
993
|
-
},
|
|
994
|
-
skipEncoding: true
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
/*
|
|
998
|
-
* Copyright (c) Microsoft Corporation.
|
|
999
|
-
* Licensed under the MIT License.
|
|
1000
|
-
*
|
|
1001
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1002
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1003
|
-
*/
|
|
1004
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1005
|
-
/** Class containing ShortCodesOperations operations. */
|
|
1006
|
-
class ShortCodesOperationsImpl {
|
|
1007
|
-
/**
|
|
1008
|
-
* Initialize a new instance of the class ShortCodesOperations class.
|
|
1009
|
-
* @param client Reference to the service client
|
|
1010
|
-
*/
|
|
1011
|
-
constructor(client) {
|
|
1012
|
-
this.client = client;
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* Gets the list of short codes for the current resource.
|
|
1016
|
-
* @param options The options parameters.
|
|
1017
|
-
*/
|
|
1018
|
-
listShortCodes(options) {
|
|
1019
|
-
const iter = this.getShortCodesPagingAll(options);
|
|
1020
|
-
return {
|
|
1021
|
-
next() {
|
|
1022
|
-
return iter.next();
|
|
1023
|
-
},
|
|
1024
|
-
[Symbol.asyncIterator]() {
|
|
1025
|
-
return this;
|
|
1026
|
-
},
|
|
1027
|
-
byPage: () => {
|
|
1028
|
-
return this.getShortCodesPagingPage(options);
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
getShortCodesPagingPage(options) {
|
|
1033
|
-
return tslib.__asyncGenerator(this, arguments, function* getShortCodesPagingPage_1() {
|
|
1034
|
-
let result = yield tslib.__await(this._getShortCodes(options));
|
|
1035
|
-
yield yield tslib.__await(result.shortCodes || []);
|
|
1036
|
-
let continuationToken = result.nextLink;
|
|
1037
|
-
while (continuationToken) {
|
|
1038
|
-
result = yield tslib.__await(this._getShortCodesNext(continuationToken, options));
|
|
1039
|
-
continuationToken = result.nextLink;
|
|
1040
|
-
yield yield tslib.__await(result.shortCodes || []);
|
|
1041
|
-
}
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
getShortCodesPagingAll(options) {
|
|
1045
|
-
return tslib.__asyncGenerator(this, arguments, function* getShortCodesPagingAll_1() {
|
|
1046
|
-
var e_1, _a;
|
|
1047
|
-
try {
|
|
1048
|
-
for (var _b = tslib.__asyncValues(this.getShortCodesPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1049
|
-
const page = _c.value;
|
|
1050
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1054
|
-
finally {
|
|
1055
|
-
try {
|
|
1056
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1057
|
-
}
|
|
1058
|
-
finally { if (e_1) throw e_1.error; }
|
|
1059
|
-
}
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Gets the list of US Program Briefs for the current resource.
|
|
1064
|
-
* @param options The options parameters.
|
|
1065
|
-
*/
|
|
1066
|
-
listUSProgramBriefs(options) {
|
|
1067
|
-
const iter = this.getUSProgramBriefsPagingAll(options);
|
|
1068
|
-
return {
|
|
1069
|
-
next() {
|
|
1070
|
-
return iter.next();
|
|
1071
|
-
},
|
|
1072
|
-
[Symbol.asyncIterator]() {
|
|
1073
|
-
return this;
|
|
1074
|
-
},
|
|
1075
|
-
byPage: () => {
|
|
1076
|
-
return this.getUSProgramBriefsPagingPage(options);
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
|
-
}
|
|
1080
|
-
getUSProgramBriefsPagingPage(options) {
|
|
1081
|
-
return tslib.__asyncGenerator(this, arguments, function* getUSProgramBriefsPagingPage_1() {
|
|
1082
|
-
let result = yield tslib.__await(this._getUSProgramBriefs(options));
|
|
1083
|
-
yield yield tslib.__await(result.programBriefs || []);
|
|
1084
|
-
let continuationToken = result.nextLink;
|
|
1085
|
-
while (continuationToken) {
|
|
1086
|
-
result = yield tslib.__await(this._getUSProgramBriefsNext(continuationToken, options));
|
|
1087
|
-
continuationToken = result.nextLink;
|
|
1088
|
-
yield yield tslib.__await(result.programBriefs || []);
|
|
1089
|
-
}
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
getUSProgramBriefsPagingAll(options) {
|
|
1093
|
-
return tslib.__asyncGenerator(this, arguments, function* getUSProgramBriefsPagingAll_1() {
|
|
1094
|
-
var e_2, _a;
|
|
1095
|
-
try {
|
|
1096
|
-
for (var _b = tslib.__asyncValues(this.getUSProgramBriefsPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1097
|
-
const page = _c.value;
|
|
1098
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1102
|
-
finally {
|
|
1103
|
-
try {
|
|
1104
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1105
|
-
}
|
|
1106
|
-
finally { if (e_2) throw e_2.error; }
|
|
1107
|
-
}
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
/**
|
|
1111
|
-
* Gets the list of attachments from a US Program Brief.
|
|
1112
|
-
* @param programBriefId
|
|
1113
|
-
* @param options The options parameters.
|
|
1114
|
-
*/
|
|
1115
|
-
listUSProgramBriefAttachments(programBriefId, options) {
|
|
1116
|
-
const iter = this.getUSProgramBriefAttachmentsPagingAll(programBriefId, options);
|
|
1117
|
-
return {
|
|
1118
|
-
next() {
|
|
1119
|
-
return iter.next();
|
|
1120
|
-
},
|
|
1121
|
-
[Symbol.asyncIterator]() {
|
|
1122
|
-
return this;
|
|
1123
|
-
},
|
|
1124
|
-
byPage: () => {
|
|
1125
|
-
return this.getUSProgramBriefAttachmentsPagingPage(programBriefId, options);
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
getUSProgramBriefAttachmentsPagingPage(programBriefId, options) {
|
|
1130
|
-
return tslib.__asyncGenerator(this, arguments, function* getUSProgramBriefAttachmentsPagingPage_1() {
|
|
1131
|
-
let result = yield tslib.__await(this._getUSProgramBriefAttachments(programBriefId, options));
|
|
1132
|
-
yield yield tslib.__await(result.attachments || []);
|
|
1133
|
-
let continuationToken = result.nextLink;
|
|
1134
|
-
while (continuationToken) {
|
|
1135
|
-
result = yield tslib.__await(this._getUSProgramBriefAttachmentsNext(programBriefId, continuationToken, options));
|
|
1136
|
-
continuationToken = result.nextLink;
|
|
1137
|
-
yield yield tslib.__await(result.attachments || []);
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
getUSProgramBriefAttachmentsPagingAll(programBriefId, options) {
|
|
1142
|
-
return tslib.__asyncGenerator(this, arguments, function* getUSProgramBriefAttachmentsPagingAll_1() {
|
|
1143
|
-
var e_3, _a;
|
|
1144
|
-
try {
|
|
1145
|
-
for (var _b = tslib.__asyncValues(this.getUSProgramBriefAttachmentsPagingPage(programBriefId, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1146
|
-
const page = _c.value;
|
|
1147
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1151
|
-
finally {
|
|
1152
|
-
try {
|
|
1153
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1154
|
-
}
|
|
1155
|
-
finally { if (e_3) throw e_3.error; }
|
|
1156
|
-
}
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
/**
|
|
1160
|
-
* Gets the list of short codes for the current resource.
|
|
1161
|
-
* @param options The options parameters.
|
|
1162
|
-
*/
|
|
1163
|
-
async _getShortCodes(options) {
|
|
1164
|
-
return tracingClient.withSpan("ShortCodesClient._getShortCodes", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1165
|
-
return this.client.sendOperationRequest({ options }, getShortCodesOperationSpec);
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* Creates or updates a US Program Brief.
|
|
1170
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1171
|
-
* @param options The options parameters.
|
|
1172
|
-
*/
|
|
1173
|
-
async upsertUSProgramBrief(programBriefId, options) {
|
|
1174
|
-
return tracingClient.withSpan("ShortCodesClient.upsertUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1175
|
-
return this.client.sendOperationRequest({ programBriefId, options }, upsertUSProgramBriefOperationSpec);
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
/**
|
|
1179
|
-
* Deletes a US Program Brief.
|
|
1180
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1181
|
-
* @param options The options parameters.
|
|
1182
|
-
*/
|
|
1183
|
-
async deleteUSProgramBrief(programBriefId, options) {
|
|
1184
|
-
return tracingClient.withSpan("ShortCodesClient.deleteUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1185
|
-
return this.client.sendOperationRequest({ programBriefId, options }, deleteUSProgramBriefOperationSpec);
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
/**
|
|
1189
|
-
* Get a US Program Brief by id.
|
|
1190
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1191
|
-
* @param options The options parameters.
|
|
1192
|
-
*/
|
|
1193
|
-
async getUSProgramBrief(programBriefId, options) {
|
|
1194
|
-
return tracingClient.withSpan("ShortCodesClient.getUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1195
|
-
return this.client.sendOperationRequest({ programBriefId, options }, getUSProgramBriefOperationSpec);
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
/**
|
|
1199
|
-
* Submits a US Program Brief for review.
|
|
1200
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1201
|
-
* @param options The options parameters.
|
|
1202
|
-
*/
|
|
1203
|
-
async submitUSProgramBrief(programBriefId, options) {
|
|
1204
|
-
return tracingClient.withSpan("ShortCodesClient.submitUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1205
|
-
return this.client.sendOperationRequest({ programBriefId, options }, submitUSProgramBriefOperationSpec);
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
* Gets the list of US Program Briefs for the current resource.
|
|
1210
|
-
* @param options The options parameters.
|
|
1211
|
-
*/
|
|
1212
|
-
async _getUSProgramBriefs(options) {
|
|
1213
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefs", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1214
|
-
return this.client.sendOperationRequest({ options }, getUSProgramBriefsOperationSpec);
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
/**
|
|
1218
|
-
* Creates or replace an attachment on a US Program Brief.
|
|
1219
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1220
|
-
* @param attachmentId Attachment Id. Must be a valid GUID
|
|
1221
|
-
* @param id Program Brief Attachment Id.
|
|
1222
|
-
* @param fileName The name of the file being attached
|
|
1223
|
-
* e.g. 'myFile01'
|
|
1224
|
-
* @param fileType The type of file being attached
|
|
1225
|
-
* e.g. 'pdf', 'jpg', 'png'
|
|
1226
|
-
* @param fileContentBase64 File content as base 64 encoded string
|
|
1227
|
-
* @param type Attachment type describing the purpose of the attachment
|
|
1228
|
-
* e.g. 'callToAction', 'termsOfService'
|
|
1229
|
-
* @param options The options parameters.
|
|
1230
|
-
*/
|
|
1231
|
-
async createOrReplaceUSProgramBriefAttachment(programBriefId, attachmentId, id, fileName, fileType, fileContentBase64, type, options) {
|
|
1232
|
-
return tracingClient.withSpan("ShortCodesClient.createOrReplaceUSProgramBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1233
|
-
return this.client.sendOperationRequest({
|
|
1234
|
-
programBriefId,
|
|
1235
|
-
attachmentId,
|
|
1236
|
-
id,
|
|
1237
|
-
fileName,
|
|
1238
|
-
fileType,
|
|
1239
|
-
fileContentBase64,
|
|
1240
|
-
type,
|
|
1241
|
-
options
|
|
1242
|
-
}, createOrReplaceUSProgramBriefAttachmentOperationSpec);
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* Gets a specific an attachment from a US Program Brief.
|
|
1247
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1248
|
-
* @param attachmentId Attachment Id. Must be a valid GUID
|
|
1249
|
-
* @param options The options parameters.
|
|
1250
|
-
*/
|
|
1251
|
-
async getUSProgramBriefAttachment(programBriefId, attachmentId, options) {
|
|
1252
|
-
return tracingClient.withSpan("ShortCodesClient.getUSProgramBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1253
|
-
return this.client.sendOperationRequest({ programBriefId, attachmentId, options }, getUSProgramBriefAttachmentOperationSpec);
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
/**
|
|
1257
|
-
* Deletes a specific attachment from a US Program Brief.
|
|
1258
|
-
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
1259
|
-
* @param attachmentId Attachment Id. Must be a valid GUID
|
|
1260
|
-
* @param options The options parameters.
|
|
1261
|
-
*/
|
|
1262
|
-
async deleteUSProgramBriefAttachment(programBriefId, attachmentId, options) {
|
|
1263
|
-
return tracingClient.withSpan("ShortCodesClient.deleteUSProgramBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1264
|
-
return this.client.sendOperationRequest({ programBriefId, attachmentId, options }, deleteUSProgramBriefAttachmentOperationSpec);
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
/**
|
|
1268
|
-
* Gets the list of attachments from a US Program Brief.
|
|
1269
|
-
* @param programBriefId
|
|
1270
|
-
* @param options The options parameters.
|
|
1271
|
-
*/
|
|
1272
|
-
async _getUSProgramBriefAttachments(programBriefId, options) {
|
|
1273
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefAttachments", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1274
|
-
return this.client.sendOperationRequest({ programBriefId, options }, getUSProgramBriefAttachmentsOperationSpec);
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* GetShortCodesNext
|
|
1279
|
-
* @param nextLink The nextLink from the previous successful call to the GetShortCodes method.
|
|
1280
|
-
* @param options The options parameters.
|
|
1281
|
-
*/
|
|
1282
|
-
async _getShortCodesNext(nextLink, options) {
|
|
1283
|
-
return tracingClient.withSpan("ShortCodesClient._getShortCodesNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1284
|
-
return this.client.sendOperationRequest({ nextLink, options }, getShortCodesNextOperationSpec);
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
/**
|
|
1288
|
-
* GetUSProgramBriefsNext
|
|
1289
|
-
* @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefs method.
|
|
1290
|
-
* @param options The options parameters.
|
|
1291
|
-
*/
|
|
1292
|
-
async _getUSProgramBriefsNext(nextLink, options) {
|
|
1293
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1294
|
-
return this.client.sendOperationRequest({ nextLink, options }, getUSProgramBriefsNextOperationSpec);
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* GetUSProgramBriefAttachmentsNext
|
|
1299
|
-
* @param programBriefId
|
|
1300
|
-
* @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefAttachments
|
|
1301
|
-
* method.
|
|
1302
|
-
* @param options The options parameters.
|
|
1303
|
-
*/
|
|
1304
|
-
async _getUSProgramBriefAttachmentsNext(programBriefId, nextLink, options) {
|
|
1305
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefAttachmentsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
1306
|
-
return this.client.sendOperationRequest({ programBriefId, nextLink, options }, getUSProgramBriefAttachmentsNextOperationSpec);
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
// Operation Specifications
|
|
1311
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1312
|
-
const getShortCodesOperationSpec = {
|
|
1313
|
-
path: "/shortCodes",
|
|
1314
|
-
httpMethod: "GET",
|
|
1315
|
-
responses: {
|
|
1316
|
-
200: {
|
|
1317
|
-
bodyMapper: ShortCodes
|
|
1318
|
-
},
|
|
1319
|
-
default: {
|
|
1320
|
-
bodyMapper: CommunicationErrorResponse
|
|
1321
|
-
}
|
|
1322
|
-
},
|
|
1323
|
-
queryParameters: [skip, top, apiVersion],
|
|
1324
|
-
urlParameters: [endpoint],
|
|
1325
|
-
headerParameters: [accept],
|
|
1326
|
-
serializer
|
|
1327
|
-
};
|
|
1328
|
-
const upsertUSProgramBriefOperationSpec = {
|
|
1329
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}",
|
|
1330
|
-
httpMethod: "PATCH",
|
|
1331
|
-
responses: {
|
|
1332
|
-
200: {
|
|
1333
|
-
bodyMapper: USProgramBrief
|
|
1334
|
-
},
|
|
1335
|
-
201: {
|
|
1336
|
-
bodyMapper: USProgramBrief
|
|
1337
|
-
},
|
|
1338
|
-
default: {
|
|
1339
|
-
bodyMapper: CommunicationErrorResponse
|
|
1340
|
-
}
|
|
1341
|
-
},
|
|
1342
|
-
requestBody: body,
|
|
1343
|
-
queryParameters: [apiVersion],
|
|
1344
|
-
urlParameters: [endpoint, programBriefId],
|
|
1345
|
-
headerParameters: [accept, contentType],
|
|
1346
|
-
mediaType: "json",
|
|
1347
|
-
serializer
|
|
1348
|
-
};
|
|
1349
|
-
const deleteUSProgramBriefOperationSpec = {
|
|
1350
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}",
|
|
1351
|
-
httpMethod: "DELETE",
|
|
1352
|
-
responses: {
|
|
1353
|
-
204: {},
|
|
1354
|
-
default: {
|
|
1355
|
-
bodyMapper: CommunicationErrorResponse
|
|
1356
|
-
}
|
|
1357
|
-
},
|
|
1358
|
-
queryParameters: [apiVersion],
|
|
1359
|
-
urlParameters: [endpoint, programBriefId],
|
|
1360
|
-
headerParameters: [accept],
|
|
1361
|
-
serializer
|
|
1362
|
-
};
|
|
1363
|
-
const getUSProgramBriefOperationSpec = {
|
|
1364
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}",
|
|
1365
|
-
httpMethod: "GET",
|
|
1366
|
-
responses: {
|
|
1367
|
-
200: {
|
|
1368
|
-
bodyMapper: USProgramBrief
|
|
1369
|
-
},
|
|
1370
|
-
default: {
|
|
1371
|
-
bodyMapper: CommunicationErrorResponse
|
|
1372
|
-
}
|
|
1373
|
-
},
|
|
1374
|
-
queryParameters: [apiVersion],
|
|
1375
|
-
urlParameters: [endpoint, programBriefId],
|
|
1376
|
-
headerParameters: [accept],
|
|
1377
|
-
serializer
|
|
1378
|
-
};
|
|
1379
|
-
const submitUSProgramBriefOperationSpec = {
|
|
1380
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}/:submit",
|
|
1381
|
-
httpMethod: "POST",
|
|
1382
|
-
responses: {
|
|
1383
|
-
200: {
|
|
1384
|
-
bodyMapper: USProgramBrief
|
|
1385
|
-
},
|
|
1386
|
-
default: {
|
|
1387
|
-
bodyMapper: CommunicationErrorResponse
|
|
1388
|
-
}
|
|
1389
|
-
},
|
|
1390
|
-
queryParameters: [apiVersion],
|
|
1391
|
-
urlParameters: [endpoint, programBriefId],
|
|
1392
|
-
headerParameters: [accept],
|
|
1393
|
-
serializer
|
|
1394
|
-
};
|
|
1395
|
-
const getUSProgramBriefsOperationSpec = {
|
|
1396
|
-
path: "/shortCodes/countries/US/programBriefs",
|
|
1397
|
-
httpMethod: "GET",
|
|
1398
|
-
responses: {
|
|
1399
|
-
200: {
|
|
1400
|
-
bodyMapper: USProgramBriefs
|
|
1401
|
-
},
|
|
1402
|
-
default: {
|
|
1403
|
-
bodyMapper: CommunicationErrorResponse
|
|
1404
|
-
}
|
|
1405
|
-
},
|
|
1406
|
-
queryParameters: [skip, top, apiVersion],
|
|
1407
|
-
urlParameters: [endpoint],
|
|
1408
|
-
headerParameters: [accept],
|
|
1409
|
-
serializer
|
|
1410
|
-
};
|
|
1411
|
-
const createOrReplaceUSProgramBriefAttachmentOperationSpec = {
|
|
1412
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}",
|
|
1413
|
-
httpMethod: "PUT",
|
|
1414
|
-
responses: {
|
|
1415
|
-
200: {
|
|
1416
|
-
bodyMapper: ProgramBriefAttachment
|
|
1417
|
-
},
|
|
1418
|
-
201: {
|
|
1419
|
-
bodyMapper: ProgramBriefAttachment
|
|
1420
|
-
},
|
|
1421
|
-
default: {
|
|
1422
|
-
bodyMapper: CommunicationErrorResponse
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
requestBody: {
|
|
1426
|
-
parameterPath: {
|
|
1427
|
-
id: ["id"],
|
|
1428
|
-
type: ["type"],
|
|
1429
|
-
fileName: ["fileName"],
|
|
1430
|
-
fileSizeInBytes: ["options", "fileSizeInBytes"],
|
|
1431
|
-
fileType: ["fileType"],
|
|
1432
|
-
fileContentBase64: ["fileContentBase64"]
|
|
1433
|
-
},
|
|
1434
|
-
mapper: Object.assign(Object.assign({}, ProgramBriefAttachment), { required: true })
|
|
1435
|
-
},
|
|
1436
|
-
queryParameters: [apiVersion],
|
|
1437
|
-
urlParameters: [
|
|
1438
|
-
endpoint,
|
|
1439
|
-
programBriefId,
|
|
1440
|
-
attachmentId
|
|
1441
|
-
],
|
|
1442
|
-
headerParameters: [accept, contentType1],
|
|
1443
|
-
mediaType: "json",
|
|
1444
|
-
serializer
|
|
1445
|
-
};
|
|
1446
|
-
const getUSProgramBriefAttachmentOperationSpec = {
|
|
1447
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}",
|
|
1448
|
-
httpMethod: "GET",
|
|
1449
|
-
responses: {
|
|
1450
|
-
200: {
|
|
1451
|
-
bodyMapper: ProgramBriefAttachment
|
|
1452
|
-
},
|
|
1453
|
-
default: {
|
|
1454
|
-
bodyMapper: CommunicationErrorResponse
|
|
1455
|
-
}
|
|
1456
|
-
},
|
|
1457
|
-
queryParameters: [apiVersion],
|
|
1458
|
-
urlParameters: [
|
|
1459
|
-
endpoint,
|
|
1460
|
-
programBriefId,
|
|
1461
|
-
attachmentId
|
|
1462
|
-
],
|
|
1463
|
-
headerParameters: [accept],
|
|
1464
|
-
serializer
|
|
1465
|
-
};
|
|
1466
|
-
const deleteUSProgramBriefAttachmentOperationSpec = {
|
|
1467
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}",
|
|
1468
|
-
httpMethod: "DELETE",
|
|
1469
|
-
responses: {
|
|
1470
|
-
204: {},
|
|
1471
|
-
default: {
|
|
1472
|
-
bodyMapper: CommunicationErrorResponse
|
|
1473
|
-
}
|
|
1474
|
-
},
|
|
1475
|
-
queryParameters: [apiVersion],
|
|
1476
|
-
urlParameters: [
|
|
1477
|
-
endpoint,
|
|
1478
|
-
programBriefId,
|
|
1479
|
-
attachmentId
|
|
1480
|
-
],
|
|
1481
|
-
headerParameters: [accept],
|
|
1482
|
-
serializer
|
|
1483
|
-
};
|
|
1484
|
-
const getUSProgramBriefAttachmentsOperationSpec = {
|
|
1485
|
-
path: "/shortCodes/countries/US/programBriefs/{programBriefId}/attachments",
|
|
1486
|
-
httpMethod: "GET",
|
|
1487
|
-
responses: {
|
|
1488
|
-
200: {
|
|
1489
|
-
bodyMapper: ProgramBriefAttachments
|
|
1490
|
-
},
|
|
1491
|
-
default: {
|
|
1492
|
-
bodyMapper: CommunicationErrorResponse
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
queryParameters: [skip, top, apiVersion],
|
|
1496
|
-
urlParameters: [endpoint, programBriefId],
|
|
1497
|
-
headerParameters: [accept],
|
|
1498
|
-
serializer
|
|
1499
|
-
};
|
|
1500
|
-
const getShortCodesNextOperationSpec = {
|
|
1501
|
-
path: "{nextLink}",
|
|
1502
|
-
httpMethod: "GET",
|
|
1503
|
-
responses: {
|
|
1504
|
-
200: {
|
|
1505
|
-
bodyMapper: ShortCodes
|
|
1506
|
-
},
|
|
1507
|
-
default: {
|
|
1508
|
-
bodyMapper: CommunicationErrorResponse
|
|
1509
|
-
}
|
|
1510
|
-
},
|
|
1511
|
-
queryParameters: [skip, top, apiVersion],
|
|
1512
|
-
urlParameters: [endpoint, nextLink],
|
|
1513
|
-
headerParameters: [accept],
|
|
1514
|
-
serializer
|
|
1515
|
-
};
|
|
1516
|
-
const getUSProgramBriefsNextOperationSpec = {
|
|
1517
|
-
path: "{nextLink}",
|
|
1518
|
-
httpMethod: "GET",
|
|
1519
|
-
responses: {
|
|
1520
|
-
200: {
|
|
1521
|
-
bodyMapper: USProgramBriefs
|
|
1522
|
-
},
|
|
1523
|
-
default: {
|
|
1524
|
-
bodyMapper: CommunicationErrorResponse
|
|
1525
|
-
}
|
|
1526
|
-
},
|
|
1527
|
-
queryParameters: [skip, top, apiVersion],
|
|
1528
|
-
urlParameters: [endpoint, nextLink],
|
|
1529
|
-
headerParameters: [accept],
|
|
1530
|
-
serializer
|
|
1531
|
-
};
|
|
1532
|
-
const getUSProgramBriefAttachmentsNextOperationSpec = {
|
|
1533
|
-
path: "{nextLink}",
|
|
1534
|
-
httpMethod: "GET",
|
|
1535
|
-
responses: {
|
|
1536
|
-
200: {
|
|
1537
|
-
bodyMapper: ProgramBriefAttachments
|
|
1538
|
-
},
|
|
1539
|
-
default: {
|
|
1540
|
-
bodyMapper: CommunicationErrorResponse
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
queryParameters: [skip, top, apiVersion],
|
|
1544
|
-
urlParameters: [
|
|
1545
|
-
endpoint,
|
|
1546
|
-
programBriefId,
|
|
1547
|
-
nextLink
|
|
1548
|
-
],
|
|
1549
|
-
headerParameters: [accept],
|
|
1550
|
-
serializer
|
|
1551
|
-
};
|
|
1552
|
-
|
|
1553
|
-
/*
|
|
1554
|
-
* Copyright (c) Microsoft Corporation.
|
|
1555
|
-
* Licensed under the MIT License.
|
|
1556
|
-
*
|
|
1557
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1558
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1559
|
-
*/
|
|
1560
|
-
class ShortCodesClient$1 extends coreClient__namespace.ServiceClient {
|
|
1561
|
-
/**
|
|
1562
|
-
* Initializes a new instance of the ShortCodesClient class.
|
|
1563
|
-
* @param endpoint The communication resource, for example https://resourcename.communication.azure.com
|
|
1564
|
-
* @param options The parameter options
|
|
1565
|
-
*/
|
|
1566
|
-
constructor(endpoint, options) {
|
|
1567
|
-
var _a, _b;
|
|
1568
|
-
if (endpoint === undefined) {
|
|
1569
|
-
throw new Error("'endpoint' cannot be null");
|
|
1570
|
-
}
|
|
1571
|
-
// Initializing default values for options
|
|
1572
|
-
if (!options) {
|
|
1573
|
-
options = {};
|
|
1574
|
-
}
|
|
1575
|
-
const defaults = {
|
|
1576
|
-
requestContentType: "application/json; charset=utf-8"
|
|
1577
|
-
};
|
|
1578
|
-
const packageDetails = `azsdk-js-communication-short-codes/1.0.0-beta.4`;
|
|
1579
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1580
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1581
|
-
: `${packageDetails}`;
|
|
1582
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1583
|
-
userAgentPrefix
|
|
1584
|
-
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
|
1585
|
-
super(optionsWithDefaults);
|
|
1586
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1587
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1588
|
-
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1589
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1590
|
-
if (!bearerTokenAuthenticationPolicyFound) {
|
|
1591
|
-
this.pipeline.removePolicy({
|
|
1592
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1593
|
-
});
|
|
1594
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1595
|
-
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
1596
|
-
challengeCallbacks: {
|
|
1597
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1598
|
-
}
|
|
1599
|
-
}));
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
// Parameter assignments
|
|
1603
|
-
this.endpoint = endpoint;
|
|
1604
|
-
// Assigning values to Constant parameters
|
|
1605
|
-
this.apiVersion = options.apiVersion || "2022-09-06";
|
|
1606
|
-
this.shortCodesOperations = new ShortCodesOperationsImpl(this);
|
|
1607
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1608
|
-
}
|
|
1609
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1610
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1611
|
-
if (!apiVersion) {
|
|
1612
|
-
return;
|
|
1613
|
-
}
|
|
1614
|
-
const apiVersionPolicy = {
|
|
1615
|
-
name: "CustomApiVersionPolicy",
|
|
1616
|
-
async sendRequest(request, next) {
|
|
1617
|
-
const param = request.url.split("?");
|
|
1618
|
-
if (param.length > 1) {
|
|
1619
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1620
|
-
if (item.indexOf("api-version") > -1) {
|
|
1621
|
-
return "api-version=" + apiVersion;
|
|
1622
|
-
}
|
|
1623
|
-
else {
|
|
1624
|
-
return item;
|
|
1625
|
-
}
|
|
1626
|
-
});
|
|
1627
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1628
|
-
}
|
|
1629
|
-
return next(request);
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
// Copyright (c) Microsoft Corporation.
|
|
1637
|
-
/**
|
|
1638
|
-
* The \@azure\/logger configuration for this package.
|
|
1639
|
-
*/
|
|
1640
|
-
const logger = logger$1.createClientLogger("communication-short-codes");
|
|
1641
|
-
|
|
1642
|
-
// Copyright (c) Microsoft Corporation.
|
|
1643
|
-
const isShortCodesClientOptions = (options) => options && !communicationCommon.isKeyCredential(options) && !coreAuth.isTokenCredential(options);
|
|
1644
|
-
class ShortCodesClient {
|
|
1645
|
-
constructor(connectionStringOrUrl, credentialOrOptions, maybeOptions = {}) {
|
|
1646
|
-
const { url, credential } = communicationCommon.parseClientArguments(connectionStringOrUrl, credentialOrOptions);
|
|
1647
|
-
const options = isShortCodesClientOptions(credentialOrOptions)
|
|
1648
|
-
? credentialOrOptions
|
|
1649
|
-
: maybeOptions;
|
|
1650
|
-
const internalPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
1651
|
-
loggingOptions: {
|
|
1652
|
-
logger: logger.info,
|
|
1653
|
-
},
|
|
1654
|
-
});
|
|
1655
|
-
this.client = new ShortCodesClient$1(url, internalPipelineOptions);
|
|
1656
|
-
const authPolicy = communicationCommon.createCommunicationAuthPolicy(credential);
|
|
1657
|
-
this.client.pipeline.addPolicy(authPolicy);
|
|
1658
|
-
}
|
|
1659
|
-
listShortCodes(options = {}) {
|
|
1660
|
-
const { span, updatedOptions } = tracingClient.startSpan("ShortCodesClient-listShortCodes", options);
|
|
1661
|
-
try {
|
|
1662
|
-
return this.client.shortCodesOperations.listShortCodes(updatedOptions);
|
|
1663
|
-
}
|
|
1664
|
-
catch (e) {
|
|
1665
|
-
span.setStatus({
|
|
1666
|
-
status: "error",
|
|
1667
|
-
error: e,
|
|
1668
|
-
});
|
|
1669
|
-
throw e;
|
|
1670
|
-
}
|
|
1671
|
-
finally {
|
|
1672
|
-
span.end();
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
upsertUSProgramBrief(programBriefId, options = {}) {
|
|
1676
|
-
return tracingClient.withSpan("ShortCodesClient-upsertUSProgramBrief", options, (updatedOptions) => {
|
|
1677
|
-
return this.client.shortCodesOperations.upsertUSProgramBrief(programBriefId, updatedOptions);
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
deleteUSProgramBrief(programBriefId, options = {}) {
|
|
1681
|
-
return tracingClient.withSpan("ShortCodesClient-deleteUSProgramBrief", options, (updatedOptions) => {
|
|
1682
|
-
return this.client.shortCodesOperations.deleteUSProgramBrief(programBriefId, updatedOptions);
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
getUSProgramBrief(programBriefId, options = {}) {
|
|
1686
|
-
return tracingClient.withSpan("ShortCodesClient-getUSProgramBrief", options, (updatedOptions) => {
|
|
1687
|
-
return this.client.shortCodesOperations.getUSProgramBrief(programBriefId, updatedOptions);
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
listUSProgramBriefs(options = {}) {
|
|
1691
|
-
const { span, updatedOptions } = tracingClient.startSpan("ShortCodesClient-listUSProgramBriefs", options);
|
|
1692
|
-
try {
|
|
1693
|
-
return this.client.shortCodesOperations.listUSProgramBriefs(updatedOptions);
|
|
1694
|
-
}
|
|
1695
|
-
catch (e) {
|
|
1696
|
-
span.setStatus({
|
|
1697
|
-
status: "error",
|
|
1698
|
-
error: e,
|
|
1699
|
-
});
|
|
1700
|
-
throw e;
|
|
1701
|
-
}
|
|
1702
|
-
finally {
|
|
1703
|
-
span.end();
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
submitUSProgramBrief(programBriefId, options = {}) {
|
|
1707
|
-
return tracingClient.withSpan("ShortCodesClient-submitUSProgramBrief", options, (updatedOptions) => {
|
|
1708
|
-
return this.client.shortCodesOperations.submitUSProgramBrief(programBriefId, updatedOptions);
|
|
1709
|
-
});
|
|
1710
|
-
}
|
|
1711
|
-
getUSProgramBriefAttachment(programBriefId, attachmentId, options = {}) {
|
|
1712
|
-
return tracingClient.withSpan("ShortCodesClient-getUSProgramBriefAttachment", options, (updatedOptions) => {
|
|
1713
|
-
return this.client.shortCodesOperations.getUSProgramBriefAttachment(programBriefId, attachmentId, updatedOptions);
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
listUSProgramBriefAttachments(programBriefId, options = {}) {
|
|
1717
|
-
const { span, updatedOptions } = tracingClient.startSpan("ShortCodesClient-listUSProgramBriefAttachments", options);
|
|
1718
|
-
try {
|
|
1719
|
-
return this.client.shortCodesOperations.listUSProgramBriefAttachments(programBriefId, updatedOptions);
|
|
1720
|
-
}
|
|
1721
|
-
catch (e) {
|
|
1722
|
-
span.setStatus({
|
|
1723
|
-
status: "error",
|
|
1724
|
-
error: e,
|
|
1725
|
-
});
|
|
1726
|
-
throw e;
|
|
1727
|
-
}
|
|
1728
|
-
finally {
|
|
1729
|
-
span.end();
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
deleteUSProgramBriefAttachment(programBriefId, attachmentId, options = {}) {
|
|
1733
|
-
return tracingClient.withSpan("ShortCodesClient-deleteUSProgramBriefAttachment", options, (updatedOptions) => {
|
|
1734
|
-
return this.client.shortCodesOperations.deleteUSProgramBriefAttachment(programBriefId, attachmentId, updatedOptions);
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
createOrReplaceUSProgramBriefAttachment(programBriefId, attachmentId, fileName, fileType, fileContent, attachmentType, options = {}) {
|
|
1738
|
-
return tracingClient.withSpan("ShortCodesClient-createOrReplaceUSProgramBriefAttachment", options, (updatedOptions) => {
|
|
1739
|
-
return this.client.shortCodesOperations.createOrReplaceUSProgramBriefAttachment(programBriefId, attachmentId, attachmentId, fileName, fileType, fileContent, attachmentType, updatedOptions);
|
|
1740
|
-
});
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
exports.ShortCodesClient = ShortCodesClient;
|
|
1745
|
-
//# sourceMappingURL=index.js.map
|