@cotofe/service-of-usercenter
Version:
OpenAPI client for @cotofe/service-of-usercenter
188 lines (187 loc) • 7.79 kB
JavaScript
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
* Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserCenterCommunitySalesApi = void 0;
const runtime = require("../runtime");
/**
*
*/
class UserCenterCommunitySalesApi extends runtime.BaseAPI {
/**
* 如果返回ture,说明可以进入contribution这个状态 如果返回false,说明上面流程还没走完
* confirmParticipation
*/
apiV1ClientCommunitySalesConfirmParticipationPostRaw(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters.authorization =
yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication
}
const response = yield this.request({
path: `/api/v1/client/community/sales/confirmParticipation`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
* 如果返回ture,说明可以进入contribution这个状态 如果返回false,说明上面流程还没走完
* confirmParticipation
*/
apiV1ClientCommunitySalesConfirmParticipationPost(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.apiV1ClientCommunitySalesConfirmParticipationPostRaw(initOverrides);
return yield response.value();
});
}
/**
*
* getContribution
*/
apiV1ClientCommunitySalesGetContributionGetRaw(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters.authorization =
yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication
}
const response = yield this.request({
path: `/api/v1/client/community/sales/getContribution`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
*
* getContribution
*/
apiV1ClientCommunitySalesGetContributionGet(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.apiV1ClientCommunitySalesGetContributionGetRaw(initOverrides);
return yield response.value();
});
}
/**
* enum(\'PARTICIPATION\',\'REVIEW\',\'CONTRIBUTION\',\'SETTLEMENT\',\'REFUND\',\'CLAIM\',\'END\')
* getUserProcess
*/
apiV1ClientCommunitySalesGetUserProcessGetRaw(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters.authorization =
yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication
}
const response = yield this.request({
path: `/api/v1/client/community/sales/getUserProcess`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
* enum(\'PARTICIPATION\',\'REVIEW\',\'CONTRIBUTION\',\'SETTLEMENT\',\'REFUND\',\'CLAIM\',\'END\')
* getUserProcess
*/
apiV1ClientCommunitySalesGetUserProcessGet(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.apiV1ClientCommunitySalesGetUserProcessGetRaw(initOverrides);
return yield response.value();
});
}
/**
*
* proof
*/
apiV1ClientCommunitySalesProofPostRaw(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters.authorization =
yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication
}
const response = yield this.request({
path: `/api/v1/client/community/sales/proof`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
*
* proof
*/
apiV1ClientCommunitySalesProofPost(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.apiV1ClientCommunitySalesProofPostRaw(initOverrides);
return yield response.value();
});
}
/**
* 查询的对应的是discord,x,telegram的三个任务,里面有基础信息
* getTaskList
*/
apiV1ClientPointsGetTaskListGetRaw(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters.authorization =
yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication
}
const response = yield this.request({
path: `/api/v1/client/points/getTaskList`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
* 查询的对应的是discord,x,telegram的三个任务,里面有基础信息
* getTaskList
*/
apiV1ClientPointsGetTaskListGet(initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.apiV1ClientPointsGetTaskListGetRaw(initOverrides);
return yield response.value();
});
}
}
exports.UserCenterCommunitySalesApi = UserCenterCommunitySalesApi;