@azure-tools/communication-toll-free-verification 1.0.0-alpha.20241111.2 → 1.0.0-alpha.20241112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/generated/src/index.d.ts +5 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/index.js +4 -4
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/models/index.d.ts +283 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +18 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +20 -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/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/operations/tollFreeVerification.d.ts +140 -0
- package/dist/browser/generated/src/operations/tollFreeVerification.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/tollFreeVerification.js +4 -4
- package/dist/browser/generated/src/operations/tollFreeVerification.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/operationsInterfaces/tollFreeVerification.d.ts +84 -0
- package/dist/browser/generated/src/operationsInterfaces/tollFreeVerification.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/tollFreeVerification.js.map +1 -0
- 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/tollFreeVerificationClient.d.ts +17 -0
- package/dist/browser/generated/src/tollFreeVerificationClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/tollFreeVerificationClient.js +1 -1
- package/dist/browser/generated/src/tollFreeVerificationClient.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/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-esm/src → dist/browser}/mappers.js +1 -1
- package/{dist-esm/src → dist/browser}/mappers.js.map +1 -1
- package/dist/browser/models.d.ts +2 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models.js.map +1 -1
- package/dist/browser/package.json +3 -0
- package/dist/browser/tollFreeVerificationClient.d.ts +29 -0
- package/dist/browser/tollFreeVerificationClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/tollFreeVerificationClient.js +3 -3
- package/dist/browser/tollFreeVerificationClient.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/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/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 +283 -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 +18 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +612 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +20 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +156 -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/tollFreeVerification.d.ts +140 -0
- package/dist/commonjs/generated/src/operations/tollFreeVerification.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/tollFreeVerification.js +646 -0
- package/dist/commonjs/generated/src/operations/tollFreeVerification.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/tollFreeVerification.d.ts +84 -0
- package/dist/commonjs/generated/src/operationsInterfaces/tollFreeVerification.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/tollFreeVerification.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/tollFreeVerification.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 +36 -0
- package/dist/commonjs/generated/src/pagingHelper.js.map +1 -0
- package/dist/commonjs/generated/src/tollFreeVerificationClient.d.ts +17 -0
- package/dist/commonjs/generated/src/tollFreeVerificationClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/tollFreeVerificationClient.js +74 -0
- package/dist/commonjs/generated/src/tollFreeVerificationClient.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 +9 -0
- package/dist/commonjs/mappers.js.map +1 -0
- package/dist/commonjs/models.d.ts +2 -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/tollFreeVerificationClient.d.ts +29 -0
- package/dist/commonjs/tollFreeVerificationClient.d.ts.map +1 -0
- package/dist/commonjs/tollFreeVerificationClient.js +95 -0
- package/dist/commonjs/tollFreeVerificationClient.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/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 +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 +283 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations → 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 +18 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +609 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +20 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +153 -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/tollFreeVerification.d.ts +140 -0
- package/dist/esm/generated/src/operations/tollFreeVerification.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/tollFreeVerification.js +642 -0
- package/dist/esm/generated/src/operations/tollFreeVerification.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/tollFreeVerification.d.ts +84 -0
- package/dist/esm/generated/src/operationsInterfaces/tollFreeVerification.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/tollFreeVerification.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/tollFreeVerification.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 +32 -0
- package/dist/esm/generated/src/pagingHelper.js.map +1 -0
- package/dist/esm/generated/src/tollFreeVerificationClient.d.ts +17 -0
- package/dist/esm/generated/src/tollFreeVerificationClient.d.ts.map +1 -0
- package/dist/esm/generated/src/tollFreeVerificationClient.js +69 -0
- package/dist/esm/generated/src/tollFreeVerificationClient.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 +2 -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/tollFreeVerificationClient.d.ts +29 -0
- package/dist/esm/tollFreeVerificationClient.d.ts.map +1 -0
- package/dist/esm/tollFreeVerificationClient.js +91 -0
- package/dist/esm/tollFreeVerificationClient.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/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 +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 +283 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces → 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 +18 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +609 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +20 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +153 -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/tollFreeVerification.d.ts +140 -0
- package/dist/react-native/generated/src/operations/tollFreeVerification.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/tollFreeVerification.js +642 -0
- package/dist/react-native/generated/src/operations/tollFreeVerification.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/tollFreeVerification.d.ts +84 -0
- package/dist/react-native/generated/src/operationsInterfaces/tollFreeVerification.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/tollFreeVerification.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/tollFreeVerification.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 +32 -0
- package/dist/react-native/generated/src/pagingHelper.js.map +1 -0
- package/dist/react-native/generated/src/tollFreeVerificationClient.d.ts +17 -0
- package/dist/react-native/generated/src/tollFreeVerificationClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/tollFreeVerificationClient.js +69 -0
- package/dist/react-native/generated/src/tollFreeVerificationClient.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 +2 -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/tollFreeVerificationClient.d.ts +29 -0
- package/dist/react-native/tollFreeVerificationClient.d.ts.map +1 -0
- package/dist/react-native/tollFreeVerificationClient.js +91 -0
- package/dist/react-native/tollFreeVerificationClient.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/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 +58 -35
- package/dist/index.js +0 -1617
- 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/parameters.js.map +0 -1
- package/dist-esm/src/generated/src/operations/tollFreeVerification.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/tollFreeVerification.js.map +0 -1
- package/dist-esm/src/generated/src/tollFreeVerificationClient.js.map +0 -1
- package/dist-esm/src/index.js +0 -6
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/tollFreeVerificationClient.js.map +0 -1
- 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-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/tollFreeVerification.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/pagingHelper.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/pagingHelper.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/tracing.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/constants.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/constants.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/logger.js.map +0 -0
- /package/{types → dist}/communication-toll-free-verification.d.ts +0 -0
|
@@ -0,0 +1,646 @@
|
|
|
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.TollFreeVerificationImpl = 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 TollFreeVerification operations. */
|
|
19
|
+
class TollFreeVerificationImpl {
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class TollFreeVerification class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get a list of campaign briefs by country code for the current resource.
|
|
29
|
+
* @param countryCode
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listAllCampaignBriefsByCountryCode(countryCode, options) {
|
|
33
|
+
const iter = this.getAllCampaignBriefsByCountryCodePagingAll(countryCode, options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings) {
|
|
50
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getAllCampaignBriefsByCountryCodePagingPage_1() {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = yield tslib_1.__await(this._getAllCampaignBriefsByCountryCode(countryCode, options));
|
|
55
|
+
let page = result.campaignBriefs || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield yield tslib_1.__await(page);
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = yield tslib_1.__await(this._getAllCampaignBriefsByCountryCodeNext(countryCode, continuationToken, options));
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.campaignBriefs || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield yield tslib_1.__await(page);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
getAllCampaignBriefsByCountryCodePagingAll(countryCode, options) {
|
|
70
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getAllCampaignBriefsByCountryCodePagingAll_1() {
|
|
71
|
+
var _a, e_1, _b, _c;
|
|
72
|
+
try {
|
|
73
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
+
_c = _f.value;
|
|
75
|
+
_d = false;
|
|
76
|
+
const page = _c;
|
|
77
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get a list of Campaign Brief Summaries for the current resource.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
listAllCampaignBriefSummaries(options) {
|
|
94
|
+
const iter = this.getAllCampaignBriefSummariesPagingAll(options);
|
|
95
|
+
return {
|
|
96
|
+
next() {
|
|
97
|
+
return iter.next();
|
|
98
|
+
},
|
|
99
|
+
[Symbol.asyncIterator]() {
|
|
100
|
+
return this;
|
|
101
|
+
},
|
|
102
|
+
byPage: (settings) => {
|
|
103
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
104
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
|
+
}
|
|
106
|
+
return this.getAllCampaignBriefSummariesPagingPage(options, settings);
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
getAllCampaignBriefSummariesPagingPage(options, settings) {
|
|
111
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getAllCampaignBriefSummariesPagingPage_1() {
|
|
112
|
+
let result;
|
|
113
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
114
|
+
if (!continuationToken) {
|
|
115
|
+
result = yield tslib_1.__await(this._getAllCampaignBriefSummaries(options));
|
|
116
|
+
let page = result.campaignBriefSummaries || [];
|
|
117
|
+
continuationToken = result.nextLink;
|
|
118
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
119
|
+
yield yield tslib_1.__await(page);
|
|
120
|
+
}
|
|
121
|
+
while (continuationToken) {
|
|
122
|
+
result = yield tslib_1.__await(this._getAllCampaignBriefSummariesNext(continuationToken, options));
|
|
123
|
+
continuationToken = result.nextLink;
|
|
124
|
+
let page = result.campaignBriefSummaries || [];
|
|
125
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
126
|
+
yield yield tslib_1.__await(page);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
getAllCampaignBriefSummariesPagingAll(options) {
|
|
131
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getAllCampaignBriefSummariesPagingAll_1() {
|
|
132
|
+
var _a, e_2, _b, _c;
|
|
133
|
+
try {
|
|
134
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.getAllCampaignBriefSummariesPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
+
_c = _f.value;
|
|
136
|
+
_d = false;
|
|
137
|
+
const page = _c;
|
|
138
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
+
finally {
|
|
143
|
+
try {
|
|
144
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
145
|
+
}
|
|
146
|
+
finally { if (e_2) throw e_2.error; }
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Gets a list of attachments from a Campaign Brief.
|
|
152
|
+
* @param countryCode
|
|
153
|
+
* @param campaignBriefId
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
listCampaignBriefAttachments(countryCode, campaignBriefId, options) {
|
|
157
|
+
const iter = this.getCampaignBriefAttachmentsPagingAll(countryCode, campaignBriefId, options);
|
|
158
|
+
return {
|
|
159
|
+
next() {
|
|
160
|
+
return iter.next();
|
|
161
|
+
},
|
|
162
|
+
[Symbol.asyncIterator]() {
|
|
163
|
+
return this;
|
|
164
|
+
},
|
|
165
|
+
byPage: (settings) => {
|
|
166
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
167
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
168
|
+
}
|
|
169
|
+
return this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings);
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings) {
|
|
174
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getCampaignBriefAttachmentsPagingPage_1() {
|
|
175
|
+
let result;
|
|
176
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
177
|
+
if (!continuationToken) {
|
|
178
|
+
result = yield tslib_1.__await(this._getCampaignBriefAttachments(countryCode, campaignBriefId, options));
|
|
179
|
+
let page = result.attachments || [];
|
|
180
|
+
continuationToken = result.nextLink;
|
|
181
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
182
|
+
yield yield tslib_1.__await(page);
|
|
183
|
+
}
|
|
184
|
+
while (continuationToken) {
|
|
185
|
+
result = yield tslib_1.__await(this._getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, continuationToken, options));
|
|
186
|
+
continuationToken = result.nextLink;
|
|
187
|
+
let page = result.attachments || [];
|
|
188
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
189
|
+
yield yield tslib_1.__await(page);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
getCampaignBriefAttachmentsPagingAll(countryCode, campaignBriefId, options) {
|
|
194
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getCampaignBriefAttachmentsPagingAll_1() {
|
|
195
|
+
var _a, e_3, _b, _c;
|
|
196
|
+
try {
|
|
197
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
198
|
+
_c = _f.value;
|
|
199
|
+
_d = false;
|
|
200
|
+
const page = _c;
|
|
201
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
205
|
+
finally {
|
|
206
|
+
try {
|
|
207
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
208
|
+
}
|
|
209
|
+
finally { if (e_3) throw e_3.error; }
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates or updates a Campaign Brief.
|
|
215
|
+
* @param countryCode Country Code Id. Must be a valid country code
|
|
216
|
+
* @param campaignBriefId Campaign Brief Id. Must be a valid GUID
|
|
217
|
+
* @param options The options parameters.
|
|
218
|
+
*/
|
|
219
|
+
async upsertCampaignBrief(countryCode, campaignBriefId, options) {
|
|
220
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
221
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, upsertCampaignBriefOperationSpec);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Deletes a Campaign Brief.
|
|
226
|
+
* @param countryCode Country Code Id. Must be a valid country code
|
|
227
|
+
* @param campaignBriefId Campaign Brief Id of brief to be deleted. Must be a valid GUID
|
|
228
|
+
* @param options The options parameters.
|
|
229
|
+
*/
|
|
230
|
+
async deleteCampaignBrief(countryCode, campaignBriefId, options) {
|
|
231
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
232
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, deleteCampaignBriefOperationSpec);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Get a Campaign Brief by id.
|
|
237
|
+
* @param countryCode Country Code Id. Must be a valid country code
|
|
238
|
+
* @param campaignBriefId Campaign Brief Id. Must be a valid GUID
|
|
239
|
+
* @param options The options parameters.
|
|
240
|
+
*/
|
|
241
|
+
async getCampaignBrief(countryCode, campaignBriefId, options) {
|
|
242
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
243
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefOperationSpec);
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Submits a Campaign Brief.
|
|
248
|
+
* @param countryCode Country Code Id. Must be a valid country code
|
|
249
|
+
* @param campaignBriefId Campaign Brief Id of brief to be submitted. Must be a valid GUID
|
|
250
|
+
* @param options The options parameters.
|
|
251
|
+
*/
|
|
252
|
+
async submitCampaignBrief(countryCode, campaignBriefId, options) {
|
|
253
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
254
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, submitCampaignBriefOperationSpec);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Get a list of campaign briefs by country code for the current resource.
|
|
259
|
+
* @param countryCode
|
|
260
|
+
* @param options The options parameters.
|
|
261
|
+
*/
|
|
262
|
+
async _getAllCampaignBriefsByCountryCode(countryCode, options) {
|
|
263
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
264
|
+
return this.client.sendOperationRequest({ countryCode, options }, getAllCampaignBriefsByCountryCodeOperationSpec);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Get a list of Campaign Brief Summaries for the current resource.
|
|
269
|
+
* @param options The options parameters.
|
|
270
|
+
*/
|
|
271
|
+
async _getAllCampaignBriefSummaries(options) {
|
|
272
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
273
|
+
return this.client.sendOperationRequest({ options }, getAllCampaignBriefSummariesOperationSpec);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Creates or updates an attachment on a Campaign Brief.
|
|
278
|
+
* @param countryCode Country Code Id. Must be a valid country code
|
|
279
|
+
* @param campaignBriefId Campaign Brief Id. Must be a valid GUID
|
|
280
|
+
* @param attachmentId Attachment Id. Must be a valid GUID
|
|
281
|
+
* @param id Campaign Brief Attachment Id.
|
|
282
|
+
* @param typeParam Attachment type describing the purpose of the attachment
|
|
283
|
+
* e.g. 'callToAction', 'termsOfService'
|
|
284
|
+
* @param fileName The name of the file being attached
|
|
285
|
+
* e.g. 'myFile01'
|
|
286
|
+
* @param fileType The type of file being attached
|
|
287
|
+
* e.g. 'pdf', 'jpg', 'png'
|
|
288
|
+
* @param fileContentBase64 File content as base 64 encoded string
|
|
289
|
+
* @param options The options parameters.
|
|
290
|
+
*/
|
|
291
|
+
async createOrReplaceCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, id, typeParam, fileName, fileType, fileContentBase64, options) {
|
|
292
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
293
|
+
return this.client.sendOperationRequest({
|
|
294
|
+
countryCode,
|
|
295
|
+
campaignBriefId,
|
|
296
|
+
attachmentId,
|
|
297
|
+
id,
|
|
298
|
+
typeParam,
|
|
299
|
+
fileName,
|
|
300
|
+
fileType,
|
|
301
|
+
fileContentBase64,
|
|
302
|
+
options,
|
|
303
|
+
}, createOrReplaceCampaignBriefAttachmentOperationSpec);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Deletes a specific attachment from a Campaign Brief.
|
|
308
|
+
* @param countryCode
|
|
309
|
+
* @param campaignBriefId Campaign Brief Id. Must be a valid GUID
|
|
310
|
+
* @param attachmentId Attachment Id. Must be a valid GUID
|
|
311
|
+
* @param options The options parameters.
|
|
312
|
+
*/
|
|
313
|
+
async deleteCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
|
|
314
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
315
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, deleteCampaignBriefAttachmentOperationSpec);
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Gets a specific attachment from a Campaign Brief.
|
|
320
|
+
* @param countryCode
|
|
321
|
+
* @param campaignBriefId Campaign Brief Id. Must be a valid GUID
|
|
322
|
+
* @param attachmentId Attachment Id. Must be a valid GUID
|
|
323
|
+
* @param options The options parameters.
|
|
324
|
+
*/
|
|
325
|
+
async getCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
|
|
326
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
327
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, getCampaignBriefAttachmentOperationSpec);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Gets a list of attachments from a Campaign Brief.
|
|
332
|
+
* @param countryCode
|
|
333
|
+
* @param campaignBriefId
|
|
334
|
+
* @param options The options parameters.
|
|
335
|
+
*/
|
|
336
|
+
async _getCampaignBriefAttachments(countryCode, campaignBriefId, options) {
|
|
337
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
338
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefAttachmentsOperationSpec);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* GetAllCampaignBriefsByCountryCodeNext
|
|
343
|
+
* @param countryCode
|
|
344
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
345
|
+
* GetAllCampaignBriefsByCountryCode method.
|
|
346
|
+
* @param options The options parameters.
|
|
347
|
+
*/
|
|
348
|
+
async _getAllCampaignBriefsByCountryCodeNext(countryCode, nextLink, options) {
|
|
349
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
350
|
+
return this.client.sendOperationRequest({ countryCode, nextLink, options }, getAllCampaignBriefsByCountryCodeNextOperationSpec);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* GetAllCampaignBriefSummariesNext
|
|
355
|
+
* @param nextLink The nextLink from the previous successful call to the GetAllCampaignBriefSummaries
|
|
356
|
+
* method.
|
|
357
|
+
* @param options The options parameters.
|
|
358
|
+
*/
|
|
359
|
+
async _getAllCampaignBriefSummariesNext(nextLink, options) {
|
|
360
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
361
|
+
return this.client.sendOperationRequest({ nextLink, options }, getAllCampaignBriefSummariesNextOperationSpec);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* GetCampaignBriefAttachmentsNext
|
|
366
|
+
* @param countryCode
|
|
367
|
+
* @param campaignBriefId
|
|
368
|
+
* @param nextLink The nextLink from the previous successful call to the GetCampaignBriefAttachments
|
|
369
|
+
* method.
|
|
370
|
+
* @param options The options parameters.
|
|
371
|
+
*/
|
|
372
|
+
async _getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, nextLink, options) {
|
|
373
|
+
return tracing_js_1.tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
374
|
+
return this.client.sendOperationRequest({ countryCode, campaignBriefId, nextLink, options }, getCampaignBriefAttachmentsNextOperationSpec);
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
exports.TollFreeVerificationImpl = TollFreeVerificationImpl;
|
|
379
|
+
// Operation Specifications
|
|
380
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
381
|
+
const upsertCampaignBriefOperationSpec = {
|
|
382
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}",
|
|
383
|
+
httpMethod: "PATCH",
|
|
384
|
+
responses: {
|
|
385
|
+
200: {
|
|
386
|
+
bodyMapper: Mappers.CampaignBrief,
|
|
387
|
+
},
|
|
388
|
+
201: {
|
|
389
|
+
bodyMapper: Mappers.CampaignBrief,
|
|
390
|
+
},
|
|
391
|
+
default: {
|
|
392
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
requestBody: Parameters.body,
|
|
396
|
+
queryParameters: [Parameters.apiVersion],
|
|
397
|
+
urlParameters: [
|
|
398
|
+
Parameters.endpoint,
|
|
399
|
+
Parameters.countryCode,
|
|
400
|
+
Parameters.campaignBriefId,
|
|
401
|
+
],
|
|
402
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
403
|
+
mediaType: "json",
|
|
404
|
+
serializer,
|
|
405
|
+
};
|
|
406
|
+
const deleteCampaignBriefOperationSpec = {
|
|
407
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}",
|
|
408
|
+
httpMethod: "DELETE",
|
|
409
|
+
responses: {
|
|
410
|
+
204: {},
|
|
411
|
+
default: {
|
|
412
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
|
+
urlParameters: [
|
|
417
|
+
Parameters.endpoint,
|
|
418
|
+
Parameters.countryCode,
|
|
419
|
+
Parameters.campaignBriefId,
|
|
420
|
+
],
|
|
421
|
+
headerParameters: [Parameters.accept],
|
|
422
|
+
serializer,
|
|
423
|
+
};
|
|
424
|
+
const getCampaignBriefOperationSpec = {
|
|
425
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}",
|
|
426
|
+
httpMethod: "GET",
|
|
427
|
+
responses: {
|
|
428
|
+
200: {
|
|
429
|
+
bodyMapper: Mappers.CampaignBrief,
|
|
430
|
+
},
|
|
431
|
+
default: {
|
|
432
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
queryParameters: [Parameters.apiVersion],
|
|
436
|
+
urlParameters: [
|
|
437
|
+
Parameters.endpoint,
|
|
438
|
+
Parameters.countryCode,
|
|
439
|
+
Parameters.campaignBriefId,
|
|
440
|
+
],
|
|
441
|
+
headerParameters: [Parameters.accept],
|
|
442
|
+
serializer,
|
|
443
|
+
};
|
|
444
|
+
const submitCampaignBriefOperationSpec = {
|
|
445
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/:submit",
|
|
446
|
+
httpMethod: "POST",
|
|
447
|
+
responses: {
|
|
448
|
+
200: {
|
|
449
|
+
bodyMapper: Mappers.CampaignBrief,
|
|
450
|
+
},
|
|
451
|
+
default: {
|
|
452
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
queryParameters: [Parameters.apiVersion],
|
|
456
|
+
urlParameters: [
|
|
457
|
+
Parameters.endpoint,
|
|
458
|
+
Parameters.countryCode,
|
|
459
|
+
Parameters.campaignBriefId,
|
|
460
|
+
],
|
|
461
|
+
headerParameters: [Parameters.accept],
|
|
462
|
+
serializer,
|
|
463
|
+
};
|
|
464
|
+
const getAllCampaignBriefsByCountryCodeOperationSpec = {
|
|
465
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs",
|
|
466
|
+
httpMethod: "GET",
|
|
467
|
+
responses: {
|
|
468
|
+
200: {
|
|
469
|
+
bodyMapper: Mappers.CampaignBriefs,
|
|
470
|
+
},
|
|
471
|
+
default: {
|
|
472
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],
|
|
476
|
+
urlParameters: [Parameters.endpoint, Parameters.countryCode],
|
|
477
|
+
headerParameters: [Parameters.accept],
|
|
478
|
+
serializer,
|
|
479
|
+
};
|
|
480
|
+
const getAllCampaignBriefSummariesOperationSpec = {
|
|
481
|
+
path: "/tollfreeVerification/campaignBriefs",
|
|
482
|
+
httpMethod: "GET",
|
|
483
|
+
responses: {
|
|
484
|
+
200: {
|
|
485
|
+
bodyMapper: Mappers.CampaignBriefSummaries,
|
|
486
|
+
},
|
|
487
|
+
default: {
|
|
488
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],
|
|
492
|
+
urlParameters: [Parameters.endpoint],
|
|
493
|
+
headerParameters: [Parameters.accept],
|
|
494
|
+
serializer,
|
|
495
|
+
};
|
|
496
|
+
const createOrReplaceCampaignBriefAttachmentOperationSpec = {
|
|
497
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}",
|
|
498
|
+
httpMethod: "PUT",
|
|
499
|
+
responses: {
|
|
500
|
+
200: {
|
|
501
|
+
bodyMapper: Mappers.CampaignBriefAttachment,
|
|
502
|
+
},
|
|
503
|
+
201: {
|
|
504
|
+
bodyMapper: Mappers.CampaignBriefAttachment,
|
|
505
|
+
},
|
|
506
|
+
default: {
|
|
507
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
requestBody: {
|
|
511
|
+
parameterPath: {
|
|
512
|
+
id: ["id"],
|
|
513
|
+
typeParam: ["typeParam"],
|
|
514
|
+
fileName: ["fileName"],
|
|
515
|
+
fileSizeInBytes: ["options", "fileSizeInBytes"],
|
|
516
|
+
fileType: ["fileType"],
|
|
517
|
+
fileContentBase64: ["fileContentBase64"],
|
|
518
|
+
},
|
|
519
|
+
mapper: Object.assign(Object.assign({}, Mappers.CampaignBriefAttachment), { required: true }),
|
|
520
|
+
},
|
|
521
|
+
queryParameters: [Parameters.apiVersion],
|
|
522
|
+
urlParameters: [
|
|
523
|
+
Parameters.endpoint,
|
|
524
|
+
Parameters.countryCode,
|
|
525
|
+
Parameters.campaignBriefId,
|
|
526
|
+
Parameters.attachmentId,
|
|
527
|
+
],
|
|
528
|
+
headerParameters: [Parameters.accept, Parameters.contentType1],
|
|
529
|
+
mediaType: "json",
|
|
530
|
+
serializer,
|
|
531
|
+
};
|
|
532
|
+
const deleteCampaignBriefAttachmentOperationSpec = {
|
|
533
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}",
|
|
534
|
+
httpMethod: "DELETE",
|
|
535
|
+
responses: {
|
|
536
|
+
204: {},
|
|
537
|
+
default: {
|
|
538
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
539
|
+
},
|
|
540
|
+
},
|
|
541
|
+
queryParameters: [Parameters.apiVersion],
|
|
542
|
+
urlParameters: [
|
|
543
|
+
Parameters.endpoint,
|
|
544
|
+
Parameters.countryCode,
|
|
545
|
+
Parameters.campaignBriefId,
|
|
546
|
+
Parameters.attachmentId,
|
|
547
|
+
],
|
|
548
|
+
headerParameters: [Parameters.accept],
|
|
549
|
+
serializer,
|
|
550
|
+
};
|
|
551
|
+
const getCampaignBriefAttachmentOperationSpec = {
|
|
552
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}",
|
|
553
|
+
httpMethod: "GET",
|
|
554
|
+
responses: {
|
|
555
|
+
200: {
|
|
556
|
+
bodyMapper: Mappers.CampaignBriefAttachment,
|
|
557
|
+
},
|
|
558
|
+
default: {
|
|
559
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
queryParameters: [Parameters.apiVersion],
|
|
563
|
+
urlParameters: [
|
|
564
|
+
Parameters.endpoint,
|
|
565
|
+
Parameters.countryCode,
|
|
566
|
+
Parameters.campaignBriefId,
|
|
567
|
+
Parameters.attachmentId,
|
|
568
|
+
],
|
|
569
|
+
headerParameters: [Parameters.accept],
|
|
570
|
+
serializer,
|
|
571
|
+
};
|
|
572
|
+
const getCampaignBriefAttachmentsOperationSpec = {
|
|
573
|
+
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments",
|
|
574
|
+
httpMethod: "GET",
|
|
575
|
+
responses: {
|
|
576
|
+
200: {
|
|
577
|
+
bodyMapper: Mappers.CampaignBriefAttachments,
|
|
578
|
+
},
|
|
579
|
+
default: {
|
|
580
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],
|
|
584
|
+
urlParameters: [
|
|
585
|
+
Parameters.endpoint,
|
|
586
|
+
Parameters.countryCode,
|
|
587
|
+
Parameters.campaignBriefId,
|
|
588
|
+
],
|
|
589
|
+
headerParameters: [Parameters.accept],
|
|
590
|
+
serializer,
|
|
591
|
+
};
|
|
592
|
+
const getAllCampaignBriefsByCountryCodeNextOperationSpec = {
|
|
593
|
+
path: "{nextLink}",
|
|
594
|
+
httpMethod: "GET",
|
|
595
|
+
responses: {
|
|
596
|
+
200: {
|
|
597
|
+
bodyMapper: Mappers.CampaignBriefs,
|
|
598
|
+
},
|
|
599
|
+
default: {
|
|
600
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
urlParameters: [
|
|
604
|
+
Parameters.endpoint,
|
|
605
|
+
Parameters.countryCode,
|
|
606
|
+
Parameters.nextLink,
|
|
607
|
+
],
|
|
608
|
+
headerParameters: [Parameters.accept],
|
|
609
|
+
serializer,
|
|
610
|
+
};
|
|
611
|
+
const getAllCampaignBriefSummariesNextOperationSpec = {
|
|
612
|
+
path: "{nextLink}",
|
|
613
|
+
httpMethod: "GET",
|
|
614
|
+
responses: {
|
|
615
|
+
200: {
|
|
616
|
+
bodyMapper: Mappers.CampaignBriefSummaries,
|
|
617
|
+
},
|
|
618
|
+
default: {
|
|
619
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
urlParameters: [Parameters.endpoint, Parameters.nextLink],
|
|
623
|
+
headerParameters: [Parameters.accept],
|
|
624
|
+
serializer,
|
|
625
|
+
};
|
|
626
|
+
const getCampaignBriefAttachmentsNextOperationSpec = {
|
|
627
|
+
path: "{nextLink}",
|
|
628
|
+
httpMethod: "GET",
|
|
629
|
+
responses: {
|
|
630
|
+
200: {
|
|
631
|
+
bodyMapper: Mappers.CampaignBriefAttachments,
|
|
632
|
+
},
|
|
633
|
+
default: {
|
|
634
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
urlParameters: [
|
|
638
|
+
Parameters.endpoint,
|
|
639
|
+
Parameters.countryCode,
|
|
640
|
+
Parameters.campaignBriefId,
|
|
641
|
+
Parameters.nextLink,
|
|
642
|
+
],
|
|
643
|
+
headerParameters: [Parameters.accept],
|
|
644
|
+
serializer,
|
|
645
|
+
};
|
|
646
|
+
//# sourceMappingURL=tollFreeVerification.js.map
|