aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorMax Nanis2025-06-02 16:45:21 +0700
committerMax Nanis2025-06-02 16:45:21 +0700
commite6037b430935720ce60245ae36ecd3622e8a22bf (patch)
tree13919b0f73729ad47a31e06bdd710f774d70cac0 /src/api
parent8caa77413ea372e5cbd2980a9922d701af359c04 (diff)
downloadpanel-ui-e6037b430935720ce60245ae36ecd3622e8a22bf.tar.gz
panel-ui-e6037b430935720ce60245ae36ecd3622e8a22bf.zip
Updated openapi generator to use the latest version (camelCase to underscore - which respects API models). Updating views to use the new swagger definitions. AnswerSlice as a datastore alongside Questions TS interface
Diffstat (limited to 'src/api')
-rw-r--r--src/api/README.md46
-rw-r--r--src/api/api.ts8347
-rw-r--r--src/api/apis/dashboard-api.ts134
-rw-r--r--src/api/apis/leaderboard-api.ts301
-rw-r--r--src/api/apis/offerwall-api.ts2205
-rw-r--r--src/api/apis/profiling-questions-api.ts504
-rw-r--r--src/api/apis/report-api.ts144
-rw-r--r--src/api/apis/status-api.ts274
-rw-r--r--src/api/apis/wallet-api.ts774
-rw-r--r--src/api/base.ts36
-rw-r--r--src/api/configuration.ts58
-rw-r--r--src/api/git_push.sh17
-rw-r--r--src/api/index.ts10
-rw-r--r--src/api/models/amt-cashout-method-data.ts28
-rw-r--r--src/api/models/body-offerwall-softpair-post-product-id-offerwall37d1da64-offerwall-id-post.ts28
-rw-r--r--src/api/models/body-submit-profiling-questions-product-id-profiling-questions-post.ts28
-rw-r--r--src/api/models/bucket-task.ts60
-rw-r--r--src/api/models/cardinality.ts24
-rw-r--r--src/api/models/cash-mail-cashout-method-data.ts36
-rw-r--r--src/api/models/cashout-method-foreign-value-response.ts45
-rw-r--r--src/api/models/cashout-method-foreign-value.ts46
-rw-r--r--src/api/models/cashout-method-out.ts122
-rw-r--r--src/api/models/cashout-method-response.ts45
-rw-r--r--src/api/models/cashout-methods-response.ts44
-rw-r--r--src/api/models/cashout-request-info.ts58
-rw-r--r--src/api/models/cashout-request-response.ts45
-rw-r--r--src/api/models/category-association.ts58
-rw-r--r--src/api/models/category.ts52
-rw-r--r--src/api/models/count-stat.ts38
-rw-r--r--src/api/models/create-cash-mail-cashout-method-request.ts44
-rw-r--r--src/api/models/create-cashout-request.ts46
-rw-r--r--src/api/models/create-pay-pal-cashout-method-request.ts44
-rw-r--r--src/api/models/duration-summary.ts70
-rw-r--r--src/api/models/httpvalidation-error.ts28
-rw-r--r--src/api/models/index.ts119
-rw-r--r--src/api/models/leaderboard-code.ts25
-rw-r--r--src/api/models/leaderboard-frequency.ts25
-rw-r--r--src/api/models/leaderboard-response.ts45
-rw-r--r--src/api/models/leaderboard-row.ts46
-rw-r--r--src/api/models/leaderboard-winner-response.ts44
-rw-r--r--src/api/models/leaderboard-winner.ts108
-rw-r--r--src/api/models/leaderboard.ts170
-rw-r--r--src/api/models/market-profile-knowledge.ts50
-rw-r--r--src/api/models/marketplace-bucket.ts104
-rw-r--r--src/api/models/marketplace-inventory-summary.ts78
-rw-r--r--src/api/models/marketplace-offerwall-response.ts36
-rw-r--r--src/api/models/marketplace-offerwall.ts44
-rw-r--r--src/api/models/marketplace-summary.ts38
-rw-r--r--src/api/models/offer-wall-info.ts28
-rw-r--r--src/api/models/one-shot-offerwall-bucket.ts54
-rw-r--r--src/api/models/one-shot-offerwall-response.ts36
-rw-r--r--src/api/models/one-shot-offerwall.ts44
-rw-r--r--src/api/models/pattern-validation.ts38
-rw-r--r--src/api/models/payout-status.ts28
-rw-r--r--src/api/models/payout-summary.ts70
-rw-r--r--src/api/models/payout-type.ts31
-rw-r--r--src/api/models/paypal-cashout-method-data.ts36
-rw-r--r--src/api/models/profiling-info-response.ts44
-rw-r--r--src/api/models/property-type.ts25
-rw-r--r--src/api/models/question-info.ts76
-rw-r--r--src/api/models/question-option.ts34
-rw-r--r--src/api/models/redemption-currency.ts32
-rw-r--r--src/api/models/report-task.ts44
-rw-r--r--src/api/models/report-value.ts30
-rw-r--r--src/api/models/session-adjusted-status.ts25
-rw-r--r--src/api/models/session-status-code2.ts35
-rw-r--r--src/api/models/single-entry-bucket.ts38
-rw-r--r--src/api/models/single-entry-offer-wall-response.ts36
-rw-r--r--src/api/models/single-entry-offer-wall.ts52
-rw-r--r--src/api/models/soft-pair-bucket.ts78
-rw-r--r--src/api/models/soft-pair-offerwall-response.ts36
-rw-r--r--src/api/models/soft-pair-offerwall.ts50
-rw-r--r--src/api/models/source.ts43
-rw-r--r--src/api/models/starwall-offer-wall-response.ts36
-rw-r--r--src/api/models/starwall-offer-wall.ts52
-rw-r--r--src/api/models/starwall-plus-block-offer-wall-response.ts36
-rw-r--r--src/api/models/starwall-plus-block-offer-wall.ts44
-rw-r--r--src/api/models/starwall-plus-block-recontact-offer-wall-response.ts36
-rw-r--r--src/api/models/starwall-plus-block-recontact-offer-wall.ts44
-rw-r--r--src/api/models/starwall-plus-offer-wall-response.ts36
-rw-r--r--src/api/models/starwall-plus-offer-wall.ts44
-rw-r--r--src/api/models/statistical-summary-stat.ts38
-rw-r--r--src/api/models/statistical-summary-value.ts72
-rw-r--r--src/api/models/status-code1.ts41
-rw-r--r--src/api/models/status-info-response-fail.ts37
-rw-r--r--src/api/models/status-response-failure.ts38
-rw-r--r--src/api/models/status-response.ts38
-rw-r--r--src/api/models/status-success-fail.ts30
-rw-r--r--src/api/models/tango-cashout-method-data.ts48
-rw-r--r--src/api/models/task-status-response-out.ts186
-rw-r--r--src/api/models/tasks-status-response-out.ts28
-rw-r--r--src/api/models/top-nbucket.ts98
-rw-r--r--src/api/models/top-noffer-wall-response.ts36
-rw-r--r--src/api/models/top-noffer-wall.ts52
-rw-r--r--src/api/models/top-nplus-block-offer-wall-response.ts36
-rw-r--r--src/api/models/top-nplus-block-offer-wall.ts44
-rw-r--r--src/api/models/top-nplus-block-recontact-offer-wall-response.ts36
-rw-r--r--src/api/models/top-nplus-block-recontact-offer-wall.ts44
-rw-r--r--src/api/models/top-nplus-bucket.ts110
-rw-r--r--src/api/models/top-nplus-offer-wall-response.ts36
-rw-r--r--src/api/models/top-nplus-offer-wall.ts44
-rw-r--r--src/api/models/top-nplus-recontact-bucket.ts116
-rw-r--r--src/api/models/upk-question-choice-out.ts58
-rw-r--r--src/api/models/upk-question-choice.ts64
-rw-r--r--src/api/models/upk-question-configuration-mc.ts28
-rw-r--r--src/api/models/upk-question-configuration-slider.ts46
-rw-r--r--src/api/models/upk-question-configuration-te.ts38
-rw-r--r--src/api/models/upk-question-out.ts109
-rw-r--r--src/api/models/upk-question-response.ts68
-rw-r--r--src/api/models/upk-question-selector-hidden.ts23
-rw-r--r--src/api/models/upk-question-selector-mc.ts27
-rw-r--r--src/api/models/upk-question-selector-slider.ts24
-rw-r--r--src/api/models/upk-question-selector-te.ts25
-rw-r--r--src/api/models/upk-question-type.ts26
-rw-r--r--src/api/models/upk-question-validation.ts28
-rw-r--r--src/api/models/upk-question.ts93
-rw-r--r--src/api/models/upkimportance.ts38
-rw-r--r--src/api/models/usdelivery-address.ts70
-rw-r--r--src/api/models/user-info-response.ts45
-rw-r--r--src/api/models/user-info.ts34
-rw-r--r--src/api/models/user-profile-knowledge-answer.ts46
-rw-r--r--src/api/models/user-profile-knowledge.ts54
-rw-r--r--src/api/models/user-question-answer-in.ts36
-rw-r--r--src/api/models/user-transaction-history-response.ts44
-rw-r--r--src/api/models/user-transaction-row.ts90
-rw-r--r--src/api/models/user-wallet-balance-response.ts45
-rw-r--r--src/api/models/user-wallet-balance.ts62
-rw-r--r--src/api/models/user-wallet-config.ts52
-rw-r--r--src/api/models/user-wallet-transaction-type.ts26
-rw-r--r--src/api/models/validation-error.ts40
-rw-r--r--src/api/models/wxetofferwall-bucket.ts54
-rw-r--r--src/api/models/wxetofferwall-response.ts36
-rw-r--r--src/api/models/wxetofferwall.ts44
-rw-r--r--src/api/package.json3
134 files changed, 8433 insertions, 10393 deletions
diff --git a/src/api/README.md b/src/api/README.md
index 9fffca2..1b3e223 100644
--- a/src/api/README.md
+++ b/src/api/README.md
@@ -1,45 +1,15 @@
-## @1.0.0
-This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
-
-Environment
-* Node.js
-* Webpack
-* Browserify
-
-Language level
-* ES5 - you must have a Promises/A+ library installed
-* ES6
-
-Module system
-* CommonJS
-* ES6 module system
-
-It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
-
-### Building
-
-To build and compile the typescript sources to javascript use:
-```
-npm install
-npm run build
```
+brew install openjdk
+export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
+export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"
-### Publishing
+source ~/.zshrc # or source ~/.bash_profile
+java -version
-First build the package then run ```npm publish```
-### Consuming
-navigate to the folder of your consuming project and run one of the following commands.
+wget https://fsb.generalresearch.com/openapi.json
-_published:_
-
-```
-npm install @1.0.0 --save
-```
-
-_unPublished (not recommended):_
-
-```
-npm install PATH_TO_GENERATED_PACKAGE --save
+openapi-generator-cli generate -i ./openapi.json -g typescript-axios -o ./ --skip-validate-spec
+``` \ No newline at end of file
diff --git a/src/api/api.ts b/src/api/api.ts
index f54d5ed..a1d67ae 100644
--- a/src/api/api.ts
+++ b/src/api/api.ts
@@ -2,20 +2,8345 @@
/* eslint-disable */
/**
* General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * OpenAPI spec version: 1.1.0
+ * The version of the OpenAPI document: 1.1.0
*
*
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
* Do not edit the class manually.
*/
-export * from './apis/dashboard-api';
-export * from './apis/leaderboard-api';
-export * from './apis/offerwall-api';
-export * from './apis/profiling-questions-api';
-export * from './apis/report-api';
-export * from './apis/status-api';
-export * from './apis/wallet-api';
+
+
+import type { Configuration } from './configuration';
+import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
+import globalAxios from 'axios';
+// Some imports not used depending on template conditions
+// @ts-ignore
+import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
+import type { RequestArgs } from './base';
+// @ts-ignore
+import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
+
+/**
+ *
+ * @export
+ * @interface AmtCashoutMethodData
+ */
+export interface AmtCashoutMethodData {
+ /**
+ *
+ * @type {string}
+ * @memberof AmtCashoutMethodData
+ */
+ 'type'?: AmtCashoutMethodDataTypeEnum;
+}
+
+export const AmtCashoutMethodDataTypeEnum = {
+ Amt: 'AMT'
+} as const;
+
+export type AmtCashoutMethodDataTypeEnum = typeof AmtCashoutMethodDataTypeEnum[keyof typeof AmtCashoutMethodDataTypeEnum];
+
+/**
+ * @type Body
+ * @export
+ */
+export type Body = { type: 'CASH_IN_MAIL' } & CreateCashMailCashoutMethodRequest | { type: 'PAYPAL' } & CreatePayPalCashoutMethodRequest;
+
+/**
+ *
+ * @export
+ * @interface BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
+ */
+export interface BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost {
+ /**
+ *
+ * @type {Array<UserQuestionAnswerIn>}
+ * @memberof BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
+ */
+ 'answers': Array<UserQuestionAnswerIn>;
+}
+/**
+ *
+ * @export
+ * @interface BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
+ */
+export interface BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost {
+ /**
+ *
+ * @type {Array<UserQuestionAnswerIn>}
+ * @memberof BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
+ */
+ 'answers': Array<UserQuestionAnswerIn>;
+}
+/**
+ * This represents one of the \"tasks\" within a bucket\'s ordered list of tasks.
+ * @export
+ * @interface BucketTask
+ */
+export interface BucketTask {
+ /**
+ * The internal task id for this task within the marketplace
+ * @type {string}
+ * @memberof BucketTask
+ */
+ 'id': string;
+ /**
+ * The namespaced task id for this task within the marketplace
+ * @type {string}
+ * @memberof BucketTask
+ */
+ 'id_code': string;
+ /**
+ *
+ * @type {Source}
+ * @memberof BucketTask
+ */
+ 'source': Source;
+ /**
+ * expected loi in seconds
+ * @type {number}
+ * @memberof BucketTask
+ */
+ 'loi': number;
+ /**
+ * integer cents
+ * @type {number}
+ * @memberof BucketTask
+ */
+ 'payout': number;
+}
+
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const Cardinality = {
+ Star: '*',
+ QuestionMark: '?'
+} as const;
+
+export type Cardinality = typeof Cardinality[keyof typeof Cardinality];
+
+
+/**
+ *
+ * @export
+ * @interface CashMailCashoutMethodData
+ */
+export interface CashMailCashoutMethodData {
+ /**
+ *
+ * @type {string}
+ * @memberof CashMailCashoutMethodData
+ */
+ 'type'?: CashMailCashoutMethodDataTypeEnum;
+ /**
+ * Delivery address where payment should be sent
+ * @type {USDeliveryAddress}
+ * @memberof CashMailCashoutMethodData
+ */
+ 'delivery_address': USDeliveryAddress;
+}
+
+export const CashMailCashoutMethodDataTypeEnum = {
+ CashInMail: 'CASH_IN_MAIL'
+} as const;
+
+export type CashMailCashoutMethodDataTypeEnum = typeof CashMailCashoutMethodDataTypeEnum[keyof typeof CashMailCashoutMethodDataTypeEnum];
+
+/**
+ * Shows the expected value of a redemption in a foreign currency.
+ * @export
+ * @interface CashoutMethodForeignValue
+ */
+export interface CashoutMethodForeignValue {
+ /**
+ * Value of the redemption in the currency\'s smallest unit.
+ * @type {number}
+ * @memberof CashoutMethodForeignValue
+ */
+ 'value': number;
+ /**
+ * Supported Currencies for Foreign Redemptions Allowed values: - __USD__ *(USD)*: US Dollars. Smallest Unit: Cents. - __CAD__ *(CAD)*: Canadian Dollars. Smallest Unit: Cents. - __GBP__ *(GBP)*: British Pounds. Smallest Unit: Pence. - __EUR__ *(EUR)*: Euros. Smallest Unit: Cents. - __INR__ *(INR)*: Indian Rupees. Smallest Unit: Paise. - __AUD__ *(AUD)*: Australian Dollars. Smallest Unit: Cents. - __PLN__ *(PLN)*: Polish Zloty. Smallest Unit: Grosz. - __SEK__ *(SEK)*: Swedish Krona. Smallest Unit: Öre. - __SGD__ *(SGD)*: Singapore Dollars. Smallest Unit: Cents. - __MXN__ *(MXN)*: Mexican Pesos. Smallest Unit: Centavos.
+ * @type {RedemptionCurrency}
+ * @memberof CashoutMethodForeignValue
+ */
+ 'currency': RedemptionCurrency;
+ /**
+ * A string representation of the value in the currency.
+ * @type {string}
+ * @memberof CashoutMethodForeignValue
+ */
+ 'value_string': string;
+}
+
+
+/**
+ *
+ * @export
+ * @interface CashoutMethodForeignValueResponse
+ */
+export interface CashoutMethodForeignValueResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof CashoutMethodForeignValueResponse
+ */
+ 'status': CashoutMethodForeignValueResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodForeignValueResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {CashoutMethodForeignValue}
+ * @memberof CashoutMethodForeignValueResponse
+ */
+ 'cashout_method_value': CashoutMethodForeignValue;
+}
+
+export const CashoutMethodForeignValueResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type CashoutMethodForeignValueResponseStatusEnum = typeof CashoutMethodForeignValueResponseStatusEnum[keyof typeof CashoutMethodForeignValueResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface CashoutMethodOut
+ */
+export interface CashoutMethodOut {
+ /**
+ * Unique ID for this cashout method
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'id': string;
+ /**
+ * The currency of the cashout. Only USD is supported.
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'currency'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'original_currency'?: string | null;
+ /**
+ *
+ * @type {Data}
+ * @memberof CashoutMethodOut
+ */
+ 'data': Data;
+ /**
+ * The description of the cashout method.
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'description': string;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'image_url'?: string | null;
+ /**
+ * (USD cents) The maximum amount that can be cashed out in one transaction.
+ * @type {number}
+ * @memberof CashoutMethodOut
+ */
+ 'max_value': number;
+ /**
+ * (USD cents) The minimum amount that can be cashed out in one transaction.
+ * @type {number}
+ * @memberof CashoutMethodOut
+ */
+ 'min_value': number;
+ /**
+ * A descriptive name for the cashout method.
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'name': string;
+ /**
+ * The method in which the requested payout is delivered. Allowed values: - __PAYPAL__ *(PAYPAL)*: User is paid out to their personal PayPal email address - __TANGO__ *(TANGO)*: User is paid uut via a Tango Gift Card - __DWOLLA__ *(DWOLLA)*: DWOLLA - __ACH__ *(ACH)*: A payment is made to a bank account using ACH - __WIRE__ *(WIRE)*: A payment is made to a bank account using ACH - __CASH_IN_MAIL__ *(CASH_IN_MAIL)*: A payment is made in cash and mailed to the user. - __PRIZE__ *(PRIZE)*: A payment is made as a prize with some monetary value - __AMT__ *(AMT)*: This is used to designate either AMT_BONUS or AMT_HIT - __AMT_BONUS__ *(AMT_BONUS)*: Amazon Mechanical Turk as a Bonus - __AMT_ASSIGNMENT__ *(AMT_HIT)*: Amazon Mechanical Turk for a HIT
+ * @type {PayoutType}
+ * @memberof CashoutMethodOut
+ */
+ 'type': PayoutType;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'ext_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'product_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodOut
+ */
+ 'product_user_id'?: string | null;
+}
+
+
+/**
+ *
+ * @export
+ * @interface CashoutMethodResponse
+ */
+export interface CashoutMethodResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof CashoutMethodResponse
+ */
+ 'status': CashoutMethodResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {CashoutMethodOut}
+ * @memberof CashoutMethodResponse
+ */
+ 'cashout_method': CashoutMethodOut;
+}
+
+export const CashoutMethodResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type CashoutMethodResponseStatusEnum = typeof CashoutMethodResponseStatusEnum[keyof typeof CashoutMethodResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface CashoutMethodsResponse
+ */
+export interface CashoutMethodsResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof CashoutMethodsResponse
+ */
+ 'status': CashoutMethodsResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutMethodsResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<CashoutMethodOut>}
+ * @memberof CashoutMethodsResponse
+ */
+ 'cashout_methods': Array<CashoutMethodOut>;
+}
+
+export const CashoutMethodsResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type CashoutMethodsResponseStatusEnum = typeof CashoutMethodsResponseStatusEnum[keyof typeof CashoutMethodsResponseStatusEnum];
+
+/**
+ * See models.thl.payout: PayoutEvent. We\'ve confused a Cashout and a Payout. This is used only in the API response.
+ * @export
+ * @interface CashoutRequestInfo
+ */
+export interface CashoutRequestInfo {
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestInfo
+ */
+ 'id': string | null;
+ /**
+ * This is the name of the cashout method.
+ * @type {string}
+ * @memberof CashoutRequestInfo
+ */
+ 'description': string;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestInfo
+ */
+ 'message'?: string | null;
+ /**
+ *
+ * @type {PayoutStatus}
+ * @memberof CashoutRequestInfo
+ */
+ 'status'?: PayoutStatus | null;
+ /**
+ *
+ * @type {object}
+ * @memberof CashoutRequestInfo
+ */
+ 'transaction_info'?: object | null;
+}
+
+
+/**
+ *
+ * @export
+ * @interface CashoutRequestResponse
+ */
+export interface CashoutRequestResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof CashoutRequestResponse
+ */
+ 'status': CashoutRequestResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {CashoutRequestInfo}
+ * @memberof CashoutRequestResponse
+ */
+ 'cashout': CashoutRequestInfo;
+}
+
+export const CashoutRequestResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type CashoutRequestResponseStatusEnum = typeof CashoutRequestResponseStatusEnum[keyof typeof CashoutRequestResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface Category
+ */
+export interface Category {
+ /**
+ *
+ * @type {string}
+ * @memberof Category
+ */
+ 'id': string;
+ /**
+ *
+ * @type {string}
+ * @memberof Category
+ */
+ 'adwords_vertical_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof Category
+ */
+ 'label': string;
+ /**
+ *
+ * @type {string}
+ * @memberof Category
+ */
+ 'path': string;
+ /**
+ *
+ * @type {string}
+ * @memberof Category
+ */
+ 'parent_id'?: string | null;
+}
+/**
+ * Used in an offerwall. Stores the association between a category and a bucket, with a score.
+ * @export
+ * @interface CategoryAssociation
+ */
+export interface CategoryAssociation {
+ /**
+ * The category ID
+ * @type {string}
+ * @memberof CategoryAssociation
+ */
+ 'id': string;
+ /**
+ * The category label
+ * @type {string}
+ * @memberof CategoryAssociation
+ */
+ 'label': string;
+ /**
+ *
+ * @type {string}
+ * @memberof CategoryAssociation
+ */
+ 'adwords_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof CategoryAssociation
+ */
+ 'adwords_label'?: string | null;
+ /**
+ * The strength of the association of this bucketwith this category. Will sum to 1 within a bucket.
+ * @type {number}
+ * @memberof CategoryAssociation
+ */
+ 'p': number;
+}
+/**
+ *
+ * @export
+ * @interface CountStat
+ */
+export interface CountStat {
+ /**
+ * The grouping criteria
+ * @type {{ [key: string]: FacetValue; }}
+ * @memberof CountStat
+ */
+ 'facet': { [key: string]: FacetValue; };
+ /**
+ * The count value for the given metric and facet
+ * @type {number}
+ * @memberof CountStat
+ */
+ 'count': number;
+}
+/**
+ *
+ * @export
+ * @interface CreateCashMailCashoutMethodRequest
+ */
+export interface CreateCashMailCashoutMethodRequest {
+ /**
+ * (product_user_id) The user to create this cashout method for.
+ * @type {string}
+ * @memberof CreateCashMailCashoutMethodRequest
+ */
+ 'bpuid': string;
+ /**
+ *
+ * @type {string}
+ * @memberof CreateCashMailCashoutMethodRequest
+ */
+ 'type'?: CreateCashMailCashoutMethodRequestTypeEnum;
+ /**
+ * Delivery address where payment should be sent
+ * @type {USDeliveryAddress}
+ * @memberof CreateCashMailCashoutMethodRequest
+ */
+ 'delivery_address': USDeliveryAddress;
+}
+
+export const CreateCashMailCashoutMethodRequestTypeEnum = {
+ CashInMail: 'CASH_IN_MAIL'
+} as const;
+
+export type CreateCashMailCashoutMethodRequestTypeEnum = typeof CreateCashMailCashoutMethodRequestTypeEnum[keyof typeof CreateCashMailCashoutMethodRequestTypeEnum];
+
+/**
+ *
+ * @export
+ * @interface CreateCashoutRequest
+ */
+export interface CreateCashoutRequest {
+ /**
+ * (product_user_id) The user requesting a cashout.
+ * @type {string}
+ * @memberof CreateCashoutRequest
+ */
+ 'bpuid': string;
+ /**
+ * (USD cents) The amount requested for the cashout.
+ * @type {number}
+ * @memberof CreateCashoutRequest
+ */
+ 'amount': number;
+ /**
+ * Unique ID for the cashout method the cashout is being requested with.
+ * @type {string}
+ * @memberof CreateCashoutRequest
+ */
+ 'cashout_method_id': string;
+}
+/**
+ *
+ * @export
+ * @interface CreatePayPalCashoutMethodRequest
+ */
+export interface CreatePayPalCashoutMethodRequest {
+ /**
+ * (product_user_id) The user to create this cashout method for.
+ * @type {string}
+ * @memberof CreatePayPalCashoutMethodRequest
+ */
+ 'bpuid': string;
+ /**
+ *
+ * @type {string}
+ * @memberof CreatePayPalCashoutMethodRequest
+ */
+ 'type'?: CreatePayPalCashoutMethodRequestTypeEnum;
+ /**
+ * Email address of the paypal user
+ * @type {string}
+ * @memberof CreatePayPalCashoutMethodRequest
+ */
+ 'email': string;
+}
+
+export const CreatePayPalCashoutMethodRequestTypeEnum = {
+ Paypal: 'PAYPAL'
+} as const;
+
+export type CreatePayPalCashoutMethodRequestTypeEnum = typeof CreatePayPalCashoutMethodRequestTypeEnum[keyof typeof CreatePayPalCashoutMethodRequestTypeEnum];
+
+/**
+ * @type Data
+ * @export
+ */
+export type Data = { type: 'AMT' } & AmtCashoutMethodData | { type: 'CASH_IN_MAIL' } & CashMailCashoutMethodData | { type: 'PAYPAL' } & PaypalCashoutMethodData | { type: 'TANGO' } & TangoCashoutMethodData;
+
+/**
+ * Durations are in integer seconds. Describes the statistical distribution of expected durations of tasks within this bucket.
+ * @export
+ * @interface DurationSummary
+ */
+export interface DurationSummary {
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'min': number;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'max': number;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'mean'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'q1': number;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'q2': number;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'q3': number;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'lower_whisker': number;
+ /**
+ *
+ * @type {number}
+ * @memberof DurationSummary
+ */
+ 'upper_whisker': number;
+}
+/**
+ *
+ * @export
+ * @interface FacetValue
+ */
+export interface FacetValue {
+}
+/**
+ *
+ * @export
+ * @interface HTTPValidationError
+ */
+export interface HTTPValidationError {
+ /**
+ *
+ * @type {Array<ValidationError>}
+ * @memberof HTTPValidationError
+ */
+ 'detail'?: Array<ValidationError>;
+}
+/**
+ * A leaderboard exists independently for each product_id in each country. Each country is associated with a single timezone. There is a daily, weekly, and monthly leaderboard.
+ * @export
+ * @interface Leaderboard
+ */
+export interface Leaderboard {
+ /**
+ * Unique ID for this leaderboard
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'id'?: string;
+ /**
+ * Descriptive name for the leaderboard based on the board_code
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'name'?: string;
+ /**
+ * The type of leaderboard. What the \"values\" represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @type {LeaderboardCode}
+ * @memberof Leaderboard
+ */
+ 'board_code': LeaderboardCode;
+ /**
+ * product_id
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'bpid': string;
+ /**
+ * The country this leaderboard is for.
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'country_iso': string;
+ /**
+ * The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @type {LeaderboardFrequency}
+ * @memberof Leaderboard
+ */
+ 'freq': LeaderboardFrequency;
+ /**
+ * The timezone for the requested country
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'timezone_name'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'sort_order'?: LeaderboardSortOrderEnum;
+ /**
+ * The total number of rows in the leaderboard.
+ * @type {number}
+ * @memberof Leaderboard
+ */
+ 'row_count': number;
+ /**
+ *
+ * @type {Array<LeaderboardRow>}
+ * @memberof Leaderboard
+ */
+ 'rows'?: Array<LeaderboardRow>;
+ /**
+ * (unix timestamp) The start time of the time range this leaderboard covers.
+ * @type {number}
+ * @memberof Leaderboard
+ */
+ 'start_timestamp': number;
+ /**
+ * (unix timestamp) The end time of the time range this leaderboard covers.
+ * @type {number}
+ * @memberof Leaderboard
+ */
+ 'end_timestamp': number;
+ /**
+ * The UTC offset for the timezone
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'utc_offset': string;
+ /**
+ * The start time of the time range this leaderboard covers (local time, in the leaderboard\'s timezone).
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'local_start_time': string;
+ /**
+ * The end time of the time range this leaderboard covers (local time, in the leaderboard\'s timezone).
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'local_end_time': string;
+ /**
+ * A formatted string for time period covered by this leaderboard. Can be used to display to users.
+ * @type {string}
+ * @memberof Leaderboard
+ */
+ 'start_end_str': string;
+}
+
+export const LeaderboardSortOrderEnum = {
+ Ascending: 'ascending',
+ Descending: 'descending'
+} as const;
+
+export type LeaderboardSortOrderEnum = typeof LeaderboardSortOrderEnum[keyof typeof LeaderboardSortOrderEnum];
+
+/**
+ * The type of leaderboard. What the \"values\" represent.
+ * @export
+ * @enum {string}
+ */
+
+export const LeaderboardCode = {
+ CompleteCount: 'complete_count',
+ LargestUserPayout: 'largest_user_payout',
+ SumUserPayout: 'sum_user_payout'
+} as const;
+
+export type LeaderboardCode = typeof LeaderboardCode[keyof typeof LeaderboardCode];
+
+
+/**
+ * The time period range for the leaderboard.
+ * @export
+ * @enum {string}
+ */
+
+export const LeaderboardFrequency = {
+ Daily: 'daily',
+ Weekly: 'weekly',
+ Monthly: 'monthly'
+} as const;
+
+export type LeaderboardFrequency = typeof LeaderboardFrequency[keyof typeof LeaderboardFrequency];
+
+
+/**
+ *
+ * @export
+ * @interface LeaderboardResponse
+ */
+export interface LeaderboardResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof LeaderboardResponse
+ */
+ 'status': LeaderboardResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof LeaderboardResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Leaderboard}
+ * @memberof LeaderboardResponse
+ */
+ 'leaderboard': Leaderboard;
+}
+
+export const LeaderboardResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type LeaderboardResponseStatusEnum = typeof LeaderboardResponseStatusEnum[keyof typeof LeaderboardResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface LeaderboardRow
+ */
+export interface LeaderboardRow {
+ /**
+ * product_user_id
+ * @type {string}
+ * @memberof LeaderboardRow
+ */
+ 'bpuid': string;
+ /**
+ * The numerical data ranks (1 through n) of the values. Ties are ranked using the lowest rank in the group.
+ * @type {number}
+ * @memberof LeaderboardRow
+ */
+ 'rank': number;
+ /**
+ * The value. The meaning of the value is dependent on the LeaderboardCode.
+ * @type {number}
+ * @memberof LeaderboardRow
+ */
+ 'value': number;
+}
+/**
+ *
+ * @export
+ * @interface LeaderboardWinner
+ */
+export interface LeaderboardWinner {
+ /**
+ * The user\'s final rank in the leaderboard
+ * @type {number}
+ * @memberof LeaderboardWinner
+ */
+ 'rank': number;
+ /**
+ * The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @type {LeaderboardFrequency}
+ * @memberof LeaderboardWinner
+ */
+ 'freq': LeaderboardFrequency;
+ /**
+ * The type of leaderboard. What the \"values\" represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @type {LeaderboardCode}
+ * @memberof LeaderboardWinner
+ */
+ 'board_code': LeaderboardCode;
+ /**
+ * The country this leaderboard is for.
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'country_iso': string;
+ /**
+ * When the prize was issued.
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'issued': string;
+ /**
+ * product_user_id
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'bpuid': string;
+ /**
+ *
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'description': string;
+ /**
+ * (USD cents) The reward amount
+ * @type {number}
+ * @memberof LeaderboardWinner
+ */
+ 'amount': number;
+ /**
+ * The amount as a formatted string in USD. Can be displayed to the user.
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'amount_str': string;
+ /**
+ * When the leaderboard started
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'contest_start': string;
+ /**
+ * When the leaderboard ended
+ * @type {string}
+ * @memberof LeaderboardWinner
+ */
+ 'contest_end': string;
+}
+
+
+/**
+ *
+ * @export
+ * @interface LeaderboardWinnerResponse
+ */
+export interface LeaderboardWinnerResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof LeaderboardWinnerResponse
+ */
+ 'status': LeaderboardWinnerResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof LeaderboardWinnerResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<LeaderboardWinner>}
+ * @memberof LeaderboardWinnerResponse
+ */
+ 'winners'?: Array<LeaderboardWinner>;
+}
+
+export const LeaderboardWinnerResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type LeaderboardWinnerResponseStatusEnum = typeof LeaderboardWinnerResponseStatusEnum[keyof typeof LeaderboardWinnerResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface MarketProfileKnowledge
+ */
+export interface MarketProfileKnowledge {
+ /**
+ * Name of the source
+ * @type {string}
+ * @memberof MarketProfileKnowledge
+ */
+ 'source': string;
+ /**
+ *
+ * @type {string}
+ * @memberof MarketProfileKnowledge
+ */
+ 'question_id': string;
+ /**
+ *
+ * @type {Array<string>}
+ * @memberof MarketProfileKnowledge
+ */
+ 'answer'?: Array<string>;
+ /**
+ * When the User submitted this Profiling data
+ * @type {string}
+ * @memberof MarketProfileKnowledge
+ */
+ 'created': string;
+}
+/**
+ *
+ * @export
+ * @interface MarketplaceBucket
+ */
+export interface MarketplaceBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof MarketplaceBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof MarketplaceBucket
+ */
+ 'uri': string;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the x-axis.
+ * @type {number}
+ * @memberof MarketplaceBucket
+ */
+ 'x'?: number;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the y-axis.
+ * @type {number}
+ * @memberof MarketplaceBucket
+ */
+ 'y'?: number;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof MarketplaceBucket
+ */
+ 'name'?: string;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof MarketplaceBucket
+ */
+ 'description'?: string;
+ /**
+ *
+ * @type {Array<CategoryAssociation>}
+ * @memberof MarketplaceBucket
+ */
+ 'category'?: Array<CategoryAssociation>;
+ /**
+ *
+ * @type {Array<BucketTask>}
+ * @memberof MarketplaceBucket
+ */
+ 'contents': Array<BucketTask>;
+ /**
+ *
+ * @type {DurationSummary}
+ * @memberof MarketplaceBucket
+ */
+ 'duration': DurationSummary;
+ /**
+ *
+ * @type {PayoutSummary}
+ * @memberof MarketplaceBucket
+ */
+ 'payout': PayoutSummary;
+ /**
+ * this is the source of the contents
+ * @type {string}
+ * @memberof MarketplaceBucket
+ */
+ 'source': MarketplaceBucketSourceEnum;
+}
+
+export const MarketplaceBucketSourceEnum = {
+ Innovate: 'innovate',
+ Dynata: 'dynata',
+ Schlesinger: 'schlesinger',
+ Purespectrum: 'purespectrum',
+ Morning: 'morning',
+ Pollfish: 'pollfish',
+ Precision: 'precision',
+ Repdata: 'repdata',
+ Prodege: 'prodege'
+} as const;
+
+export type MarketplaceBucketSourceEnum = typeof MarketplaceBucketSourceEnum[keyof typeof MarketplaceBucketSourceEnum];
+
+/**
+ *
+ * @export
+ * @interface MarketplaceInventorySummary
+ */
+export interface MarketplaceInventorySummary {
+ /**
+ * The count of tasks that are currently live
+ * @type {Array<CountStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'live_tasks'?: Array<CountStat>;
+ /**
+ * The count of gen-pop tasks that are currently live
+ * @type {Array<CountStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'live_gen_pop_tasks'?: Array<CountStat>;
+ /**
+ * The count of tasks created
+ * @type {Array<CountStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'tasks_created'?: Array<CountStat>;
+ /**
+ * Number of finishes needed across all live tasks
+ * @type {Array<CountStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'required_finishes'?: Array<CountStat>;
+ /**
+ * The distribution of payouts for all live tasks
+ * @type {Array<StatisticalSummaryStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'payout'?: Array<StatisticalSummaryStat>;
+ /**
+ * The distribution of expected durations for all live tasks
+ * @type {Array<StatisticalSummaryStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'expected_duration'?: Array<StatisticalSummaryStat>;
+ /**
+ * The distribution of required finishes on all live tasks
+ * @type {Array<StatisticalSummaryStat>}
+ * @memberof MarketplaceInventorySummary
+ */
+ 'required_finishes_per_task'?: Array<StatisticalSummaryStat>;
+}
+/**
+ * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality. Offerwall code: `5fa23085`
+ * @export
+ * @interface MarketplaceOfferwall
+ */
+export interface MarketplaceOfferwall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof MarketplaceOfferwall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof MarketplaceOfferwall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<MarketplaceBucket>}
+ * @memberof MarketplaceOfferwall
+ */
+ 'buckets'?: Array<MarketplaceBucket>;
+}
+/**
+ *
+ * @export
+ * @interface MarketplaceOfferwallResponse
+ */
+export interface MarketplaceOfferwallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof MarketplaceOfferwallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {MarketplaceOfferwall}
+ * @memberof MarketplaceOfferwallResponse
+ */
+ 'offerwall': MarketplaceOfferwall;
+}
+/**
+ *
+ * @export
+ * @interface MarketplaceSummary
+ */
+export interface MarketplaceSummary {
+ /**
+ * Inventory of the marketplace
+ * @type {MarketplaceInventorySummary}
+ * @memberof MarketplaceSummary
+ */
+ 'inventory': MarketplaceInventorySummary;
+ /**
+ *
+ * @type {string}
+ * @memberof MarketplaceSummary
+ */
+ 'user_activity'?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface OfferWallInfo
+ */
+export interface OfferWallInfo {
+ /**
+ *
+ * @type {boolean}
+ * @memberof OfferWallInfo
+ */
+ 'success': boolean;
+}
+/**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket. Offerwall code: `6f27b1ae`
+ * @export
+ * @interface OneShotOfferwall
+ */
+export interface OneShotOfferwall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof OneShotOfferwall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof OneShotOfferwall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<OneShotOfferwallBucket>}
+ * @memberof OneShotOfferwall
+ */
+ 'buckets'?: Array<OneShotOfferwallBucket>;
+}
+/**
+ *
+ * @export
+ * @interface OneShotOfferwallBucket
+ */
+export interface OneShotOfferwallBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof OneShotOfferwallBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof OneShotOfferwallBucket
+ */
+ 'uri': string;
+ /**
+ * The bucket\'s expected duration, in seconds
+ * @type {number}
+ * @memberof OneShotOfferwallBucket
+ */
+ 'duration': number;
+ /**
+ * The bucket\'s min payout, in usd cents
+ * @type {number}
+ * @memberof OneShotOfferwallBucket
+ */
+ 'min_payout': number;
+}
+/**
+ *
+ * @export
+ * @interface OneShotOfferwallResponse
+ */
+export interface OneShotOfferwallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof OneShotOfferwallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {OneShotOfferwall}
+ * @memberof OneShotOfferwallResponse
+ */
+ 'offerwall': OneShotOfferwall;
+}
+/**
+ *
+ * @export
+ * @interface PatternValidation
+ */
+export interface PatternValidation {
+ /**
+ * Message to display if validation fails
+ * @type {string}
+ * @memberof PatternValidation
+ */
+ 'message': string;
+ /**
+ * Regex string to validate. min_length and max_length are checked separately, even if they are part of the regex.
+ * @type {string}
+ * @memberof PatternValidation
+ */
+ 'pattern': string;
+}
+/**
+ * The max size of the db field that holds this value is 20, so please don\'t add new values longer than that!
+ * @export
+ * @enum {string}
+ */
+
+export const PayoutStatus = {
+ Pending: 'PENDING',
+ Approved: 'APPROVED',
+ Rejected: 'REJECTED',
+ Cancelled: 'CANCELLED',
+ Failed: 'FAILED',
+ Complete: 'COMPLETE'
+} as const;
+
+export type PayoutStatus = typeof PayoutStatus[keyof typeof PayoutStatus];
+
+
+/**
+ * Payouts are in Integer USD Cents
+ * @export
+ * @interface PayoutSummary
+ */
+export interface PayoutSummary {
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'min': number;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'max': number;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'mean'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'q1': number;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'q2': number;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'q3': number;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'lower_whisker': number;
+ /**
+ *
+ * @type {number}
+ * @memberof PayoutSummary
+ */
+ 'upper_whisker': number;
+}
+/**
+ * The method in which the requested payout is delivered.
+ * @export
+ * @enum {string}
+ */
+
+export const PayoutType = {
+ Paypal: 'PAYPAL',
+ Tango: 'TANGO',
+ Dwolla: 'DWOLLA',
+ Ach: 'ACH',
+ Wire: 'WIRE',
+ CashInMail: 'CASH_IN_MAIL',
+ Prize: 'PRIZE',
+ Amt: 'AMT',
+ AmtBonus: 'AMT_BONUS',
+ AmtAssignment: 'AMT_ASSIGNMENT'
+} as const;
+
+export type PayoutType = typeof PayoutType[keyof typeof PayoutType];
+
+
+/**
+ *
+ * @export
+ * @interface PaypalCashoutMethodData
+ */
+export interface PaypalCashoutMethodData {
+ /**
+ *
+ * @type {string}
+ * @memberof PaypalCashoutMethodData
+ */
+ 'type'?: PaypalCashoutMethodDataTypeEnum;
+ /**
+ * Email address of the paypal user
+ * @type {string}
+ * @memberof PaypalCashoutMethodData
+ */
+ 'email': string;
+}
+
+export const PaypalCashoutMethodDataTypeEnum = {
+ Paypal: 'PAYPAL'
+} as const;
+
+export type PaypalCashoutMethodDataTypeEnum = typeof PaypalCashoutMethodDataTypeEnum[keyof typeof PaypalCashoutMethodDataTypeEnum];
+
+/**
+ *
+ * @export
+ * @interface ProfilingInfoResponse
+ */
+export interface ProfilingInfoResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof ProfilingInfoResponse
+ */
+ 'status': ProfilingInfoResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof ProfilingInfoResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<QuestionInfo>}
+ * @memberof ProfilingInfoResponse
+ */
+ 'profiling-info': Array<QuestionInfo>;
+}
+
+export const ProfilingInfoResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type ProfilingInfoResponseStatusEnum = typeof ProfilingInfoResponseStatusEnum[keyof typeof ProfilingInfoResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const PropertyType = {
+ I: 'i',
+ N: 'n',
+ X: 'x'
+} as const;
+
+export type PropertyType = typeof PropertyType[keyof typeof PropertyType];
+
+
+/**
+ *
+ * @export
+ * @interface QuestionInfo
+ */
+export interface QuestionInfo {
+ /**
+ *
+ * @type {string}
+ * @memberof QuestionInfo
+ */
+ 'property_id': string;
+ /**
+ *
+ * @type {string}
+ * @memberof QuestionInfo
+ */
+ 'property_label': string;
+ /**
+ * Allowed values: - __i__ *(UPK_ITEM)*: UserProfileKnowledge Item - __n__ *(UPK_NUMERICAL)*: UserProfileKnowledge Numerical - __x__ *(UPK_TEXT)*: UserProfileKnowledge Text
+ * @type {string}
+ * @memberof QuestionInfo
+ */
+ 'prop_type'?: QuestionInfoPropTypeEnum;
+ /**
+ * Allowed values: - __*__ *(ZERO_OR_MORE)*: Zero or More - __?__ *(ZERO_OR_ONE)*: Zero or One
+ * @type {string}
+ * @memberof QuestionInfo
+ */
+ 'cardinality'?: QuestionInfoCardinalityEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof QuestionInfo
+ */
+ 'country_iso': string;
+ /**
+ * A Gold-Standard question has been enumerated for all possible values (per country) as best as possible by GRL,allowing it to be mapped across inventory sources. A property not marked as Gold-Standard may have: 1) marketplace qid associations & 2) category associations, but doesn\'t have a defined \'range\' (list of allowed itemsin a multiple choice question). This is used for exposing a user\'s profiling data & forthe Nudge API.
+ * @type {boolean}
+ * @memberof QuestionInfo
+ */
+ 'gold_standard'?: boolean;
+ /**
+ *
+ * @type {Array<QuestionOption>}
+ * @memberof QuestionInfo
+ */
+ 'options'?: Array<QuestionOption>;
+ /**
+ *
+ * @type {Array<Category>}
+ * @memberof QuestionInfo
+ */
+ 'category': Array<Category>;
+}
+
+export const QuestionInfoPropTypeEnum = {
+ I: 'i',
+ N: 'n',
+ X: 'x'
+} as const;
+
+export type QuestionInfoPropTypeEnum = typeof QuestionInfoPropTypeEnum[keyof typeof QuestionInfoPropTypeEnum];
+export const QuestionInfoCardinalityEnum = {
+ Star: '*',
+ QuestionMark: '?'
+} as const;
+
+export type QuestionInfoCardinalityEnum = typeof QuestionInfoCardinalityEnum[keyof typeof QuestionInfoCardinalityEnum];
+
+/**
+ *
+ * @export
+ * @interface QuestionOption
+ */
+export interface QuestionOption {
+ /**
+ *
+ * @type {string}
+ * @memberof QuestionOption
+ */
+ 'id': string;
+ /**
+ *
+ * @type {string}
+ * @memberof QuestionOption
+ */
+ 'label': string;
+}
+/**
+ * Supported Currencies for Foreign Redemptions
+ * @export
+ * @enum {string}
+ */
+
+export const RedemptionCurrency = {
+ Usd: 'USD',
+ Cad: 'CAD',
+ Gbp: 'GBP',
+ Eur: 'EUR',
+ Inr: 'INR',
+ Aud: 'AUD',
+ Pln: 'PLN',
+ Sek: 'SEK',
+ Sgd: 'SGD',
+ Mxn: 'MXN'
+} as const;
+
+export type RedemptionCurrency = typeof RedemptionCurrency[keyof typeof RedemptionCurrency];
+
+
+/**
+ *
+ * @export
+ * @interface ReportTask
+ */
+export interface ReportTask {
+ /**
+ * The unique identifier for the user, which is set by the Supplier.
+ * @type {string}
+ * @memberof ReportTask
+ */
+ 'bpuid': string;
+ /**
+ * The reason a user reported a task. Allowed values: - __0__ *(REASON_UNKNOWN)*: Used to indicate the user exited the task without giving feedback - __1__ *(TECHNICAL_ERROR)*: Task is in the wrong language/country, unanswerable question, won\'t proceed to next question, loading forever, error message - __2__ *(NO_REDIRECT)*: Task ended (completed or failed, and showed the user some dialog indicating the task was over), but failed to redirect - __3__ *(PRIVACY_INVASION)*: Asked for full name, home address, identity on another site, cc - __4__ *(UNCOMFORTABLE_TOPICS)*: Asked about children, employer, medical issues, drug use, STDs, etc. - __5__ *(ASKED_FOR_NOT_ALLOWED_ACTION)*: Asked to install software, signup/login to external site, access webcam, promise to pay using external site, etc. - __6__ *(BAD_ON_MOBILE)*: Task doesn\'t work well on a mobile device - __7__ *(DIDNT_LIKE)*: Too long, too boring, confusing, complicated, too many open-ended/free-response questions
+ * @type {Array<ReportValue>}
+ * @memberof ReportTask
+ */
+ 'reasons'?: Array<ReportValue>;
+ /**
+ *
+ * @type {string}
+ * @memberof ReportTask
+ */
+ 'notes'?: string;
+}
+/**
+ * The reason a user reported a task.
+ * @export
+ * @enum {number}
+ */
+
+export const ReportValue = {
+ NUMBER_0: 0,
+ NUMBER_1: 1,
+ NUMBER_2: 2,
+ NUMBER_3: 3,
+ NUMBER_4: 4,
+ NUMBER_5: 5,
+ NUMBER_6: 6,
+ NUMBER_7: 7
+} as const;
+
+export type ReportValue = typeof ReportValue[keyof typeof ReportValue];
+
+
+/**
+ *
+ * @export
+ * @interface Selector
+ */
+export interface Selector {
+}
+/**
+ * An adjusted_status is set if a session is adjusted by the marketplace after the original return. A session can be adjusted multiple times. This is the most recent status. If a session was originally a complete, was adjusted to incomplete, then back to complete, the adjusted_status will be None, but the adjusted_timestamp will be set to the most recent change.
+ * @export
+ * @enum {string}
+ */
+
+export const SessionAdjustedStatus = {
+ Ac: 'ac',
+ Af: 'af',
+ Pa: 'pa'
+} as const;
+
+export type SessionAdjustedStatus = typeof SessionAdjustedStatus[keyof typeof SessionAdjustedStatus];
+
+
+/**
+ * __Status Detail__ This should be set if the Session.status_code_1 is SESSION_XXX_FAIL
+ * @export
+ * @enum {number}
+ */
+
+export const SessionStatusCode2 = {
+ NUMBER_1: 1,
+ NUMBER_2: 2,
+ NUMBER_3: 3,
+ NUMBER_4: 4,
+ NUMBER_5: 5,
+ NUMBER_6: 6,
+ NUMBER_7: 7,
+ NUMBER_8: 8,
+ NUMBER_9: 9,
+ NUMBER_10: 10,
+ NUMBER_11: 11,
+ NUMBER_12: 12,
+ NUMBER_13: 13
+} as const;
+
+export type SessionStatusCode2 = typeof SessionStatusCode2[keyof typeof SessionStatusCode2];
+
+
+/**
+ *
+ * @export
+ * @interface SingleEntryBucket
+ */
+export interface SingleEntryBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof SingleEntryBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof SingleEntryBucket
+ */
+ 'uri': string;
+}
+/**
+ * Only returns a single bucket with the top scoring tasks. Offerwall code: `5fl8bpv5`
+ * @export
+ * @interface SingleEntryOfferWall
+ */
+export interface SingleEntryOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof SingleEntryOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof SingleEntryOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<SingleEntryBucket>}
+ * @memberof SingleEntryOfferWall
+ */
+ 'buckets'?: Array<SingleEntryBucket>;
+ /**
+ * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
+ * @type {string}
+ * @memberof SingleEntryOfferWall
+ */
+ 'payout_format': string;
+}
+/**
+ *
+ * @export
+ * @interface SingleEntryOfferWallResponse
+ */
+export interface SingleEntryOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof SingleEntryOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {SingleEntryOfferWall}
+ * @memberof SingleEntryOfferWallResponse
+ */
+ 'offerwall': SingleEntryOfferWall;
+}
+/**
+ *
+ * @export
+ * @interface SoftPairBucket
+ */
+export interface SoftPairBucket {
+ [key: string]: any;
+
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof SoftPairBucket
+ */
+ 'id': string;
+ /**
+ *
+ * @type {Uri}
+ * @memberof SoftPairBucket
+ */
+ 'uri': Uri;
+ /**
+ *
+ * @type {Array<CategoryAssociation>}
+ * @memberof SoftPairBucket
+ */
+ 'category'?: Array<CategoryAssociation>;
+ /**
+ *
+ * @type {Array<BucketTask>}
+ * @memberof SoftPairBucket
+ */
+ 'contents': Array<BucketTask>;
+ /**
+ *
+ * @type {string}
+ * @memberof SoftPairBucket
+ */
+ 'eligibility': SoftPairBucketEligibilityEnum;
+ /**
+ *
+ * @type {Array<string | null>}
+ * @memberof SoftPairBucket
+ */
+ 'missing_questions'?: Array<string | null>;
+ /**
+ * this is the max loi of the contents
+ * @type {number}
+ * @memberof SoftPairBucket
+ */
+ 'loi': number;
+ /**
+ * this is the min payout of the contents
+ * @type {number}
+ * @memberof SoftPairBucket
+ */
+ 'payout': number;
+}
+
+export const SoftPairBucketEligibilityEnum = {
+ Conditional: 'conditional',
+ Unconditional: 'unconditional',
+ Ineligible: 'ineligible'
+} as const;
+
+export type SoftPairBucketEligibilityEnum = typeof SoftPairBucketEligibilityEnum[keyof typeof SoftPairBucketEligibilityEnum];
+
+/**
+ * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience. Offerwall code: `37d1da64`
+ * @export
+ * @interface SoftPairOfferwall
+ */
+export interface SoftPairOfferwall {
+ [key: string]: any;
+
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof SoftPairOfferwall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof SoftPairOfferwall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<SoftPairBucket>}
+ * @memberof SoftPairOfferwall
+ */
+ 'buckets'?: Array<SoftPairBucket>;
+ /**
+ *
+ * @type {{ [key: string]: UpkQuestion; }}
+ * @memberof SoftPairOfferwall
+ */
+ 'question_info'?: { [key: string]: UpkQuestion; };
+}
+/**
+ *
+ * @export
+ * @interface SoftPairOfferwallResponse
+ */
+export interface SoftPairOfferwallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof SoftPairOfferwallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {SoftPairOfferwall}
+ * @memberof SoftPairOfferwallResponse
+ */
+ 'offerwall': SoftPairOfferwall;
+}
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const Source = {
+ G: 'g',
+ C: 'c',
+ A: 'a',
+ D: 'd',
+ Et: 'et',
+ F: 'f',
+ I: 'i',
+ L: 'l',
+ M: 'm',
+ N: 'n',
+ O: 'o',
+ E: 'e',
+ R: 'r',
+ Pr: 'pr',
+ P: 'p',
+ Rd: 'rd',
+ H: 'h',
+ S: 's',
+ T: 't',
+ U: 'u',
+ W: 'w'
+} as const;
+
+export type Source = typeof Source[keyof typeof Source];
+
+
+/**
+ * An offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket\'s features. Offerwall code: `b59a2d2b`
+ * @export
+ * @interface StarwallOfferWall
+ */
+export interface StarwallOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof StarwallOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof StarwallOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNBucket>}
+ * @memberof StarwallOfferWall
+ */
+ 'buckets'?: Array<TopNBucket>;
+ /**
+ * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
+ * @type {string}
+ * @memberof StarwallOfferWall
+ */
+ 'payout_format': string;
+}
+/**
+ *
+ * @export
+ * @interface StarwallOfferWallResponse
+ */
+export interface StarwallOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof StarwallOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {StarwallOfferWall}
+ * @memberof StarwallOfferWallResponse
+ */
+ 'offerwall': StarwallOfferWall;
+}
+/**
+ * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked. Offerwall code: `7fa1b3f4`
+ * @export
+ * @interface StarwallPlusBlockOfferWall
+ */
+export interface StarwallPlusBlockOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof StarwallPlusBlockOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof StarwallPlusBlockOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNPlusBucket>}
+ * @memberof StarwallPlusBlockOfferWall
+ */
+ 'buckets'?: Array<TopNPlusBucket>;
+}
+/**
+ *
+ * @export
+ * @interface StarwallPlusBlockOfferWallResponse
+ */
+export interface StarwallPlusBlockOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof StarwallPlusBlockOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {StarwallPlusBlockOfferWall}
+ * @memberof StarwallPlusBlockOfferWallResponse
+ */
+ 'offerwall': StarwallPlusBlockOfferWall;
+}
+/**
+ * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a recontact key. Offerwall code: `630db2a4`
+ * @export
+ * @interface StarwallPlusBlockRecontactOfferWall
+ */
+export interface StarwallPlusBlockRecontactOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof StarwallPlusBlockRecontactOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof StarwallPlusBlockRecontactOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNPlusRecontactBucket>}
+ * @memberof StarwallPlusBlockRecontactOfferWall
+ */
+ 'buckets'?: Array<TopNPlusRecontactBucket>;
+}
+/**
+ *
+ * @export
+ * @interface StarwallPlusBlockRecontactOfferWallResponse
+ */
+export interface StarwallPlusBlockRecontactOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof StarwallPlusBlockRecontactOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {StarwallPlusBlockRecontactOfferWall}
+ * @memberof StarwallPlusBlockRecontactOfferWallResponse
+ */
+ 'offerwall': StarwallPlusBlockRecontactOfferWall;
+}
+/**
+ * Same as the StarwallOfferWall, but the buckets include contents. Offerwall code: `5481f322`
+ * @export
+ * @interface StarwallPlusOfferWall
+ */
+export interface StarwallPlusOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof StarwallPlusOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof StarwallPlusOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNPlusBucket>}
+ * @memberof StarwallPlusOfferWall
+ */
+ 'buckets'?: Array<TopNPlusBucket>;
+}
+/**
+ *
+ * @export
+ * @interface StarwallPlusOfferWallResponse
+ */
+export interface StarwallPlusOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof StarwallPlusOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {StarwallPlusOfferWall}
+ * @memberof StarwallPlusOfferWallResponse
+ */
+ 'offerwall': StarwallPlusOfferWall;
+}
+/**
+ *
+ * @export
+ * @interface StatisticalSummaryStat
+ */
+export interface StatisticalSummaryStat {
+ /**
+ * The grouping criteria
+ * @type {{ [key: string]: FacetValue; }}
+ * @memberof StatisticalSummaryStat
+ */
+ 'facet': { [key: string]: FacetValue; };
+ /**
+ * Statistical Summary for the given metric and facet
+ * @type {StatisticalSummaryValue}
+ * @memberof StatisticalSummaryStat
+ */
+ 'value': StatisticalSummaryValue;
+}
+/**
+ *
+ * @export
+ * @interface StatisticalSummaryValue
+ */
+export interface StatisticalSummaryValue {
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'min': number;
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'max': number;
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'mean': number;
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'q1': number;
+ /**
+ * equal to the median
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'q2': number;
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'q3': number;
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'lower_whisker': number;
+ /**
+ *
+ * @type {number}
+ * @memberof StatisticalSummaryValue
+ */
+ 'upper_whisker': number;
+}
+/**
+ * __High level status code for outcome of the session.__ This should only be NULL if the Status is ABANDON or TIMEOUT
+ * @export
+ * @enum {number}
+ */
+
+export const StatusCode1 = {
+ NUMBER_1: 1,
+ NUMBER_2: 2,
+ NUMBER_3: 3,
+ NUMBER_4: 4,
+ NUMBER_5: 5,
+ NUMBER_6: 6,
+ NUMBER_7: 7,
+ NUMBER_8: 8,
+ NUMBER_9: 9,
+ NUMBER_10: 10,
+ NUMBER_11: 11,
+ NUMBER_12: 12,
+ NUMBER_13: 13,
+ NUMBER_14: 14,
+ NUMBER_15: 15,
+ NUMBER_16: 16,
+ NUMBER_17: 17,
+ NUMBER_18: 18,
+ NUMBER_19: 19
+} as const;
+
+export type StatusCode1 = typeof StatusCode1[keyof typeof StatusCode1];
+
+
+/**
+ *
+ * @export
+ * @interface StatusInfoResponseFail
+ */
+export interface StatusInfoResponseFail {
+ /**
+ *
+ * @type {StatusSuccessFail}
+ * @memberof StatusInfoResponseFail
+ */
+ 'info': StatusSuccessFail;
+ /**
+ * An optional message, if success is False
+ * @type {string}
+ * @memberof StatusInfoResponseFail
+ */
+ 'msg': string;
+}
+/**
+ *
+ * @export
+ * @interface StatusResponse
+ */
+export interface StatusResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof StatusResponse
+ */
+ 'status': StatusResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof StatusResponse
+ */
+ 'msg'?: string | null;
+}
+
+export const StatusResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type StatusResponseStatusEnum = typeof StatusResponseStatusEnum[keyof typeof StatusResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface StatusResponseFailure
+ */
+export interface StatusResponseFailure {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof StatusResponseFailure
+ */
+ 'status': StatusResponseFailureStatusEnum;
+ /**
+ * An optional message, if the status is failure.
+ * @type {string}
+ * @memberof StatusResponseFailure
+ */
+ 'msg': string;
+}
+
+export const StatusResponseFailureStatusEnum = {
+ Failure: 'failure'
+} as const;
+
+export type StatusResponseFailureStatusEnum = typeof StatusResponseFailureStatusEnum[keyof typeof StatusResponseFailureStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface StatusSuccessFail
+ */
+export interface StatusSuccessFail {
+ /**
+ * Whether the API response is successful.
+ * @type {boolean}
+ * @memberof StatusSuccessFail
+ */
+ 'success'?: boolean;
+}
+/**
+ *
+ * @export
+ * @interface TangoCashoutMethodData
+ */
+export interface TangoCashoutMethodData {
+ /**
+ *
+ * @type {string}
+ * @memberof TangoCashoutMethodData
+ */
+ 'type'?: TangoCashoutMethodDataTypeEnum;
+ /**
+ * tango utid
+ * @type {string}
+ * @memberof TangoCashoutMethodData
+ */
+ 'utid': string;
+ /**
+ *
+ * @type {Array<string>}
+ * @memberof TangoCashoutMethodData
+ */
+ 'countries': Array<string>;
+ /**
+ *
+ * @type {string}
+ * @memberof TangoCashoutMethodData
+ */
+ 'value_type': TangoCashoutMethodDataValueTypeEnum;
+}
+
+export const TangoCashoutMethodDataTypeEnum = {
+ Tango: 'TANGO'
+} as const;
+
+export type TangoCashoutMethodDataTypeEnum = typeof TangoCashoutMethodDataTypeEnum[keyof typeof TangoCashoutMethodDataTypeEnum];
+export const TangoCashoutMethodDataValueTypeEnum = {
+ Variable: 'variable',
+ Fixed: 'fixed'
+} as const;
+
+export type TangoCashoutMethodDataValueTypeEnum = typeof TangoCashoutMethodDataValueTypeEnum[keyof typeof TangoCashoutMethodDataValueTypeEnum];
+
+/**
+ * Used in the Task Status API call when queried using a TSID (task status ID) Note: the api response is a little different from the internal representation b/c: - Include some old stuff: \"currency\": \"USD\", \"final_status\": 0, - status_code_1 and status_code_2 use the enum NAME, not the value - The status is the grpc\'s enum value, NOT the pydantic\'s - payout, user_payout, and user_payout_string are not Nullable - payout_format is null on list statuses
+ * @export
+ * @interface TaskStatusResponseOut
+ */
+export interface TaskStatusResponseOut {
+ /**
+ * A unique identifier for the session
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'tsid': string;
+ /**
+ * The BP ID of the associated respondent
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'product_id': string;
+ /**
+ * A unique identifier for each user, which is set by the Supplier
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'product_user_id': string;
+ /**
+ * When the session was started
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'started': string;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'finished'?: string | null;
+ /**
+ * The outcome of a session. - 0 - UNKNOWN - 1 - ENTER (the user has not yet returned) - 2 - INCOMPLETE (the user failed) - 3 - COMPLETE (the user completed the task)
+ * @type {number}
+ * @memberof TaskStatusResponseOut
+ */
+ 'status'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof TaskStatusResponseOut
+ */
+ 'payout'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof TaskStatusResponseOut
+ */
+ 'user_payout'?: number | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'payout_format'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'user_payout_string'?: string | null;
+ /**
+ * Any extra url params used in the offerwall request will be passed back here
+ * @type {{ [key: string]: string; }}
+ * @memberof TaskStatusResponseOut
+ */
+ 'kwargs'?: { [key: string]: string; };
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'status_code_1'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'status_code_2'?: string | null;
+ /**
+ *
+ * @type {SessionAdjustedStatus}
+ * @memberof TaskStatusResponseOut
+ */
+ 'adjusted_status'?: SessionAdjustedStatus | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'adjusted_timestamp'?: string | null;
+ /**
+ *
+ * @type {number}
+ * @memberof TaskStatusResponseOut
+ */
+ 'adjusted_payout'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof TaskStatusResponseOut
+ */
+ 'adjusted_user_payout'?: number | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'adjusted_user_payout_string'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'currency'?: TaskStatusResponseOutCurrencyEnum;
+ /**
+ * This is deprecated
+ * @type {number}
+ * @memberof TaskStatusResponseOut
+ */
+ 'final_status'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskStatusResponseOut
+ */
+ 'bpuid': string;
+}
+
+export const TaskStatusResponseOutCurrencyEnum = {
+ Usd: 'USD'
+} as const;
+
+export type TaskStatusResponseOutCurrencyEnum = typeof TaskStatusResponseOutCurrencyEnum[keyof typeof TaskStatusResponseOutCurrencyEnum];
+
+/**
+ *
+ * @export
+ * @interface TasksStatusResponseOut
+ */
+export interface TasksStatusResponseOut {
+ /**
+ *
+ * @type {Array<TaskStatusResponseOut>}
+ * @memberof TasksStatusResponseOut
+ */
+ 'tasks_status'?: Array<TaskStatusResponseOut>;
+}
+/**
+ *
+ * @export
+ * @interface TopNBucket
+ */
+export interface TopNBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof TopNBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof TopNBucket
+ */
+ 'uri': string;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the x-axis.
+ * @type {number}
+ * @memberof TopNBucket
+ */
+ 'x'?: number;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the y-axis.
+ * @type {number}
+ * @memberof TopNBucket
+ */
+ 'y'?: number;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof TopNBucket
+ */
+ 'name'?: string;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof TopNBucket
+ */
+ 'description'?: string;
+ /**
+ *
+ * @type {Array<CategoryAssociation>}
+ * @memberof TopNBucket
+ */
+ 'category'?: Array<CategoryAssociation>;
+ /**
+ *
+ * @type {DurationSummary}
+ * @memberof TopNBucket
+ */
+ 'duration': DurationSummary;
+ /**
+ *
+ * @type {PayoutSummary}
+ * @memberof TopNBucket
+ */
+ 'payout': PayoutSummary;
+ /**
+ * A proprietary score to determine the overall quality of the tasks that are within the bucket. Higher is better.
+ * @type {number}
+ * @memberof TopNBucket
+ */
+ 'quality_score': number;
+}
+/**
+ * An offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering. Offerwall code: `45b7228a7`
+ * @export
+ * @interface TopNOfferWall
+ */
+export interface TopNOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof TopNOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof TopNOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNBucket>}
+ * @memberof TopNOfferWall
+ */
+ 'buckets'?: Array<TopNBucket>;
+ /**
+ * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
+ * @type {string}
+ * @memberof TopNOfferWall
+ */
+ 'payout_format': string;
+}
+/**
+ *
+ * @export
+ * @interface TopNOfferWallResponse
+ */
+export interface TopNOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof TopNOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {TopNOfferWall}
+ * @memberof TopNOfferWallResponse
+ */
+ 'offerwall': TopNOfferWall;
+}
+/**
+ * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked. Offerwall code: `d48cce47`
+ * @export
+ * @interface TopNPlusBlockOfferWall
+ */
+export interface TopNPlusBlockOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof TopNPlusBlockOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof TopNPlusBlockOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNPlusBucket>}
+ * @memberof TopNPlusBlockOfferWall
+ */
+ 'buckets'?: Array<TopNPlusBucket>;
+}
+/**
+ *
+ * @export
+ * @interface TopNPlusBlockOfferWallResponse
+ */
+export interface TopNPlusBlockOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof TopNPlusBlockOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {TopNPlusBlockOfferWall}
+ * @memberof TopNPlusBlockOfferWallResponse
+ */
+ 'offerwall': TopNPlusBlockOfferWall;
+}
+/**
+ * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key. Offerwall code: `1e5f0af8`
+ * @export
+ * @interface TopNPlusBlockRecontactOfferWall
+ */
+export interface TopNPlusBlockRecontactOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof TopNPlusBlockRecontactOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof TopNPlusBlockRecontactOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNPlusRecontactBucket>}
+ * @memberof TopNPlusBlockRecontactOfferWall
+ */
+ 'buckets'?: Array<TopNPlusRecontactBucket>;
+}
+/**
+ *
+ * @export
+ * @interface TopNPlusBlockRecontactOfferWallResponse
+ */
+export interface TopNPlusBlockRecontactOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof TopNPlusBlockRecontactOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {TopNPlusBlockRecontactOfferWall}
+ * @memberof TopNPlusBlockRecontactOfferWallResponse
+ */
+ 'offerwall': TopNPlusBlockRecontactOfferWall;
+}
+/**
+ *
+ * @export
+ * @interface TopNPlusBucket
+ */
+export interface TopNPlusBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof TopNPlusBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof TopNPlusBucket
+ */
+ 'uri': string;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the x-axis.
+ * @type {number}
+ * @memberof TopNPlusBucket
+ */
+ 'x'?: number;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the y-axis.
+ * @type {number}
+ * @memberof TopNPlusBucket
+ */
+ 'y'?: number;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof TopNPlusBucket
+ */
+ 'name'?: string;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof TopNPlusBucket
+ */
+ 'description'?: string;
+ /**
+ *
+ * @type {Array<CategoryAssociation>}
+ * @memberof TopNPlusBucket
+ */
+ 'category'?: Array<CategoryAssociation>;
+ /**
+ *
+ * @type {Array<BucketTask>}
+ * @memberof TopNPlusBucket
+ */
+ 'contents': Array<BucketTask>;
+ /**
+ *
+ * @type {DurationSummary}
+ * @memberof TopNPlusBucket
+ */
+ 'duration': DurationSummary;
+ /**
+ *
+ * @type {PayoutSummary}
+ * @memberof TopNPlusBucket
+ */
+ 'payout': PayoutSummary;
+ /**
+ *
+ * @type {number}
+ * @memberof TopNPlusBucket
+ */
+ 'quality_score': number;
+ /**
+ * This will always be \'USD\'
+ * @type {string}
+ * @memberof TopNPlusBucket
+ */
+ 'currency'?: string;
+}
+/**
+ * Same as the TopNOfferWall, but the buckets include contents. Offerwall code: `b145b803`
+ * @export
+ * @interface TopNPlusOfferWall
+ */
+export interface TopNPlusOfferWall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof TopNPlusOfferWall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof TopNPlusOfferWall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<TopNPlusBucket>}
+ * @memberof TopNPlusOfferWall
+ */
+ 'buckets'?: Array<TopNPlusBucket>;
+}
+/**
+ *
+ * @export
+ * @interface TopNPlusOfferWallResponse
+ */
+export interface TopNPlusOfferWallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof TopNPlusOfferWallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {TopNPlusOfferWall}
+ * @memberof TopNPlusOfferWallResponse
+ */
+ 'offerwall': TopNPlusOfferWall;
+}
+/**
+ *
+ * @export
+ * @interface TopNPlusRecontactBucket
+ */
+export interface TopNPlusRecontactBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'uri': string;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the x-axis.
+ * @type {number}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'x'?: number;
+ /**
+ * For UI. Provides a dimensionality position for the bucket on the y-axis.
+ * @type {number}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'y'?: number;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'name'?: string;
+ /**
+ * Currently unused. Will always return empty string
+ * @type {string}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'description'?: string;
+ /**
+ *
+ * @type {Array<CategoryAssociation>}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'category'?: Array<CategoryAssociation>;
+ /**
+ *
+ * @type {Array<BucketTask>}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'contents': Array<BucketTask>;
+ /**
+ *
+ * @type {DurationSummary}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'duration': DurationSummary;
+ /**
+ *
+ * @type {PayoutSummary}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'payout': PayoutSummary;
+ /**
+ *
+ * @type {number}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'quality_score': number;
+ /**
+ *
+ * @type {boolean}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'is_recontact': boolean;
+ /**
+ * This will always be \'USD\'
+ * @type {string}
+ * @memberof TopNPlusRecontactBucket
+ */
+ 'currency'?: string;
+}
+/**
+ *
+ * @export
+ * @interface UPKImportance
+ */
+export interface UPKImportance {
+ /**
+ *
+ * @type {number}
+ * @memberof UPKImportance
+ */
+ 'task_count'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UPKImportance
+ */
+ 'task_score'?: number | null;
+ /**
+ *
+ * @type {{ [key: string]: number; }}
+ * @memberof UPKImportance
+ */
+ 'marketplace_task_count'?: { [key: string]: number; } | null;
+}
+/**
+ *
+ * @export
+ * @interface USDeliveryAddress
+ */
+export interface USDeliveryAddress {
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'name_or_attn': string;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'company'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'phone_number'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'address': string;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'city': string;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'state': string;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'postal_code': string;
+ /**
+ *
+ * @type {string}
+ * @memberof USDeliveryAddress
+ */
+ 'country'?: string;
+}
+/**
+ *
+ * @export
+ * @interface UpkQuestion
+ */
+export interface UpkQuestion {
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestion
+ */
+ 'question_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestion
+ */
+ 'ext_question_id'?: string | null;
+ /**
+ *
+ * @type {UpkQuestionType}
+ * @memberof UpkQuestion
+ */
+ 'question_type': UpkQuestionType;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestion
+ */
+ 'country_iso': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestion
+ */
+ 'language_iso': string;
+ /**
+ * The text shown to respondents
+ * @type {string}
+ * @memberof UpkQuestion
+ */
+ 'question_text': string;
+ /**
+ *
+ * @type {Array<UpkQuestionChoice>}
+ * @memberof UpkQuestion
+ */
+ 'choices'?: Array<UpkQuestionChoice> | null;
+ /**
+ *
+ * @type {Selector}
+ * @memberof UpkQuestion
+ */
+ 'selector'?: Selector;
+ /**
+ *
+ * @type {UpkQuestionConfiguration}
+ * @memberof UpkQuestion
+ */
+ 'configuration'?: UpkQuestionConfiguration | null;
+ /**
+ *
+ * @type {UpkQuestionValidation}
+ * @memberof UpkQuestion
+ */
+ 'validation'?: UpkQuestionValidation | null;
+ /**
+ *
+ * @type {UPKImportance}
+ * @memberof UpkQuestion
+ */
+ 'importance'?: UPKImportance | null;
+}
+
+
+/**
+ *
+ * @export
+ * @interface UpkQuestionChoice
+ */
+export interface UpkQuestionChoice {
+ /**
+ * The unique identifier for a response to a qualification
+ * @type {string}
+ * @memberof UpkQuestionChoice
+ */
+ 'choice_id': string;
+ /**
+ * The response text shown to respondents
+ * @type {string}
+ * @memberof UpkQuestionChoice
+ */
+ 'choice_text': string;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionChoice
+ */
+ 'order': number;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionChoice
+ */
+ 'group'?: number | null;
+ /**
+ * If answer is exclusive, it can be the only option selected
+ * @type {boolean}
+ * @memberof UpkQuestionChoice
+ */
+ 'exclusive'?: boolean;
+ /**
+ *
+ * @type {UPKImportance}
+ * @memberof UpkQuestionChoice
+ */
+ 'importance'?: UPKImportance | null;
+}
+/**
+ *
+ * @export
+ * @interface UpkQuestionChoiceOut
+ */
+export interface UpkQuestionChoiceOut {
+ /**
+ * The unique identifier for a response to a qualification
+ * @type {string}
+ * @memberof UpkQuestionChoiceOut
+ */
+ 'choice_id': string;
+ /**
+ * The response text shown to respondents
+ * @type {string}
+ * @memberof UpkQuestionChoiceOut
+ */
+ 'choice_text': string;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionChoiceOut
+ */
+ 'order': number;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionChoiceOut
+ */
+ 'group'?: number | null;
+ /**
+ * If answer is exclusive, it can be the only option selected
+ * @type {boolean}
+ * @memberof UpkQuestionChoiceOut
+ */
+ 'exclusive'?: boolean;
+}
+/**
+ * @type UpkQuestionConfiguration
+ * @export
+ */
+export type UpkQuestionConfiguration = { type: 'MC' } & UpkQuestionConfigurationMC | { type: 'SLIDER' } & UpkQuestionConfigurationSLIDER | { type: 'TE' } & UpkQuestionConfigurationTE;
+
+/**
+ *
+ * @export
+ * @interface UpkQuestionConfigurationMC
+ */
+export interface UpkQuestionConfigurationMC {
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationMC
+ */
+ 'max_select'?: number | null;
+}
+/**
+ *
+ * @export
+ * @interface UpkQuestionConfigurationSLIDER
+ */
+export interface UpkQuestionConfigurationSLIDER {
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationSLIDER
+ */
+ 'slider_min'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationSLIDER
+ */
+ 'slider_max'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationSLIDER
+ */
+ 'slider_start'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationSLIDER
+ */
+ 'slider_step'?: number | null;
+}
+/**
+ *
+ * @export
+ * @interface UpkQuestionConfigurationTE
+ */
+export interface UpkQuestionConfigurationTE {
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationTE
+ */
+ 'max_length'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionConfigurationTE
+ */
+ 'min_length'?: number | null;
+}
+/**
+ *
+ * @export
+ * @interface UpkQuestionOut
+ */
+export interface UpkQuestionOut {
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestionOut
+ */
+ 'question_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestionOut
+ */
+ 'ext_question_id'?: string | null;
+ /**
+ *
+ * @type {UpkQuestionType}
+ * @memberof UpkQuestionOut
+ */
+ 'question_type': UpkQuestionType;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestionOut
+ */
+ 'country_iso': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestionOut
+ */
+ 'language_iso': string;
+ /**
+ * The text shown to respondents
+ * @type {string}
+ * @memberof UpkQuestionOut
+ */
+ 'question_text': string;
+ /**
+ *
+ * @type {Array<UpkQuestionChoiceOut>}
+ * @memberof UpkQuestionOut
+ */
+ 'choices'?: Array<UpkQuestionChoiceOut> | null;
+ /**
+ *
+ * @type {Selector}
+ * @memberof UpkQuestionOut
+ */
+ 'selector'?: Selector;
+ /**
+ *
+ * @type {UpkQuestionConfiguration}
+ * @memberof UpkQuestionOut
+ */
+ 'configuration'?: UpkQuestionConfiguration | null;
+ /**
+ *
+ * @type {UpkQuestionValidation}
+ * @memberof UpkQuestionOut
+ */
+ 'validation'?: UpkQuestionValidation | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionOut
+ */
+ 'task_count'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof UpkQuestionOut
+ */
+ 'task_score'?: number | null;
+ /**
+ *
+ * @type {{ [key: string]: number; }}
+ * @memberof UpkQuestionOut
+ */
+ 'marketplace_task_count'?: { [key: string]: number; } | null;
+}
+
+
+/**
+ *
+ * @export
+ * @interface UpkQuestionResponse
+ */
+export interface UpkQuestionResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof UpkQuestionResponse
+ */
+ 'status': UpkQuestionResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UpkQuestionResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<UpkQuestionOut>}
+ * @memberof UpkQuestionResponse
+ */
+ 'questions': Array<UpkQuestionOut>;
+ /**
+ * For internal use
+ * @type {Array<object>}
+ * @memberof UpkQuestionResponse
+ */
+ 'consent_questions'?: Array<object>;
+ /**
+ * For internal use
+ * @type {Array<object>}
+ * @memberof UpkQuestionResponse
+ */
+ 'special_questions'?: Array<object>;
+ /**
+ * The number of questions returned
+ * @type {number}
+ * @memberof UpkQuestionResponse
+ */
+ 'count': number;
+}
+
+export const UpkQuestionResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type UpkQuestionResponseStatusEnum = typeof UpkQuestionResponseStatusEnum[keyof typeof UpkQuestionResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const UpkQuestionSelectorHIDDEN = {
+ Hidden: 'HIDDEN'
+} as const;
+
+export type UpkQuestionSelectorHIDDEN = typeof UpkQuestionSelectorHIDDEN[keyof typeof UpkQuestionSelectorHIDDEN];
+
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const UpkQuestionSelectorMC = {
+ Sa: 'SA',
+ Ma: 'MA',
+ Dl: 'DL',
+ Sb: 'SB',
+ Msb: 'MSB'
+} as const;
+
+export type UpkQuestionSelectorMC = typeof UpkQuestionSelectorMC[keyof typeof UpkQuestionSelectorMC];
+
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const UpkQuestionSelectorSLIDER = {
+ Hslider: 'HSLIDER',
+ Vslider: 'VSLIDER'
+} as const;
+
+export type UpkQuestionSelectorSLIDER = typeof UpkQuestionSelectorSLIDER[keyof typeof UpkQuestionSelectorSLIDER];
+
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const UpkQuestionSelectorTE = {
+ Sl: 'SL',
+ Ml: 'ML',
+ Etb: 'ETB'
+} as const;
+
+export type UpkQuestionSelectorTE = typeof UpkQuestionSelectorTE[keyof typeof UpkQuestionSelectorTE];
+
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const UpkQuestionType = {
+ Mc: 'MC',
+ Te: 'TE',
+ Slider: 'SLIDER',
+ Hidden: 'HIDDEN'
+} as const;
+
+export type UpkQuestionType = typeof UpkQuestionType[keyof typeof UpkQuestionType];
+
+
+/**
+ *
+ * @export
+ * @interface UpkQuestionValidation
+ */
+export interface UpkQuestionValidation {
+ /**
+ *
+ * @type {Array<PatternValidation>}
+ * @memberof UpkQuestionValidation
+ */
+ 'patterns': Array<PatternValidation> | null;
+}
+/**
+ * The URL to send a respondent into. Must not edit this URL in any way. If the eligibility is conditional or ineligible, the uri will be null.
+ * @export
+ * @interface Uri
+ */
+export interface Uri {
+}
+/**
+ *
+ * @export
+ * @interface User
+ */
+export interface User {
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'uuid'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'product_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'product_user_id'?: string | null;
+ /**
+ *
+ * @type {boolean}
+ * @memberof User
+ */
+ 'blocked'?: boolean | null;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'created'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'last_seen'?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface UserInfo
+ */
+export interface UserInfo {
+ /**
+ *
+ * @type {Array<UserProfileKnowledge>}
+ * @memberof UserInfo
+ */
+ 'user_profile_knowledge'?: Array<UserProfileKnowledge>;
+ /**
+ *
+ * @type {Array<MarketProfileKnowledge>}
+ * @memberof UserInfo
+ */
+ 'marketplace_profile_knowledge'?: Array<MarketProfileKnowledge>;
+}
+/**
+ *
+ * @export
+ * @interface UserInfoResponse
+ */
+export interface UserInfoResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof UserInfoResponse
+ */
+ 'status': UserInfoResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UserInfoResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {UserInfo}
+ * @memberof UserInfoResponse
+ */
+ 'user-profile': UserInfo;
+}
+
+export const UserInfoResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type UserInfoResponseStatusEnum = typeof UserInfoResponseStatusEnum[keyof typeof UserInfoResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface UserProfile
+ */
+export interface UserProfile {
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfile
+ */
+ 'email_address'?: string | null;
+ /**
+ *
+ * @type {User}
+ * @memberof UserProfile
+ */
+ 'user': User;
+ /**
+ * User\'s PID in marketplaces
+ * @type {{ [key: string]: string; }}
+ * @memberof UserProfile
+ */
+ 'marketplace_pids'?: { [key: string]: string; };
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfile
+ */
+ 'email_md5': string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfile
+ */
+ 'email_sha1': string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfile
+ */
+ 'email_sha256': string | null;
+}
+/**
+ *
+ * @export
+ * @interface UserProfileKnowledge
+ */
+export interface UserProfileKnowledge {
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledge
+ */
+ 'property_id': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledge
+ */
+ 'property_label': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledge
+ */
+ 'translation': string;
+ /**
+ *
+ * @type {Array<UserProfileKnowledgeAnswer>}
+ * @memberof UserProfileKnowledge
+ */
+ 'answer'?: Array<UserProfileKnowledgeAnswer>;
+ /**
+ * When the User submitted this Profiling data
+ * @type {string}
+ * @memberof UserProfileKnowledge
+ */
+ 'created': string;
+}
+/**
+ *
+ * @export
+ * @interface UserProfileKnowledgeAnswer
+ */
+export interface UserProfileKnowledgeAnswer {
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledgeAnswer
+ */
+ 'id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledgeAnswer
+ */
+ 'label'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledgeAnswer
+ */
+ 'translation'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileKnowledgeAnswer
+ */
+ 'value'?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface UserProfileResponse
+ */
+export interface UserProfileResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof UserProfileResponse
+ */
+ 'status': UserProfileResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {UserProfile}
+ * @memberof UserProfileResponse
+ */
+ 'user-profile': UserProfile;
+}
+
+export const UserProfileResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type UserProfileResponseStatusEnum = typeof UserProfileResponseStatusEnum[keyof typeof UserProfileResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface UserProfileUpdateRequest
+ */
+export interface UserProfileUpdateRequest {
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfileUpdateRequest
+ */
+ 'email_address': string;
+}
+/**
+ *
+ * @export
+ * @interface UserProfilesResponse
+ */
+export interface UserProfilesResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof UserProfilesResponse
+ */
+ 'status': UserProfilesResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfilesResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<UserProfile>}
+ * @memberof UserProfilesResponse
+ */
+ 'user-profiles': Array<UserProfile>;
+}
+
+export const UserProfilesResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type UserProfilesResponseStatusEnum = typeof UserProfilesResponseStatusEnum[keyof typeof UserProfilesResponseStatusEnum];
+
+/**
+ * Send the answers to one or more questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\" TODO: look up the question_type from the question_id to apply MC or TE specific validation on the answer(s)
+ * @export
+ * @interface UserQuestionAnswerIn
+ */
+export interface UserQuestionAnswerIn {
+ /**
+ *
+ * @type {string}
+ * @memberof UserQuestionAnswerIn
+ */
+ 'question_id': string;
+ /**
+ * The user\'s answers to this question. Must pass the choice_id if the question is a Multiple Choice, or the actual text if the question is Text Entry
+ * @type {Array<string>}
+ * @memberof UserQuestionAnswerIn
+ */
+ 'answer': Array<string>;
+}
+/**
+ *
+ * @export
+ * @interface UserTransactionHistoryResponse
+ */
+export interface UserTransactionHistoryResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof UserTransactionHistoryResponse
+ */
+ 'status': UserTransactionHistoryResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UserTransactionHistoryResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<UserTransactionRow>}
+ * @memberof UserTransactionHistoryResponse
+ */
+ 'transaction_history'?: Array<UserTransactionRow>;
+}
+
+export const UserTransactionHistoryResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type UserTransactionHistoryResponseStatusEnum = typeof UserTransactionHistoryResponseStatusEnum[keyof typeof UserTransactionHistoryResponseStatusEnum];
+
+/**
+ *
+ * @export
+ * @interface UserTransactionRow
+ */
+export interface UserTransactionRow {
+ /**
+ * (USD cents) Positive is an increase in the user\'s wallet balance. For e.g.requesting a gift card would show as a negative amount.
+ * @type {number}
+ * @memberof UserTransactionRow
+ */
+ 'amount': number;
+ /**
+ * The \'amount\' with the payout_format applied. Can be displayed to the user.
+ * @type {string}
+ * @memberof UserTransactionRow
+ */
+ 'amount_string': string;
+ /**
+ * The product_user_id
+ * @type {string}
+ * @memberof UserTransactionRow
+ */
+ 'bpuid': string;
+ /**
+ * This is the name of the cashout method.
+ * @type {string}
+ * @memberof UserTransactionRow
+ */
+ 'description': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserTransactionRow
+ */
+ 'id': string;
+ /**
+ * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
+ * @type {string}
+ * @memberof UserTransactionRow
+ */
+ 'payout_format': string;
+ /**
+ *
+ * @type {PayoutStatus}
+ * @memberof UserTransactionRow
+ */
+ 'status'?: PayoutStatus | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserTransactionRow
+ */
+ 'timestamp': string;
+ /**
+ * - `TASK_COMPLETE` = TASK_COMPLETE - `RECONCILE` = RECONCILE - `CASHOUT` = CASHOUT - `BONUS` = BONUS
+ * @type {UserWalletTransactionType}
+ * @memberof UserTransactionRow
+ */
+ 'type': UserWalletTransactionType;
+}
+
+
+/**
+ *
+ * @export
+ * @interface UserWalletBalance
+ */
+export interface UserWalletBalance {
+ /**
+ * (USD cents) The amount in the user\'s wallet.
+ * @type {number}
+ * @memberof UserWalletBalance
+ */
+ 'amount': number;
+ /**
+ * (USD cents) The amount in the user\'s wallet this is currently redeemable.
+ * @type {number}
+ * @memberof UserWalletBalance
+ */
+ 'redeemable_amount': number;
+ /**
+ * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
+ * @type {string}
+ * @memberof UserWalletBalance
+ */
+ 'payout_format': string;
+ /**
+ * The \'amount\' with the payout_format applied. Can be displayed to the user.
+ * @type {string}
+ * @memberof UserWalletBalance
+ */
+ 'amount_string': string;
+ /**
+ * The \'redeemable_amount\' with the payout_format applied. Can be displayed to the user.
+ * @type {string}
+ * @memberof UserWalletBalance
+ */
+ 'redeemable_amount_string': string;
+}
+/**
+ *
+ * @export
+ * @interface UserWalletBalanceResponse
+ */
+export interface UserWalletBalanceResponse {
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof UserWalletBalanceResponse
+ */
+ 'status': UserWalletBalanceResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UserWalletBalanceResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {UserWalletBalance}
+ * @memberof UserWalletBalanceResponse
+ */
+ 'wallet': UserWalletBalance;
+}
+
+export const UserWalletBalanceResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type UserWalletBalanceResponseStatusEnum = typeof UserWalletBalanceResponseStatusEnum[keyof typeof UserWalletBalanceResponseStatusEnum];
+
+/**
+ * Stores configuration for the user wallet handling
+ * @export
+ * @interface UserWalletConfig
+ */
+export interface UserWalletConfig {
+ /**
+ * If enabled, the users\' wallets are managed.
+ * @type {boolean}
+ * @memberof UserWalletConfig
+ */
+ 'enabled'?: boolean;
+ /**
+ * Uses Amazon Mechanical Turk
+ * @type {boolean}
+ * @memberof UserWalletConfig
+ */
+ 'amt'?: boolean;
+ /**
+ *
+ * @type {Set<PayoutType>}
+ * @memberof UserWalletConfig
+ */
+ 'supported_payout_types'?: Set<PayoutType>;
+ /**
+ *
+ * @type {string}
+ * @memberof UserWalletConfig
+ */
+ 'min_cashout'?: string | null;
+}
+/**
+ * The type of transaction
+ * @export
+ * @enum {string}
+ */
+
+export const UserWalletTransactionType = {
+ TaskComplete: 'TASK_COMPLETE',
+ Reconcile: 'RECONCILE',
+ Cashout: 'CASHOUT',
+ Bonus: 'BONUS'
+} as const;
+
+export type UserWalletTransactionType = typeof UserWalletTransactionType[keyof typeof UserWalletTransactionType];
+
+
+/**
+ *
+ * @export
+ * @interface ValidationError
+ */
+export interface ValidationError {
+ /**
+ *
+ * @type {Array<ValidationErrorLocInner>}
+ * @memberof ValidationError
+ */
+ 'loc': Array<ValidationErrorLocInner>;
+ /**
+ *
+ * @type {string}
+ * @memberof ValidationError
+ */
+ 'msg': string;
+ /**
+ *
+ * @type {string}
+ * @memberof ValidationError
+ */
+ 'type': string;
+}
+/**
+ *
+ * @export
+ * @interface ValidationErrorLocInner
+ */
+export interface ValidationErrorLocInner {
+}
+/**
+ * Returns buckets from WXET as single tasks Offerwall code: `55a4e1a9`
+ * @export
+ * @interface WXETOfferwall
+ */
+export interface WXETOfferwall {
+ /**
+ * Unique identifier to reference a generated offerwall
+ * @type {string}
+ * @memberof WXETOfferwall
+ */
+ 'id': string;
+ /**
+ * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
+ * @type {number}
+ * @memberof WXETOfferwall
+ */
+ 'availability_count': number;
+ /**
+ *
+ * @type {Array<WXETOfferwallBucket>}
+ * @memberof WXETOfferwall
+ */
+ 'buckets'?: Array<WXETOfferwallBucket>;
+}
+/**
+ *
+ * @export
+ * @interface WXETOfferwallBucket
+ */
+export interface WXETOfferwallBucket {
+ /**
+ * Unique identifier this particular bucket
+ * @type {string}
+ * @memberof WXETOfferwallBucket
+ */
+ 'id': string;
+ /**
+ * The URL to send a respondent into. Must not edit this URL in any way
+ * @type {string}
+ * @memberof WXETOfferwallBucket
+ */
+ 'uri': string;
+ /**
+ * The bucket\'s expected duration, in seconds
+ * @type {number}
+ * @memberof WXETOfferwallBucket
+ */
+ 'duration': number;
+ /**
+ * The bucket\'s min payout, in usd cents
+ * @type {number}
+ * @memberof WXETOfferwallBucket
+ */
+ 'min_payout': number;
+}
+/**
+ *
+ * @export
+ * @interface WXETOfferwallResponse
+ */
+export interface WXETOfferwallResponse {
+ /**
+ *
+ * @type {OfferWallInfo}
+ * @memberof WXETOfferwallResponse
+ */
+ 'info': OfferWallInfo;
+ /**
+ *
+ * @type {WXETOfferwall}
+ * @memberof WXETOfferwallResponse
+ */
+ 'offerwall': WXETOfferwall;
+}
+
+/**
+ * DashboardApi - axios parameter creator
+ * @export
+ */
+export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ *
+ * @summary Marketplace Inventory
+ * @param {MarketplaceInventoryDashboardInventoryGetMarketplaceEnum} marketplace
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ marketplaceInventoryDashboardInventoryGet: async (marketplace: MarketplaceInventoryDashboardInventoryGetMarketplaceEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'marketplace' is not null or undefined
+ assertParamExists('marketplaceInventoryDashboardInventoryGet', 'marketplace', marketplace)
+ const localVarPath = `/dashboard/inventory/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (marketplace !== undefined) {
+ localVarQueryParameter['marketplace'] = marketplace;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * DashboardApi - functional programming interface
+ * @export
+ */
+export const DashboardApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
+ return {
+ /**
+ *
+ * @summary Marketplace Inventory
+ * @param {MarketplaceInventoryDashboardInventoryGetMarketplaceEnum} marketplace
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async marketplaceInventoryDashboardInventoryGet(marketplace: MarketplaceInventoryDashboardInventoryGetMarketplaceEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarketplaceSummary>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.marketplaceInventoryDashboardInventoryGet(marketplace, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['DashboardApi.marketplaceInventoryDashboardInventoryGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * DashboardApi - factory interface
+ * @export
+ */
+export const DashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = DashboardApiFp(configuration)
+ return {
+ /**
+ *
+ * @summary Marketplace Inventory
+ * @param {MarketplaceInventoryDashboardInventoryGetMarketplaceEnum} marketplace
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ marketplaceInventoryDashboardInventoryGet(marketplace: MarketplaceInventoryDashboardInventoryGetMarketplaceEnum, options?: RawAxiosRequestConfig): AxiosPromise<MarketplaceSummary> {
+ return localVarFp.marketplaceInventoryDashboardInventoryGet(marketplace, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * DashboardApi - object-oriented interface
+ * @export
+ * @class DashboardApi
+ * @extends {BaseAPI}
+ */
+export class DashboardApi extends BaseAPI {
+ /**
+ *
+ * @summary Marketplace Inventory
+ * @param {MarketplaceInventoryDashboardInventoryGetMarketplaceEnum} marketplace
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof DashboardApi
+ */
+ public marketplaceInventoryDashboardInventoryGet(marketplace: MarketplaceInventoryDashboardInventoryGetMarketplaceEnum, options?: RawAxiosRequestConfig) {
+ return DashboardApiFp(this.configuration).marketplaceInventoryDashboardInventoryGet(marketplace, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+/**
+ * @export
+ */
+export const MarketplaceInventoryDashboardInventoryGetMarketplaceEnum = {
+ Wxet: 'WXET'
+} as const;
+export type MarketplaceInventoryDashboardInventoryGetMarketplaceEnum = typeof MarketplaceInventoryDashboardInventoryGetMarketplaceEnum[keyof typeof MarketplaceInventoryDashboardInventoryGetMarketplaceEnum];
+
+
+/**
+ * LeaderboardApi - axios parameter creator
+ * @export
+ */
+export const LeaderboardApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Get the Winners of leaderboard contests
+ * @summary Leaderboard Winners
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet: async (productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet', 'productId', productId)
+ // verify required parameter 'boardCode' is not null or undefined
+ assertParamExists('leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet', 'boardCode', boardCode)
+ // verify required parameter 'freq' is not null or undefined
+ assertParamExists('leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet', 'freq', freq)
+ const localVarPath = `/{product_id}/leaderboard/timespan/{board_code}/winners/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"board_code"}}`, encodeURIComponent(String(boardCode)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (freq !== undefined) {
+ localVarQueryParameter['freq'] = freq;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary Timespan Leaderboard
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {string} [bpuid] Brokerage Product User ID. If passed, this results in the filtering of rows to include this user\&#39;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). Otherwise, the top &#x60;limit&#x60; rows are returned.
+ * @param {string} [withinTime] Any local timestamp falling within the desired leaderboard\&#39;s period. If not passed, uses the country\&#39;s current time period.
+ * @param {number} [limit] Max number of rows to return
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet: async (productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, bpuid?: string, withinTime?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet', 'productId', productId)
+ // verify required parameter 'boardCode' is not null or undefined
+ assertParamExists('timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet', 'boardCode', boardCode)
+ // verify required parameter 'freq' is not null or undefined
+ assertParamExists('timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet', 'freq', freq)
+ const localVarPath = `/{product_id}/leaderboard/timespan/{board_code}/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"board_code"}}`, encodeURIComponent(String(boardCode)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (freq !== undefined) {
+ localVarQueryParameter['freq'] = freq;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (withinTime !== undefined) {
+ localVarQueryParameter['within_time'] = (withinTime as any instanceof Date) ?
+ (withinTime as any).toISOString() :
+ withinTime;
+ }
+
+ if (limit !== undefined) {
+ localVarQueryParameter['limit'] = limit;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * LeaderboardApi - functional programming interface
+ * @export
+ */
+export const LeaderboardApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = LeaderboardApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * Get the Winners of leaderboard contests
+ * @summary Leaderboard Winners
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardWinnerResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId, boardCode, freq, countryIso, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['LeaderboardApi.leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary Timespan Leaderboard
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {string} [bpuid] Brokerage Product User ID. If passed, this results in the filtering of rows to include this user\&#39;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). Otherwise, the top &#x60;limit&#x60; rows are returned.
+ * @param {string} [withinTime] Any local timestamp falling within the desired leaderboard\&#39;s period. If not passed, uses the country\&#39;s current time period.
+ * @param {number} [limit] Max number of rows to return
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, bpuid?: string, withinTime?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId, boardCode, freq, countryIso, bpuid, withinTime, limit, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['LeaderboardApi.timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * LeaderboardApi - factory interface
+ * @export
+ */
+export const LeaderboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = LeaderboardApiFp(configuration)
+ return {
+ /**
+ * Get the Winners of leaderboard contests
+ * @summary Leaderboard Winners
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardWinnerResponse> {
+ return localVarFp.leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId, boardCode, freq, countryIso, options).then((request) => request(axios, basePath));
+ },
+ /**
+ *
+ * @summary Timespan Leaderboard
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {string} [bpuid] Brokerage Product User ID. If passed, this results in the filtering of rows to include this user\&#39;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). Otherwise, the top &#x60;limit&#x60; rows are returned.
+ * @param {string} [withinTime] Any local timestamp falling within the desired leaderboard\&#39;s period. If not passed, uses the country\&#39;s current time period.
+ * @param {number} [limit] Max number of rows to return
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, bpuid?: string, withinTime?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardResponse> {
+ return localVarFp.timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId, boardCode, freq, countryIso, bpuid, withinTime, limit, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * LeaderboardApi - object-oriented interface
+ * @export
+ * @class LeaderboardApi
+ * @extends {BaseAPI}
+ */
+export class LeaderboardApi extends BaseAPI {
+ /**
+ * Get the Winners of leaderboard contests
+ * @summary Leaderboard Winners
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof LeaderboardApi
+ */
+ public leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, options?: RawAxiosRequestConfig) {
+ return LeaderboardApiFp(this.configuration).leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId, boardCode, freq, countryIso, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ *
+ * @summary Timespan Leaderboard
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {LeaderboardCode} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
+ * @param {LeaderboardFrequency} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
+ * @param {string} [countryIso] Country ISO Code (ISO 3166-1 alpha-2, lowercase) of the requested leaderboard. If not passed, thecountry is determined from the IP address of the HTTP request.
+ * @param {string} [bpuid] Brokerage Product User ID. If passed, this results in the filtering of rows to include this user\&#39;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). Otherwise, the top &#x60;limit&#x60; rows are returned.
+ * @param {string} [withinTime] Any local timestamp falling within the desired leaderboard\&#39;s period. If not passed, uses the country\&#39;s current time period.
+ * @param {number} [limit] Max number of rows to return
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof LeaderboardApi
+ */
+ public timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId: string, boardCode: LeaderboardCode, freq: LeaderboardFrequency, countryIso?: string, bpuid?: string, withinTime?: string, limit?: number, options?: RawAxiosRequestConfig) {
+ return LeaderboardApiFp(this.configuration).timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId, boardCode, freq, countryIso, bpuid, withinTime, limit, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+
+/**
+ * OfferwallApi - axios parameter creator
+ * @export
+ */
+export const OfferwallApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
+ * @summary Marketplace Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ marketplaceOfferwallProductIdOfferwall5fa23085Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('marketplaceOfferwallProductIdOfferwall5fa23085Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('marketplaceOfferwallProductIdOfferwall5fa23085Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/5fa23085/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
+ * @summary Offerwall Softpair Post
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} offerwallId The offerwall ID the user is interacting with
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
+ * @param {string | null} [sessionId] A session id (uuid4.hex)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost: async (productId: string, offerwallId: string, bpuid: string, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost', 'productId', productId)
+ // verify required parameter 'offerwallId' is not null or undefined
+ assertParamExists('offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost', 'offerwallId', offerwallId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost', 'bpuid', bpuid)
+ // verify required parameter 'bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost' is not null or undefined
+ assertParamExists('offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost', 'bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost', bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost)
+ const localVarPath = `/{product_id}/offerwall/37d1da64/{offerwall_id}/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"offerwall_id"}}`, encodeURIComponent(String(offerwallId)))
+ .replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
+ * @summary Offerwall Softpair
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {number} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
+ * @param {number} [maxQuestions] Max number of missing questions on a single bin
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ offerwallSoftpairProductIdOfferwall37d1da64Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, maxOptions?: number, maxQuestions?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('offerwallSoftpairProductIdOfferwall37d1da64Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('offerwallSoftpairProductIdOfferwall37d1da64Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/37d1da64/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (maxOptions !== undefined) {
+ localVarQueryParameter['max_options'] = maxOptions;
+ }
+
+ if (maxQuestions !== undefined) {
+ localVarQueryParameter['max_questions'] = maxQuestions;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary One Shot Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {Set<Source>} [sources] Restrict tasks to those from these marketplaces only.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ oneShotOfferwallProductIdOfferwall6f27b1aeGet: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, sources?: Set<Source>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('oneShotOfferwallProductIdOfferwall6f27b1aeGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('oneShotOfferwallProductIdOfferwall6f27b1aeGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/6f27b1ae/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (sources) {
+ localVarQueryParameter['sources'] = Array.from(sources);
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Only returns a single bucket with the top scoring tasks.
+ * @summary Single Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ singleOfferwallProductIdOfferwall5fl8bpv5Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('singleOfferwallProductIdOfferwall5fl8bpv5Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('singleOfferwallProductIdOfferwall5fl8bpv5Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/5fl8bpv5/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket\'s features.
+ * @summary Starwall Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallOfferwallProductIdOfferwallB59a2d2bGet: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('starwallOfferwallProductIdOfferwallB59a2d2bGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('starwallOfferwallProductIdOfferwallB59a2d2bGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/b59a2d2b/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Starwall Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/7fa1b3f4/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Starwall Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/630db2a4/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents.
+ * @summary Starwall Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallPlusOfferwallProductIdOfferwall5481f322Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('starwallPlusOfferwallProductIdOfferwall5481f322Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('starwallPlusOfferwallProductIdOfferwall5481f322Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/5481f322/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
+ * @summary Topn Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNOfferwallProductIdOfferwall45b7228a7Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('topNOfferwallProductIdOfferwall45b7228a7Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('topNOfferwallProductIdOfferwall45b7228a7Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/45b7228a7/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Topn Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNPlusBlockOfferwallProductIdOfferwallD48cce47Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('topNPlusBlockOfferwallProductIdOfferwallD48cce47Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('topNPlusBlockOfferwallProductIdOfferwallD48cce47Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/d48cce47/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Topn Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/1e5f0af8/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents.
+ * @summary Topn Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNPlusOfferwallProductIdOfferwallB145b803Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('topNPlusOfferwallProductIdOfferwallB145b803Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('topNPlusOfferwallProductIdOfferwallB145b803Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/b145b803/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+ if (minBinSize !== undefined) {
+ localVarQueryParameter['min_bin_size'] = minBinSize;
+ }
+
+ if (splitBy !== undefined) {
+ localVarQueryParameter['split_by'] = splitBy;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary Wxet Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ wXETOfferwallProductIdOfferwall55a4e1a9Get: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('wXETOfferwallProductIdOfferwall55a4e1a9Get', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('wXETOfferwallProductIdOfferwall55a4e1a9Get', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/offerwall/55a4e1a9/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languages) {
+ localVarQueryParameter['languages'] = languages;
+ }
+
+ if (behavior !== undefined) {
+ localVarQueryParameter['behavior'] = behavior;
+ }
+
+ if (minPayout !== undefined) {
+ localVarQueryParameter['min_payout'] = minPayout;
+ }
+
+ if (duration !== undefined) {
+ localVarQueryParameter['duration'] = duration;
+ }
+
+ if (nBins !== undefined) {
+ localVarQueryParameter['n_bins'] = nBins;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * OfferwallApi - functional programming interface
+ * @export
+ */
+export const OfferwallApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = OfferwallApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
+ * @summary Marketplace Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async marketplaceOfferwallProductIdOfferwall5fa23085Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarketplaceOfferwallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.marketplaceOfferwallProductIdOfferwall5fa23085Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.marketplaceOfferwallProductIdOfferwall5fa23085Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
+ * @summary Offerwall Softpair Post
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} offerwallId The offerwall ID the user is interacting with
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
+ * @param {string | null} [sessionId] A session id (uuid4.hex)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(productId: string, offerwallId: string, bpuid: string, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SoftPairOfferwallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(productId, offerwallId, bpuid, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
+ * @summary Offerwall Softpair
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {number} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
+ * @param {number} [maxQuestions] Max number of missing questions on a single bin
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async offerwallSoftpairProductIdOfferwall37d1da64Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, maxOptions?: number, maxQuestions?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SoftPairOfferwallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.offerwallSoftpairProductIdOfferwall37d1da64Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, maxOptions, maxQuestions, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.offerwallSoftpairProductIdOfferwall37d1da64Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary One Shot Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {Set<Source>} [sources] Restrict tasks to those from these marketplaces only.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, sources?: Set<Source>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OneShotOfferwallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, sources, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.oneShotOfferwallProductIdOfferwall6f27b1aeGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Only returns a single bucket with the top scoring tasks.
+ * @summary Single Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async singleOfferwallProductIdOfferwall5fl8bpv5Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SingleEntryOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.singleOfferwallProductIdOfferwall5fl8bpv5Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.singleOfferwallProductIdOfferwall5fl8bpv5Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket\'s features.
+ * @summary Starwall Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async starwallOfferwallProductIdOfferwallB59a2d2bGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StarwallOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.starwallOfferwallProductIdOfferwallB59a2d2bGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.starwallOfferwallProductIdOfferwallB59a2d2bGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Starwall Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StarwallPlusBlockOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Starwall Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StarwallPlusBlockRecontactOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents.
+ * @summary Starwall Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async starwallPlusOfferwallProductIdOfferwall5481f322Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StarwallPlusOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.starwallPlusOfferwallProductIdOfferwall5481f322Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.starwallPlusOfferwallProductIdOfferwall5481f322Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
+ * @summary Topn Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async topNOfferwallProductIdOfferwall45b7228a7Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TopNOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.topNOfferwallProductIdOfferwall45b7228a7Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.topNOfferwallProductIdOfferwall45b7228a7Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Topn Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TopNPlusBlockOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.topNPlusBlockOfferwallProductIdOfferwallD48cce47Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Topn Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TopNPlusBlockRecontactOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents.
+ * @summary Topn Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async topNPlusOfferwallProductIdOfferwallB145b803Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TopNPlusOfferWallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.topNPlusOfferwallProductIdOfferwallB145b803Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.topNPlusOfferwallProductIdOfferwallB145b803Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary Wxet Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async wXETOfferwallProductIdOfferwall55a4e1a9Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WXETOfferwallResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.wXETOfferwallProductIdOfferwall55a4e1a9Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['OfferwallApi.wXETOfferwallProductIdOfferwall55a4e1a9Get']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * OfferwallApi - factory interface
+ * @export
+ */
+export const OfferwallApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = OfferwallApiFp(configuration)
+ return {
+ /**
+ * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
+ * @summary Marketplace Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ marketplaceOfferwallProductIdOfferwall5fa23085Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<MarketplaceOfferwallResponse> {
+ return localVarFp.marketplaceOfferwallProductIdOfferwall5fa23085Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
+ * @summary Offerwall Softpair Post
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} offerwallId The offerwall ID the user is interacting with
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
+ * @param {string | null} [sessionId] A session id (uuid4.hex)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(productId: string, offerwallId: string, bpuid: string, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<SoftPairOfferwallResponse> {
+ return localVarFp.offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(productId, offerwallId, bpuid, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
+ * @summary Offerwall Softpair
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {number} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
+ * @param {number} [maxQuestions] Max number of missing questions on a single bin
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ offerwallSoftpairProductIdOfferwall37d1da64Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, maxOptions?: number, maxQuestions?: number, options?: RawAxiosRequestConfig): AxiosPromise<SoftPairOfferwallResponse> {
+ return localVarFp.offerwallSoftpairProductIdOfferwall37d1da64Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, maxOptions, maxQuestions, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary One Shot Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {Set<Source>} [sources] Restrict tasks to those from these marketplaces only.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, sources?: Set<Source>, options?: RawAxiosRequestConfig): AxiosPromise<OneShotOfferwallResponse> {
+ return localVarFp.oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, sources, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Only returns a single bucket with the top scoring tasks.
+ * @summary Single Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ singleOfferwallProductIdOfferwall5fl8bpv5Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<SingleEntryOfferWallResponse> {
+ return localVarFp.singleOfferwallProductIdOfferwall5fl8bpv5Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket\'s features.
+ * @summary Starwall Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallOfferwallProductIdOfferwallB59a2d2bGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<StarwallOfferWallResponse> {
+ return localVarFp.starwallOfferwallProductIdOfferwallB59a2d2bGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Starwall Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<StarwallPlusBlockOfferWallResponse> {
+ return localVarFp.starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Starwall Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<StarwallPlusBlockRecontactOfferWallResponse> {
+ return localVarFp.starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents.
+ * @summary Starwall Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ starwallPlusOfferwallProductIdOfferwall5481f322Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<StarwallPlusOfferWallResponse> {
+ return localVarFp.starwallPlusOfferwallProductIdOfferwall5481f322Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
+ * @summary Topn Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNOfferwallProductIdOfferwall45b7228a7Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<TopNOfferWallResponse> {
+ return localVarFp.topNOfferwallProductIdOfferwall45b7228a7Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Topn Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<TopNPlusBlockOfferWallResponse> {
+ return localVarFp.topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Topn Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<TopNPlusBlockRecontactOfferWallResponse> {
+ return localVarFp.topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents.
+ * @summary Topn Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ topNPlusOfferwallProductIdOfferwallB145b803Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum, options?: RawAxiosRequestConfig): AxiosPromise<TopNPlusOfferWallResponse> {
+ return localVarFp.topNPlusOfferwallProductIdOfferwallB145b803Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary Wxet Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ wXETOfferwallProductIdOfferwall55a4e1a9Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, options?: RawAxiosRequestConfig): AxiosPromise<WXETOfferwallResponse> {
+ return localVarFp.wXETOfferwallProductIdOfferwall55a4e1a9Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * OfferwallApi - object-oriented interface
+ * @export
+ * @class OfferwallApi
+ * @extends {BaseAPI}
+ */
+export class OfferwallApi extends BaseAPI {
+ /**
+ * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
+ * @summary Marketplace Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public marketplaceOfferwallProductIdOfferwall5fa23085Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).marketplaceOfferwallProductIdOfferwall5fa23085Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
+ * @summary Offerwall Softpair Post
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} offerwallId The offerwall ID the user is interacting with
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
+ * @param {string | null} [sessionId] A session id (uuid4.hex)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(productId: string, offerwallId: string, bpuid: string, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId?: string | null, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(productId, offerwallId, bpuid, bodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, sessionId, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
+ * @summary Offerwall Softpair
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {number} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
+ * @param {number} [maxQuestions] Max number of missing questions on a single bin
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public offerwallSoftpairProductIdOfferwall37d1da64Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, maxOptions?: number, maxQuestions?: number, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).offerwallSoftpairProductIdOfferwall37d1da64Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, maxOptions, maxQuestions, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary One Shot Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {Set<Source>} [sources] Restrict tasks to those from these marketplaces only.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, sources?: Set<Source>, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, sources, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Only returns a single bucket with the top scoring tasks.
+ * @summary Single Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public singleOfferwallProductIdOfferwall5fl8bpv5Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, minBinSize?: number, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).singleOfferwallProductIdOfferwall5fl8bpv5Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket\'s features.
+ * @summary Starwall Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public starwallOfferwallProductIdOfferwallB59a2d2bGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).starwallOfferwallProductIdOfferwallB59a2d2bGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Starwall Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Starwall Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Same as the StarwallOfferWall, but the buckets include contents.
+ * @summary Starwall Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public starwallPlusOfferwallProductIdOfferwall5481f322Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).starwallPlusOfferwallProductIdOfferwall5481f322Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
+ * @summary Topn Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public topNOfferwallProductIdOfferwall45b7228a7Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).topNOfferwallProductIdOfferwall45b7228a7Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
+ * @summary Topn Plus Block Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
+ * @summary Topn Plus Block Recontact Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Same as the TopNOfferWall, but the buckets include contents.
+ * @summary Topn Plus Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {number} [minBinSize] Minimum number of tasks that need to be in a bucket
+ * @param {TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum} [splitBy] Cluster tasks by payout or duration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public topNPlusOfferwallProductIdOfferwallB145b803Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, minBinSize?: number, splitBy?: TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).topNPlusOfferwallProductIdOfferwallB145b803Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Each bucket has only 1 single task, and only basic info is returned about each bucket.
+ * @summary Wxet Offerwall
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {Array<string>} [languages] Respondent\&#39;s desired languages (ISO 639-2/B, lowercase)
+ * @param {string} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
+ * @param {string} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
+ * @param {number} [duration] Maximum length of desired task (in seconds).
+ * @param {number} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof OfferwallApi
+ */
+ public wXETOfferwallProductIdOfferwall55a4e1a9Get(productId: string, bpuid: string, ip?: string, countryIso?: string, languages?: Array<string>, behavior?: string, minPayout?: string, duration?: number, nBins?: number, options?: RawAxiosRequestConfig) {
+ return OfferwallApiFp(this.configuration).wXETOfferwallProductIdOfferwall55a4e1a9Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+/**
+ * @export
+ */
+export const StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum = typeof StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum[keyof typeof StarwallOfferwallProductIdOfferwallB59a2d2bGetSplitByEnum];
+/**
+ * @export
+ */
+export const StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum = typeof StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum[keyof typeof StarwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4GetSplitByEnum];
+/**
+ * @export
+ */
+export const StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum = typeof StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum[keyof typeof StarwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4GetSplitByEnum];
+/**
+ * @export
+ */
+export const StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum = typeof StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum[keyof typeof StarwallPlusOfferwallProductIdOfferwall5481f322GetSplitByEnum];
+/**
+ * @export
+ */
+export const TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum = typeof TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum[keyof typeof TopNOfferwallProductIdOfferwall45b7228a7GetSplitByEnum];
+/**
+ * @export
+ */
+export const TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum = typeof TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum[keyof typeof TopNPlusBlockOfferwallProductIdOfferwallD48cce47GetSplitByEnum];
+/**
+ * @export
+ */
+export const TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum = typeof TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum[keyof typeof TopNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8GetSplitByEnum];
+/**
+ * @export
+ */
+export const TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum = {
+ Payout: 'payout',
+ Duration: 'duration'
+} as const;
+export type TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum = typeof TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum[keyof typeof TopNPlusOfferwallProductIdOfferwallB145b803GetSplitByEnum];
+
+
+/**
+ * ProductUserApi - axios parameter creator
+ * @export
+ */
+export const ProductUserApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ *
+ * @summary User Profile Filter By Marketplace Pid
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Source} source The marketplace to search
+ * @param {Array<string>} pid The user\&#39;s marketplace PID. Supports multiple params
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet: async (productId: string, source: Source, pid: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet', 'productId', productId)
+ // verify required parameter 'source' is not null or undefined
+ assertParamExists('userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet', 'source', source)
+ // verify required parameter 'pid' is not null or undefined
+ assertParamExists('userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet', 'pid', pid)
+ const localVarPath = `/{product_id}/user/by-marketplace-pid/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (source !== undefined) {
+ localVarQueryParameter['source'] = source;
+ }
+
+ if (pid) {
+ localVarQueryParameter['pid'] = pid;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileProductIdUserProductUserIdProfileGet: async (productId: string, productUserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('userProfileProductIdUserProductUserIdProfileGet', 'productId', productId)
+ // verify required parameter 'productUserId' is not null or undefined
+ assertParamExists('userProfileProductIdUserProductUserIdProfileGet', 'productUserId', productUserId)
+ const localVarPath = `/{product_id}/user/{product_user_id}/profile/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"product_user_id"}}`, encodeURIComponent(String(productUserId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary User Profile Update
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {UserProfileUpdateRequest} userProfileUpdateRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileUpdateProductIdUserProductUserIdProfilePatch: async (productId: string, productUserId: string, userProfileUpdateRequest: UserProfileUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('userProfileUpdateProductIdUserProductUserIdProfilePatch', 'productId', productId)
+ // verify required parameter 'productUserId' is not null or undefined
+ assertParamExists('userProfileUpdateProductIdUserProductUserIdProfilePatch', 'productUserId', productUserId)
+ // verify required parameter 'userProfileUpdateRequest' is not null or undefined
+ assertParamExists('userProfileUpdateProductIdUserProductUserIdProfilePatch', 'userProfileUpdateRequest', userProfileUpdateRequest)
+ const localVarPath = `/{product_id}/user/{product_user_id}/profile/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"product_user_id"}}`, encodeURIComponent(String(productUserId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(userProfileUpdateRequest, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * ProductUserApi - functional programming interface
+ * @export
+ */
+export const ProductUserApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = ProductUserApiAxiosParamCreator(configuration)
+ return {
+ /**
+ *
+ * @summary User Profile Filter By Marketplace Pid
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Source} source The marketplace to search
+ * @param {Array<string>} pid The user\&#39;s marketplace PID. Supports multiple params
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet(productId: string, source: Source, pid: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserProfilesResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet(productId, source, pid, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProductUserApi.userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async userProfileProductIdUserProductUserIdProfileGet(productId: string, productUserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserProfileResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userProfileProductIdUserProductUserIdProfileGet(productId, productUserId, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProductUserApi.userProfileProductIdUserProductUserIdProfileGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary User Profile Update
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {UserProfileUpdateRequest} userProfileUpdateRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async userProfileUpdateProductIdUserProductUserIdProfilePatch(productId: string, productUserId: string, userProfileUpdateRequest: UserProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userProfileUpdateProductIdUserProductUserIdProfilePatch(productId, productUserId, userProfileUpdateRequest, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProductUserApi.userProfileUpdateProductIdUserProductUserIdProfilePatch']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * ProductUserApi - factory interface
+ * @export
+ */
+export const ProductUserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = ProductUserApiFp(configuration)
+ return {
+ /**
+ *
+ * @summary User Profile Filter By Marketplace Pid
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Source} source The marketplace to search
+ * @param {Array<string>} pid The user\&#39;s marketplace PID. Supports multiple params
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet(productId: string, source: Source, pid: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<UserProfilesResponse> {
+ return localVarFp.userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet(productId, source, pid, options).then((request) => request(axios, basePath));
+ },
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileProductIdUserProductUserIdProfileGet(productId: string, productUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<UserProfileResponse> {
+ return localVarFp.userProfileProductIdUserProductUserIdProfileGet(productId, productUserId, options).then((request) => request(axios, basePath));
+ },
+ /**
+ *
+ * @summary User Profile Update
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {UserProfileUpdateRequest} userProfileUpdateRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileUpdateProductIdUserProductUserIdProfilePatch(productId: string, productUserId: string, userProfileUpdateRequest: UserProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
+ return localVarFp.userProfileUpdateProductIdUserProductUserIdProfilePatch(productId, productUserId, userProfileUpdateRequest, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * ProductUserApi - object-oriented interface
+ * @export
+ * @class ProductUserApi
+ * @extends {BaseAPI}
+ */
+export class ProductUserApi extends BaseAPI {
+ /**
+ *
+ * @summary User Profile Filter By Marketplace Pid
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Source} source The marketplace to search
+ * @param {Array<string>} pid The user\&#39;s marketplace PID. Supports multiple params
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProductUserApi
+ */
+ public userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet(productId: string, source: Source, pid: Array<string>, options?: RawAxiosRequestConfig) {
+ return ProductUserApiFp(this.configuration).userProfileFilterByMarketplacePidProductIdUserByMarketplacePidGet(productId, source, pid, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProductUserApi
+ */
+ public userProfileProductIdUserProductUserIdProfileGet(productId: string, productUserId: string, options?: RawAxiosRequestConfig) {
+ return ProductUserApiFp(this.configuration).userProfileProductIdUserProductUserIdProfileGet(productId, productUserId, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ *
+ * @summary User Profile Update
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} productUserId A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {UserProfileUpdateRequest} userProfileUpdateRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProductUserApi
+ */
+ public userProfileUpdateProductIdUserProductUserIdProfilePatch(productId: string, productUserId: string, userProfileUpdateRequest: UserProfileUpdateRequest, options?: RawAxiosRequestConfig) {
+ return ProductUserApiFp(this.configuration).userProfileUpdateProductIdUserProductUserIdProfilePatch(productId, productUserId, userProfileUpdateRequest, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+
+/**
+ * ProfilingQuestionsApi - axios parameter creator
+ * @export
+ */
+export const ProfilingQuestionsApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
+ * @summary Get Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {number} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions\&#39; importance.
+ * @param {boolean} [isGrs] If it\&#39;s the GRS system.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getProfilingQuestionsProductIdProfilingQuestionsGet: async (productId: string, bpuid: string, ip?: string, countryIso?: string, languageIso?: string, limit?: number, isGrs?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getProfilingQuestionsProductIdProfilingQuestionsGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('getProfilingQuestionsProductIdProfilingQuestionsGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/profiling-questions/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languageIso !== undefined) {
+ localVarQueryParameter['language_iso'] = languageIso;
+ }
+
+ if (limit !== undefined) {
+ localVarQueryParameter['limit'] = limit;
+ }
+
+ if (isGrs !== undefined) {
+ localVarQueryParameter['is_grs'] = isGrs;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get UPK Ontology (list of properties, property info, and allowed values)
+ * @summary Profiling Info
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ profilingInfoProductIdProfilingInfoGet: async (productId: string, countryIso: string, languageIso?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('profilingInfoProductIdProfilingInfoGet', 'productId', productId)
+ // verify required parameter 'countryIso' is not null or undefined
+ assertParamExists('profilingInfoProductIdProfilingInfoGet', 'countryIso', countryIso)
+ const localVarPath = `/{product_id}/profiling-info/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languageIso !== undefined) {
+ localVarQueryParameter['language_iso'] = languageIso;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
+ * @summary Submit Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
+ * @param {string} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
+ * @param {boolean} [async] For internal use.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitProfilingQuestionsProductIdProfilingQuestionsPost: async (productId: string, bpuid: string, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId?: string, async?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('submitProfilingQuestionsProductIdProfilingQuestionsPost', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('submitProfilingQuestionsProductIdProfilingQuestionsPost', 'bpuid', bpuid)
+ // verify required parameter 'bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost' is not null or undefined
+ assertParamExists('submitProfilingQuestionsProductIdProfilingQuestionsPost', 'bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost', bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost)
+ const localVarPath = `/{product_id}/profiling-questions/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (sessionId !== undefined) {
+ localVarQueryParameter['session_id'] = sessionId;
+ }
+
+ if (async !== undefined) {
+ localVarQueryParameter['async'] = async;
+ }
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileProductIdUserProfileGet: async (productId: string, bpuid: string, countryIso: string, languageIso?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('userProfileProductIdUserProfileGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('userProfileProductIdUserProfileGet', 'bpuid', bpuid)
+ // verify required parameter 'countryIso' is not null or undefined
+ assertParamExists('userProfileProductIdUserProfileGet', 'countryIso', countryIso)
+ const localVarPath = `/{product_id}/user-profile/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (countryIso !== undefined) {
+ localVarQueryParameter['country_iso'] = countryIso;
+ }
+
+ if (languageIso !== undefined) {
+ localVarQueryParameter['language_iso'] = languageIso;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * ProfilingQuestionsApi - functional programming interface
+ * @export
+ */
+export const ProfilingQuestionsApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = ProfilingQuestionsApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
+ * @summary Get Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {number} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions\&#39; importance.
+ * @param {boolean} [isGrs] If it\&#39;s the GRS system.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getProfilingQuestionsProductIdProfilingQuestionsGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languageIso?: string, limit?: number, isGrs?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpkQuestionResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProfilingQuestionsProductIdProfilingQuestionsGet(productId, bpuid, ip, countryIso, languageIso, limit, isGrs, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProfilingQuestionsApi.getProfilingQuestionsProductIdProfilingQuestionsGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get UPK Ontology (list of properties, property info, and allowed values)
+ * @summary Profiling Info
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async profilingInfoProductIdProfilingInfoGet(productId: string, countryIso: string, languageIso?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfilingInfoResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.profilingInfoProductIdProfilingInfoGet(productId, countryIso, languageIso, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProfilingQuestionsApi.profilingInfoProductIdProfilingInfoGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
+ * @summary Submit Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
+ * @param {string} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
+ * @param {boolean} [async] For internal use.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async submitProfilingQuestionsProductIdProfilingQuestionsPost(productId: string, bpuid: string, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId?: string, async?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitProfilingQuestionsProductIdProfilingQuestionsPost(productId, bpuid, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId, async, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProfilingQuestionsApi.submitProfilingQuestionsProductIdProfilingQuestionsPost']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async userProfileProductIdUserProfileGet(productId: string, bpuid: string, countryIso: string, languageIso?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userProfileProductIdUserProfileGet(productId, bpuid, countryIso, languageIso, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ProfilingQuestionsApi.userProfileProductIdUserProfileGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * ProfilingQuestionsApi - factory interface
+ * @export
+ */
+export const ProfilingQuestionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = ProfilingQuestionsApiFp(configuration)
+ return {
+ /**
+ * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
+ * @summary Get Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {number} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions\&#39; importance.
+ * @param {boolean} [isGrs] If it\&#39;s the GRS system.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getProfilingQuestionsProductIdProfilingQuestionsGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languageIso?: string, limit?: number, isGrs?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<UpkQuestionResponse> {
+ return localVarFp.getProfilingQuestionsProductIdProfilingQuestionsGet(productId, bpuid, ip, countryIso, languageIso, limit, isGrs, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Get UPK Ontology (list of properties, property info, and allowed values)
+ * @summary Profiling Info
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ profilingInfoProductIdProfilingInfoGet(productId: string, countryIso: string, languageIso?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProfilingInfoResponse> {
+ return localVarFp.profilingInfoProductIdProfilingInfoGet(productId, countryIso, languageIso, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
+ * @summary Submit Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
+ * @param {string} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
+ * @param {boolean} [async] For internal use.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitProfilingQuestionsProductIdProfilingQuestionsPost(productId: string, bpuid: string, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId?: string, async?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
+ return localVarFp.submitProfilingQuestionsProductIdProfilingQuestionsPost(productId, bpuid, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId, async, options).then((request) => request(axios, basePath));
+ },
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ userProfileProductIdUserProfileGet(productId: string, bpuid: string, countryIso: string, languageIso?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoResponse> {
+ return localVarFp.userProfileProductIdUserProfileGet(productId, bpuid, countryIso, languageIso, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * ProfilingQuestionsApi - object-oriented interface
+ * @export
+ * @class ProfilingQuestionsApi
+ * @extends {BaseAPI}
+ */
+export class ProfilingQuestionsApi extends BaseAPI {
+ /**
+ * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
+ * @summary Get Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} [ip] Respondent\&#39;s IP address (IPv4 or IPv6). Either \&#39;ip\&#39; must be provided, or \&#39;country_iso\&#39; must be provided if \&#39;ip\&#39; is not provided.
+ * @param {string} [countryIso] Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {number} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions\&#39; importance.
+ * @param {boolean} [isGrs] If it\&#39;s the GRS system.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProfilingQuestionsApi
+ */
+ public getProfilingQuestionsProductIdProfilingQuestionsGet(productId: string, bpuid: string, ip?: string, countryIso?: string, languageIso?: string, limit?: number, isGrs?: boolean, options?: RawAxiosRequestConfig) {
+ return ProfilingQuestionsApiFp(this.configuration).getProfilingQuestionsProductIdProfilingQuestionsGet(productId, bpuid, ip, countryIso, languageIso, limit, isGrs, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Get UPK Ontology (list of properties, property info, and allowed values)
+ * @summary Profiling Info
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProfilingQuestionsApi
+ */
+ public profilingInfoProductIdProfilingInfoGet(productId: string, countryIso: string, languageIso?: string, options?: RawAxiosRequestConfig) {
+ return ProfilingQuestionsApiFp(this.configuration).profilingInfoProductIdProfilingInfoGet(productId, countryIso, languageIso, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
+ * @summary Submit Profiling Questions
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
+ * @param {string} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
+ * @param {boolean} [async] For internal use.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProfilingQuestionsApi
+ */
+ public submitProfilingQuestionsProductIdProfilingQuestionsPost(productId: string, bpuid: string, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId?: string, async?: boolean, options?: RawAxiosRequestConfig) {
+ return ProfilingQuestionsApiFp(this.configuration).submitProfilingQuestionsProductIdProfilingQuestionsPost(productId, bpuid, bodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, sessionId, async, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ *
+ * @summary User Profile
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string} countryIso Respondent\&#39;s country code (ISO 3166-1 alpha-2, lowercase)
+ * @param {string} [languageIso] Respondent\&#39;s desired language (ISO 639-2/B, lowercase)
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ProfilingQuestionsApi
+ */
+ public userProfileProductIdUserProfileGet(productId: string, bpuid: string, countryIso: string, languageIso?: string, options?: RawAxiosRequestConfig) {
+ return ProfilingQuestionsApiFp(this.configuration).userProfileProductIdUserProfileGet(productId, bpuid, countryIso, languageIso, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+
+/**
+ * ReportApi - axios parameter creator
+ * @export
+ */
+export const ReportApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Send a \"Task Report\" for a respondent\'s latest started survey, regardless of the survey\'s outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent\'s task attempt. If a latest attempt can\'t be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it\'s important that the respondent submits a Task Report as soon as possible and applications doesn\'t offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { \'bpuid\': \'1234\', \'reasons\': [2], \'notes\': \"This survey was the worst!\" } Returns {\'status\': \'success\', \'msg\': error_msg}
+ * @summary Report Task
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {ReportTask} reportTask
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ reportTaskProductIdReportPost: async (productId: string, reportTask: ReportTask, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('reportTaskProductIdReportPost', 'productId', productId)
+ // verify required parameter 'reportTask' is not null or undefined
+ assertParamExists('reportTaskProductIdReportPost', 'reportTask', reportTask)
+ const localVarPath = `/{product_id}/report/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(reportTask, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * ReportApi - functional programming interface
+ * @export
+ */
+export const ReportApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = ReportApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * Send a \"Task Report\" for a respondent\'s latest started survey, regardless of the survey\'s outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent\'s task attempt. If a latest attempt can\'t be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it\'s important that the respondent submits a Task Report as soon as possible and applications doesn\'t offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { \'bpuid\': \'1234\', \'reasons\': [2], \'notes\': \"This survey was the worst!\" } Returns {\'status\': \'success\', \'msg\': error_msg}
+ * @summary Report Task
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {ReportTask} reportTask
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async reportTaskProductIdReportPost(productId: string, reportTask: ReportTask, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reportTaskProductIdReportPost(productId, reportTask, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['ReportApi.reportTaskProductIdReportPost']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * ReportApi - factory interface
+ * @export
+ */
+export const ReportApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = ReportApiFp(configuration)
+ return {
+ /**
+ * Send a \"Task Report\" for a respondent\'s latest started survey, regardless of the survey\'s outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent\'s task attempt. If a latest attempt can\'t be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it\'s important that the respondent submits a Task Report as soon as possible and applications doesn\'t offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { \'bpuid\': \'1234\', \'reasons\': [2], \'notes\': \"This survey was the worst!\" } Returns {\'status\': \'success\', \'msg\': error_msg}
+ * @summary Report Task
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {ReportTask} reportTask
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ reportTaskProductIdReportPost(productId: string, reportTask: ReportTask, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
+ return localVarFp.reportTaskProductIdReportPost(productId, reportTask, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * ReportApi - object-oriented interface
+ * @export
+ * @class ReportApi
+ * @extends {BaseAPI}
+ */
+export class ReportApi extends BaseAPI {
+ /**
+ * Send a \"Task Report\" for a respondent\'s latest started survey, regardless of the survey\'s outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent\'s task attempt. If a latest attempt can\'t be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it\'s important that the respondent submits a Task Report as soon as possible and applications doesn\'t offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { \'bpuid\': \'1234\', \'reasons\': [2], \'notes\': \"This survey was the worst!\" } Returns {\'status\': \'success\', \'msg\': error_msg}
+ * @summary Report Task
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {ReportTask} reportTask
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ReportApi
+ */
+ public reportTaskProductIdReportPost(productId: string, reportTask: ReportTask, options?: RawAxiosRequestConfig) {
+ return ReportApiFp(this.configuration).reportTaskProductIdReportPost(productId, reportTask, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+
+/**
+ * StatusApi - axios parameter creator
+ * @export
+ */
+export const StatusApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
+ * @summary Get Task Status
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} tsid A unique identifier for the session
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getTaskStatusProductIdStatusTsidGet: async (productId: string, tsid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getTaskStatusProductIdStatusTsidGet', 'productId', productId)
+ // verify required parameter 'tsid' is not null or undefined
+ assertParamExists('getTaskStatusProductIdStatusTsidGet', 'tsid', tsid)
+ const localVarPath = `/{product_id}/status/{tsid}/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"tsid"}}`, encodeURIComponent(String(tsid)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary List Task Statuses
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
+ * @param {number} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
+ * @param {number} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
+ * @param {number} [status] Filter for sessions with this status. See Task Status for description of status.
+ * @param {boolean} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
+ * @param {number} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
+ * @param {number} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listTaskStatusesProductIdStatusGet: async (productId: string, bpuid?: string, startedAfter?: number, startedBefore?: number, status?: number, reconciled?: boolean, adjustedAfter?: number, adjustedBefore?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('listTaskStatusesProductIdStatusGet', 'productId', productId)
+ const localVarPath = `/{product_id}/status/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (startedAfter !== undefined) {
+ localVarQueryParameter['started_after'] = startedAfter;
+ }
+
+ if (startedBefore !== undefined) {
+ localVarQueryParameter['started_before'] = startedBefore;
+ }
+
+ if (status !== undefined) {
+ localVarQueryParameter['status'] = status;
+ }
+
+ if (reconciled !== undefined) {
+ localVarQueryParameter['reconciled'] = reconciled;
+ }
+
+ if (adjustedAfter !== undefined) {
+ localVarQueryParameter['adjusted_after'] = adjustedAfter;
+ }
+
+ if (adjustedBefore !== undefined) {
+ localVarQueryParameter['adjusted_before'] = adjustedBefore;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * StatusApi - functional programming interface
+ * @export
+ */
+export const StatusApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = StatusApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
+ * @summary Get Task Status
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} tsid A unique identifier for the session
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getTaskStatusProductIdStatusTsidGet(productId: string, tsid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskStatusResponseOut>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskStatusProductIdStatusTsidGet(productId, tsid, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['StatusApi.getTaskStatusProductIdStatusTsidGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary List Task Statuses
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
+ * @param {number} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
+ * @param {number} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
+ * @param {number} [status] Filter for sessions with this status. See Task Status for description of status.
+ * @param {boolean} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
+ * @param {number} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
+ * @param {number} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listTaskStatusesProductIdStatusGet(productId: string, bpuid?: string, startedAfter?: number, startedBefore?: number, status?: number, reconciled?: boolean, adjustedAfter?: number, adjustedBefore?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TasksStatusResponseOut>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskStatusesProductIdStatusGet(productId, bpuid, startedAfter, startedBefore, status, reconciled, adjustedAfter, adjustedBefore, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['StatusApi.listTaskStatusesProductIdStatusGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * StatusApi - factory interface
+ * @export
+ */
+export const StatusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = StatusApiFp(configuration)
+ return {
+ /**
+ * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
+ * @summary Get Task Status
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} tsid A unique identifier for the session
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getTaskStatusProductIdStatusTsidGet(productId: string, tsid: string, options?: RawAxiosRequestConfig): AxiosPromise<TaskStatusResponseOut> {
+ return localVarFp.getTaskStatusProductIdStatusTsidGet(productId, tsid, options).then((request) => request(axios, basePath));
+ },
+ /**
+ *
+ * @summary List Task Statuses
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
+ * @param {number} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
+ * @param {number} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
+ * @param {number} [status] Filter for sessions with this status. See Task Status for description of status.
+ * @param {boolean} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
+ * @param {number} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
+ * @param {number} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listTaskStatusesProductIdStatusGet(productId: string, bpuid?: string, startedAfter?: number, startedBefore?: number, status?: number, reconciled?: boolean, adjustedAfter?: number, adjustedBefore?: number, options?: RawAxiosRequestConfig): AxiosPromise<TasksStatusResponseOut> {
+ return localVarFp.listTaskStatusesProductIdStatusGet(productId, bpuid, startedAfter, startedBefore, status, reconciled, adjustedAfter, adjustedBefore, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * StatusApi - object-oriented interface
+ * @export
+ * @class StatusApi
+ * @extends {BaseAPI}
+ */
+export class StatusApi extends BaseAPI {
+ /**
+ * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
+ * @summary Get Task Status
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} tsid A unique identifier for the session
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof StatusApi
+ */
+ public getTaskStatusProductIdStatusTsidGet(productId: string, tsid: string, options?: RawAxiosRequestConfig) {
+ return StatusApiFp(this.configuration).getTaskStatusProductIdStatusTsidGet(productId, tsid, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ *
+ * @summary List Task Statuses
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
+ * @param {number} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
+ * @param {number} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
+ * @param {number} [status] Filter for sessions with this status. See Task Status for description of status.
+ * @param {boolean} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
+ * @param {number} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
+ * @param {number} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof StatusApi
+ */
+ public listTaskStatusesProductIdStatusGet(productId: string, bpuid?: string, startedAfter?: number, startedBefore?: number, status?: number, reconciled?: boolean, adjustedAfter?: number, adjustedBefore?: number, options?: RawAxiosRequestConfig) {
+ return StatusApiFp(this.configuration).listTaskStatusesProductIdStatusGet(productId, bpuid, startedAfter, startedBefore, status, reconciled, adjustedAfter, adjustedBefore, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+
+/**
+ * WalletApi - axios parameter creator
+ * @export
+ */
+export const WalletApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * @summary Create Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Body} body
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createCashoutMethodProductIdCashoutMethodsPost: async (productId: string, body: Body, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('createCashoutMethodProductIdCashoutMethodsPost', 'productId', productId)
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('createCashoutMethodProductIdCashoutMethodsPost', 'body', body)
+ const localVarPath = `/{product_id}/cashout_methods/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Delete a cashout method
+ * @summary Delete Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method to delete
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete: async (productId: string, cashoutMethodId: string, bpuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete', 'productId', productId)
+ // verify required parameter 'cashoutMethodId' is not null or undefined
+ assertParamExists('deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete', 'cashoutMethodId', cashoutMethodId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/cashout_methods/{cashout_method_id}/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"cashout_method_id"}}`, encodeURIComponent(String(cashoutMethodId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Retrieve the details for a specific Cashout event
+ * @summary Get Cashout Detail
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutId The cashout event ID
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getCashoutDetailProductIdCashoutCashoutIdGet: async (productId: string, cashoutId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getCashoutDetailProductIdCashoutCashoutIdGet', 'productId', productId)
+ // verify required parameter 'cashoutId' is not null or undefined
+ assertParamExists('getCashoutDetailProductIdCashoutCashoutIdGet', 'cashoutId', cashoutId)
+ const localVarPath = `/{product_id}/cashout/{cashout_id}/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"cashout_id"}}`, encodeURIComponent(String(cashoutId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Retrieve the current available mechanisms that a user can use to retrieve funds.
+ * @summary Get Cashout Methods
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getCashoutMethodsProductIdCashoutMethodsGet: async (productId: string, bpuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getCashoutMethodsProductIdCashoutMethodsGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('getCashoutMethodsProductIdCashoutMethodsGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/cashout_methods/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
+ * @summary Get Expected Redemption Value
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {number} amount (USD cents) The amount to convert
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet: async (productId: string, cashoutMethodId: string, amount: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet', 'productId', productId)
+ // verify required parameter 'cashoutMethodId' is not null or undefined
+ assertParamExists('getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet', 'cashoutMethodId', cashoutMethodId)
+ // verify required parameter 'amount' is not null or undefined
+ assertParamExists('getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet', 'amount', amount)
+ const localVarPath = `/{product_id}/cashout_method/{cashout_method_id}/value/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"cashout_method_id"}}`, encodeURIComponent(String(cashoutMethodId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (amount !== undefined) {
+ localVarQueryParameter['amount'] = amount;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Return array of user events that altered their wallet balance
+ * @summary Get User Transaction History
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getUserTransactionHistoryProductIdTransactionHistoryGet: async (productId: string, bpuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getUserTransactionHistoryProductIdTransactionHistoryGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('getUserTransactionHistoryProductIdTransactionHistoryGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/transaction_history/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Retrieve the current balance of a respondent\'s wallet balance for display
+ * @summary Get User Wallet Balance
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getUserWalletBalanceProductIdWalletGet: async (productId: string, bpuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getUserWalletBalanceProductIdWalletGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('getUserWalletBalanceProductIdWalletGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/wallet/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Request a cashout taken from a user\'s available wallet balance, to be paid via a particular cashout method.
+ * @summary Submit User Cashout
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {CreateCashoutRequest} createCashoutRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitUserCashoutProductIdCashoutPost: async (productId: string, createCashoutRequest: CreateCashoutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('submitUserCashoutProductIdCashoutPost', 'productId', productId)
+ // verify required parameter 'createCashoutRequest' is not null or undefined
+ assertParamExists('submitUserCashoutProductIdCashoutPost', 'createCashoutRequest', createCashoutRequest)
+ const localVarPath = `/{product_id}/cashout/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(createCashoutRequest, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * WalletApi - functional programming interface
+ * @export
+ */
+export const WalletApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = WalletApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * @summary Create Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Body} body
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async createCashoutMethodProductIdCashoutMethodsPost(productId: string, body: Body, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutMethodResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCashoutMethodProductIdCashoutMethodsPost(productId, body, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.createCashoutMethodProductIdCashoutMethodsPost']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Delete a cashout method
+ * @summary Delete Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method to delete
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId: string, cashoutMethodId: string, bpuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Retrieve the details for a specific Cashout event
+ * @summary Get Cashout Detail
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutId The cashout event ID
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getCashoutDetailProductIdCashoutCashoutIdGet(productId: string, cashoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutRequestResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.getCashoutDetailProductIdCashoutCashoutIdGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Retrieve the current available mechanisms that a user can use to retrieve funds.
+ * @summary Get Cashout Methods
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutMethodsResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.getCashoutMethodsProductIdCashoutMethodsGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
+ * @summary Get Expected Redemption Value
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {number} amount (USD cents) The amount to convert
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId: string, cashoutMethodId: string, amount: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutMethodForeignValueResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId, cashoutMethodId, amount, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Return array of user events that altered their wallet balance
+ * @summary Get User Transaction History
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getUserTransactionHistoryProductIdTransactionHistoryGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserTransactionHistoryResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTransactionHistoryProductIdTransactionHistoryGet(productId, bpuid, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.getUserTransactionHistoryProductIdTransactionHistoryGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Retrieve the current balance of a respondent\'s wallet balance for display
+ * @summary Get User Wallet Balance
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getUserWalletBalanceProductIdWalletGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserWalletBalanceResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserWalletBalanceProductIdWalletGet(productId, bpuid, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.getUserWalletBalanceProductIdWalletGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Request a cashout taken from a user\'s available wallet balance, to be paid via a particular cashout method.
+ * @summary Submit User Cashout
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {CreateCashoutRequest} createCashoutRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async submitUserCashoutProductIdCashoutPost(productId: string, createCashoutRequest: CreateCashoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutRequestResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitUserCashoutProductIdCashoutPost(productId, createCashoutRequest, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.submitUserCashoutProductIdCashoutPost']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ }
+};
+
+/**
+ * WalletApi - factory interface
+ * @export
+ */
+export const WalletApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = WalletApiFp(configuration)
+ return {
+ /**
+ * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * @summary Create Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Body} body
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createCashoutMethodProductIdCashoutMethodsPost(productId: string, body: Body, options?: RawAxiosRequestConfig): AxiosPromise<CashoutMethodResponse> {
+ return localVarFp.createCashoutMethodProductIdCashoutMethodsPost(productId, body, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Delete a cashout method
+ * @summary Delete Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method to delete
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId: string, cashoutMethodId: string, bpuid: string, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
+ return localVarFp.deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Retrieve the details for a specific Cashout event
+ * @summary Get Cashout Detail
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutId The cashout event ID
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getCashoutDetailProductIdCashoutCashoutIdGet(productId: string, cashoutId: string, options?: RawAxiosRequestConfig): AxiosPromise<CashoutRequestResponse> {
+ return localVarFp.getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Retrieve the current available mechanisms that a user can use to retrieve funds.
+ * @summary Get Cashout Methods
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CashoutMethodsResponse> {
+ return localVarFp.getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
+ * @summary Get Expected Redemption Value
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {number} amount (USD cents) The amount to convert
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId: string, cashoutMethodId: string, amount: number, options?: RawAxiosRequestConfig): AxiosPromise<CashoutMethodForeignValueResponse> {
+ return localVarFp.getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId, cashoutMethodId, amount, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Return array of user events that altered their wallet balance
+ * @summary Get User Transaction History
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getUserTransactionHistoryProductIdTransactionHistoryGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): AxiosPromise<UserTransactionHistoryResponse> {
+ return localVarFp.getUserTransactionHistoryProductIdTransactionHistoryGet(productId, bpuid, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Retrieve the current balance of a respondent\'s wallet balance for display
+ * @summary Get User Wallet Balance
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getUserWalletBalanceProductIdWalletGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): AxiosPromise<UserWalletBalanceResponse> {
+ return localVarFp.getUserWalletBalanceProductIdWalletGet(productId, bpuid, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Request a cashout taken from a user\'s available wallet balance, to be paid via a particular cashout method.
+ * @summary Submit User Cashout
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {CreateCashoutRequest} createCashoutRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitUserCashoutProductIdCashoutPost(productId: string, createCashoutRequest: CreateCashoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CashoutRequestResponse> {
+ return localVarFp.submitUserCashoutProductIdCashoutPost(productId, createCashoutRequest, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * WalletApi - object-oriented interface
+ * @export
+ * @class WalletApi
+ * @extends {BaseAPI}
+ */
+export class WalletApi extends BaseAPI {
+ /**
+ * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * @summary Create Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {Body} body
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public createCashoutMethodProductIdCashoutMethodsPost(productId: string, body: Body, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).createCashoutMethodProductIdCashoutMethodsPost(productId, body, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Delete a cashout method
+ * @summary Delete Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method to delete
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId: string, cashoutMethodId: string, bpuid: string, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Retrieve the details for a specific Cashout event
+ * @summary Get Cashout Detail
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutId The cashout event ID
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public getCashoutDetailProductIdCashoutCashoutIdGet(productId: string, cashoutId: string, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Retrieve the current available mechanisms that a user can use to retrieve funds.
+ * @summary Get Cashout Methods
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
+ * @summary Get Expected Redemption Value
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {number} amount (USD cents) The amount to convert
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId: string, cashoutMethodId: string, amount: number, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId, cashoutMethodId, amount, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Return array of user events that altered their wallet balance
+ * @summary Get User Transaction History
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public getUserTransactionHistoryProductIdTransactionHistoryGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getUserTransactionHistoryProductIdTransactionHistoryGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Retrieve the current balance of a respondent\'s wallet balance for display
+ * @summary Get User Wallet Balance
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public getUserWalletBalanceProductIdWalletGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getUserWalletBalanceProductIdWalletGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Request a cashout taken from a user\'s available wallet balance, to be paid via a particular cashout method.
+ * @summary Submit User Cashout
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {CreateCashoutRequest} createCashoutRequest
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public submitUserCashoutProductIdCashoutPost(productId: string, createCashoutRequest: CreateCashoutRequest, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).submitUserCashoutProductIdCashoutPost(productId, createCashoutRequest, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
diff --git a/src/api/apis/dashboard-api.ts b/src/api/apis/dashboard-api.ts
deleted file mode 100644
index f35213a..0000000
--- a/src/api/apis/dashboard-api.ts
+++ /dev/null
@@ -1,134 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { HTTPValidationError } from '../models';
-import { MarketplaceSummary } from '../models';
-/**
- * DashboardApi - axios parameter creator
- * @export
- */
-export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- *
- * @summary Marketplace Inventory
- * @param {any} marketplace
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- marketplaceInventoryDashboardInventoryGet: async (marketplace: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'marketplace' is not null or undefined
- if (marketplace === null || marketplace === undefined) {
- throw new RequiredError('marketplace','Required parameter marketplace was null or undefined when calling marketplaceInventoryDashboardInventoryGet.');
- }
- const localVarPath = `/dashboard/inventory/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (marketplace !== undefined) {
- localVarQueryParameter['marketplace'] = marketplace;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * DashboardApi - functional programming interface
- * @export
- */
-export const DashboardApiFp = function(configuration?: Configuration) {
- return {
- /**
- *
- * @summary Marketplace Inventory
- * @param {any} marketplace
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async marketplaceInventoryDashboardInventoryGet(marketplace: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<MarketplaceSummary>>> {
- const localVarAxiosArgs = await DashboardApiAxiosParamCreator(configuration).marketplaceInventoryDashboardInventoryGet(marketplace, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * DashboardApi - factory interface
- * @export
- */
-export const DashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- *
- * @summary Marketplace Inventory
- * @param {any} marketplace
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async marketplaceInventoryDashboardInventoryGet(marketplace: any, options?: AxiosRequestConfig): Promise<AxiosResponse<MarketplaceSummary>> {
- return DashboardApiFp(configuration).marketplaceInventoryDashboardInventoryGet(marketplace, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * DashboardApi - object-oriented interface
- * @export
- * @class DashboardApi
- * @extends {BaseAPI}
- */
-export class DashboardApi extends BaseAPI {
- /**
- *
- * @summary Marketplace Inventory
- * @param {any} marketplace
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof DashboardApi
- */
- public async marketplaceInventoryDashboardInventoryGet(marketplace: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<MarketplaceSummary>> {
- return DashboardApiFp(this.configuration).marketplaceInventoryDashboardInventoryGet(marketplace, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/apis/leaderboard-api.ts b/src/api/apis/leaderboard-api.ts
deleted file mode 100644
index 26e8c95..0000000
--- a/src/api/apis/leaderboard-api.ts
+++ /dev/null
@@ -1,301 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { HTTPValidationError } from '../models';
-import { LeaderboardResponse } from '../models';
-import { LeaderboardWinnerResponse } from '../models';
-/**
- * LeaderboardApi - axios parameter creator
- * @export
- */
-export const LeaderboardApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- * Get the Winners of leaderboard contests
- * @summary Leaderboard Winners
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet: async (productId: any, boardCode: any, freq: any, countryIso: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet.');
- }
- // verify required parameter 'boardCode' is not null or undefined
- if (boardCode === null || boardCode === undefined) {
- throw new RequiredError('boardCode','Required parameter boardCode was null or undefined when calling leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet.');
- }
- // verify required parameter 'freq' is not null or undefined
- if (freq === null || freq === undefined) {
- throw new RequiredError('freq','Required parameter freq was null or undefined when calling leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet.');
- }
- // verify required parameter 'countryIso' is not null or undefined
- if (countryIso === null || countryIso === undefined) {
- throw new RequiredError('countryIso','Required parameter countryIso was null or undefined when calling leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet.');
- }
- const localVarPath = `/{product_id}/leaderboard/timespan/{board_code}/winners/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"board_code"}}`, encodeURIComponent(String(boardCode)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (freq !== undefined) {
- localVarQueryParameter['freq'] = freq;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary Timespan Leaderboard
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [bpuid] Brokerage Product User ID. If passed, then the country is not required; the country is determined by this user&#x27;s latest IP.
- * @param {any} [timestamp] The start timestamp for the requested leaderboard. If NULL, uses the current time period.
- * @param {any} [scope] If scope is \&quot;user\&quot;, then &#x60;bp_user_id&#x60; must be set. Results in filtering rows to include only this user&#x27;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). If \&quot;global\&quot;, then the top &#x60;limit&#x60; rows are returned.
- * @param {any} [limit] Max number of rows to return
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet: async (productId: any, boardCode: any, freq: any, countryIso?: any, bpuid?: any, timestamp?: any, scope?: any, limit?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet.');
- }
- // verify required parameter 'boardCode' is not null or undefined
- if (boardCode === null || boardCode === undefined) {
- throw new RequiredError('boardCode','Required parameter boardCode was null or undefined when calling timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet.');
- }
- // verify required parameter 'freq' is not null or undefined
- if (freq === null || freq === undefined) {
- throw new RequiredError('freq','Required parameter freq was null or undefined when calling timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet.');
- }
- const localVarPath = `/{product_id}/leaderboard/timespan/{board_code}/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"board_code"}}`, encodeURIComponent(String(boardCode)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (freq !== undefined) {
- localVarQueryParameter['freq'] = freq;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (timestamp !== undefined) {
- localVarQueryParameter['timestamp'] = timestamp;
- }
-
- if (scope !== undefined) {
- localVarQueryParameter['scope'] = scope;
- }
-
- if (limit !== undefined) {
- localVarQueryParameter['limit'] = limit;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * LeaderboardApi - functional programming interface
- * @export
- */
-export const LeaderboardApiFp = function(configuration?: Configuration) {
- return {
- /**
- * Get the Winners of leaderboard contests
- * @summary Leaderboard Winners
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId: any, boardCode: any, freq: any, countryIso: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<LeaderboardWinnerResponse>>> {
- const localVarAxiosArgs = await LeaderboardApiAxiosParamCreator(configuration).leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId, boardCode, freq, countryIso, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary Timespan Leaderboard
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [bpuid] Brokerage Product User ID. If passed, then the country is not required; the country is determined by this user&#x27;s latest IP.
- * @param {any} [timestamp] The start timestamp for the requested leaderboard. If NULL, uses the current time period.
- * @param {any} [scope] If scope is \&quot;user\&quot;, then &#x60;bp_user_id&#x60; must be set. Results in filtering rows to include only this user&#x27;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). If \&quot;global\&quot;, then the top &#x60;limit&#x60; rows are returned.
- * @param {any} [limit] Max number of rows to return
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId: any, boardCode: any, freq: any, countryIso?: any, bpuid?: any, timestamp?: any, scope?: any, limit?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<LeaderboardResponse>>> {
- const localVarAxiosArgs = await LeaderboardApiAxiosParamCreator(configuration).timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId, boardCode, freq, countryIso, bpuid, timestamp, scope, limit, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * LeaderboardApi - factory interface
- * @export
- */
-export const LeaderboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- * Get the Winners of leaderboard contests
- * @summary Leaderboard Winners
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId: any, boardCode: any, freq: any, countryIso: any, options?: AxiosRequestConfig): Promise<AxiosResponse<LeaderboardWinnerResponse>> {
- return LeaderboardApiFp(configuration).leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId, boardCode, freq, countryIso, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary Timespan Leaderboard
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [bpuid] Brokerage Product User ID. If passed, then the country is not required; the country is determined by this user&#x27;s latest IP.
- * @param {any} [timestamp] The start timestamp for the requested leaderboard. If NULL, uses the current time period.
- * @param {any} [scope] If scope is \&quot;user\&quot;, then &#x60;bp_user_id&#x60; must be set. Results in filtering rows to include only this user&#x27;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). If \&quot;global\&quot;, then the top &#x60;limit&#x60; rows are returned.
- * @param {any} [limit] Max number of rows to return
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId: any, boardCode: any, freq: any, countryIso?: any, bpuid?: any, timestamp?: any, scope?: any, limit?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<LeaderboardResponse>> {
- return LeaderboardApiFp(configuration).timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId, boardCode, freq, countryIso, bpuid, timestamp, scope, limit, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * LeaderboardApi - object-oriented interface
- * @export
- * @class LeaderboardApi
- * @extends {BaseAPI}
- */
-export class LeaderboardApi extends BaseAPI {
- /**
- * Get the Winners of leaderboard contests
- * @summary Leaderboard Winners
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof LeaderboardApi
- */
- public async leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId: any, boardCode: any, freq: any, countryIso: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<LeaderboardWinnerResponse>> {
- return LeaderboardApiFp(this.configuration).leaderboardWinnersProductIdLeaderboardTimespanBoardCodeWinnersGet(productId, boardCode, freq, countryIso, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary Timespan Leaderboard
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} boardCode The type of leaderboard. What the \&quot;values\&quot; represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- * @param {any} freq The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [bpuid] Brokerage Product User ID. If passed, then the country is not required; the country is determined by this user&#x27;s latest IP.
- * @param {any} [timestamp] The start timestamp for the requested leaderboard. If NULL, uses the current time period.
- * @param {any} [scope] If scope is \&quot;user\&quot;, then &#x60;bp_user_id&#x60; must be set. Results in filtering rows to include only this user&#x27;s row, plus rows above and below in rank (up to &#x60;limit&#x60; rows). If \&quot;global\&quot;, then the top &#x60;limit&#x60; rows are returned.
- * @param {any} [limit] Max number of rows to return
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof LeaderboardApi
- */
- public async timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId: any, boardCode: any, freq: any, countryIso?: any, bpuid?: any, timestamp?: any, scope?: any, limit?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<LeaderboardResponse>> {
- return LeaderboardApiFp(this.configuration).timespanLeaderboardProductIdLeaderboardTimespanBoardCodeGet(productId, boardCode, freq, countryIso, bpuid, timestamp, scope, limit, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/apis/offerwall-api.ts b/src/api/apis/offerwall-api.ts
deleted file mode 100644
index a49c613..0000000
--- a/src/api/apis/offerwall-api.ts
+++ /dev/null
@@ -1,2205 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost } from '../models';
-import { HTTPValidationError } from '../models';
-import { MarketplaceOfferwallResponse } from '../models';
-import { OneShotOfferwallResponse } from '../models';
-import { SingleEntryOfferWallResponse } from '../models';
-import { SoftPairOfferwallResponse } from '../models';
-import { StarwallOfferWallResponse } from '../models';
-import { StarwallPlusBlockOfferWallResponse } from '../models';
-import { StarwallPlusBlockRecontactOfferWallResponse } from '../models';
-import { StarwallPlusOfferWallResponse } from '../models';
-import { TopNOfferWallResponse } from '../models';
-import { TopNPlusBlockOfferWallResponse } from '../models';
-import { TopNPlusBlockRecontactOfferWallResponse } from '../models';
-import { TopNPlusOfferWallResponse } from '../models';
-import { WXETOfferwallResponse } from '../models';
-/**
- * OfferwallApi - axios parameter creator
- * @export
- */
-export const OfferwallApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
- * @summary Marketplace Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- marketplaceOfferwallProductIdOfferwall5fa23085Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling marketplaceOfferwallProductIdOfferwall5fa23085Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling marketplaceOfferwallProductIdOfferwall5fa23085Get.');
- }
- const localVarPath = `/{product_id}/offerwall/5fa23085/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
- * @summary Offerwall Softpair Post
- * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} offerwallId The offerwall ID the user is interacting with
- * @param {any} sessionId A session id (uuid4.hex)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost: async (body: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, bpuid: any, productId: any, offerwallId: any, sessionId: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'body' is not null or undefined
- if (body === null || body === undefined) {
- throw new RequiredError('body','Required parameter body was null or undefined when calling offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost.');
- }
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost.');
- }
- // verify required parameter 'offerwallId' is not null or undefined
- if (offerwallId === null || offerwallId === undefined) {
- throw new RequiredError('offerwallId','Required parameter offerwallId was null or undefined when calling offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost.');
- }
- // verify required parameter 'sessionId' is not null or undefined
- if (sessionId === null || sessionId === undefined) {
- throw new RequiredError('sessionId','Required parameter sessionId was null or undefined when calling offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost.');
- }
- const localVarPath = `/{product_id}/offerwall/37d1da64/{offerwall_id}/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"offerwall_id"}}`, encodeURIComponent(String(offerwallId)))
- .replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
- * @summary Offerwall Softpair
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
- * @param {any} [maxQuestions] Max number of missing questions on a single bin
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- offerwallSoftpairProductIdOfferwall37d1da64Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, maxOptions?: any, maxQuestions?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling offerwallSoftpairProductIdOfferwall37d1da64Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling offerwallSoftpairProductIdOfferwall37d1da64Get.');
- }
- const localVarPath = `/{product_id}/offerwall/37d1da64/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (maxOptions !== undefined) {
- localVarQueryParameter['max_options'] = maxOptions;
- }
-
- if (maxQuestions !== undefined) {
- localVarQueryParameter['max_questions'] = maxQuestions;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary One Shot Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [sources] Restrict tasks to those from these marketplaces only.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- oneShotOfferwallProductIdOfferwall6f27b1aeGet: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, sources?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling oneShotOfferwallProductIdOfferwall6f27b1aeGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling oneShotOfferwallProductIdOfferwall6f27b1aeGet.');
- }
- const localVarPath = `/{product_id}/offerwall/6f27b1ae/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (sources !== undefined) {
- localVarQueryParameter['sources'] = sources;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Only returns a single bucket with the top scoring tasks.
- * @summary Single Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- singleOfferwallProductIdOfferwall5fl8bpv5Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling singleOfferwallProductIdOfferwall5fl8bpv5Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling singleOfferwallProductIdOfferwall5fl8bpv5Get.');
- }
- const localVarPath = `/{product_id}/offerwall/5fl8bpv5/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket's features.
- * @summary Starwall Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- starwallOfferwallProductIdOfferwallB59a2d2bGet: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling starwallOfferwallProductIdOfferwallB59a2d2bGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling starwallOfferwallProductIdOfferwallB59a2d2bGet.');
- }
- const localVarPath = `/{product_id}/offerwall/b59a2d2b/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Starwall Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get.');
- }
- const localVarPath = `/{product_id}/offerwall/7fa1b3f4/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Starwall Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get.');
- }
- const localVarPath = `/{product_id}/offerwall/630db2a4/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents.
- * @summary Starwall Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- starwallPlusOfferwallProductIdOfferwall5481f322Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling starwallPlusOfferwallProductIdOfferwall5481f322Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling starwallPlusOfferwallProductIdOfferwall5481f322Get.');
- }
- const localVarPath = `/{product_id}/offerwall/5481f322/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
- * @summary Topn Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- topNOfferwallProductIdOfferwall45b7228a7Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling topNOfferwallProductIdOfferwall45b7228a7Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling topNOfferwallProductIdOfferwall45b7228a7Get.');
- }
- const localVarPath = `/{product_id}/offerwall/45b7228a7/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Topn Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- topNPlusBlockOfferwallProductIdOfferwallD48cce47Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling topNPlusBlockOfferwallProductIdOfferwallD48cce47Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling topNPlusBlockOfferwallProductIdOfferwallD48cce47Get.');
- }
- const localVarPath = `/{product_id}/offerwall/d48cce47/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Topn Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get.');
- }
- const localVarPath = `/{product_id}/offerwall/1e5f0af8/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents.
- * @summary Topn Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- topNPlusOfferwallProductIdOfferwallB145b803Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling topNPlusOfferwallProductIdOfferwallB145b803Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling topNPlusOfferwallProductIdOfferwallB145b803Get.');
- }
- const localVarPath = `/{product_id}/offerwall/b145b803/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- if (minBinSize !== undefined) {
- localVarQueryParameter['min_bin_size'] = minBinSize;
- }
-
- if (splitBy !== undefined) {
- localVarQueryParameter['split_by'] = splitBy;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary Wxet Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- wXETOfferwallProductIdOfferwall55a4e1a9Get: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling wXETOfferwallProductIdOfferwall55a4e1a9Get.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling wXETOfferwallProductIdOfferwall55a4e1a9Get.');
- }
- const localVarPath = `/{product_id}/offerwall/55a4e1a9/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languages !== undefined) {
- localVarQueryParameter['languages'] = languages;
- }
-
- if (behavior !== undefined) {
- localVarQueryParameter['behavior'] = behavior;
- }
-
- if (minPayout !== undefined) {
- localVarQueryParameter['min_payout'] = minPayout;
- }
-
- if (duration !== undefined) {
- localVarQueryParameter['duration'] = duration;
- }
-
- if (nBins !== undefined) {
- localVarQueryParameter['n_bins'] = nBins;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * OfferwallApi - functional programming interface
- * @export
- */
-export const OfferwallApiFp = function(configuration?: Configuration) {
- return {
- /**
- * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
- * @summary Marketplace Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async marketplaceOfferwallProductIdOfferwall5fa23085Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<MarketplaceOfferwallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).marketplaceOfferwallProductIdOfferwall5fa23085Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
- * @summary Offerwall Softpair Post
- * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} offerwallId The offerwall ID the user is interacting with
- * @param {any} sessionId A session id (uuid4.hex)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(body: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, bpuid: any, productId: any, offerwallId: any, sessionId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SoftPairOfferwallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(body, bpuid, productId, offerwallId, sessionId, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
- * @summary Offerwall Softpair
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
- * @param {any} [maxQuestions] Max number of missing questions on a single bin
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async offerwallSoftpairProductIdOfferwall37d1da64Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, maxOptions?: any, maxQuestions?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SoftPairOfferwallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).offerwallSoftpairProductIdOfferwall37d1da64Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, maxOptions, maxQuestions, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary One Shot Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [sources] Restrict tasks to those from these marketplaces only.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, sources?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<OneShotOfferwallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, sources, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Only returns a single bucket with the top scoring tasks.
- * @summary Single Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async singleOfferwallProductIdOfferwall5fl8bpv5Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SingleEntryOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).singleOfferwallProductIdOfferwall5fl8bpv5Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket's features.
- * @summary Starwall Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallOfferwallProductIdOfferwallB59a2d2bGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StarwallOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).starwallOfferwallProductIdOfferwallB59a2d2bGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Starwall Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StarwallPlusBlockOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Starwall Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StarwallPlusBlockRecontactOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents.
- * @summary Starwall Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallPlusOfferwallProductIdOfferwall5481f322Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StarwallPlusOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).starwallPlusOfferwallProductIdOfferwall5481f322Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
- * @summary Topn Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNOfferwallProductIdOfferwall45b7228a7Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TopNOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).topNOfferwallProductIdOfferwall45b7228a7Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Topn Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TopNPlusBlockOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Topn Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TopNPlusBlockRecontactOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents.
- * @summary Topn Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNPlusOfferwallProductIdOfferwallB145b803Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TopNPlusOfferWallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).topNPlusOfferwallProductIdOfferwallB145b803Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary Wxet Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async wXETOfferwallProductIdOfferwall55a4e1a9Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WXETOfferwallResponse>>> {
- const localVarAxiosArgs = await OfferwallApiAxiosParamCreator(configuration).wXETOfferwallProductIdOfferwall55a4e1a9Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * OfferwallApi - factory interface
- * @export
- */
-export const OfferwallApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
- * @summary Marketplace Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async marketplaceOfferwallProductIdOfferwall5fa23085Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<MarketplaceOfferwallResponse>> {
- return OfferwallApiFp(configuration).marketplaceOfferwallProductIdOfferwall5fa23085Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(axios, basePath));
- },
- /**
- * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
- * @summary Offerwall Softpair Post
- * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} offerwallId The offerwall ID the user is interacting with
- * @param {any} sessionId A session id (uuid4.hex)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(body: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, bpuid: any, productId: any, offerwallId: any, sessionId: any, options?: AxiosRequestConfig): Promise<AxiosResponse<SoftPairOfferwallResponse>> {
- return OfferwallApiFp(configuration).offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(body, bpuid, productId, offerwallId, sessionId, options).then((request) => request(axios, basePath));
- },
- /**
- * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
- * @summary Offerwall Softpair
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
- * @param {any} [maxQuestions] Max number of missing questions on a single bin
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async offerwallSoftpairProductIdOfferwall37d1da64Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, maxOptions?: any, maxQuestions?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<SoftPairOfferwallResponse>> {
- return OfferwallApiFp(configuration).offerwallSoftpairProductIdOfferwall37d1da64Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, maxOptions, maxQuestions, options).then((request) => request(axios, basePath));
- },
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary One Shot Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [sources] Restrict tasks to those from these marketplaces only.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, sources?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<OneShotOfferwallResponse>> {
- return OfferwallApiFp(configuration).oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, sources, options).then((request) => request(axios, basePath));
- },
- /**
- * Only returns a single bucket with the top scoring tasks.
- * @summary Single Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async singleOfferwallProductIdOfferwall5fl8bpv5Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<SingleEntryOfferWallResponse>> {
- return OfferwallApiFp(configuration).singleOfferwallProductIdOfferwall5fl8bpv5Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(axios, basePath));
- },
- /**
- * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket's features.
- * @summary Starwall Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallOfferwallProductIdOfferwallB59a2d2bGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StarwallOfferWallResponse>> {
- return OfferwallApiFp(configuration).starwallOfferwallProductIdOfferwallB59a2d2bGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Starwall Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StarwallPlusBlockOfferWallResponse>> {
- return OfferwallApiFp(configuration).starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Starwall Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StarwallPlusBlockRecontactOfferWallResponse>> {
- return OfferwallApiFp(configuration).starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Same as the StarwallOfferWall, but the buckets include contents.
- * @summary Starwall Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async starwallPlusOfferwallProductIdOfferwall5481f322Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StarwallPlusOfferWallResponse>> {
- return OfferwallApiFp(configuration).starwallPlusOfferwallProductIdOfferwall5481f322Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
- * @summary Topn Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNOfferwallProductIdOfferwall45b7228a7Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<TopNOfferWallResponse>> {
- return OfferwallApiFp(configuration).topNOfferwallProductIdOfferwall45b7228a7Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Topn Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<TopNPlusBlockOfferWallResponse>> {
- return OfferwallApiFp(configuration).topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Topn Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<TopNPlusBlockRecontactOfferWallResponse>> {
- return OfferwallApiFp(configuration).topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Same as the TopNOfferWall, but the buckets include contents.
- * @summary Topn Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async topNPlusOfferwallProductIdOfferwallB145b803Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<TopNPlusOfferWallResponse>> {
- return OfferwallApiFp(configuration).topNPlusOfferwallProductIdOfferwallB145b803Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(axios, basePath));
- },
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary Wxet Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async wXETOfferwallProductIdOfferwall55a4e1a9Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<WXETOfferwallResponse>> {
- return OfferwallApiFp(configuration).wXETOfferwallProductIdOfferwall55a4e1a9Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * OfferwallApi - object-oriented interface
- * @export
- * @class OfferwallApi
- * @extends {BaseAPI}
- */
-export class OfferwallApi extends BaseAPI {
- /**
- * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality.
- * @summary Marketplace Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async marketplaceOfferwallProductIdOfferwall5fa23085Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<MarketplaceOfferwallResponse>> {
- return OfferwallApiFp(this.configuration).marketplaceOfferwallProductIdOfferwall5fa23085Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * This is a custom endpoint for a softpair-style offerwall that allows you to update profiling answers and then immediately get back the updated offerwall
- * @summary Offerwall Softpair Post
- * @param {BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} offerwallId The offerwall ID the user is interacting with
- * @param {any} sessionId A session id (uuid4.hex)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(body: BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost, bpuid: any, productId: any, offerwallId: any, sessionId: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<SoftPairOfferwallResponse>> {
- return OfferwallApiFp(this.configuration).offerwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost(body, bpuid, productId, offerwallId, sessionId, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience.
- * @summary Offerwall Softpair
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [maxOptions] Max number of options an allowed question can have (allowed to be asked)
- * @param {any} [maxQuestions] Max number of missing questions on a single bin
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async offerwallSoftpairProductIdOfferwall37d1da64Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, maxOptions?: any, maxQuestions?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<SoftPairOfferwallResponse>> {
- return OfferwallApiFp(this.configuration).offerwallSoftpairProductIdOfferwall37d1da64Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, maxOptions, maxQuestions, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary One Shot Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [sources] Restrict tasks to those from these marketplaces only.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, sources?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<OneShotOfferwallResponse>> {
- return OfferwallApiFp(this.configuration).oneShotOfferwallProductIdOfferwall6f27b1aeGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, sources, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Only returns a single bucket with the top scoring tasks.
- * @summary Single Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async singleOfferwallProductIdOfferwall5fl8bpv5Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, minBinSize?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<SingleEntryOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).singleOfferwallProductIdOfferwall5fl8bpv5Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, minBinSize, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Returns an offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket's features.
- * @summary Starwall Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async starwallOfferwallProductIdOfferwallB59a2d2bGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StarwallOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).starwallOfferwallProductIdOfferwallB59a2d2bGet(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Starwall Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StarwallPlusBlockOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).starwallPlusBlockOfferwallProductIdOfferwall7fa1b3f4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Starwall Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StarwallPlusBlockRecontactOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).starwallPlusBlockRecontactOfferwallProductIdOfferwall630db2a4Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Same as the StarwallOfferWall, but the buckets include contents.
- * @summary Starwall Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async starwallPlusOfferwallProductIdOfferwall5481f322Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StarwallPlusOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).starwallPlusOfferwallProductIdOfferwall5481f322Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Returns an offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering.
- * @summary Topn Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async topNOfferwallProductIdOfferwall45b7228a7Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<TopNOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).topNOfferwallProductIdOfferwall45b7228a7Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked.
- * @summary Topn Plus Block Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<TopNPlusBlockOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).topNPlusBlockOfferwallProductIdOfferwallD48cce47Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key.
- * @summary Topn Plus Block Recontact Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<TopNPlusBlockRecontactOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).topNPlusBlockRecontactOfferwallProductIdOfferwall1e5f0af8Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Same as the TopNOfferWall, but the buckets include contents.
- * @summary Topn Plus Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {any} [minBinSize] Minimum number of tasks that need to be in a bucket
- * @param {any} [splitBy] Cluster tasks by payout or duration
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async topNPlusOfferwallProductIdOfferwallB145b803Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, minBinSize?: any, splitBy?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<TopNPlusOfferWallResponse>> {
- return OfferwallApiFp(this.configuration).topNPlusOfferwallProductIdOfferwallB145b803Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, minBinSize, splitBy, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket.
- * @summary Wxet Offerwall
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languages] Respondent&#x27;s desired languages (ISO 639-2/B, lowercase)
- * @param {any} [behavior] Allows using custom scoring functions. Please discuss directly with GRL.
- * @param {any} [minPayout] Decimal representation of the minimum amount of USD that any of the tasks will pay
- * @param {any} [duration] Maximum length of desired task (in seconds).
- * @param {any} [nBins] Number of bins requested in the offerwall. If n_bins&#x3D;1 there is no grouping and you get all duration + payout metrics on across all (as shown by the availability_count). n_bins&#x3D;0 will return back an empty bucket array, however, the availability_count will still show the total opportunities available for that bpuid + passed in parameter settings. n_bins&#x3D;∞ (or any positive integer) will return back the total number of bins capable of being uniquely split.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof OfferwallApi
- */
- public async wXETOfferwallProductIdOfferwall55a4e1a9Get(productId: any, bpuid: any, ip?: any, countryIso?: any, languages?: any, behavior?: any, minPayout?: any, duration?: any, nBins?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<WXETOfferwallResponse>> {
- return OfferwallApiFp(this.configuration).wXETOfferwallProductIdOfferwall55a4e1a9Get(productId, bpuid, ip, countryIso, languages, behavior, minPayout, duration, nBins, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/apis/profiling-questions-api.ts b/src/api/apis/profiling-questions-api.ts
deleted file mode 100644
index cdcdb85..0000000
--- a/src/api/apis/profiling-questions-api.ts
+++ /dev/null
@@ -1,504 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost } from '../models';
-import { HTTPValidationError } from '../models';
-import { ProfilingInfoResponse } from '../models';
-import { StatusResponse } from '../models';
-import { UpkQuestionResponse } from '../models';
-import { UserInfoResponse } from '../models';
-/**
- * ProfilingQuestionsApi - axios parameter creator
- * @export
- */
-export const ProfilingQuestionsApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
- * @summary Get Profiling Questions
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {any} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions&#x27; importance.
- * @param {any} [isGrs] If it&#x27;s the GRS system.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getProfilingQuestionsProductIdProfilingQuestionsGet: async (productId: any, bpuid: any, ip?: any, countryIso?: any, languageIso?: any, limit?: any, isGrs?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getProfilingQuestionsProductIdProfilingQuestionsGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling getProfilingQuestionsProductIdProfilingQuestionsGet.');
- }
- const localVarPath = `/{product_id}/profiling-questions/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (ip !== undefined) {
- localVarQueryParameter['ip'] = ip;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languageIso !== undefined) {
- localVarQueryParameter['language_iso'] = languageIso;
- }
-
- if (limit !== undefined) {
- localVarQueryParameter['limit'] = limit;
- }
-
- if (isGrs !== undefined) {
- localVarQueryParameter['is_grs'] = isGrs;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Get UPK Ontology (list of properties, property info, and allowed values)
- * @summary Profiling Info
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- profilingInfoProductIdProfilingInfoGet: async (productId: any, countryIso: any, languageIso?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling profilingInfoProductIdProfilingInfoGet.');
- }
- // verify required parameter 'countryIso' is not null or undefined
- if (countryIso === null || countryIso === undefined) {
- throw new RequiredError('countryIso','Required parameter countryIso was null or undefined when calling profilingInfoProductIdProfilingInfoGet.');
- }
- const localVarPath = `/{product_id}/profiling-info/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languageIso !== undefined) {
- localVarQueryParameter['language_iso'] = languageIso;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
- * @summary Submit Profiling Questions
- * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
- * @param {any} [async] For internal use.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- submitProfilingQuestionsProductIdProfilingQuestionsPost: async (body: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, bpuid: any, productId: any, sessionId?: any, async?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'body' is not null or undefined
- if (body === null || body === undefined) {
- throw new RequiredError('body','Required parameter body was null or undefined when calling submitProfilingQuestionsProductIdProfilingQuestionsPost.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling submitProfilingQuestionsProductIdProfilingQuestionsPost.');
- }
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling submitProfilingQuestionsProductIdProfilingQuestionsPost.');
- }
- const localVarPath = `/{product_id}/profiling-questions/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (sessionId !== undefined) {
- localVarQueryParameter['session_id'] = sessionId;
- }
-
- if (async !== undefined) {
- localVarQueryParameter['async'] = async;
- }
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary User Profile
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- userProfileProductIdUserProfileGet: async (productId: any, bpuid: any, countryIso: any, languageIso?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling userProfileProductIdUserProfileGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling userProfileProductIdUserProfileGet.');
- }
- // verify required parameter 'countryIso' is not null or undefined
- if (countryIso === null || countryIso === undefined) {
- throw new RequiredError('countryIso','Required parameter countryIso was null or undefined when calling userProfileProductIdUserProfileGet.');
- }
- const localVarPath = `/{product_id}/user-profile/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (countryIso !== undefined) {
- localVarQueryParameter['country_iso'] = countryIso;
- }
-
- if (languageIso !== undefined) {
- localVarQueryParameter['language_iso'] = languageIso;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * ProfilingQuestionsApi - functional programming interface
- * @export
- */
-export const ProfilingQuestionsApiFp = function(configuration?: Configuration) {
- return {
- /**
- * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
- * @summary Get Profiling Questions
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {any} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions&#x27; importance.
- * @param {any} [isGrs] If it&#x27;s the GRS system.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getProfilingQuestionsProductIdProfilingQuestionsGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languageIso?: any, limit?: any, isGrs?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<UpkQuestionResponse>>> {
- const localVarAxiosArgs = await ProfilingQuestionsApiAxiosParamCreator(configuration).getProfilingQuestionsProductIdProfilingQuestionsGet(productId, bpuid, ip, countryIso, languageIso, limit, isGrs, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Get UPK Ontology (list of properties, property info, and allowed values)
- * @summary Profiling Info
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async profilingInfoProductIdProfilingInfoGet(productId: any, countryIso: any, languageIso?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ProfilingInfoResponse>>> {
- const localVarAxiosArgs = await ProfilingQuestionsApiAxiosParamCreator(configuration).profilingInfoProductIdProfilingInfoGet(productId, countryIso, languageIso, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
- * @summary Submit Profiling Questions
- * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
- * @param {any} [async] For internal use.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async submitProfilingQuestionsProductIdProfilingQuestionsPost(body: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, bpuid: any, productId: any, sessionId?: any, async?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StatusResponse>>> {
- const localVarAxiosArgs = await ProfilingQuestionsApiAxiosParamCreator(configuration).submitProfilingQuestionsProductIdProfilingQuestionsPost(body, bpuid, productId, sessionId, async, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary User Profile
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async userProfileProductIdUserProfileGet(productId: any, bpuid: any, countryIso: any, languageIso?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<UserInfoResponse>>> {
- const localVarAxiosArgs = await ProfilingQuestionsApiAxiosParamCreator(configuration).userProfileProductIdUserProfileGet(productId, bpuid, countryIso, languageIso, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * ProfilingQuestionsApi - factory interface
- * @export
- */
-export const ProfilingQuestionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
- * @summary Get Profiling Questions
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {any} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions&#x27; importance.
- * @param {any} [isGrs] If it&#x27;s the GRS system.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getProfilingQuestionsProductIdProfilingQuestionsGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languageIso?: any, limit?: any, isGrs?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<UpkQuestionResponse>> {
- return ProfilingQuestionsApiFp(configuration).getProfilingQuestionsProductIdProfilingQuestionsGet(productId, bpuid, ip, countryIso, languageIso, limit, isGrs, options).then((request) => request(axios, basePath));
- },
- /**
- * Get UPK Ontology (list of properties, property info, and allowed values)
- * @summary Profiling Info
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async profilingInfoProductIdProfilingInfoGet(productId: any, countryIso: any, languageIso?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<ProfilingInfoResponse>> {
- return ProfilingQuestionsApiFp(configuration).profilingInfoProductIdProfilingInfoGet(productId, countryIso, languageIso, options).then((request) => request(axios, basePath));
- },
- /**
- * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
- * @summary Submit Profiling Questions
- * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
- * @param {any} [async] For internal use.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async submitProfilingQuestionsProductIdProfilingQuestionsPost(body: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, bpuid: any, productId: any, sessionId?: any, async?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StatusResponse>> {
- return ProfilingQuestionsApiFp(configuration).submitProfilingQuestionsProductIdProfilingQuestionsPost(body, bpuid, productId, sessionId, async, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary User Profile
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async userProfileProductIdUserProfileGet(productId: any, bpuid: any, countryIso: any, languageIso?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<UserInfoResponse>> {
- return ProfilingQuestionsApiFp(configuration).userProfileProductIdUserProfileGet(productId, bpuid, countryIso, languageIso, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * ProfilingQuestionsApi - object-oriented interface
- * @export
- * @class ProfilingQuestionsApi
- * @extends {BaseAPI}
- */
-export class ProfilingQuestionsApi extends BaseAPI {
- /**
- * Gets a list of profiling questions to ask this user. These questions are, as of right now, unanswered. Once a question is answered, it (and any other question whose answer is inferred from other answers) is removed from the list. The questions returned are ordered by importance (the key task_score) in descending order.
- * @summary Get Profiling Questions
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} [ip] Respondent&#x27;s IP address (IPv4 or IPv6). Either &#x27;ip&#x27; must be provided, or &#x27;country_iso&#x27; must be provided if &#x27;ip&#x27; is not provided.
- * @param {any} [countryIso] Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {any} [limit] Number of questions to return. Questions are ordered, so, selects the N most important. If no limit is passed, then the number of questions returned is dynamically calculated by the questions&#x27; importance.
- * @param {any} [isGrs] If it&#x27;s the GRS system.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ProfilingQuestionsApi
- */
- public async getProfilingQuestionsProductIdProfilingQuestionsGet(productId: any, bpuid: any, ip?: any, countryIso?: any, languageIso?: any, limit?: any, isGrs?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<UpkQuestionResponse>> {
- return ProfilingQuestionsApiFp(this.configuration).getProfilingQuestionsProductIdProfilingQuestionsGet(productId, bpuid, ip, countryIso, languageIso, limit, isGrs, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Get UPK Ontology (list of properties, property info, and allowed values)
- * @summary Profiling Info
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ProfilingQuestionsApi
- */
- public async profilingInfoProductIdProfilingInfoGet(productId: any, countryIso: any, languageIso?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<ProfilingInfoResponse>> {
- return ProfilingQuestionsApiFp(this.configuration).profilingInfoProductIdProfilingInfoGet(productId, countryIso, languageIso, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Send the answers to one or more of these questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\"
- * @summary Submit Profiling Questions
- * @param {BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost} body
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [sessionId] The unique identifier for a session in which these questions were asked. Must be a valid UUID. Optional.
- * @param {any} [async] For internal use.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ProfilingQuestionsApi
- */
- public async submitProfilingQuestionsProductIdProfilingQuestionsPost(body: BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost, bpuid: any, productId: any, sessionId?: any, async?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StatusResponse>> {
- return ProfilingQuestionsApiFp(this.configuration).submitProfilingQuestionsProductIdProfilingQuestionsPost(body, bpuid, productId, sessionId, async, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary User Profile
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {any} countryIso Respondent&#x27;s country code (ISO 3166-1 alpha-2, lowercase)
- * @param {any} [languageIso] Respondent&#x27;s desired language (ISO 639-2/B, lowercase)
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ProfilingQuestionsApi
- */
- public async userProfileProductIdUserProfileGet(productId: any, bpuid: any, countryIso: any, languageIso?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<UserInfoResponse>> {
- return ProfilingQuestionsApiFp(this.configuration).userProfileProductIdUserProfileGet(productId, bpuid, countryIso, languageIso, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/apis/report-api.ts b/src/api/apis/report-api.ts
deleted file mode 100644
index d3f74b8..0000000
--- a/src/api/apis/report-api.ts
+++ /dev/null
@@ -1,144 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { HTTPValidationError } from '../models';
-import { ReportTask } from '../models';
-import { StatusResponse } from '../models';
-/**
- * ReportApi - axios parameter creator
- * @export
- */
-export const ReportApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- * Send a \"Task Report\" for a respondent's latest started survey, regardless of the survey's outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent's task attempt. If a latest attempt can't be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it's important that the respondent submits a Task Report as soon as possible and applications doesn't offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { 'bpuid': '1234', 'reasons': [2], 'notes': \"This survey was the worst!\" } Returns {'status': 'success', 'msg': error_msg}
- * @summary Report Task
- * @param {ReportTask} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- reportTaskProductIdReportPost: async (body: ReportTask, productId: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'body' is not null or undefined
- if (body === null || body === undefined) {
- throw new RequiredError('body','Required parameter body was null or undefined when calling reportTaskProductIdReportPost.');
- }
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling reportTaskProductIdReportPost.');
- }
- const localVarPath = `/{product_id}/report/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * ReportApi - functional programming interface
- * @export
- */
-export const ReportApiFp = function(configuration?: Configuration) {
- return {
- /**
- * Send a \"Task Report\" for a respondent's latest started survey, regardless of the survey's outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent's task attempt. If a latest attempt can't be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it's important that the respondent submits a Task Report as soon as possible and applications doesn't offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { 'bpuid': '1234', 'reasons': [2], 'notes': \"This survey was the worst!\" } Returns {'status': 'success', 'msg': error_msg}
- * @summary Report Task
- * @param {ReportTask} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async reportTaskProductIdReportPost(body: ReportTask, productId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StatusResponse>>> {
- const localVarAxiosArgs = await ReportApiAxiosParamCreator(configuration).reportTaskProductIdReportPost(body, productId, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * ReportApi - factory interface
- * @export
- */
-export const ReportApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- * Send a \"Task Report\" for a respondent's latest started survey, regardless of the survey's outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent's task attempt. If a latest attempt can't be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it's important that the respondent submits a Task Report as soon as possible and applications doesn't offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { 'bpuid': '1234', 'reasons': [2], 'notes': \"This survey was the worst!\" } Returns {'status': 'success', 'msg': error_msg}
- * @summary Report Task
- * @param {ReportTask} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async reportTaskProductIdReportPost(body: ReportTask, productId: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StatusResponse>> {
- return ReportApiFp(configuration).reportTaskProductIdReportPost(body, productId, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * ReportApi - object-oriented interface
- * @export
- * @class ReportApi
- * @extends {BaseAPI}
- */
-export class ReportApi extends BaseAPI {
- /**
- * Send a \"Task Report\" for a respondent's latest started survey, regardless of the survey's outcome. Task Reports cannot be provided for task attempts by tsid, or through any other method, they must be given immediately after the respondent's task attempt. If a latest attempt can't be found, a ReportTaskResponse is still returned. If multiple reasons want to be provided, they should be done at the same time. If multiple reports are given for the same latest started task, the note attribute will be overwritten, while the new unique reasons will be appended to the task attempt. Task Report system contributions by client applications are immediately leveraged to aid yield management strategies. For those reasons, it's important that the respondent submits a Task Report as soon as possible and applications doesn't offload this request for a later time. Task Report timestamps are a critical component of understanding a Task experience for a respondent. For the BP to tell us about a bad survey they want to report The POSTed data looks like: { 'bpuid': '1234', 'reasons': [2], 'notes': \"This survey was the worst!\" } Returns {'status': 'success', 'msg': error_msg}
- * @summary Report Task
- * @param {ReportTask} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ReportApi
- */
- public async reportTaskProductIdReportPost(body: ReportTask, productId: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StatusResponse>> {
- return ReportApiFp(this.configuration).reportTaskProductIdReportPost(body, productId, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/apis/status-api.ts b/src/api/apis/status-api.ts
deleted file mode 100644
index 2a97ffe..0000000
--- a/src/api/apis/status-api.ts
+++ /dev/null
@@ -1,274 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { HTTPValidationError } from '../models';
-import { StatusInfoResponseFail } from '../models';
-import { StatusResponseFailure } from '../models';
-import { TaskStatusResponseOut } from '../models';
-import { TasksStatusResponseOut } from '../models';
-/**
- * StatusApi - axios parameter creator
- * @export
- */
-export const StatusApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
- * @summary Get Task Status
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} tsid A unique identifier for the session
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getTaskStatusProductIdStatusTsidGet: async (productId: any, tsid: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getTaskStatusProductIdStatusTsidGet.');
- }
- // verify required parameter 'tsid' is not null or undefined
- if (tsid === null || tsid === undefined) {
- throw new RequiredError('tsid','Required parameter tsid was null or undefined when calling getTaskStatusProductIdStatusTsidGet.');
- }
- const localVarPath = `/{product_id}/status/{tsid}/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"tsid"}}`, encodeURIComponent(String(tsid)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary List Task Statuses
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
- * @param {any} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
- * @param {any} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
- * @param {any} [status] Filter for sessions with this status. See Task Status for description of status.
- * @param {any} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
- * @param {any} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
- * @param {any} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listTaskStatusesProductIdStatusGet: async (productId: any, bpuid?: any, startedAfter?: any, startedBefore?: any, status?: any, reconciled?: any, adjustedAfter?: any, adjustedBefore?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling listTaskStatusesProductIdStatusGet.');
- }
- const localVarPath = `/{product_id}/status/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- if (startedAfter !== undefined) {
- localVarQueryParameter['started_after'] = startedAfter;
- }
-
- if (startedBefore !== undefined) {
- localVarQueryParameter['started_before'] = startedBefore;
- }
-
- if (status !== undefined) {
- localVarQueryParameter['status'] = status;
- }
-
- if (reconciled !== undefined) {
- localVarQueryParameter['reconciled'] = reconciled;
- }
-
- if (adjustedAfter !== undefined) {
- localVarQueryParameter['adjusted_after'] = adjustedAfter;
- }
-
- if (adjustedBefore !== undefined) {
- localVarQueryParameter['adjusted_before'] = adjustedBefore;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * StatusApi - functional programming interface
- * @export
- */
-export const StatusApiFp = function(configuration?: Configuration) {
- return {
- /**
- * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
- * @summary Get Task Status
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} tsid A unique identifier for the session
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getTaskStatusProductIdStatusTsidGet(productId: any, tsid: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TaskStatusResponseOut>>> {
- const localVarAxiosArgs = await StatusApiAxiosParamCreator(configuration).getTaskStatusProductIdStatusTsidGet(productId, tsid, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary List Task Statuses
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
- * @param {any} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
- * @param {any} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
- * @param {any} [status] Filter for sessions with this status. See Task Status for description of status.
- * @param {any} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
- * @param {any} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
- * @param {any} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listTaskStatusesProductIdStatusGet(productId: any, bpuid?: any, startedAfter?: any, startedBefore?: any, status?: any, reconciled?: any, adjustedAfter?: any, adjustedBefore?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TasksStatusResponseOut>>> {
- const localVarAxiosArgs = await StatusApiAxiosParamCreator(configuration).listTaskStatusesProductIdStatusGet(productId, bpuid, startedAfter, startedBefore, status, reconciled, adjustedAfter, adjustedBefore, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * StatusApi - factory interface
- * @export
- */
-export const StatusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
- * @summary Get Task Status
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} tsid A unique identifier for the session
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getTaskStatusProductIdStatusTsidGet(productId: any, tsid: any, options?: AxiosRequestConfig): Promise<AxiosResponse<TaskStatusResponseOut>> {
- return StatusApiFp(configuration).getTaskStatusProductIdStatusTsidGet(productId, tsid, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary List Task Statuses
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
- * @param {any} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
- * @param {any} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
- * @param {any} [status] Filter for sessions with this status. See Task Status for description of status.
- * @param {any} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
- * @param {any} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
- * @param {any} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listTaskStatusesProductIdStatusGet(productId: any, bpuid?: any, startedAfter?: any, startedBefore?: any, status?: any, reconciled?: any, adjustedAfter?: any, adjustedBefore?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<TasksStatusResponseOut>> {
- return StatusApiFp(configuration).listTaskStatusesProductIdStatusGet(productId, bpuid, startedAfter, startedBefore, status, reconciled, adjustedAfter, adjustedBefore, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * StatusApi - object-oriented interface
- * @export
- * @class StatusApi
- * @extends {BaseAPI}
- */
-export class StatusApi extends BaseAPI {
- /**
- * Retrieve the status of a session by a specific Task Status ID (`tsid`) that is provided in the redirect. Given a `tsid`, get back the status of the wall event. This endpoint conflates the idea of a wall event and a session, but for these purposes, the status and payout of the last wall event in a session equals the status and payout for the session.
- * @summary Get Task Status
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} tsid A unique identifier for the session
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof StatusApi
- */
- public async getTaskStatusProductIdStatusTsidGet(productId: any, tsid: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<TaskStatusResponseOut>> {
- return StatusApiFp(this.configuration).getTaskStatusProductIdStatusTsidGet(productId, tsid, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary List Task Statuses
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} [bpuid] A unique identifier for each user, which is set by the Supplier. Filters the returned task status to only include those done by this user.
- * @param {any} [startedAfter] (unix timestamp) Retrieve sessions which were started after this timestamp. If &#x60;NULL&#x60;, default is 10 days ago.
- * @param {any} [startedBefore] (unix timestamp) Retrieve sessions which were started before this timestamp. If &#x60;NULL&#x60;, default is now.
- * @param {any} [status] Filter for sessions with this status. See Task Status for description of status.
- * @param {any} [reconciled] Only retrieve sessions that have been adjusted. If &#x60;reconciled&#x60; is True, &#x60;adjusted_after&#x60; is required.
- * @param {any} [adjustedAfter] (unix timestamp) Retrieve sessions which were adjusted after this timestamp.
- * @param {any} [adjustedBefore] (unix timestamp) Retrieve sessions which were adjusted before this timestamp. Default is now.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof StatusApi
- */
- public async listTaskStatusesProductIdStatusGet(productId: any, bpuid?: any, startedAfter?: any, startedBefore?: any, status?: any, reconciled?: any, adjustedAfter?: any, adjustedBefore?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<TasksStatusResponseOut>> {
- return StatusApiFp(this.configuration).listTaskStatusesProductIdStatusGet(productId, bpuid, startedAfter, startedBefore, status, reconciled, adjustedAfter, adjustedBefore, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/apis/wallet-api.ts b/src/api/apis/wallet-api.ts
deleted file mode 100644
index 37a8cee..0000000
--- a/src/api/apis/wallet-api.ts
+++ /dev/null
@@ -1,774 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '../configuration';
-// Some imports not used depending on template conditions
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
-import { CashoutMethodForeignValueResponse } from '../models';
-import { CashoutMethodResponse } from '../models';
-import { CashoutMethodsResponse } from '../models';
-import { CashoutRequestResponse } from '../models';
-import { CreateCashoutRequest } from '../models';
-import { HTTPValidationError } from '../models';
-import { StatusResponse } from '../models';
-import { UserTransactionHistoryResponse } from '../models';
-import { UserWalletBalanceResponse } from '../models';
-/**
- * WalletApi - axios parameter creator
- * @export
- */
-export const WalletApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can't create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
- * @summary Create Cashout Method
- * @param {any} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createCashoutMethodProductIdCashoutMethodsPost: async (body: any, productId: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'body' is not null or undefined
- if (body === null || body === undefined) {
- throw new RequiredError('body','Required parameter body was null or undefined when calling createCashoutMethodProductIdCashoutMethodsPost.');
- }
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling createCashoutMethodProductIdCashoutMethodsPost.');
- }
- const localVarPath = `/{product_id}/cashout_methods/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Delete a cashout method
- * @summary Delete Cashout Method
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method to delete
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete: async (productId: any, cashoutMethodId: any, bpuid: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete.');
- }
- // verify required parameter 'cashoutMethodId' is not null or undefined
- if (cashoutMethodId === null || cashoutMethodId === undefined) {
- throw new RequiredError('cashoutMethodId','Required parameter cashoutMethodId was null or undefined when calling deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete.');
- }
- const localVarPath = `/{product_id}/cashout_methods/{cashout_method_id}/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"cashout_method_id"}}`, encodeURIComponent(String(cashoutMethodId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Retrieve the details for a specific Cashout event
- * @summary Get Cashout Detail
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutId The cashout event ID
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getCashoutDetailProductIdCashoutCashoutIdGet: async (productId: any, cashoutId: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getCashoutDetailProductIdCashoutCashoutIdGet.');
- }
- // verify required parameter 'cashoutId' is not null or undefined
- if (cashoutId === null || cashoutId === undefined) {
- throw new RequiredError('cashoutId','Required parameter cashoutId was null or undefined when calling getCashoutDetailProductIdCashoutCashoutIdGet.');
- }
- const localVarPath = `/{product_id}/cashout/{cashout_id}/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"cashout_id"}}`, encodeURIComponent(String(cashoutId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Retrieve the current available mechanisms that a user can use to retrieve funds.
- * @summary Get Cashout Methods
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getCashoutMethodsProductIdCashoutMethodsGet: async (productId: any, bpuid: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getCashoutMethodsProductIdCashoutMethodsGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling getCashoutMethodsProductIdCashoutMethodsGet.');
- }
- const localVarPath = `/{product_id}/cashout_methods/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
- * @summary Get Expected Redemption Value
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method
- * @param {any} amount (USD cents) The amount to convert
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet: async (productId: any, cashoutMethodId: any, amount: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet.');
- }
- // verify required parameter 'cashoutMethodId' is not null or undefined
- if (cashoutMethodId === null || cashoutMethodId === undefined) {
- throw new RequiredError('cashoutMethodId','Required parameter cashoutMethodId was null or undefined when calling getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet.');
- }
- // verify required parameter 'amount' is not null or undefined
- if (amount === null || amount === undefined) {
- throw new RequiredError('amount','Required parameter amount was null or undefined when calling getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet.');
- }
- const localVarPath = `/{product_id}/cashout_method/{cashout_method_id}/value/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
- .replace(`{${"cashout_method_id"}}`, encodeURIComponent(String(cashoutMethodId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (amount !== undefined) {
- localVarQueryParameter['amount'] = amount;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Return array of user events that altered their wallet balance
- * @summary Get User Transaction History
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getUserTransactionHistoryProductIdTransactionHistoryGet: async (productId: any, bpuid: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getUserTransactionHistoryProductIdTransactionHistoryGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling getUserTransactionHistoryProductIdTransactionHistoryGet.');
- }
- const localVarPath = `/{product_id}/transaction_history/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Retrieve the current balance of a respondent's wallet balance for display
- * @summary Get User Wallet Balance
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- getUserWalletBalanceProductIdWalletGet: async (productId: any, bpuid: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling getUserWalletBalanceProductIdWalletGet.');
- }
- // verify required parameter 'bpuid' is not null or undefined
- if (bpuid === null || bpuid === undefined) {
- throw new RequiredError('bpuid','Required parameter bpuid was null or undefined when calling getUserWalletBalanceProductIdWalletGet.');
- }
- const localVarPath = `/{product_id}/wallet/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (bpuid !== undefined) {
- localVarQueryParameter['bpuid'] = bpuid;
- }
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- * Request a cashout taken from a user's available wallet balance, to be paid via a particular cashout method.
- * @summary Submit User Cashout
- * @param {CreateCashoutRequest} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- submitUserCashoutProductIdCashoutPost: async (body: CreateCashoutRequest, productId: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'body' is not null or undefined
- if (body === null || body === undefined) {
- throw new RequiredError('body','Required parameter body was null or undefined when calling submitUserCashoutProductIdCashoutPost.');
- }
- // verify required parameter 'productId' is not null or undefined
- if (productId === null || productId === undefined) {
- throw new RequiredError('productId','Required parameter productId was null or undefined when calling submitUserCashoutProductIdCashoutPost.');
- }
- const localVarPath = `/{product_id}/cashout/`
- .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
-
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
-};
-
-/**
- * WalletApi - functional programming interface
- * @export
- */
-export const WalletApiFp = function(configuration?: Configuration) {
- return {
- /**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can't create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
- * @summary Create Cashout Method
- * @param {any} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createCashoutMethodProductIdCashoutMethodsPost(body: any, productId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<CashoutMethodResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).createCashoutMethodProductIdCashoutMethodsPost(body, productId, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Delete a cashout method
- * @summary Delete Cashout Method
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method to delete
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId: any, cashoutMethodId: any, bpuid: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StatusResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Retrieve the details for a specific Cashout event
- * @summary Get Cashout Detail
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutId The cashout event ID
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getCashoutDetailProductIdCashoutCashoutIdGet(productId: any, cashoutId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<CashoutRequestResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Retrieve the current available mechanisms that a user can use to retrieve funds.
- * @summary Get Cashout Methods
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getCashoutMethodsProductIdCashoutMethodsGet(productId: any, bpuid: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<CashoutMethodsResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
- * @summary Get Expected Redemption Value
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method
- * @param {any} amount (USD cents) The amount to convert
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId: any, cashoutMethodId: any, amount: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<CashoutMethodForeignValueResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId, cashoutMethodId, amount, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Return array of user events that altered their wallet balance
- * @summary Get User Transaction History
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getUserTransactionHistoryProductIdTransactionHistoryGet(productId: any, bpuid: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<UserTransactionHistoryResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).getUserTransactionHistoryProductIdTransactionHistoryGet(productId, bpuid, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Retrieve the current balance of a respondent's wallet balance for display
- * @summary Get User Wallet Balance
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getUserWalletBalanceProductIdWalletGet(productId: any, bpuid: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<UserWalletBalanceResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).getUserWalletBalanceProductIdWalletGet(productId, bpuid, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- * Request a cashout taken from a user's available wallet balance, to be paid via a particular cashout method.
- * @summary Submit User Cashout
- * @param {CreateCashoutRequest} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async submitUserCashoutProductIdCashoutPost(body: CreateCashoutRequest, productId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<CashoutRequestResponse>>> {
- const localVarAxiosArgs = await WalletApiAxiosParamCreator(configuration).submitUserCashoutProductIdCashoutPost(body, productId, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
-};
-
-/**
- * WalletApi - factory interface
- * @export
- */
-export const WalletApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can't create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
- * @summary Create Cashout Method
- * @param {any} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createCashoutMethodProductIdCashoutMethodsPost(body: any, productId: any, options?: AxiosRequestConfig): Promise<AxiosResponse<CashoutMethodResponse>> {
- return WalletApiFp(configuration).createCashoutMethodProductIdCashoutMethodsPost(body, productId, options).then((request) => request(axios, basePath));
- },
- /**
- * Delete a cashout method
- * @summary Delete Cashout Method
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method to delete
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId: any, cashoutMethodId: any, bpuid: any, options?: AxiosRequestConfig): Promise<AxiosResponse<StatusResponse>> {
- return WalletApiFp(configuration).deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options).then((request) => request(axios, basePath));
- },
- /**
- * Retrieve the details for a specific Cashout event
- * @summary Get Cashout Detail
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutId The cashout event ID
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getCashoutDetailProductIdCashoutCashoutIdGet(productId: any, cashoutId: any, options?: AxiosRequestConfig): Promise<AxiosResponse<CashoutRequestResponse>> {
- return WalletApiFp(configuration).getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options).then((request) => request(axios, basePath));
- },
- /**
- * Retrieve the current available mechanisms that a user can use to retrieve funds.
- * @summary Get Cashout Methods
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getCashoutMethodsProductIdCashoutMethodsGet(productId: any, bpuid: any, options?: AxiosRequestConfig): Promise<AxiosResponse<CashoutMethodsResponse>> {
- return WalletApiFp(configuration).getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options).then((request) => request(axios, basePath));
- },
- /**
- * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
- * @summary Get Expected Redemption Value
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method
- * @param {any} amount (USD cents) The amount to convert
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId: any, cashoutMethodId: any, amount: any, options?: AxiosRequestConfig): Promise<AxiosResponse<CashoutMethodForeignValueResponse>> {
- return WalletApiFp(configuration).getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId, cashoutMethodId, amount, options).then((request) => request(axios, basePath));
- },
- /**
- * Return array of user events that altered their wallet balance
- * @summary Get User Transaction History
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getUserTransactionHistoryProductIdTransactionHistoryGet(productId: any, bpuid: any, options?: AxiosRequestConfig): Promise<AxiosResponse<UserTransactionHistoryResponse>> {
- return WalletApiFp(configuration).getUserTransactionHistoryProductIdTransactionHistoryGet(productId, bpuid, options).then((request) => request(axios, basePath));
- },
- /**
- * Retrieve the current balance of a respondent's wallet balance for display
- * @summary Get User Wallet Balance
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async getUserWalletBalanceProductIdWalletGet(productId: any, bpuid: any, options?: AxiosRequestConfig): Promise<AxiosResponse<UserWalletBalanceResponse>> {
- return WalletApiFp(configuration).getUserWalletBalanceProductIdWalletGet(productId, bpuid, options).then((request) => request(axios, basePath));
- },
- /**
- * Request a cashout taken from a user's available wallet balance, to be paid via a particular cashout method.
- * @summary Submit User Cashout
- * @param {CreateCashoutRequest} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async submitUserCashoutProductIdCashoutPost(body: CreateCashoutRequest, productId: any, options?: AxiosRequestConfig): Promise<AxiosResponse<CashoutRequestResponse>> {
- return WalletApiFp(configuration).submitUserCashoutProductIdCashoutPost(body, productId, options).then((request) => request(axios, basePath));
- },
- };
-};
-
-/**
- * WalletApi - object-oriented interface
- * @export
- * @class WalletApi
- * @extends {BaseAPI}
- */
-export class WalletApi extends BaseAPI {
- /**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can't create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
- * @summary Create Cashout Method
- * @param {any} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async createCashoutMethodProductIdCashoutMethodsPost(body: any, productId: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<CashoutMethodResponse>> {
- return WalletApiFp(this.configuration).createCashoutMethodProductIdCashoutMethodsPost(body, productId, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Delete a cashout method
- * @summary Delete Cashout Method
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method to delete
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId: any, cashoutMethodId: any, bpuid: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<StatusResponse>> {
- return WalletApiFp(this.configuration).deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Retrieve the details for a specific Cashout event
- * @summary Get Cashout Detail
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutId The cashout event ID
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async getCashoutDetailProductIdCashoutCashoutIdGet(productId: any, cashoutId: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<CashoutRequestResponse>> {
- return WalletApiFp(this.configuration).getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Retrieve the current available mechanisms that a user can use to retrieve funds.
- * @summary Get Cashout Methods
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async getCashoutMethodsProductIdCashoutMethodsGet(productId: any, bpuid: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<CashoutMethodsResponse>> {
- return WalletApiFp(this.configuration).getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
- * @summary Get Expected Redemption Value
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} cashoutMethodId The ID of the cashout method
- * @param {any} amount (USD cents) The amount to convert
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId: any, cashoutMethodId: any, amount: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<CashoutMethodForeignValueResponse>> {
- return WalletApiFp(this.configuration).getExpectedRedemptionValueProductIdCashoutMethodCashoutMethodIdValueGet(productId, cashoutMethodId, amount, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Return array of user events that altered their wallet balance
- * @summary Get User Transaction History
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async getUserTransactionHistoryProductIdTransactionHistoryGet(productId: any, bpuid: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<UserTransactionHistoryResponse>> {
- return WalletApiFp(this.configuration).getUserTransactionHistoryProductIdTransactionHistoryGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Retrieve the current balance of a respondent's wallet balance for display
- * @summary Get User Wallet Balance
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {any} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async getUserWalletBalanceProductIdWalletGet(productId: any, bpuid: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<UserWalletBalanceResponse>> {
- return WalletApiFp(this.configuration).getUserWalletBalanceProductIdWalletGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- * Request a cashout taken from a user's available wallet balance, to be paid via a particular cashout method.
- * @summary Submit User Cashout
- * @param {CreateCashoutRequest} body
- * @param {any} productId The Brokerage Product ID provided by GRL.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof WalletApi
- */
- public async submitUserCashoutProductIdCashoutPost(body: CreateCashoutRequest, productId: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<CashoutRequestResponse>> {
- return WalletApiFp(this.configuration).submitUserCashoutProductIdCashoutPost(body, productId, options).then((request) => request(this.axios, this.basePath));
- }
-}
diff --git a/src/api/base.ts b/src/api/base.ts
index b7b4ed1..eb3b8de 100644
--- a/src/api/base.ts
+++ b/src/api/base.ts
@@ -2,22 +2,24 @@
/* eslint-disable */
/**
* General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * OpenAPI spec version: 1.1.0
+ * The version of the OpenAPI document: 1.1.0
*
*
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
* Do not edit the class manually.
*/
-import { Configuration } from "./configuration";
+
+import type { Configuration } from './configuration';
// Some imports not used depending on template conditions
// @ts-ignore
-import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios';
+import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
+import globalAxios from 'axios';
-export const BASE_PATH = "https://fsb.generalresearch.com/".replace(/\/+$/, "");
+export const BASE_PATH = "https://fsb.generalresearch.com".replace(/\/+$/, "");
/**
*
@@ -37,7 +39,7 @@ export const COLLECTION_FORMATS = {
*/
export interface RequestArgs {
url: string;
- options: AxiosRequestConfig;
+ options: RawAxiosRequestConfig;
}
/**
@@ -51,7 +53,7 @@ export class BaseAPI {
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
- this.basePath = configuration.basePath || this.basePath;
+ this.basePath = configuration.basePath ?? basePath;
}
}
};
@@ -63,8 +65,22 @@ export class BaseAPI {
* @extends {Error}
*/
export class RequiredError extends Error {
- name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
+ this.name = "RequiredError"
}
}
+
+interface ServerMap {
+ [key: string]: {
+ url: string,
+ description: string,
+ }[];
+}
+
+/**
+ *
+ * @export
+ */
+export const operationServerMap: ServerMap = {
+}
diff --git a/src/api/configuration.ts b/src/api/configuration.ts
index 6d621b1..d85e8c0 100644
--- a/src/api/configuration.ts
+++ b/src/api/configuration.ts
@@ -2,35 +2,35 @@
/* eslint-disable */
/**
* General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * OpenAPI spec version: 1.1.0
+ * The version of the OpenAPI document: 1.1.0
*
*
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
* Do not edit the class manually.
*/
+
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
+ serverIndex?: number;
baseOptions?: any;
+ formDataCtor?: new () => any;
}
export class Configuration {
-
/**
* parameter for apiKey security
- *
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
-
/**
* parameter for basic security
*
@@ -38,7 +38,6 @@ export class Configuration {
* @memberof Configuration
*/
username?: string;
-
/**
* parameter for basic security
*
@@ -46,16 +45,13 @@ export class Configuration {
* @memberof Configuration
*/
password?: string;
-
/**
* parameter for oauth2 security
- *
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
-
/**
* override base path
*
@@ -63,7 +59,13 @@ export class Configuration {
* @memberof Configuration
*/
basePath?: string;
-
+ /**
+ * override server index
+ *
+ * @type {number}
+ * @memberof Configuration
+ */
+ serverIndex?: number;
/**
* base options for axios calls
*
@@ -71,6 +73,14 @@ export class Configuration {
* @memberof Configuration
*/
baseOptions?: any;
+ /**
+ * The FormData constructor that will be used to create multipart form data
+ * requests. You can inject this here so that execution environments that
+ * do not support the FormData class can still run the generated client.
+ *
+ * @type {new () => FormData}
+ */
+ formDataCtor?: new () => any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
@@ -78,6 +88,28 @@ export class Configuration {
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
- this.baseOptions = param.baseOptions;
+ this.serverIndex = param.serverIndex;
+ this.baseOptions = {
+ ...param.baseOptions,
+ headers: {
+ ...param.baseOptions?.headers,
+ },
+ };
+ this.formDataCtor = param.formDataCtor;
+ }
+
+ /**
+ * Check if the given MIME is a JSON MIME.
+ * JSON MIME examples:
+ * application/json
+ * application/json; charset=UTF8
+ * APPLICATION/JSON
+ * application/vnd.company+json
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
+ * @return True if the given MIME is JSON, false otherwise.
+ */
+ public isJsonMime(mime: string): boolean {
+ const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
}
}
diff --git a/src/api/git_push.sh b/src/api/git_push.sh
index 68a0a83..f53a75d 100644
--- a/src/api/git_push.sh
+++ b/src/api/git_push.sh
@@ -1,11 +1,17 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
-# Usage example: /bin/sh ./git_push.sh hugomario swagger-petstore-perl "minor update"
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
release_note=$3
+git_host=$4
+
+if [ "$git_host" = "" ]; then
+ git_host="github.com"
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
+fi
if [ "$git_user_id" = "" ]; then
git_user_id="GIT_USER_ID"
@@ -32,14 +38,14 @@ git add .
git commit -m "$release_note"
# Sets the new remote
-git_remote=`git remote`
+git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
@@ -47,6 +53,5 @@ fi
git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
-echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
+echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'
-
diff --git a/src/api/index.ts b/src/api/index.ts
index c46056b..4f29db5 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -2,17 +2,17 @@
/* eslint-disable */
/**
* General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * OpenAPI spec version: 1.1.0
+ * The version of the OpenAPI document: 1.1.0
*
*
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
* Do not edit the class manually.
*/
+
export * from "./api";
export * from "./configuration";
-export * from "./models";
diff --git a/src/api/models/amt-cashout-method-data.ts b/src/api/models/amt-cashout-method-data.ts
deleted file mode 100644
index f0f39b9..0000000
--- a/src/api/models/amt-cashout-method-data.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface AmtCashoutMethodData
- */
-export interface AmtCashoutMethodData {
-
- /**
- * @type {any}
- * @memberof AmtCashoutMethodData
- */
- type?: any;
-}
diff --git a/src/api/models/body-offerwall-softpair-post-product-id-offerwall37d1da64-offerwall-id-post.ts b/src/api/models/body-offerwall-softpair-post-product-id-offerwall37d1da64-offerwall-id-post.ts
deleted file mode 100644
index 0893119..0000000
--- a/src/api/models/body-offerwall-softpair-post-product-id-offerwall37d1da64-offerwall-id-post.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
- */
-export interface BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost {
-
- /**
- * @type {any}
- * @memberof BodyOfferwallSoftpairPostProductIdOfferwall37d1da64OfferwallIdPost
- */
- answers: any;
-}
diff --git a/src/api/models/body-submit-profiling-questions-product-id-profiling-questions-post.ts b/src/api/models/body-submit-profiling-questions-product-id-profiling-questions-post.ts
deleted file mode 100644
index dc83e7d..0000000
--- a/src/api/models/body-submit-profiling-questions-product-id-profiling-questions-post.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
- */
-export interface BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost {
-
- /**
- * @type {any}
- * @memberof BodySubmitProfilingQuestionsProductIdProfilingQuestionsPost
- */
- answers: any;
-}
diff --git a/src/api/models/bucket-task.ts b/src/api/models/bucket-task.ts
deleted file mode 100644
index 280d844..0000000
--- a/src/api/models/bucket-task.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * This represents one of the \"tasks\" within a bucket's ordered list of tasks.
- *
- * @export
- * @interface BucketTask
- */
-export interface BucketTask {
-
- /**
- * The internal task id for this task within the marketplace
- *
- * @type {any}
- * @memberof BucketTask
- */
- id: any;
-
- /**
- * The namespaced task id for this task within the marketplace
- *
- * @type {any}
- * @memberof BucketTask
- */
- idCode: any;
-
- /**
- * @type {any}
- * @memberof BucketTask
- */
- source: any;
-
- /**
- * expected loi in seconds
- *
- * @type {any}
- * @memberof BucketTask
- */
- loi: any;
-
- /**
- * integer cents
- *
- * @type {any}
- * @memberof BucketTask
- */
- payout: any;
-}
diff --git a/src/api/models/cardinality.ts b/src/api/models/cardinality.ts
deleted file mode 100644
index 1e77879..0000000
--- a/src/api/models/cardinality.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum Cardinality {
- Star = '*',
- QuestionMark = '?'
-}
-
diff --git a/src/api/models/cash-mail-cashout-method-data.ts b/src/api/models/cash-mail-cashout-method-data.ts
deleted file mode 100644
index f0f9248..0000000
--- a/src/api/models/cash-mail-cashout-method-data.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CashMailCashoutMethodData
- */
-export interface CashMailCashoutMethodData {
-
- /**
- * @type {any}
- * @memberof CashMailCashoutMethodData
- */
- type?: any;
-
- /**
- * Delivery address where payment should be sent
- *
- * @type {any}
- * @memberof CashMailCashoutMethodData
- */
- deliveryAddress: any;
-}
diff --git a/src/api/models/cashout-method-foreign-value-response.ts b/src/api/models/cashout-method-foreign-value-response.ts
deleted file mode 100644
index 08f7e3d..0000000
--- a/src/api/models/cashout-method-foreign-value-response.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { CashoutMethodForeignValue } from './cashout-method-foreign-value';
- /**
- *
- *
- * @export
- * @interface CashoutMethodForeignValueResponse
- */
-export interface CashoutMethodForeignValueResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof CashoutMethodForeignValueResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof CashoutMethodForeignValueResponse
- */
- msg?: any;
-
- /**
- * @type {CashoutMethodForeignValue}
- * @memberof CashoutMethodForeignValueResponse
- */
- cashoutMethodValue: CashoutMethodForeignValue;
-}
diff --git a/src/api/models/cashout-method-foreign-value.ts b/src/api/models/cashout-method-foreign-value.ts
deleted file mode 100644
index 565304e..0000000
--- a/src/api/models/cashout-method-foreign-value.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Shows the expected value of a redemption in a foreign currency.
- *
- * @export
- * @interface CashoutMethodForeignValue
- */
-export interface CashoutMethodForeignValue {
-
- /**
- * Value of the redemption in the currency's smallest unit.
- *
- * @type {any}
- * @memberof CashoutMethodForeignValue
- */
- value: any;
-
- /**
- * Supported Currencies for Foreign Redemptions Allowed values: - __USD__ *(USD)*: US Dollars. Smallest Unit: Cents. - __CAD__ *(CAD)*: Canadian Dollars. Smallest Unit: Cents. - __GBP__ *(GBP)*: British Pounds. Smallest Unit: Pence. - __EUR__ *(EUR)*: Euros. Smallest Unit: Cents. - __INR__ *(INR)*: Indian Rupees. Smallest Unit: Paise. - __AUD__ *(AUD)*: Australian Dollars. Smallest Unit: Cents. - __PLN__ *(PLN)*: Polish Zloty. Smallest Unit: Grosz. - __SEK__ *(SEK)*: Swedish Krona. Smallest Unit: Öre. - __SGD__ *(SGD)*: Singapore Dollars. Smallest Unit: Cents. - __MXN__ *(MXN)*: Mexican Pesos. Smallest Unit: Centavos.
- *
- * @type {any}
- * @memberof CashoutMethodForeignValue
- */
- currency: any;
-
- /**
- * A string representation of the value in the currency.
- *
- * @type {any}
- * @memberof CashoutMethodForeignValue
- */
- valueString: any;
-}
diff --git a/src/api/models/cashout-method-out.ts b/src/api/models/cashout-method-out.ts
deleted file mode 100644
index 762a4a6..0000000
--- a/src/api/models/cashout-method-out.ts
+++ /dev/null
@@ -1,122 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CashoutMethodOut
- */
-export interface CashoutMethodOut {
-
- /**
- * Unique ID for this cashout method
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- id: any;
-
- /**
- * The currency of the cashout. Only USD is supported.
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- currency?: any;
-
- /**
- * The base currency of the money paid out. This is used for e.g. sending an Amazon UK gift card
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- originalCurrency?: any;
-
- /**
- * @type {any}
- * @memberof CashoutMethodOut
- */
- data: any;
-
- /**
- * The description of the cashout method.
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- description: any;
-
- /**
- * Link to an image to display
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- imageUrl?: any;
-
- /**
- * (USD cents) The maximum amount that can be cashed out in one transaction.
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- maxValue: any;
-
- /**
- * (USD cents) The minimum amount that can be cashed out in one transaction.
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- minValue: any;
-
- /**
- * A descriptive name for the cashout method.
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- name: any;
-
- /**
- * The method in which the requested payout is delivered. Allowed values: - __PAYPAL__ *(PAYPAL)*: User is paid out to their personal PayPal email address - __TANGO__ *(TANGO)*: User is paid uut via a Tango Gift Card - __dwolla__ *(DWOLLA)*: DWOLLA - __ACH__ *(ACH)*: A payment is made to a bank account using ACH - __CASH_IN_MAIL__ *(CASH_IN_MAIL)*: A payment is made in cash and mailed to the user. - __PRIZE__ *(PRIZE)*: A payment is made as a prize with some monetary value - __AMT__ *(AMT)*: This is used to designate either AMT_BONUS or AMT_HIT - __amt_bonus__ *(AMT_BONUS)*: Amazon Mechanical Turk as a Bonus - __amt_assignment__ *(AMT_HIT)*: Amazon Mechanical Turk for a HIT
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- type: any;
-
- /**
- * An external ID. Can be shown to a user to disambiguate a user'spossibly multiple methods
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- extId?: any;
-
- /**
- * @type {any}
- * @memberof CashoutMethodOut
- */
- productId?: any;
-
- /**
- * A unique identifier for each user, which is set by the Supplier. It should not contain any sensitive informationlike email or names, and should avoid using anyincrementing values.
- *
- * @type {any}
- * @memberof CashoutMethodOut
- */
- productUserId?: any;
-}
diff --git a/src/api/models/cashout-method-response.ts b/src/api/models/cashout-method-response.ts
deleted file mode 100644
index 70b6c68..0000000
--- a/src/api/models/cashout-method-response.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { CashoutMethodOut } from './cashout-method-out';
- /**
- *
- *
- * @export
- * @interface CashoutMethodResponse
- */
-export interface CashoutMethodResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof CashoutMethodResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof CashoutMethodResponse
- */
- msg?: any;
-
- /**
- * @type {CashoutMethodOut}
- * @memberof CashoutMethodResponse
- */
- cashoutMethod: CashoutMethodOut;
-}
diff --git a/src/api/models/cashout-methods-response.ts b/src/api/models/cashout-methods-response.ts
deleted file mode 100644
index 3b5b21a..0000000
--- a/src/api/models/cashout-methods-response.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CashoutMethodsResponse
- */
-export interface CashoutMethodsResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof CashoutMethodsResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof CashoutMethodsResponse
- */
- msg?: any;
-
- /**
- * @type {any}
- * @memberof CashoutMethodsResponse
- */
- cashoutMethods: any;
-}
diff --git a/src/api/models/cashout-request-info.ts b/src/api/models/cashout-request-info.ts
deleted file mode 100644
index 3186ec0..0000000
--- a/src/api/models/cashout-request-info.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * See models.thl.payout: PayoutEvent. We've confused a Cashout and a Payout. This is used only in the API response.
- *
- * @export
- * @interface CashoutRequestInfo
- */
-export interface CashoutRequestInfo {
-
- /**
- * Unique ID for this cashout. This may be NULL if the status is REJECTED or FAILED, which may happen if the request is invalid.
- *
- * @type {any}
- * @memberof CashoutRequestInfo
- */
- id: any;
-
- /**
- * This is the name of the cashout method.
- *
- * @type {any}
- * @memberof CashoutRequestInfo
- */
- description: any;
-
- /**
- * @type {any}
- * @memberof CashoutRequestInfo
- */
- message?: any;
-
- /**
- * - `PENDING` = PENDING - `APPROVED` = APPROVED - `REJECTED` = REJECTED - `CANCELLED` = CANCELLED - `FAILED` = FAILED - `COMPLETE` = COMPLETE
- *
- * @type {any}
- * @memberof CashoutRequestInfo
- */
- status?: any;
-
- /**
- * @type {any}
- * @memberof CashoutRequestInfo
- */
- transactionInfo?: any;
-}
diff --git a/src/api/models/cashout-request-response.ts b/src/api/models/cashout-request-response.ts
deleted file mode 100644
index 6f56a2f..0000000
--- a/src/api/models/cashout-request-response.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { CashoutRequestInfo } from './cashout-request-info';
- /**
- *
- *
- * @export
- * @interface CashoutRequestResponse
- */
-export interface CashoutRequestResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof CashoutRequestResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof CashoutRequestResponse
- */
- msg?: any;
-
- /**
- * @type {CashoutRequestInfo}
- * @memberof CashoutRequestResponse
- */
- cashout: CashoutRequestInfo;
-}
diff --git a/src/api/models/category-association.ts b/src/api/models/category-association.ts
deleted file mode 100644
index 356754b..0000000
--- a/src/api/models/category-association.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Used in an offerwall. Stores the association between a category and a bucket, with a score.
- *
- * @export
- * @interface CategoryAssociation
- */
-export interface CategoryAssociation {
-
- /**
- * The category ID
- *
- * @type {any}
- * @memberof CategoryAssociation
- */
- id: any;
-
- /**
- * The category label
- *
- * @type {any}
- * @memberof CategoryAssociation
- */
- label: any;
-
- /**
- * @type {any}
- * @memberof CategoryAssociation
- */
- adwordsId?: any;
-
- /**
- * @type {any}
- * @memberof CategoryAssociation
- */
- adwordsLabel?: any;
-
- /**
- * The strength of the association of this bucketwith this category. Will sum to 1 within a bucket.
- *
- * @type {any}
- * @memberof CategoryAssociation
- */
- p: any;
-}
diff --git a/src/api/models/category.ts b/src/api/models/category.ts
deleted file mode 100644
index e3c53cf..0000000
--- a/src/api/models/category.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface Category
- */
-export interface Category {
-
- /**
- * @type {any}
- * @memberof Category
- */
- id: any;
-
- /**
- * @type {any}
- * @memberof Category
- */
- adwordsVerticalId?: any;
-
- /**
- * @type {any}
- * @memberof Category
- */
- label: any;
-
- /**
- * @type {any}
- * @memberof Category
- */
- path: any;
-
- /**
- * @type {any}
- * @memberof Category
- */
- parentId?: any;
-}
diff --git a/src/api/models/count-stat.ts b/src/api/models/count-stat.ts
deleted file mode 100644
index 1434d6e..0000000
--- a/src/api/models/count-stat.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CountStat
- */
-export interface CountStat {
-
- /**
- * The grouping criteria
- *
- * @type {any}
- * @memberof CountStat
- */
- facet: any;
-
- /**
- * The count value for the given metric and facet
- *
- * @type {any}
- * @memberof CountStat
- */
- count: any;
-}
diff --git a/src/api/models/create-cash-mail-cashout-method-request.ts b/src/api/models/create-cash-mail-cashout-method-request.ts
deleted file mode 100644
index 3041747..0000000
--- a/src/api/models/create-cash-mail-cashout-method-request.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CreateCashMailCashoutMethodRequest
- */
-export interface CreateCashMailCashoutMethodRequest {
-
- /**
- * (product_user_id) The user to create this cashout method for.
- *
- * @type {any}
- * @memberof CreateCashMailCashoutMethodRequest
- */
- bpuid: any;
-
- /**
- * @type {any}
- * @memberof CreateCashMailCashoutMethodRequest
- */
- type?: any;
-
- /**
- * Delivery address where payment should be sent
- *
- * @type {any}
- * @memberof CreateCashMailCashoutMethodRequest
- */
- deliveryAddress: any;
-}
diff --git a/src/api/models/create-cashout-request.ts b/src/api/models/create-cashout-request.ts
deleted file mode 100644
index 5a8ca5b..0000000
--- a/src/api/models/create-cashout-request.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CreateCashoutRequest
- */
-export interface CreateCashoutRequest {
-
- /**
- * (product_user_id) The user requesting a cashout.
- *
- * @type {any}
- * @memberof CreateCashoutRequest
- */
- bpuid: any;
-
- /**
- * (USD cents) The amount requested for the cashout.
- *
- * @type {any}
- * @memberof CreateCashoutRequest
- */
- amount: any;
-
- /**
- * Unique ID for the cashout method the cashout is being requested with.
- *
- * @type {any}
- * @memberof CreateCashoutRequest
- */
- cashoutMethodId: any;
-}
diff --git a/src/api/models/create-pay-pal-cashout-method-request.ts b/src/api/models/create-pay-pal-cashout-method-request.ts
deleted file mode 100644
index c493267..0000000
--- a/src/api/models/create-pay-pal-cashout-method-request.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface CreatePayPalCashoutMethodRequest
- */
-export interface CreatePayPalCashoutMethodRequest {
-
- /**
- * (product_user_id) The user to create this cashout method for.
- *
- * @type {any}
- * @memberof CreatePayPalCashoutMethodRequest
- */
- bpuid: any;
-
- /**
- * @type {any}
- * @memberof CreatePayPalCashoutMethodRequest
- */
- type?: any;
-
- /**
- * Email address of the paypal user
- *
- * @type {any}
- * @memberof CreatePayPalCashoutMethodRequest
- */
- email: any;
-}
diff --git a/src/api/models/duration-summary.ts b/src/api/models/duration-summary.ts
deleted file mode 100644
index 86693a1..0000000
--- a/src/api/models/duration-summary.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Durations are in integer seconds. Describes the statistical distribution of expected durations of tasks within this bucket.
- *
- * @export
- * @interface DurationSummary
- */
-export interface DurationSummary {
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- min: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- max: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- mean?: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- q1: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- q2: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- q3: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- lowerWhisker: any;
-
- /**
- * @type {any}
- * @memberof DurationSummary
- */
- upperWhisker: any;
-}
diff --git a/src/api/models/httpvalidation-error.ts b/src/api/models/httpvalidation-error.ts
deleted file mode 100644
index 93d7610..0000000
--- a/src/api/models/httpvalidation-error.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface HTTPValidationError
- */
-export interface HTTPValidationError {
-
- /**
- * @type {any}
- * @memberof HTTPValidationError
- */
- detail?: any;
-}
diff --git a/src/api/models/index.ts b/src/api/models/index.ts
deleted file mode 100644
index f8e599c..0000000
--- a/src/api/models/index.ts
+++ /dev/null
@@ -1,119 +0,0 @@
-export * from './amt-cashout-method-data';
-export * from './body-offerwall-softpair-post-product-id-offerwall37d1da64-offerwall-id-post';
-export * from './body-submit-profiling-questions-product-id-profiling-questions-post';
-export * from './bucket-task';
-export * from './cardinality';
-export * from './cash-mail-cashout-method-data';
-export * from './cashout-method-foreign-value';
-export * from './cashout-method-foreign-value-response';
-export * from './cashout-method-out';
-export * from './cashout-method-response';
-export * from './cashout-methods-response';
-export * from './cashout-request-info';
-export * from './cashout-request-response';
-export * from './category';
-export * from './category-association';
-export * from './count-stat';
-export * from './create-cash-mail-cashout-method-request';
-export * from './create-cashout-request';
-export * from './create-pay-pal-cashout-method-request';
-export * from './duration-summary';
-export * from './httpvalidation-error';
-export * from './leaderboard';
-export * from './leaderboard-code';
-export * from './leaderboard-frequency';
-export * from './leaderboard-response';
-export * from './leaderboard-row';
-export * from './leaderboard-winner';
-export * from './leaderboard-winner-response';
-export * from './market-profile-knowledge';
-export * from './marketplace-bucket';
-export * from './marketplace-inventory-summary';
-export * from './marketplace-offerwall';
-export * from './marketplace-offerwall-response';
-export * from './marketplace-summary';
-export * from './offer-wall-info';
-export * from './one-shot-offerwall';
-export * from './one-shot-offerwall-bucket';
-export * from './one-shot-offerwall-response';
-export * from './pattern-validation';
-export * from './payout-status';
-export * from './payout-summary';
-export * from './payout-type';
-export * from './paypal-cashout-method-data';
-export * from './profiling-info-response';
-export * from './property-type';
-export * from './question-info';
-export * from './question-option';
-export * from './redemption-currency';
-export * from './report-task';
-export * from './report-value';
-export * from './session-adjusted-status';
-export * from './session-status-code2';
-export * from './single-entry-bucket';
-export * from './single-entry-offer-wall';
-export * from './single-entry-offer-wall-response';
-export * from './soft-pair-bucket';
-export * from './soft-pair-offerwall';
-export * from './soft-pair-offerwall-response';
-export * from './source';
-export * from './starwall-offer-wall';
-export * from './starwall-offer-wall-response';
-export * from './starwall-plus-block-offer-wall';
-export * from './starwall-plus-block-offer-wall-response';
-export * from './starwall-plus-block-recontact-offer-wall';
-export * from './starwall-plus-block-recontact-offer-wall-response';
-export * from './starwall-plus-offer-wall';
-export * from './starwall-plus-offer-wall-response';
-export * from './statistical-summary-stat';
-export * from './statistical-summary-value';
-export * from './status-code1';
-export * from './status-info-response-fail';
-export * from './status-response';
-export * from './status-response-failure';
-export * from './status-success-fail';
-export * from './tango-cashout-method-data';
-export * from './task-status-response-out';
-export * from './tasks-status-response-out';
-export * from './top-nbucket';
-export * from './top-noffer-wall';
-export * from './top-noffer-wall-response';
-export * from './top-nplus-block-offer-wall';
-export * from './top-nplus-block-offer-wall-response';
-export * from './top-nplus-block-recontact-offer-wall';
-export * from './top-nplus-block-recontact-offer-wall-response';
-export * from './top-nplus-bucket';
-export * from './top-nplus-offer-wall';
-export * from './top-nplus-offer-wall-response';
-export * from './top-nplus-recontact-bucket';
-export * from './upkimportance';
-export * from './usdelivery-address';
-export * from './upk-question';
-export * from './upk-question-choice';
-export * from './upk-question-choice-out';
-export * from './upk-question-configuration-mc';
-export * from './upk-question-configuration-slider';
-export * from './upk-question-configuration-te';
-export * from './upk-question-out';
-export * from './upk-question-response';
-export * from './upk-question-selector-hidden';
-export * from './upk-question-selector-mc';
-export * from './upk-question-selector-slider';
-export * from './upk-question-selector-te';
-export * from './upk-question-type';
-export * from './upk-question-validation';
-export * from './user-info';
-export * from './user-info-response';
-export * from './user-profile-knowledge';
-export * from './user-profile-knowledge-answer';
-export * from './user-question-answer-in';
-export * from './user-transaction-history-response';
-export * from './user-transaction-row';
-export * from './user-wallet-balance';
-export * from './user-wallet-balance-response';
-export * from './user-wallet-config';
-export * from './user-wallet-transaction-type';
-export * from './validation-error';
-export * from './wxetofferwall';
-export * from './wxetofferwall-bucket';
-export * from './wxetofferwall-response';
diff --git a/src/api/models/leaderboard-code.ts b/src/api/models/leaderboard-code.ts
deleted file mode 100644
index 1fe111a..0000000
--- a/src/api/models/leaderboard-code.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * The type of leaderboard. What the \"values\" represent.
- * @export
- * @enum {string}
- */
-export enum LeaderboardCode {
- CompleteCount = 'complete_count',
- LargestUserPayout = 'largest_user_payout',
- SumUserPayout = 'sum_user_payout'
-}
-
diff --git a/src/api/models/leaderboard-frequency.ts b/src/api/models/leaderboard-frequency.ts
deleted file mode 100644
index 1570d8c..0000000
--- a/src/api/models/leaderboard-frequency.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * The time period range for the leaderboard.
- * @export
- * @enum {string}
- */
-export enum LeaderboardFrequency {
- Daily = 'daily',
- Weekly = 'weekly',
- Monthly = 'monthly'
-}
-
diff --git a/src/api/models/leaderboard-response.ts b/src/api/models/leaderboard-response.ts
deleted file mode 100644
index f121576..0000000
--- a/src/api/models/leaderboard-response.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { Leaderboard } from './leaderboard';
- /**
- *
- *
- * @export
- * @interface LeaderboardResponse
- */
-export interface LeaderboardResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof LeaderboardResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof LeaderboardResponse
- */
- msg?: any;
-
- /**
- * @type {Leaderboard}
- * @memberof LeaderboardResponse
- */
- leaderboard: Leaderboard;
-}
diff --git a/src/api/models/leaderboard-row.ts b/src/api/models/leaderboard-row.ts
deleted file mode 100644
index 5d51d34..0000000
--- a/src/api/models/leaderboard-row.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface LeaderboardRow
- */
-export interface LeaderboardRow {
-
- /**
- * product_user_id
- *
- * @type {any}
- * @memberof LeaderboardRow
- */
- bpuid: any;
-
- /**
- * The numerical data ranks (1 through n) of the values. Ties are ranked using the lowest rank in the group.
- *
- * @type {any}
- * @memberof LeaderboardRow
- */
- rank: any;
-
- /**
- * The value. The meaning of the value is dependent on the LeaderboardCode.
- *
- * @type {any}
- * @memberof LeaderboardRow
- */
- value: any;
-}
diff --git a/src/api/models/leaderboard-winner-response.ts b/src/api/models/leaderboard-winner-response.ts
deleted file mode 100644
index 3919366..0000000
--- a/src/api/models/leaderboard-winner-response.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface LeaderboardWinnerResponse
- */
-export interface LeaderboardWinnerResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof LeaderboardWinnerResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof LeaderboardWinnerResponse
- */
- msg?: any;
-
- /**
- * @type {any}
- * @memberof LeaderboardWinnerResponse
- */
- winners?: any;
-}
diff --git a/src/api/models/leaderboard-winner.ts b/src/api/models/leaderboard-winner.ts
deleted file mode 100644
index 912039e..0000000
--- a/src/api/models/leaderboard-winner.ts
+++ /dev/null
@@ -1,108 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface LeaderboardWinner
- */
-export interface LeaderboardWinner {
-
- /**
- * The user's final rank in the leaderboard
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- rank: any;
-
- /**
- * The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- freq: any;
-
- /**
- * The type of leaderboard. What the \"values\" represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- boardCode: any;
-
- /**
- * The country this leaderboard is for.
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- countryIso: any;
-
- /**
- * When the prize was issued.
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- issued: any;
-
- /**
- * product_user_id
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- bpuid: any;
-
- /**
- * @type {any}
- * @memberof LeaderboardWinner
- */
- description: any;
-
- /**
- * (USD cents) The reward amount
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- amount: any;
-
- /**
- * The amount as a formatted string in USD. Can be displayed to the user.
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- amountStr: any;
-
- /**
- * When the leaderboard started
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- contestStart: any;
-
- /**
- * When the leaderboard ended
- *
- * @type {any}
- * @memberof LeaderboardWinner
- */
- contestEnd: any;
-}
diff --git a/src/api/models/leaderboard.ts b/src/api/models/leaderboard.ts
deleted file mode 100644
index 7a09b44..0000000
--- a/src/api/models/leaderboard.ts
+++ /dev/null
@@ -1,170 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * A leaderboard exists independently for each product_id in each country. Each country is associated with a single timezone. There is a daily, weekly, and monthly leaderboard.
- *
- * @export
- * @interface Leaderboard
- */
-export interface Leaderboard {
-
- /**
- * Unique ID for this leaderboard
- *
- * @type {any}
- * @memberof Leaderboard
- */
- id: any;
-
- /**
- * Descriptive name for the leaderboard based on the board_code
- *
- * @type {any}
- * @memberof Leaderboard
- */
- name: any;
-
- /**
- * The type of leaderboard. What the \"values\" represent. Allowed values: - __complete_count__ *(COMPLETE_COUNT)*: Number of Completes - __largest_user_payout__ *(LARGEST_PAYOUT)*: Largest Single Payout - __sum_user_payout__ *(SUM_PAYOUTS)*: (Sum of) Total Payouts
- *
- * @type {any}
- * @memberof Leaderboard
- */
- boardCode: any;
-
- /**
- * product_id
- *
- * @type {any}
- * @memberof Leaderboard
- */
- bpid: any;
-
- /**
- * The country this leaderboard is for.
- *
- * @type {any}
- * @memberof Leaderboard
- */
- countryIso: any;
-
- /**
- * The time period range for the leaderboard. Allowed values: - __daily__ *(DAILY)*: UTC midnight to UTC midnight - __weekly__ *(WEEKLY)*: Sunday Midnight to Sunday Midnight UTC - __monthly__ *(MONTHLY)*: Jan 1 00:00:00
- *
- * @type {any}
- * @memberof Leaderboard
- */
- freq: any;
-
- /**
- * (unix timestamp) The time it is right now
- *
- * @type {any}
- * @memberof Leaderboard
- */
- nowTimestamp: any;
-
- /**
- * The time it is right now (local time, in the leaderboard's timezone).
- *
- * @type {any}
- * @memberof Leaderboard
- */
- localTime: any;
-
- /**
- * (unix timestamp) The timestamp of the leaderboard. This is the UTC timestamp of the start of the leaderboard.
- *
- * @type {any}
- * @memberof Leaderboard
- */
- timestamp: any;
-
- /**
- * (unix timestamp) The start time of the time range this leaderboard covers.
- *
- * @type {any}
- * @memberof Leaderboard
- */
- startTimestamp: any;
-
- /**
- * (unix timestamp) The end time of the time range this leaderboard covers.
- *
- * @type {any}
- * @memberof Leaderboard
- */
- endTimestamp: any;
-
- /**
- * The start time of the time range this leaderboard covers (local time, in the leaderboard's timezone).
- *
- * @type {any}
- * @memberof Leaderboard
- */
- localStartTime: any;
-
- /**
- * The end time of the time range this leaderboard covers (local time, in the leaderboard's timezone).
- *
- * @type {any}
- * @memberof Leaderboard
- */
- localEndTime: any;
-
- /**
- * A formatted string for time range covered by this leaderboard. Can be used to display to users.
- *
- * @type {any}
- * @memberof Leaderboard
- */
- startEndStr: any;
-
- /**
- * The timezone for the requested country
- *
- * @type {any}
- * @memberof Leaderboard
- */
- timezoneName: any;
-
- /**
- * The UTC offset for the timezone
- *
- * @type {any}
- * @memberof Leaderboard
- */
- utcOffset: any;
-
- /**
- * @type {any}
- * @memberof Leaderboard
- */
- sortOrder?: any;
-
- /**
- * The total number of rows in the leaderboard.
- *
- * @type {any}
- * @memberof Leaderboard
- */
- rowCount: any;
-
- /**
- * @type {any}
- * @memberof Leaderboard
- */
- rows?: any;
-}
diff --git a/src/api/models/market-profile-knowledge.ts b/src/api/models/market-profile-knowledge.ts
deleted file mode 100644
index d30e3fb..0000000
--- a/src/api/models/market-profile-knowledge.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface MarketProfileKnowledge
- */
-export interface MarketProfileKnowledge {
-
- /**
- * Name of the source
- *
- * @type {any}
- * @memberof MarketProfileKnowledge
- */
- source: any;
-
- /**
- * @type {any}
- * @memberof MarketProfileKnowledge
- */
- questionId: any;
-
- /**
- * @type {any}
- * @memberof MarketProfileKnowledge
- */
- answer?: any;
-
- /**
- * When the User submitted this Profiling data
- *
- * @type {any}
- * @memberof MarketProfileKnowledge
- */
- created: any;
-}
diff --git a/src/api/models/marketplace-bucket.ts b/src/api/models/marketplace-bucket.ts
deleted file mode 100644
index ce66d3a..0000000
--- a/src/api/models/marketplace-bucket.ts
+++ /dev/null
@@ -1,104 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { DurationSummary } from './duration-summary';
-import { PayoutSummary } from './payout-summary';
- /**
- *
- *
- * @export
- * @interface MarketplaceBucket
- */
-export interface MarketplaceBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- uri: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the x-axis.
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- x?: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the y-axis.
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- y?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- name?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- description?: any;
-
- /**
- * @type {any}
- * @memberof MarketplaceBucket
- */
- category?: any;
-
- /**
- * @type {any}
- * @memberof MarketplaceBucket
- */
- contents: any;
-
- /**
- * @type {DurationSummary}
- * @memberof MarketplaceBucket
- */
- duration: DurationSummary;
-
- /**
- * @type {PayoutSummary}
- * @memberof MarketplaceBucket
- */
- payout: PayoutSummary;
-
- /**
- * this is the source of the contents
- *
- * @type {any}
- * @memberof MarketplaceBucket
- */
- source: any;
-}
diff --git a/src/api/models/marketplace-inventory-summary.ts b/src/api/models/marketplace-inventory-summary.ts
deleted file mode 100644
index e2e6a31..0000000
--- a/src/api/models/marketplace-inventory-summary.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface MarketplaceInventorySummary
- */
-export interface MarketplaceInventorySummary {
-
- /**
- * The count of tasks that are currently live
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- liveTasks?: any;
-
- /**
- * The count of gen-pop tasks that are currently live
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- liveGenPopTasks?: any;
-
- /**
- * The count of tasks created
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- tasksCreated?: any;
-
- /**
- * Number of finishes needed across all live tasks
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- requiredFinishes?: any;
-
- /**
- * The distribution of payouts for all live tasks
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- payout?: any;
-
- /**
- * The distribution of expected durations for all live tasks
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- expectedDuration?: any;
-
- /**
- * The distribution of required finishes on all live tasks
- *
- * @type {any}
- * @memberof MarketplaceInventorySummary
- */
- requiredFinishesPerTask?: any;
-}
diff --git a/src/api/models/marketplace-offerwall-response.ts b/src/api/models/marketplace-offerwall-response.ts
deleted file mode 100644
index 6c1f90f..0000000
--- a/src/api/models/marketplace-offerwall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { MarketplaceOfferwall } from './marketplace-offerwall';
-import { OfferWallInfo } from './offer-wall-info';
- /**
- *
- *
- * @export
- * @interface MarketplaceOfferwallResponse
- */
-export interface MarketplaceOfferwallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof MarketplaceOfferwallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {MarketplaceOfferwall}
- * @memberof MarketplaceOfferwallResponse
- */
- offerwall: MarketplaceOfferwall;
-}
diff --git a/src/api/models/marketplace-offerwall.ts b/src/api/models/marketplace-offerwall.ts
deleted file mode 100644
index 5882ec5..0000000
--- a/src/api/models/marketplace-offerwall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Returns buckets grouped by marketplace, one per marketplace, with the tasks ordered by quality. Offerwall code: `5fa23085`
- *
- * @export
- * @interface MarketplaceOfferwall
- */
-export interface MarketplaceOfferwall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof MarketplaceOfferwall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof MarketplaceOfferwall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof MarketplaceOfferwall
- */
- buckets?: any;
-}
diff --git a/src/api/models/marketplace-summary.ts b/src/api/models/marketplace-summary.ts
deleted file mode 100644
index c63fcc0..0000000
--- a/src/api/models/marketplace-summary.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface MarketplaceSummary
- */
-export interface MarketplaceSummary {
-
- /**
- * Inventory of the marketplace
- *
- * @type {any}
- * @memberof MarketplaceSummary
- */
- inventory: any;
-
- /**
- * User activity of the marketplace
- *
- * @type {any}
- * @memberof MarketplaceSummary
- */
- userActivity?: any;
-}
diff --git a/src/api/models/offer-wall-info.ts b/src/api/models/offer-wall-info.ts
deleted file mode 100644
index 84fe2bb..0000000
--- a/src/api/models/offer-wall-info.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface OfferWallInfo
- */
-export interface OfferWallInfo {
-
- /**
- * @type {any}
- * @memberof OfferWallInfo
- */
- success: any;
-}
diff --git a/src/api/models/one-shot-offerwall-bucket.ts b/src/api/models/one-shot-offerwall-bucket.ts
deleted file mode 100644
index d45bd2c..0000000
--- a/src/api/models/one-shot-offerwall-bucket.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface OneShotOfferwallBucket
- */
-export interface OneShotOfferwallBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof OneShotOfferwallBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof OneShotOfferwallBucket
- */
- uri: any;
-
- /**
- * The bucket's expected duration, in seconds
- *
- * @type {any}
- * @memberof OneShotOfferwallBucket
- */
- duration: any;
-
- /**
- * The bucket's min payout, in usd cents
- *
- * @type {any}
- * @memberof OneShotOfferwallBucket
- */
- minPayout: any;
-}
diff --git a/src/api/models/one-shot-offerwall-response.ts b/src/api/models/one-shot-offerwall-response.ts
deleted file mode 100644
index c910578..0000000
--- a/src/api/models/one-shot-offerwall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { OneShotOfferwall } from './one-shot-offerwall';
- /**
- *
- *
- * @export
- * @interface OneShotOfferwallResponse
- */
-export interface OneShotOfferwallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof OneShotOfferwallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {OneShotOfferwall}
- * @memberof OneShotOfferwallResponse
- */
- offerwall: OneShotOfferwall;
-}
diff --git a/src/api/models/one-shot-offerwall.ts b/src/api/models/one-shot-offerwall.ts
deleted file mode 100644
index c2fa921..0000000
--- a/src/api/models/one-shot-offerwall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Each bucket has only 1 single task, and only basic info is returned about each bucket. Offerwall code: `6f27b1ae`
- *
- * @export
- * @interface OneShotOfferwall
- */
-export interface OneShotOfferwall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof OneShotOfferwall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof OneShotOfferwall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof OneShotOfferwall
- */
- buckets?: any;
-}
diff --git a/src/api/models/pattern-validation.ts b/src/api/models/pattern-validation.ts
deleted file mode 100644
index 2588766..0000000
--- a/src/api/models/pattern-validation.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface PatternValidation
- */
-export interface PatternValidation {
-
- /**
- * Message to display if validation fails
- *
- * @type {any}
- * @memberof PatternValidation
- */
- message: any;
-
- /**
- * Regex string to validate. min_length and max_length are checked separately, even if they are part of the regex.
- *
- * @type {any}
- * @memberof PatternValidation
- */
- pattern: any;
-}
diff --git a/src/api/models/payout-status.ts b/src/api/models/payout-status.ts
deleted file mode 100644
index d7eb044..0000000
--- a/src/api/models/payout-status.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * The max size of the db field that holds this value is 20, so please don't add new values longer than that!
- * @export
- * @enum {string}
- */
-export enum PayoutStatus {
- PENDING = 'PENDING',
- APPROVED = 'APPROVED',
- REJECTED = 'REJECTED',
- CANCELLED = 'CANCELLED',
- FAILED = 'FAILED',
- COMPLETE = 'COMPLETE'
-}
-
diff --git a/src/api/models/payout-summary.ts b/src/api/models/payout-summary.ts
deleted file mode 100644
index 277bca5..0000000
--- a/src/api/models/payout-summary.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Payouts are in Integer USD Cents
- *
- * @export
- * @interface PayoutSummary
- */
-export interface PayoutSummary {
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- min: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- max: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- mean?: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- q1: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- q2: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- q3: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- lowerWhisker: any;
-
- /**
- * @type {any}
- * @memberof PayoutSummary
- */
- upperWhisker: any;
-}
diff --git a/src/api/models/payout-type.ts b/src/api/models/payout-type.ts
deleted file mode 100644
index 01197e8..0000000
--- a/src/api/models/payout-type.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * The method in which the requested payout is delivered.
- * @export
- * @enum {string}
- */
-export enum PayoutType {
- PAYPAL = 'PAYPAL',
- TANGO = 'TANGO',
- Dwolla = 'dwolla',
- ACH = 'ACH',
- CASHINMAIL = 'CASH_IN_MAIL',
- PRIZE = 'PRIZE',
- AMT = 'AMT',
- AmtBonus = 'amt_bonus',
- AmtAssignment = 'amt_assignment'
-}
-
diff --git a/src/api/models/paypal-cashout-method-data.ts b/src/api/models/paypal-cashout-method-data.ts
deleted file mode 100644
index 3f5eaee..0000000
--- a/src/api/models/paypal-cashout-method-data.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface PaypalCashoutMethodData
- */
-export interface PaypalCashoutMethodData {
-
- /**
- * @type {any}
- * @memberof PaypalCashoutMethodData
- */
- type?: any;
-
- /**
- * Email address of the paypal user
- *
- * @type {any}
- * @memberof PaypalCashoutMethodData
- */
- email: any;
-}
diff --git a/src/api/models/profiling-info-response.ts b/src/api/models/profiling-info-response.ts
deleted file mode 100644
index 91557dc..0000000
--- a/src/api/models/profiling-info-response.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface ProfilingInfoResponse
- */
-export interface ProfilingInfoResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof ProfilingInfoResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof ProfilingInfoResponse
- */
- msg?: any;
-
- /**
- * @type {any}
- * @memberof ProfilingInfoResponse
- */
- profilingInfo: any;
-}
diff --git a/src/api/models/property-type.ts b/src/api/models/property-type.ts
deleted file mode 100644
index 25c164b..0000000
--- a/src/api/models/property-type.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum PropertyType {
- I = 'i',
- N = 'n',
- X = 'x'
-}
-
diff --git a/src/api/models/question-info.ts b/src/api/models/question-info.ts
deleted file mode 100644
index 4cc2548..0000000
--- a/src/api/models/question-info.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface QuestionInfo
- */
-export interface QuestionInfo {
-
- /**
- * @type {any}
- * @memberof QuestionInfo
- */
- propertyId: any;
-
- /**
- * @type {any}
- * @memberof QuestionInfo
- */
- propertyLabel: any;
-
- /**
- * Allowed values: - __i__ *(UPK_ITEM)*: UserProfileKnowledge Item - __n__ *(UPK_NUMERICAL)*: UserProfileKnowledge Numerical - __x__ *(UPK_TEXT)*: UserProfileKnowledge Text
- *
- * @type {any}
- * @memberof QuestionInfo
- */
- propType?: any;
-
- /**
- * Allowed values: - __*__ *(ZERO_OR_MORE)*: Zero or More - __?__ *(ZERO_OR_ONE)*: Zero or One
- *
- * @type {any}
- * @memberof QuestionInfo
- */
- cardinality?: any;
-
- /**
- * @type {any}
- * @memberof QuestionInfo
- */
- countryIso: any;
-
- /**
- * A Gold-Standard question has been enumerated for all possible values (per country) as best as possible by GRL,allowing it to be mapped across inventory sources. A property not marked as Gold-Standard may have: 1) marketplace qid associations & 2) category associations, but doesn't have a defined 'range' (list of allowed itemsin a multiple choice question). This is used for exposing a user's profiling data & forthe Nudge API.
- *
- * @type {any}
- * @memberof QuestionInfo
- */
- goldStandard?: any;
-
- /**
- * @type {any}
- * @memberof QuestionInfo
- */
- options?: any;
-
- /**
- * @type {any}
- * @memberof QuestionInfo
- */
- category: any;
-}
diff --git a/src/api/models/question-option.ts b/src/api/models/question-option.ts
deleted file mode 100644
index 06fadea..0000000
--- a/src/api/models/question-option.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface QuestionOption
- */
-export interface QuestionOption {
-
- /**
- * @type {any}
- * @memberof QuestionOption
- */
- id: any;
-
- /**
- * @type {any}
- * @memberof QuestionOption
- */
- label: any;
-}
diff --git a/src/api/models/redemption-currency.ts b/src/api/models/redemption-currency.ts
deleted file mode 100644
index 1f21f49..0000000
--- a/src/api/models/redemption-currency.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * Supported Currencies for Foreign Redemptions
- * @export
- * @enum {string}
- */
-export enum RedemptionCurrency {
- USD = 'USD',
- CAD = 'CAD',
- GBP = 'GBP',
- EUR = 'EUR',
- INR = 'INR',
- AUD = 'AUD',
- PLN = 'PLN',
- SEK = 'SEK',
- SGD = 'SGD',
- MXN = 'MXN'
-}
-
diff --git a/src/api/models/report-task.ts b/src/api/models/report-task.ts
deleted file mode 100644
index de67811..0000000
--- a/src/api/models/report-task.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface ReportTask
- */
-export interface ReportTask {
-
- /**
- * The unique identifier for the user, which is set by the Supplier.
- *
- * @type {any}
- * @memberof ReportTask
- */
- bpuid: any;
-
- /**
- * The reason a user reported a task. Allowed values: - __0__ *(REASON_UNKNOWN)*: Used to indicate the user exited the task without giving feedback - __1__ *(TECHNICAL_ERROR)*: Task is in the wrong language/country, unanswerable question, won't proceed to next question, loading forever, error message - __2__ *(NO_REDIRECT)*: Task ended (completed or failed, and showed the user some dialog indicating the task was over), but failed to redirect - __3__ *(PRIVACY_INVASION)*: Asked for full name, home address, identity on another site, cc - __4__ *(UNCOMFORTABLE_TOPICS)*: Asked about children, employer, medical issues, drug use, STDs, etc. - __5__ *(ASKED_FOR_NOT_ALLOWED_ACTION)*: Asked to install software, signup/login to external site, access webcam, promise to pay using external site, etc. - __6__ *(BAD_ON_MOBILE)*: Task doesn't work well on a mobile device - __7__ *(DIDNT_LIKE)*: Too long, too boring, confusing, complicated, too many open-ended/free-response questions
- *
- * @type {any}
- * @memberof ReportTask
- */
- reasons?: any;
-
- /**
- * @type {any}
- * @memberof ReportTask
- */
- notes?: any;
-}
diff --git a/src/api/models/report-value.ts b/src/api/models/report-value.ts
deleted file mode 100644
index af4fbfb..0000000
--- a/src/api/models/report-value.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * The reason a user reported a task.
- * @export
- * @enum {string}
- */
-export enum ReportValue {
- _0 = '0',
- _1 = '1',
- _2 = '2',
- _3 = '3',
- _4 = '4',
- _5 = '5',
- _6 = '6',
- _7 = '7'
-}
-
diff --git a/src/api/models/session-adjusted-status.ts b/src/api/models/session-adjusted-status.ts
deleted file mode 100644
index 95e4bc9..0000000
--- a/src/api/models/session-adjusted-status.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * An adjusted_status is set if a session is adjusted by the marketplace after the original return. A session can be adjusted multiple times. This is the most recent status. If a session was originally a complete, was adjusted to incomplete, then back to complete, the adjusted_status will be None, but the adjusted_timestamp will be set to the most recent change.
- * @export
- * @enum {string}
- */
-export enum SessionAdjustedStatus {
- Ac = 'ac',
- Af = 'af',
- Pa = 'pa'
-}
-
diff --git a/src/api/models/session-status-code2.ts b/src/api/models/session-status-code2.ts
deleted file mode 100644
index 3fd7025..0000000
--- a/src/api/models/session-status-code2.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * __Status Detail__ This should be set if the Session.status_code_1 is SESSION_XXX_FAIL
- * @export
- * @enum {string}
- */
-export enum SessionStatusCode2 {
- _1 = '1',
- _2 = '2',
- _3 = '3',
- _4 = '4',
- _5 = '5',
- _6 = '6',
- _7 = '7',
- _8 = '8',
- _9 = '9',
- _10 = '10',
- _11 = '11',
- _12 = '12',
- _13 = '13'
-}
-
diff --git a/src/api/models/single-entry-bucket.ts b/src/api/models/single-entry-bucket.ts
deleted file mode 100644
index a00c96d..0000000
--- a/src/api/models/single-entry-bucket.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface SingleEntryBucket
- */
-export interface SingleEntryBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof SingleEntryBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof SingleEntryBucket
- */
- uri: any;
-}
diff --git a/src/api/models/single-entry-offer-wall-response.ts b/src/api/models/single-entry-offer-wall-response.ts
deleted file mode 100644
index 4d77d21..0000000
--- a/src/api/models/single-entry-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { SingleEntryOfferWall } from './single-entry-offer-wall';
- /**
- *
- *
- * @export
- * @interface SingleEntryOfferWallResponse
- */
-export interface SingleEntryOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof SingleEntryOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {SingleEntryOfferWall}
- * @memberof SingleEntryOfferWallResponse
- */
- offerwall: SingleEntryOfferWall;
-}
diff --git a/src/api/models/single-entry-offer-wall.ts b/src/api/models/single-entry-offer-wall.ts
deleted file mode 100644
index 6e1b90e..0000000
--- a/src/api/models/single-entry-offer-wall.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Only returns a single bucket with the top scoring tasks. Offerwall code: `5fl8bpv5`
- *
- * @export
- * @interface SingleEntryOfferWall
- */
-export interface SingleEntryOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof SingleEntryOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof SingleEntryOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof SingleEntryOfferWall
- */
- buckets?: any;
-
- /**
- * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
- *
- * @type {any}
- * @memberof SingleEntryOfferWall
- */
- payoutFormat: any;
-}
diff --git a/src/api/models/soft-pair-bucket.ts b/src/api/models/soft-pair-bucket.ts
deleted file mode 100644
index f794141..0000000
--- a/src/api/models/soft-pair-bucket.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface SoftPairBucket
- */
-export interface SoftPairBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof SoftPairBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way. If the eligibility is conditional or ineligible, the uri will be null.
- *
- * @type {any}
- * @memberof SoftPairBucket
- */
- uri: any;
-
- /**
- * @type {any}
- * @memberof SoftPairBucket
- */
- category?: any;
-
- /**
- * @type {any}
- * @memberof SoftPairBucket
- */
- contents: any;
-
- /**
- * @type {any}
- * @memberof SoftPairBucket
- */
- eligibility: any;
-
- /**
- * @type {any}
- * @memberof SoftPairBucket
- */
- missingQuestions?: any;
-
- /**
- * this is the max loi of the contents
- *
- * @type {any}
- * @memberof SoftPairBucket
- */
- loi: any;
-
- /**
- * this is the min payout of the contents
- *
- * @type {any}
- * @memberof SoftPairBucket
- */
- payout: any;
-}
diff --git a/src/api/models/soft-pair-offerwall-response.ts b/src/api/models/soft-pair-offerwall-response.ts
deleted file mode 100644
index 6b33edd..0000000
--- a/src/api/models/soft-pair-offerwall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { SoftPairOfferwall } from './soft-pair-offerwall';
- /**
- *
- *
- * @export
- * @interface SoftPairOfferwallResponse
- */
-export interface SoftPairOfferwallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof SoftPairOfferwallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {SoftPairOfferwall}
- * @memberof SoftPairOfferwallResponse
- */
- offerwall: SoftPairOfferwall;
-}
diff --git a/src/api/models/soft-pair-offerwall.ts b/src/api/models/soft-pair-offerwall.ts
deleted file mode 100644
index a15b3b8..0000000
--- a/src/api/models/soft-pair-offerwall.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * This offerwall contains tasks for which the user has a conditional eligibility. The questions that a user must answer to determine the eligibility are included within each bucket. Additionally, the question definitions are included for convenience. Offerwall code: `37d1da64`
- *
- * @export
- * @interface SoftPairOfferwall
- */
-export interface SoftPairOfferwall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof SoftPairOfferwall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof SoftPairOfferwall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof SoftPairOfferwall
- */
- buckets?: any;
-
- /**
- * @type {any}
- * @memberof SoftPairOfferwall
- */
- questionInfo?: any;
-}
diff --git a/src/api/models/source.ts b/src/api/models/source.ts
deleted file mode 100644
index 9c0d1d9..0000000
--- a/src/api/models/source.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum Source {
- G = 'g',
- C = 'c',
- A = 'a',
- D = 'd',
- Et = 'et',
- F = 'f',
- I = 'i',
- L = 'l',
- M = 'm',
- N = 'n',
- O = 'o',
- E = 'e',
- R = 'r',
- Pr = 'pr',
- P = 'p',
- Rd = 'rd',
- H = 'h',
- S = 's',
- T = 't',
- U = 'u',
- W = 'w'
-}
-
diff --git a/src/api/models/starwall-offer-wall-response.ts b/src/api/models/starwall-offer-wall-response.ts
deleted file mode 100644
index bdf3712..0000000
--- a/src/api/models/starwall-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { StarwallOfferWall } from './starwall-offer-wall';
- /**
- *
- *
- * @export
- * @interface StarwallOfferWallResponse
- */
-export interface StarwallOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof StarwallOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {StarwallOfferWall}
- * @memberof StarwallOfferWallResponse
- */
- offerwall: StarwallOfferWall;
-}
diff --git a/src/api/models/starwall-offer-wall.ts b/src/api/models/starwall-offer-wall.ts
deleted file mode 100644
index 2eaaef3..0000000
--- a/src/api/models/starwall-offer-wall.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * An offerwall with buckets that are clustered by setting as seeds the highest scoring surveys for each bin, then the rest are distributed according to their Euclidean distance using the bucket's features. Offerwall code: `b59a2d2b`
- *
- * @export
- * @interface StarwallOfferWall
- */
-export interface StarwallOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof StarwallOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof StarwallOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof StarwallOfferWall
- */
- buckets?: any;
-
- /**
- * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
- *
- * @type {any}
- * @memberof StarwallOfferWall
- */
- payoutFormat: any;
-}
diff --git a/src/api/models/starwall-plus-block-offer-wall-response.ts b/src/api/models/starwall-plus-block-offer-wall-response.ts
deleted file mode 100644
index e166895..0000000
--- a/src/api/models/starwall-plus-block-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { StarwallPlusBlockOfferWall } from './starwall-plus-block-offer-wall';
- /**
- *
- *
- * @export
- * @interface StarwallPlusBlockOfferWallResponse
- */
-export interface StarwallPlusBlockOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof StarwallPlusBlockOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {StarwallPlusBlockOfferWall}
- * @memberof StarwallPlusBlockOfferWallResponse
- */
- offerwall: StarwallPlusBlockOfferWall;
-}
diff --git a/src/api/models/starwall-plus-block-offer-wall.ts b/src/api/models/starwall-plus-block-offer-wall.ts
deleted file mode 100644
index 956c49a..0000000
--- a/src/api/models/starwall-plus-block-offer-wall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Same as the StarwallOfferWall, but the buckets include contents and no buckets are returned if the user is blocked. Offerwall code: `7fa1b3f4`
- *
- * @export
- * @interface StarwallPlusBlockOfferWall
- */
-export interface StarwallPlusBlockOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof StarwallPlusBlockOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof StarwallPlusBlockOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof StarwallPlusBlockOfferWall
- */
- buckets?: any;
-}
diff --git a/src/api/models/starwall-plus-block-recontact-offer-wall-response.ts b/src/api/models/starwall-plus-block-recontact-offer-wall-response.ts
deleted file mode 100644
index 7f51a2f..0000000
--- a/src/api/models/starwall-plus-block-recontact-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { StarwallPlusBlockRecontactOfferWall } from './starwall-plus-block-recontact-offer-wall';
- /**
- *
- *
- * @export
- * @interface StarwallPlusBlockRecontactOfferWallResponse
- */
-export interface StarwallPlusBlockRecontactOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof StarwallPlusBlockRecontactOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {StarwallPlusBlockRecontactOfferWall}
- * @memberof StarwallPlusBlockRecontactOfferWallResponse
- */
- offerwall: StarwallPlusBlockRecontactOfferWall;
-}
diff --git a/src/api/models/starwall-plus-block-recontact-offer-wall.ts b/src/api/models/starwall-plus-block-recontact-offer-wall.ts
deleted file mode 100644
index b1a400b..0000000
--- a/src/api/models/starwall-plus-block-recontact-offer-wall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Same as the StarwallOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a recontact key. Offerwall code: `630db2a4`
- *
- * @export
- * @interface StarwallPlusBlockRecontactOfferWall
- */
-export interface StarwallPlusBlockRecontactOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof StarwallPlusBlockRecontactOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof StarwallPlusBlockRecontactOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof StarwallPlusBlockRecontactOfferWall
- */
- buckets?: any;
-}
diff --git a/src/api/models/starwall-plus-offer-wall-response.ts b/src/api/models/starwall-plus-offer-wall-response.ts
deleted file mode 100644
index 55b97cf..0000000
--- a/src/api/models/starwall-plus-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { StarwallPlusOfferWall } from './starwall-plus-offer-wall';
- /**
- *
- *
- * @export
- * @interface StarwallPlusOfferWallResponse
- */
-export interface StarwallPlusOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof StarwallPlusOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {StarwallPlusOfferWall}
- * @memberof StarwallPlusOfferWallResponse
- */
- offerwall: StarwallPlusOfferWall;
-}
diff --git a/src/api/models/starwall-plus-offer-wall.ts b/src/api/models/starwall-plus-offer-wall.ts
deleted file mode 100644
index dc94f77..0000000
--- a/src/api/models/starwall-plus-offer-wall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Same as the StarwallOfferWall, but the buckets include contents. Offerwall code: `5481f322`
- *
- * @export
- * @interface StarwallPlusOfferWall
- */
-export interface StarwallPlusOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof StarwallPlusOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof StarwallPlusOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof StarwallPlusOfferWall
- */
- buckets?: any;
-}
diff --git a/src/api/models/statistical-summary-stat.ts b/src/api/models/statistical-summary-stat.ts
deleted file mode 100644
index 51f5167..0000000
--- a/src/api/models/statistical-summary-stat.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface StatisticalSummaryStat
- */
-export interface StatisticalSummaryStat {
-
- /**
- * The grouping criteria
- *
- * @type {any}
- * @memberof StatisticalSummaryStat
- */
- facet: any;
-
- /**
- * Statistical Summary for the given metric and facet
- *
- * @type {any}
- * @memberof StatisticalSummaryStat
- */
- value: any;
-}
diff --git a/src/api/models/statistical-summary-value.ts b/src/api/models/statistical-summary-value.ts
deleted file mode 100644
index d89df72..0000000
--- a/src/api/models/statistical-summary-value.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface StatisticalSummaryValue
- */
-export interface StatisticalSummaryValue {
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- min: any;
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- max: any;
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- mean: any;
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- q1: any;
-
- /**
- * equal to the median
- *
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- q2: any;
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- q3: any;
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- lowerWhisker: any;
-
- /**
- * @type {any}
- * @memberof StatisticalSummaryValue
- */
- upperWhisker: any;
-}
diff --git a/src/api/models/status-code1.ts b/src/api/models/status-code1.ts
deleted file mode 100644
index 3023cda..0000000
--- a/src/api/models/status-code1.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * __High level status code for outcome of the session.__ This should only be NULL if the Status is ABANDON or TIMEOUT
- * @export
- * @enum {string}
- */
-export enum StatusCode1 {
- _1 = '1',
- _2 = '2',
- _3 = '3',
- _4 = '4',
- _5 = '5',
- _6 = '6',
- _7 = '7',
- _8 = '8',
- _9 = '9',
- _10 = '10',
- _11 = '11',
- _12 = '12',
- _13 = '13',
- _14 = '14',
- _15 = '15',
- _16 = '16',
- _17 = '17',
- _18 = '18',
- _19 = '19'
-}
-
diff --git a/src/api/models/status-info-response-fail.ts b/src/api/models/status-info-response-fail.ts
deleted file mode 100644
index 16bfd2c..0000000
--- a/src/api/models/status-info-response-fail.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { StatusSuccessFail } from './status-success-fail';
- /**
- *
- *
- * @export
- * @interface StatusInfoResponseFail
- */
-export interface StatusInfoResponseFail {
-
- /**
- * @type {StatusSuccessFail}
- * @memberof StatusInfoResponseFail
- */
- info: StatusSuccessFail;
-
- /**
- * An optional message, if success is False
- *
- * @type {any}
- * @memberof StatusInfoResponseFail
- */
- msg: any;
-}
diff --git a/src/api/models/status-response-failure.ts b/src/api/models/status-response-failure.ts
deleted file mode 100644
index 4ed5347..0000000
--- a/src/api/models/status-response-failure.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface StatusResponseFailure
- */
-export interface StatusResponseFailure {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof StatusResponseFailure
- */
- status: any;
-
- /**
- * An optional message, if the status is failure.
- *
- * @type {any}
- * @memberof StatusResponseFailure
- */
- msg: any;
-}
diff --git a/src/api/models/status-response.ts b/src/api/models/status-response.ts
deleted file mode 100644
index c7d5b89..0000000
--- a/src/api/models/status-response.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface StatusResponse
- */
-export interface StatusResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof StatusResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof StatusResponse
- */
- msg?: any;
-}
diff --git a/src/api/models/status-success-fail.ts b/src/api/models/status-success-fail.ts
deleted file mode 100644
index cd78611..0000000
--- a/src/api/models/status-success-fail.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface StatusSuccessFail
- */
-export interface StatusSuccessFail {
-
- /**
- * Whether the API response is successful.
- *
- * @type {any}
- * @memberof StatusSuccessFail
- */
- success?: any;
-}
diff --git a/src/api/models/tango-cashout-method-data.ts b/src/api/models/tango-cashout-method-data.ts
deleted file mode 100644
index 1096235..0000000
--- a/src/api/models/tango-cashout-method-data.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface TangoCashoutMethodData
- */
-export interface TangoCashoutMethodData {
-
- /**
- * @type {any}
- * @memberof TangoCashoutMethodData
- */
- type?: any;
-
- /**
- * tango utid
- *
- * @type {any}
- * @memberof TangoCashoutMethodData
- */
- utid: any;
-
- /**
- * @type {any}
- * @memberof TangoCashoutMethodData
- */
- countries: any;
-
- /**
- * @type {any}
- * @memberof TangoCashoutMethodData
- */
- valueType: any;
-}
diff --git a/src/api/models/task-status-response-out.ts b/src/api/models/task-status-response-out.ts
deleted file mode 100644
index a4a759d..0000000
--- a/src/api/models/task-status-response-out.ts
+++ /dev/null
@@ -1,186 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Used in the Task Status API call when queried using a TSID (task status ID) Note: the api response is a little different from the internal representation b/c: - Include some old stuff: \"currency\": \"USD\", \"final_status\": 0, - status_code_1 and status_code_2 use the enum NAME, not the value - The status is the grpc's enum value, NOT the pydantic's - payout, user_payout, and user_payout_string are not Nullable - payout_format is null on list statuses
- *
- * @export
- * @interface TaskStatusResponseOut
- */
-export interface TaskStatusResponseOut {
-
- /**
- * A unique identifier for the session
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- tsid: any;
-
- /**
- * The BP ID of the associated respondent
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- productId: any;
-
- /**
- * A unique identifier for each user, which is set by the Supplier
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- productUserId: any;
-
- /**
- * When the session was started
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- started: any;
-
- /**
- * When the session was finished
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- finished?: any;
-
- /**
- * The outcome of a session. - 0 - UNKNOWN - 1 - ENTER (the user has not yet returned) - 2 - INCOMPLETE (the user failed) - 3 - COMPLETE (the user completed the task)
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- status?: any;
-
- /**
- * The amount paid to the supplier, in integer USD cents
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- payout?: any;
-
- /**
- * If a payout transformation is configured on this account, this is the amount the user should earn, in integer USD cents
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- userPayout?: any;
-
- /**
- * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- payoutFormat?: any;
-
- /**
- * If a payout transformation is configured on this account, this is the amount to display to the user
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- userPayoutString?: any;
-
- /**
- * Any extra url params used in the offerwall request will be passed back here
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- kwargs?: any;
-
- /**
- * __High level status code for outcome of the session.__ This should only be NULL if the Status is ABANDON or TIMEOUT Allowed values: - __BUYER_FAIL__: User terminated in buyer survey - __BUYER_QUALITY_FAIL__: User terminated in buyer survey for quality reasons - __PS_FAIL__: User failed in marketplace's prescreener - __PS_QUALITY__: User rejected by marketplace for quality reasons - __PS_BLOCKED__: User is explicitly blocked by the marketplace. Note: on some marketplaces, users can have multiple PS_QUALITY terminations and still complete surveys. - __PS_OVERQUOTA__: User rejected by marketplace for over quota - __PS_DUPLICATE__: User rejected by marketplace for duplicate - __GRS_FAIL__: The user failed within the GRS Platform - __GRS_QUALITY_FAIL__: The user failed within the GRS Platform for quality reasons - __GRS_ABANDON__: The user abandoned/timed out within the GRS Platform - __PS_ABANDON__: The user abandoned/timed out within the marketplace's pre-screen system. Note: On most marketplaces, we have no way of distinguishing between this and BUYER_ABANDON. BUYER_ABANDON is used as the default, unless we know it is PS_ABANDON. - __BUYER_ABANDON__: The user abandoned/timed out within the client survey - __UNKNOWN__: The status code is not documented - __COMPLETE__: The user completed the task successfully - __MARKETPLACE_FAIL__: Something was wrong upon the user redirecting from the marketplace, e.g. no postback received, or url hashing failures. - __SESSION_START_FAIL__: User failed before being sent into a marketplace - __SESSION_CONTINUE_FAIL__: User failed between attempts - __SESSION_START_QUALITY_FAIL__: User failed before being sent into a marketplace for \"security\" reasons - __SESSION_CONTINUE_QUALITY_FAIL__: User failed between attempts for \"security\" reasons
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- statusCode1?: any;
-
- /**
- * __Status Detail__ This should be set if the Session.status_code_1 is SESSION_XXX_FAIL Allowed values: - __ENTRY_URL_MODIFICATION__: Unable to parse either the bucket_id, request_id, or nudge_id from the url - __UNRECOGNIZED_IP__: The client's IP failed maxmind lookup, or we failed to store it for some reason - __USER_IS_ANONYMOUS__: User is using an anonymous IP - __USER_IS_BLOCKED__: User is blocked - __USER_IS_RATE_LIMITED__: User is rate limited - __UNRECOGNIZED_DEVICE__: The client's useragent was not categorized as desktop, mobile, or tablet - __OFFERWALL_EXPIRED__: The user clicked after 5 min - __INTERNAL_ERROR__: Something unexpected happened - __OFFERWALL_COUNTRY_MISMATCH__: The user requested the offerwall for a different country than their IP address indicates - __INVALID_BUCKET_ID__: The bucket id indicated in the url does not exist. This is likely due to the user clicking on a bucket for an offerwall that has already been refreshed. - __NO_TASKS_AVAILABLE__: Not necessarily the user's fault. We thought we had surveys, but due to for e.g. the user entering on a different device than we thought, there really are none. If we get a lot of these, then that might indicate something is wrong. - __ATTEMPT_IS_SUSPICIOUS__: The entrance attempt was flagged by GRLIQ as suspicious - __GRLIQ_MISSING__: No GRLIQ forensics post was received
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- statusCode2?: any;
-
- /**
- * An adjusted_status is set if a session is adjusted by the marketplace after the original return. A session can be adjusted multiple times. This is the most recent status. If a session was originally a complete, was adjusted to incomplete, then back to complete, the adjusted_status will be None, but the adjusted_timestamp will be set to the most recent change. Allowed values: - __ac__ *(ADJUSTED_TO_COMPLETE)*: Task was reconciled to complete - __af__ *(ADJUSTED_TO_FAIL)*: Task was reconciled to incomplete - __pa__ *(PAYOUT_ADJUSTMENT)*: The payout was changed. This applies to Sessions ONLY.
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- adjustedStatus?: any;
-
- /**
- * When the adjusted status was last set.
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- adjustedTimestamp?: any;
-
- /**
- * The new payout after adjustment.
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- adjustedPayout?: any;
-
- /**
- * The new user_payout after adjustment.
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- adjustedUserPayout?: any;
-
- /**
- * The new user_payout_string after adjustment.
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- adjustedUserPayoutString?: any;
-
- /**
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- currency?: any;
-
- /**
- * This is deprecated
- *
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- finalStatus?: any;
-
- /**
- * @type {any}
- * @memberof TaskStatusResponseOut
- */
- bpuid: any;
-}
diff --git a/src/api/models/tasks-status-response-out.ts b/src/api/models/tasks-status-response-out.ts
deleted file mode 100644
index 2ec1440..0000000
--- a/src/api/models/tasks-status-response-out.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface TasksStatusResponseOut
- */
-export interface TasksStatusResponseOut {
-
- /**
- * @type {any}
- * @memberof TasksStatusResponseOut
- */
- tasksStatus?: any;
-}
diff --git a/src/api/models/top-nbucket.ts b/src/api/models/top-nbucket.ts
deleted file mode 100644
index 51ca65f..0000000
--- a/src/api/models/top-nbucket.ts
+++ /dev/null
@@ -1,98 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { DurationSummary } from './duration-summary';
-import { PayoutSummary } from './payout-summary';
- /**
- *
- *
- * @export
- * @interface TopNBucket
- */
-export interface TopNBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof TopNBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof TopNBucket
- */
- uri: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the x-axis.
- *
- * @type {any}
- * @memberof TopNBucket
- */
- x?: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the y-axis.
- *
- * @type {any}
- * @memberof TopNBucket
- */
- y?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof TopNBucket
- */
- name?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof TopNBucket
- */
- description?: any;
-
- /**
- * @type {any}
- * @memberof TopNBucket
- */
- category?: any;
-
- /**
- * @type {DurationSummary}
- * @memberof TopNBucket
- */
- duration: DurationSummary;
-
- /**
- * @type {PayoutSummary}
- * @memberof TopNBucket
- */
- payout: PayoutSummary;
-
- /**
- * A proprietary score to determine the overall quality of the tasks that are within the bucket. Higher is better.
- *
- * @type {any}
- * @memberof TopNBucket
- */
- qualityScore: any;
-}
diff --git a/src/api/models/top-noffer-wall-response.ts b/src/api/models/top-noffer-wall-response.ts
deleted file mode 100644
index 24d6b10..0000000
--- a/src/api/models/top-noffer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { TopNOfferWall } from './top-noffer-wall';
- /**
- *
- *
- * @export
- * @interface TopNOfferWallResponse
- */
-export interface TopNOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof TopNOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {TopNOfferWall}
- * @memberof TopNOfferWallResponse
- */
- offerwall: TopNOfferWall;
-}
diff --git a/src/api/models/top-noffer-wall.ts b/src/api/models/top-noffer-wall.ts
deleted file mode 100644
index 7e4b6a4..0000000
--- a/src/api/models/top-noffer-wall.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * An offerwall with buckets that are clustered by the `split_by` argument using KMeans clustering. Offerwall code: `45b7228a7`
- *
- * @export
- * @interface TopNOfferWall
- */
-export interface TopNOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof TopNOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof TopNOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof TopNOfferWall
- */
- buckets?: any;
-
- /**
- * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
- *
- * @type {any}
- * @memberof TopNOfferWall
- */
- payoutFormat: any;
-}
diff --git a/src/api/models/top-nplus-block-offer-wall-response.ts b/src/api/models/top-nplus-block-offer-wall-response.ts
deleted file mode 100644
index 9dc64b9..0000000
--- a/src/api/models/top-nplus-block-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { TopNPlusBlockOfferWall } from './top-nplus-block-offer-wall';
- /**
- *
- *
- * @export
- * @interface TopNPlusBlockOfferWallResponse
- */
-export interface TopNPlusBlockOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof TopNPlusBlockOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {TopNPlusBlockOfferWall}
- * @memberof TopNPlusBlockOfferWallResponse
- */
- offerwall: TopNPlusBlockOfferWall;
-}
diff --git a/src/api/models/top-nplus-block-offer-wall.ts b/src/api/models/top-nplus-block-offer-wall.ts
deleted file mode 100644
index c6d2103..0000000
--- a/src/api/models/top-nplus-block-offer-wall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Same as the TopNOfferWall, but the buckets include contents and no buckets are returned if the user is blocked. Offerwall code: `d48cce47`
- *
- * @export
- * @interface TopNPlusBlockOfferWall
- */
-export interface TopNPlusBlockOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof TopNPlusBlockOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof TopNPlusBlockOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusBlockOfferWall
- */
- buckets?: any;
-}
diff --git a/src/api/models/top-nplus-block-recontact-offer-wall-response.ts b/src/api/models/top-nplus-block-recontact-offer-wall-response.ts
deleted file mode 100644
index 7ffb5ac..0000000
--- a/src/api/models/top-nplus-block-recontact-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { TopNPlusBlockRecontactOfferWall } from './top-nplus-block-recontact-offer-wall';
- /**
- *
- *
- * @export
- * @interface TopNPlusBlockRecontactOfferWallResponse
- */
-export interface TopNPlusBlockRecontactOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof TopNPlusBlockRecontactOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {TopNPlusBlockRecontactOfferWall}
- * @memberof TopNPlusBlockRecontactOfferWallResponse
- */
- offerwall: TopNPlusBlockRecontactOfferWall;
-}
diff --git a/src/api/models/top-nplus-block-recontact-offer-wall.ts b/src/api/models/top-nplus-block-recontact-offer-wall.ts
deleted file mode 100644
index 5ff2743..0000000
--- a/src/api/models/top-nplus-block-recontact-offer-wall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Same as the TopNOfferWall, but the buckets include contents, no buckets are returned if the user is blocked, and each bucket includes a `is_recontact` key. Offerwall code: `1e5f0af8`
- *
- * @export
- * @interface TopNPlusBlockRecontactOfferWall
- */
-export interface TopNPlusBlockRecontactOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof TopNPlusBlockRecontactOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof TopNPlusBlockRecontactOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusBlockRecontactOfferWall
- */
- buckets?: any;
-}
diff --git a/src/api/models/top-nplus-bucket.ts b/src/api/models/top-nplus-bucket.ts
deleted file mode 100644
index 2bfdb9e..0000000
--- a/src/api/models/top-nplus-bucket.ts
+++ /dev/null
@@ -1,110 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { DurationSummary } from './duration-summary';
-import { PayoutSummary } from './payout-summary';
- /**
- *
- *
- * @export
- * @interface TopNPlusBucket
- */
-export interface TopNPlusBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- uri: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the x-axis.
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- x?: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the y-axis.
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- y?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- name?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- description?: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusBucket
- */
- category?: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusBucket
- */
- contents: any;
-
- /**
- * @type {DurationSummary}
- * @memberof TopNPlusBucket
- */
- duration: DurationSummary;
-
- /**
- * @type {PayoutSummary}
- * @memberof TopNPlusBucket
- */
- payout: PayoutSummary;
-
- /**
- * @type {any}
- * @memberof TopNPlusBucket
- */
- qualityScore: any;
-
- /**
- * This will always be 'USD'
- *
- * @type {any}
- * @memberof TopNPlusBucket
- */
- currency?: any;
-}
diff --git a/src/api/models/top-nplus-offer-wall-response.ts b/src/api/models/top-nplus-offer-wall-response.ts
deleted file mode 100644
index 6fba32b..0000000
--- a/src/api/models/top-nplus-offer-wall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { TopNPlusOfferWall } from './top-nplus-offer-wall';
- /**
- *
- *
- * @export
- * @interface TopNPlusOfferWallResponse
- */
-export interface TopNPlusOfferWallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof TopNPlusOfferWallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {TopNPlusOfferWall}
- * @memberof TopNPlusOfferWallResponse
- */
- offerwall: TopNPlusOfferWall;
-}
diff --git a/src/api/models/top-nplus-offer-wall.ts b/src/api/models/top-nplus-offer-wall.ts
deleted file mode 100644
index f718dee..0000000
--- a/src/api/models/top-nplus-offer-wall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Same as the TopNOfferWall, but the buckets include contents. Offerwall code: `b145b803`
- *
- * @export
- * @interface TopNPlusOfferWall
- */
-export interface TopNPlusOfferWall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof TopNPlusOfferWall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof TopNPlusOfferWall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusOfferWall
- */
- buckets?: any;
-}
diff --git a/src/api/models/top-nplus-recontact-bucket.ts b/src/api/models/top-nplus-recontact-bucket.ts
deleted file mode 100644
index 9fcbab2..0000000
--- a/src/api/models/top-nplus-recontact-bucket.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { DurationSummary } from './duration-summary';
-import { PayoutSummary } from './payout-summary';
- /**
- *
- *
- * @export
- * @interface TopNPlusRecontactBucket
- */
-export interface TopNPlusRecontactBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- uri: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the x-axis.
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- x?: any;
-
- /**
- * For UI. Provides a dimensionality position for the bucket on the y-axis.
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- y?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- name?: any;
-
- /**
- * Currently unused. Will always return empty string
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- description?: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- category?: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- contents: any;
-
- /**
- * @type {DurationSummary}
- * @memberof TopNPlusRecontactBucket
- */
- duration: DurationSummary;
-
- /**
- * @type {PayoutSummary}
- * @memberof TopNPlusRecontactBucket
- */
- payout: PayoutSummary;
-
- /**
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- qualityScore: any;
-
- /**
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- isRecontact: any;
-
- /**
- * This will always be 'USD'
- *
- * @type {any}
- * @memberof TopNPlusRecontactBucket
- */
- currency?: any;
-}
diff --git a/src/api/models/upk-question-choice-out.ts b/src/api/models/upk-question-choice-out.ts
deleted file mode 100644
index 916ee38..0000000
--- a/src/api/models/upk-question-choice-out.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionChoiceOut
- */
-export interface UpkQuestionChoiceOut {
-
- /**
- * The unique identifier for a response to a qualification
- *
- * @type {any}
- * @memberof UpkQuestionChoiceOut
- */
- choiceId: any;
-
- /**
- * The response text shown to respondents
- *
- * @type {any}
- * @memberof UpkQuestionChoiceOut
- */
- choiceText: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionChoiceOut
- */
- order: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionChoiceOut
- */
- group?: any;
-
- /**
- * If answer is exclusive, it can be the only option selected
- *
- * @type {any}
- * @memberof UpkQuestionChoiceOut
- */
- exclusive?: any;
-}
diff --git a/src/api/models/upk-question-choice.ts b/src/api/models/upk-question-choice.ts
deleted file mode 100644
index 2c81e74..0000000
--- a/src/api/models/upk-question-choice.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionChoice
- */
-export interface UpkQuestionChoice {
-
- /**
- * The unique identifier for a response to a qualification
- *
- * @type {any}
- * @memberof UpkQuestionChoice
- */
- choiceId: any;
-
- /**
- * The response text shown to respondents
- *
- * @type {any}
- * @memberof UpkQuestionChoice
- */
- choiceText: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionChoice
- */
- order: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionChoice
- */
- group?: any;
-
- /**
- * If answer is exclusive, it can be the only option selected
- *
- * @type {any}
- * @memberof UpkQuestionChoice
- */
- exclusive?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionChoice
- */
- importance?: any;
-}
diff --git a/src/api/models/upk-question-configuration-mc.ts b/src/api/models/upk-question-configuration-mc.ts
deleted file mode 100644
index a94ef25..0000000
--- a/src/api/models/upk-question-configuration-mc.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionConfigurationMC
- */
-export interface UpkQuestionConfigurationMC {
-
- /**
- * @type {any}
- * @memberof UpkQuestionConfigurationMC
- */
- maxSelect?: any;
-}
diff --git a/src/api/models/upk-question-configuration-slider.ts b/src/api/models/upk-question-configuration-slider.ts
deleted file mode 100644
index e295217..0000000
--- a/src/api/models/upk-question-configuration-slider.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionConfigurationSLIDER
- */
-export interface UpkQuestionConfigurationSLIDER {
-
- /**
- * @type {any}
- * @memberof UpkQuestionConfigurationSLIDER
- */
- sliderMin?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionConfigurationSLIDER
- */
- sliderMax?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionConfigurationSLIDER
- */
- sliderStart?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionConfigurationSLIDER
- */
- sliderStep?: any;
-}
diff --git a/src/api/models/upk-question-configuration-te.ts b/src/api/models/upk-question-configuration-te.ts
deleted file mode 100644
index b66658e..0000000
--- a/src/api/models/upk-question-configuration-te.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionConfigurationTE
- */
-export interface UpkQuestionConfigurationTE {
-
- /**
- * Maximum str length of any input. Meant as an easy, nonregex based check.
- *
- * @type {any}
- * @memberof UpkQuestionConfigurationTE
- */
- maxLength?: any;
-
- /**
- * Minimum str length of any input. Meant as an easy, nonregex based check.
- *
- * @type {any}
- * @memberof UpkQuestionConfigurationTE
- */
- minLength?: any;
-}
diff --git a/src/api/models/upk-question-out.ts b/src/api/models/upk-question-out.ts
deleted file mode 100644
index cb73ea2..0000000
--- a/src/api/models/upk-question-out.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { UpkQuestionType } from './upk-question-type';
- /**
- *
- *
- * @export
- * @interface UpkQuestionOut
- */
-export interface UpkQuestionOut {
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- questionId?: any;
-
- /**
- * what marketplace question this question links to
- *
- * @type {any}
- * @memberof UpkQuestionOut
- */
- extQuestionId?: any;
-
- /**
- * @type {UpkQuestionType}
- * @memberof UpkQuestionOut
- */
- questionType: UpkQuestionType;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- countryIso: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- languageIso: any;
-
- /**
- * The text shown to respondents
- *
- * @type {any}
- * @memberof UpkQuestionOut
- */
- questionText: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- choices?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- selector?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- configuration?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- validation?: any;
-
- /**
- * The number of live Tasks that use this UPK Question
- *
- * @type {any}
- * @memberof UpkQuestionOut
- */
- taskCount?: any;
-
- /**
- * GRL's internal ranked score for the UPK Question
- *
- * @type {any}
- * @memberof UpkQuestionOut
- */
- taskScore?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionOut
- */
- p?: any;
-}
diff --git a/src/api/models/upk-question-response.ts b/src/api/models/upk-question-response.ts
deleted file mode 100644
index 03323ff..0000000
--- a/src/api/models/upk-question-response.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionResponse
- */
-export interface UpkQuestionResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof UpkQuestionResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof UpkQuestionResponse
- */
- msg?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestionResponse
- */
- questions: any;
-
- /**
- * For internal use
- *
- * @type {any}
- * @memberof UpkQuestionResponse
- */
- consentQuestions?: any;
-
- /**
- * For internal use
- *
- * @type {any}
- * @memberof UpkQuestionResponse
- */
- specialQuestions?: any;
-
- /**
- * The number of questions returned
- *
- * @type {any}
- * @memberof UpkQuestionResponse
- */
- count: any;
-}
diff --git a/src/api/models/upk-question-selector-hidden.ts b/src/api/models/upk-question-selector-hidden.ts
deleted file mode 100644
index 1da912a..0000000
--- a/src/api/models/upk-question-selector-hidden.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum UpkQuestionSelectorHIDDEN {
- HIDDEN = 'HIDDEN'
-}
-
diff --git a/src/api/models/upk-question-selector-mc.ts b/src/api/models/upk-question-selector-mc.ts
deleted file mode 100644
index 550388f..0000000
--- a/src/api/models/upk-question-selector-mc.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum UpkQuestionSelectorMC {
- SA = 'SA',
- MA = 'MA',
- DL = 'DL',
- SB = 'SB',
- MSB = 'MSB'
-}
-
diff --git a/src/api/models/upk-question-selector-slider.ts b/src/api/models/upk-question-selector-slider.ts
deleted file mode 100644
index f16dd7f..0000000
--- a/src/api/models/upk-question-selector-slider.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum UpkQuestionSelectorSLIDER {
- HSLIDER = 'HSLIDER',
- VSLIDER = 'VSLIDER'
-}
-
diff --git a/src/api/models/upk-question-selector-te.ts b/src/api/models/upk-question-selector-te.ts
deleted file mode 100644
index b986845..0000000
--- a/src/api/models/upk-question-selector-te.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum UpkQuestionSelectorTE {
- SL = 'SL',
- ML = 'ML',
- ETB = 'ETB'
-}
-
diff --git a/src/api/models/upk-question-type.ts b/src/api/models/upk-question-type.ts
deleted file mode 100644
index 7072355..0000000
--- a/src/api/models/upk-question-type.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- *
- * @export
- * @enum {string}
- */
-export enum UpkQuestionType {
- MC = 'MC',
- TE = 'TE',
- SLIDER = 'SLIDER',
- HIDDEN = 'HIDDEN'
-}
-
diff --git a/src/api/models/upk-question-validation.ts b/src/api/models/upk-question-validation.ts
deleted file mode 100644
index d8470fe..0000000
--- a/src/api/models/upk-question-validation.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UpkQuestionValidation
- */
-export interface UpkQuestionValidation {
-
- /**
- * @type {any}
- * @memberof UpkQuestionValidation
- */
- patterns: any;
-}
diff --git a/src/api/models/upk-question.ts b/src/api/models/upk-question.ts
deleted file mode 100644
index 045457e..0000000
--- a/src/api/models/upk-question.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { UpkQuestionType } from './upk-question-type';
- /**
- *
- *
- * @export
- * @interface UpkQuestion
- */
-export interface UpkQuestion {
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- questionId?: any;
-
- /**
- * what marketplace question this question links to
- *
- * @type {any}
- * @memberof UpkQuestion
- */
- extQuestionId?: any;
-
- /**
- * @type {UpkQuestionType}
- * @memberof UpkQuestion
- */
- questionType: UpkQuestionType;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- countryIso: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- languageIso: any;
-
- /**
- * The text shown to respondents
- *
- * @type {any}
- * @memberof UpkQuestion
- */
- questionText: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- choices?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- selector?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- configuration?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- validation?: any;
-
- /**
- * @type {any}
- * @memberof UpkQuestion
- */
- importance?: any;
-}
diff --git a/src/api/models/upkimportance.ts b/src/api/models/upkimportance.ts
deleted file mode 100644
index a6b3c15..0000000
--- a/src/api/models/upkimportance.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UPKImportance
- */
-export interface UPKImportance {
-
- /**
- * The number of live Tasks that use this UPK Question
- *
- * @type {any}
- * @memberof UPKImportance
- */
- taskCount?: any;
-
- /**
- * GRL's internal ranked score for the UPK Question
- *
- * @type {any}
- * @memberof UPKImportance
- */
- taskScore?: any;
-}
diff --git a/src/api/models/usdelivery-address.ts b/src/api/models/usdelivery-address.ts
deleted file mode 100644
index 2a3f557..0000000
--- a/src/api/models/usdelivery-address.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface USDeliveryAddress
- */
-export interface USDeliveryAddress {
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- nameOrAttn: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- company?: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- phoneNumber?: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- address: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- city: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- state: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- postalCode: any;
-
- /**
- * @type {any}
- * @memberof USDeliveryAddress
- */
- country?: any;
-}
diff --git a/src/api/models/user-info-response.ts b/src/api/models/user-info-response.ts
deleted file mode 100644
index 4b2af90..0000000
--- a/src/api/models/user-info-response.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { UserInfo } from './user-info';
- /**
- *
- *
- * @export
- * @interface UserInfoResponse
- */
-export interface UserInfoResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof UserInfoResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof UserInfoResponse
- */
- msg?: any;
-
- /**
- * @type {UserInfo}
- * @memberof UserInfoResponse
- */
- userProfile: UserInfo;
-}
diff --git a/src/api/models/user-info.ts b/src/api/models/user-info.ts
deleted file mode 100644
index 0e1c641..0000000
--- a/src/api/models/user-info.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UserInfo
- */
-export interface UserInfo {
-
- /**
- * @type {any}
- * @memberof UserInfo
- */
- userProfileKnowledge?: any;
-
- /**
- * @type {any}
- * @memberof UserInfo
- */
- marketplaceProfileKnowledge?: any;
-}
diff --git a/src/api/models/user-profile-knowledge-answer.ts b/src/api/models/user-profile-knowledge-answer.ts
deleted file mode 100644
index 06787f9..0000000
--- a/src/api/models/user-profile-knowledge-answer.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UserProfileKnowledgeAnswer
- */
-export interface UserProfileKnowledgeAnswer {
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledgeAnswer
- */
- id?: any;
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledgeAnswer
- */
- label?: any;
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledgeAnswer
- */
- translation?: any;
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledgeAnswer
- */
- value?: any;
-}
diff --git a/src/api/models/user-profile-knowledge.ts b/src/api/models/user-profile-knowledge.ts
deleted file mode 100644
index 30a182a..0000000
--- a/src/api/models/user-profile-knowledge.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UserProfileKnowledge
- */
-export interface UserProfileKnowledge {
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledge
- */
- propertyId: any;
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledge
- */
- propertyLabel: any;
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledge
- */
- translation: any;
-
- /**
- * @type {any}
- * @memberof UserProfileKnowledge
- */
- answer?: any;
-
- /**
- * When the User submitted this Profiling data
- *
- * @type {any}
- * @memberof UserProfileKnowledge
- */
- created: any;
-}
diff --git a/src/api/models/user-question-answer-in.ts b/src/api/models/user-question-answer-in.ts
deleted file mode 100644
index 74b75ef..0000000
--- a/src/api/models/user-question-answer-in.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Send the answers to one or more questions for a user. A question is uniquely specified by the question_id key. The answer is: the choice_id if the question_type is \"MC\" the actual entered text if the question_type is \"TE\" TODO: look up the question_type from the question_id to apply MC or TE specific validation on the answer(s)
- *
- * @export
- * @interface UserQuestionAnswerIn
- */
-export interface UserQuestionAnswerIn {
-
- /**
- * @type {any}
- * @memberof UserQuestionAnswerIn
- */
- questionId: any;
-
- /**
- * The user's answers to this question. Must pass the choice_id if the question is a Multiple Choice, or the actual text if the question is Text Entry
- *
- * @type {any}
- * @memberof UserQuestionAnswerIn
- */
- answer: any;
-}
diff --git a/src/api/models/user-transaction-history-response.ts b/src/api/models/user-transaction-history-response.ts
deleted file mode 100644
index 7664a71..0000000
--- a/src/api/models/user-transaction-history-response.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UserTransactionHistoryResponse
- */
-export interface UserTransactionHistoryResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof UserTransactionHistoryResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof UserTransactionHistoryResponse
- */
- msg?: any;
-
- /**
- * @type {any}
- * @memberof UserTransactionHistoryResponse
- */
- transactionHistory?: any;
-}
diff --git a/src/api/models/user-transaction-row.ts b/src/api/models/user-transaction-row.ts
deleted file mode 100644
index abfe579..0000000
--- a/src/api/models/user-transaction-row.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UserTransactionRow
- */
-export interface UserTransactionRow {
-
- /**
- * (USD cents) Positive is an increase in the user's wallet balance. For e.g.requesting a gift card would show as a negative amount.
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- amount: any;
-
- /**
- * The 'amount' with the payout_format applied. Can be displayed to the user.
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- amountString: any;
-
- /**
- * The product_user_id
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- bpuid: any;
-
- /**
- * This is the name of the cashout method.
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- description: any;
-
- /**
- * @type {any}
- * @memberof UserTransactionRow
- */
- id: any;
-
- /**
- * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- payoutFormat: any;
-
- /**
- * - `PENDING` = PENDING - `APPROVED` = APPROVED - `REJECTED` = REJECTED - `CANCELLED` = CANCELLED - `FAILED` = FAILED - `COMPLETE` = COMPLETE
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- status?: any;
-
- /**
- * @type {any}
- * @memberof UserTransactionRow
- */
- timestamp: any;
-
- /**
- * - `TASK_COMPLETE` = TASK_COMPLETE - `RECONCILE` = RECONCILE - `CASHOUT` = CASHOUT - `BONUS` = BONUS
- *
- * @type {any}
- * @memberof UserTransactionRow
- */
- type: any;
-}
diff --git a/src/api/models/user-wallet-balance-response.ts b/src/api/models/user-wallet-balance-response.ts
deleted file mode 100644
index f168bcd..0000000
--- a/src/api/models/user-wallet-balance-response.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { UserWalletBalance } from './user-wallet-balance';
- /**
- *
- *
- * @export
- * @interface UserWalletBalanceResponse
- */
-export interface UserWalletBalanceResponse {
-
- /**
- * The status of the API response.
- *
- * @type {any}
- * @memberof UserWalletBalanceResponse
- */
- status: any;
-
- /**
- * An optional message, if the status is error.
- *
- * @type {any}
- * @memberof UserWalletBalanceResponse
- */
- msg?: any;
-
- /**
- * @type {UserWalletBalance}
- * @memberof UserWalletBalanceResponse
- */
- wallet: UserWalletBalance;
-}
diff --git a/src/api/models/user-wallet-balance.ts b/src/api/models/user-wallet-balance.ts
deleted file mode 100644
index 92f55ff..0000000
--- a/src/api/models/user-wallet-balance.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface UserWalletBalance
- */
-export interface UserWalletBalance {
-
- /**
- * (USD cents) The amount in the user's wallet.
- *
- * @type {any}
- * @memberof UserWalletBalance
- */
- amount: any;
-
- /**
- * (USD cents) The amount in the user's wallet this is currently redeemable.
- *
- * @type {any}
- * @memberof UserWalletBalance
- */
- redeemableAmount: any;
-
- /**
- * The format describing the str representation of a payout. Typically, this would be displayed to a user. The payout_format is similar to python format string with a subset of functionality supported. Only float with a precision are supported along with an optional comma for a thousands separator. In addition, a mathematical operator can be applied, such as dividing by 100. Examples are shown assuming payout = 100 (one dollar). - \"{payout*10:,.0f} Points\" -> \"1,000 Points\" - \"${payout/100:.2f}\" -> \"$1.00\"
- *
- * @type {any}
- * @memberof UserWalletBalance
- */
- payoutFormat: any;
-
- /**
- * The 'amount' with the payout_format applied. Can be displayed to the user.
- *
- * @type {any}
- * @memberof UserWalletBalance
- */
- amountString: any;
-
- /**
- * The 'redeemable_amount' with the payout_format applied. Can be displayed to the user.
- *
- * @type {any}
- * @memberof UserWalletBalance
- */
- redeemableAmountString: any;
-}
diff --git a/src/api/models/user-wallet-config.ts b/src/api/models/user-wallet-config.ts
deleted file mode 100644
index 8e26ac6..0000000
--- a/src/api/models/user-wallet-config.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Stores configuration for the user wallet handling
- *
- * @export
- * @interface UserWalletConfig
- */
-export interface UserWalletConfig {
-
- /**
- * If enabled, the users' wallets are managed.
- *
- * @type {any}
- * @memberof UserWalletConfig
- */
- enabled?: any;
-
- /**
- * Uses Amazon Mechanical Turk
- *
- * @type {any}
- * @memberof UserWalletConfig
- */
- amt?: any;
-
- /**
- * @type {any}
- * @memberof UserWalletConfig
- */
- supportedPayoutTypes?: any;
-
- /**
- * Minimum cashout amount. If enabled is True and no min_cashout is set, will default to $0.01.
- *
- * @type {any}
- * @memberof UserWalletConfig
- */
- minCashout?: any;
-}
diff --git a/src/api/models/user-wallet-transaction-type.ts b/src/api/models/user-wallet-transaction-type.ts
deleted file mode 100644
index 256b328..0000000
--- a/src/api/models/user-wallet-transaction-type.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-/**
- * The type of transaction
- * @export
- * @enum {string}
- */
-export enum UserWalletTransactionType {
- TASKCOMPLETE = 'TASK_COMPLETE',
- RECONCILE = 'RECONCILE',
- CASHOUT = 'CASHOUT',
- BONUS = 'BONUS'
-}
-
diff --git a/src/api/models/validation-error.ts b/src/api/models/validation-error.ts
deleted file mode 100644
index 156dbfd..0000000
--- a/src/api/models/validation-error.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface ValidationError
- */
-export interface ValidationError {
-
- /**
- * @type {any}
- * @memberof ValidationError
- */
- loc: any;
-
- /**
- * @type {any}
- * @memberof ValidationError
- */
- msg: any;
-
- /**
- * @type {any}
- * @memberof ValidationError
- */
- type: any;
-}
diff --git a/src/api/models/wxetofferwall-bucket.ts b/src/api/models/wxetofferwall-bucket.ts
deleted file mode 100644
index 0358753..0000000
--- a/src/api/models/wxetofferwall-bucket.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- *
- *
- * @export
- * @interface WXETOfferwallBucket
- */
-export interface WXETOfferwallBucket {
-
- /**
- * Unique identifier this particular bucket
- *
- * @type {any}
- * @memberof WXETOfferwallBucket
- */
- id: any;
-
- /**
- * The URL to send a respondent into. Must not edit this URL in any way
- *
- * @type {any}
- * @memberof WXETOfferwallBucket
- */
- uri: any;
-
- /**
- * The bucket's expected duration, in seconds
- *
- * @type {any}
- * @memberof WXETOfferwallBucket
- */
- duration: any;
-
- /**
- * The bucket's min payout, in usd cents
- *
- * @type {any}
- * @memberof WXETOfferwallBucket
- */
- minPayout: any;
-}
diff --git a/src/api/models/wxetofferwall-response.ts b/src/api/models/wxetofferwall-response.ts
deleted file mode 100644
index e0d9bf8..0000000
--- a/src/api/models/wxetofferwall-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-import { OfferWallInfo } from './offer-wall-info';
-import { WXETOfferwall } from './wxetofferwall';
- /**
- *
- *
- * @export
- * @interface WXETOfferwallResponse
- */
-export interface WXETOfferwallResponse {
-
- /**
- * @type {OfferWallInfo}
- * @memberof WXETOfferwallResponse
- */
- info: OfferWallInfo;
-
- /**
- * @type {WXETOfferwall}
- * @memberof WXETOfferwallResponse
- */
- offerwall: WXETOfferwall;
-}
diff --git a/src/api/models/wxetofferwall.ts b/src/api/models/wxetofferwall.ts
deleted file mode 100644
index 086e1ab..0000000
--- a/src/api/models/wxetofferwall.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * General Research Full Service Brokerage API
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * OpenAPI spec version: 1.1.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
- /**
- * Returns buckets from WXET as single tasks Offerwall code: `55a4e1a9`
- *
- * @export
- * @interface WXETOfferwall
- */
-export interface WXETOfferwall {
-
- /**
- * Unique identifier to reference a generated offerwall
- *
- * @type {any}
- * @memberof WXETOfferwall
- */
- id: any;
-
- /**
- * Total opportunities available for specific bpuid respondent and parameters. This value changes frequently and can be used to determine if a respondent has potential tasks available, regardless of the offerwall type being requested. If the value is 0, no buckets will be generated.
- *
- * @type {any}
- * @memberof WXETOfferwall
- */
- availabilityCount: any;
-
- /**
- * @type {any}
- * @memberof WXETOfferwall
- */
- buckets?: any;
-}
diff --git a/src/api/package.json b/src/api/package.json
index fc2b59d..709ee9b 100644
--- a/src/api/package.json
+++ b/src/api/package.json
@@ -18,7 +18,8 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
- "axios": "^0.21.1"
+ "@openapitools/openapi-generator-cli": "^2.20.2",
+ "axios": "^0.21.4"
},
"devDependencies": {
"@types/node": "^12.11.5",