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