"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeployFunctionCallbackRequest = exports.DeployFunctionCallbackHeaders = exports.DeleteSequenceResponse = exports.DeleteSequenceRequest = exports.DeleteSequenceHeaders = exports.DeleteInstanceResponse = exports.DeleteInstanceRequest = exports.DeleteInstanceHeaders = exports.DeleteFormDataResponse = exports.DeleteFormDataRequest = exports.DeleteFormDataHeaders = exports.CreateOrUpdateFormDataResponse = exports.CreateOrUpdateFormDataResponseBody = exports.CreateOrUpdateFormDataRequest = exports.CreateOrUpdateFormDataHeaders = exports.CheckCloudAccountStatusResponse = exports.CheckCloudAccountStatusResponseBody = exports.CheckCloudAccountStatusRequest = exports.CheckCloudAccountStatusHeaders = exports.BuyFreshOrderResponse = exports.BuyFreshOrderResponseBody = exports.BuyFreshOrderRequest = exports.BuyFreshOrderHeaders = exports.BuyAuthorizationOrderResponse = exports.BuyAuthorizationOrderResponseBody = exports.BuyAuthorizationOrderRequest = exports.BuyAuthorizationOrderHeaders = exports.BatchUpdateFormDataByInstanceMapResponse = exports.BatchUpdateFormDataByInstanceMapResponseBody = exports.BatchUpdateFormDataByInstanceMapRequest = exports.BatchUpdateFormDataByInstanceMapHeaders = exports.BatchUpdateFormDataByInstanceIdResponse = exports.BatchUpdateFormDataByInstanceIdResponseBody = exports.BatchUpdateFormDataByInstanceIdRequest = exports.BatchUpdateFormDataByInstanceIdHeaders = exports.BatchSaveFormDataResponse = exports.BatchSaveFormDataResponseBody = exports.BatchSaveFormDataRequest = exports.BatchSaveFormDataHeaders = exports.BatchRemovalByFormInstanceIdListResponse = exports.BatchRemovalByFormInstanceIdListRequest = exports.BatchRemovalByFormInstanceIdListHeaders = exports.BatchGetFormDataByIdListResponse = exports.BatchGetFormDataByIdListResponseBody = exports.BatchGetFormDataByIdListRequest = exports.BatchGetFormDataByIdListHeaders = exports.AppLoginCodeGenResponse = exports.AppLoginCodeGenResponseBody = exports.AppLoginCodeGenRequest = exports.AppLoginCodeGenHeaders = void 0;
exports.GetCorpLevelByAccountIdRequest = exports.GetCorpLevelByAccountIdHeaders = exports.GetCorpAccomplishmentTasksResponse = exports.GetCorpAccomplishmentTasksResponseBody = exports.GetCorpAccomplishmentTasksRequest = exports.GetCorpAccomplishmentTasksHeaders = exports.GetAutoFlowLogDetailResponse = exports.GetAutoFlowLogDetailResponseBody = exports.GetAutoFlowLogDetailRequest = exports.GetAutoFlowLogDetailHeaders = exports.GetApplicationAuthorizationServicePlatformResourceResponse = exports.GetApplicationAuthorizationServicePlatformResourceResponseBody = exports.GetApplicationAuthorizationServicePlatformResourceRequest = exports.GetApplicationAuthorizationServicePlatformResourceHeaders = exports.GetAllAuthCubesResponse = exports.GetAllAuthCubesResponseBody = exports.GetAllAuthCubesRequest = exports.GetAllAuthCubesHeaders = exports.GetActivityListResponse = exports.GetActivityListResponseBody = exports.GetActivityListRequest = exports.GetActivityListHeaders = exports.GetActivityButtonListResponse = exports.GetActivityButtonListResponseBody = exports.GetActivityButtonListRequest = exports.GetActivityButtonListHeaders = exports.GetActivationCodeByCallerUnionIdResponse = exports.GetActivationCodeByCallerUnionIdResponseBody = exports.GetActivationCodeByCallerUnionIdRequest = exports.GetActivationCodeByCallerUnionIdHeaders = exports.ExpireCommodityResponse = exports.ExpireCommodityResponseBody = exports.ExpireCommodityRequest = exports.ExpireCommodityHeaders = exports.ExecuteTaskResponse = exports.ExecuteTaskRequest = exports.ExecuteTaskHeaders = exports.ExecutePlatformTaskResponse = exports.ExecutePlatformTaskRequest = exports.ExecutePlatformTaskHeaders = exports.ExecuteCustomApiResponse = exports.ExecuteCustomApiResponseBody = exports.ExecuteCustomApiRequest = exports.ExecuteCustomApiHeaders = exports.ExecuteBatchTaskResponse = exports.ExecuteBatchTaskResponseBody = exports.ExecuteBatchTaskRequest = exports.ExecuteBatchTaskHeaders = exports.DeployFunctionCallbackResponse = exports.DeployFunctionCallbackResponseBody = void 0;
exports.GetNotifyMeResponse = exports.GetNotifyMeResponseBody = exports.GetNotifyMeRequest = exports.GetNotifyMeHeaders = exports.GetMeCorpSubmissionResponse = exports.GetMeCorpSubmissionResponseBody = exports.GetMeCorpSubmissionRequest = exports.GetMeCorpSubmissionHeaders = exports.GetInstancesByIdListResponse = exports.GetInstancesByIdListResponseBody = exports.GetInstancesByIdListRequest = exports.GetInstancesByIdListHeaders = exports.GetInstancesResponse = exports.GetInstancesResponseBody = exports.GetInstancesRequest = exports.GetInstancesHeaders = exports.GetInstanceIdListResponse = exports.GetInstanceIdListResponseBody = exports.GetInstanceIdListRequest = exports.GetInstanceIdListHeaders = exports.GetInstanceByIdResponse = exports.GetInstanceByIdResponseBody = exports.GetInstanceByIdRequest = exports.GetInstanceByIdHeaders = exports.GetFormListInAppResponse = exports.GetFormListInAppResponseBody = exports.GetFormListInAppRequest = exports.GetFormListInAppHeaders = exports.GetFormDataByIDResponse = exports.GetFormDataByIDResponseBody = exports.GetFormDataByIDRequest = exports.GetFormDataByIDHeaders = exports.GetFormComponentDefinitionListResponse = exports.GetFormComponentDefinitionListResponseBody = exports.GetFormComponentDefinitionListRequest = exports.GetFormComponentDefinitionListHeaders = exports.GetFieldDefByUuidResponse = exports.GetFieldDefByUuidResponseBody = exports.GetFieldDefByUuidRequest = exports.GetFieldDefByUuidHeaders = exports.GetDbConfigResponse = exports.GetDbConfigResponseBody = exports.GetDbConfigRequest = exports.GetDbConfigHeaders = exports.GetCorpTasksResponse = exports.GetCorpTasksResponseBody = exports.GetCorpTasksRequest = exports.GetCorpTasksHeaders = exports.GetCorpLevelByAccountIdResponse = exports.GetCorpLevelByAccountIdResponseBody = void 0;
exports.GetTaskCopiesRequest = exports.GetTaskCopiesHeaders = exports.GetSimpleCubeModelListResponse = exports.GetSimpleCubeModelListResponseBody = exports.GetSimpleCubeModelListRequest = exports.GetSimpleCubeModelListHeaders = exports.GetSaleUserInfoByUserIdResponse = exports.GetSaleUserInfoByUserIdResponseBody = exports.GetSaleUserInfoByUserIdRequest = exports.GetSaleUserInfoByUserIdHeaders = exports.GetRunningTasksResponse = exports.GetRunningTasksResponseBody = exports.GetRunningTasksRequest = exports.GetRunningTasksHeaders = exports.GetRunningTaskListResponse = exports.GetRunningTaskListResponseBody = exports.GetRunningTaskListRequest = exports.GetRunningTaskListHeaders = exports.GetProcessDesignByCodeResponse = exports.GetProcessDesignByCodeResponseBody = exports.GetProcessDesignByCodeRequest = exports.GetProcessDesignByCodeHeaders = exports.GetProcessDesignResponse = exports.GetProcessDesignResponseBody = exports.GetProcessDesignRequest = exports.GetProcessDesignHeaders = exports.GetProcessDefinitionResponse = exports.GetProcessDefinitionResponseBody = exports.GetProcessDefinitionRequest = exports.GetProcessDefinitionHeaders = exports.GetPrintDictionaryResponse = exports.GetPrintDictionaryResponseBody = exports.GetPrintDictionaryRequest = exports.GetPrintDictionaryHeaders = exports.GetPrintAppInfoResponse = exports.GetPrintAppInfoResponseBody = exports.GetPrintAppInfoRequest = exports.GetPrintAppInfoHeaders = exports.GetPlatformResourceResponse = exports.GetPlatformResourceResponseBody = exports.GetPlatformResourceRequest = exports.GetPlatformResourceHeaders = exports.GetOperationRecordsResponse = exports.GetOperationRecordsResponseBody = exports.GetOperationRecordsRequest = exports.GetOperationRecordsHeaders = exports.GetOpenUrlResponse = exports.GetOpenUrlResponseBody = exports.GetOpenUrlRequest = exports.GetOpenUrlHeaders = void 0;
exports.NotifyAuthorizationResultResponse = exports.NotifyAuthorizationResultResponseBody = exports.NotifyAuthorizationResultRequest = exports.NotifyAuthorizationResultHeaders = exports.LoginCodeGenResponse = exports.LoginCodeGenResponseBody = exports.LoginCodeGenRequest = exports.LoginCodeGenHeaders = exports.ListTableDataByFormInstanceIdTableIdResponse = exports.ListTableDataByFormInstanceIdTableIdResponseBody = exports.ListTableDataByFormInstanceIdTableIdRequest = exports.ListTableDataByFormInstanceIdTableIdHeaders = exports.ListOperationLogsResponse = exports.ListOperationLogsResponseBody = exports.ListOperationLogsRequest = exports.ListOperationLogsHeaders = exports.ListNavigationByFormTypeResponse = exports.ListNavigationByFormTypeResponseBody = exports.ListNavigationByFormTypeRequest = exports.ListNavigationByFormTypeHeaders = exports.ListFormRemarksResponse = exports.ListFormRemarksResponseBody = exports.ListFormRemarksRequest = exports.ListFormRemarksHeaders = exports.ListConnectorInformationResponse = exports.ListConnectorInformationResponseBody = exports.ListConnectorInformationRequest = exports.ListConnectorInformationHeaders = exports.ListCommodityResponse = exports.ListCommodityResponseBody = exports.ListCommodityRequest = exports.ListCommodityHeaders = exports.ListApplicationInformationResponse = exports.ListApplicationInformationResponseBody = exports.ListApplicationInformationRequest = exports.ListApplicationInformationHeaders = exports.ListApplicationAuthorizationServiceConnectorInformationResponse = exports.ListApplicationAuthorizationServiceConnectorInformationResponseBody = exports.ListApplicationAuthorizationServiceConnectorInformationRequest = exports.ListApplicationAuthorizationServiceConnectorInformationHeaders = exports.ListApplicationAuthorizationServiceApplicationInformationResponse = exports.ListApplicationAuthorizationServiceApplicationInformationResponseBody = exports.ListApplicationAuthorizationServiceApplicationInformationRequest = exports.ListApplicationAuthorizationServiceApplicationInformationHeaders = exports.ListApplicationResponse = exports.ListApplicationResponseBody = exports.ListApplicationRequest = exports.ListApplicationHeaders = exports.GetTaskCopiesResponse = exports.GetTaskCopiesResponseBody = void 0;
exports.SaveFormDataResponse = exports.SaveFormDataResponseBody = exports.SaveFormDataRequest = exports.SaveFormDataHeaders = exports.RenewTenantOrderResponse = exports.RenewTenantOrderResponseBody = exports.RenewTenantOrderRequest = exports.RenewTenantOrderHeaders = exports.RenewApplicationAuthorizationServiceOrderResponse = exports.RenewApplicationAuthorizationServiceOrderResponseBody = exports.RenewApplicationAuthorizationServiceOrderRequest = exports.RenewApplicationAuthorizationServiceOrderHeaders = exports.RenderBatchCallbackResponse = exports.RenderBatchCallbackRequest = exports.RenderBatchCallbackHeaders = exports.RemoveTenantResourceResponse = exports.RemoveTenantResourceResponseBody = exports.RemoveTenantResourceRequest = exports.RemoveTenantResourceHeaders = exports.ReleaseCommodityResponse = exports.ReleaseCommodityResponseBody = exports.ReleaseCommodityRequest = exports.ReleaseCommodityHeaders = exports.RegisterAccountsResponse = exports.RegisterAccountsResponseBody = exports.RegisterAccountsRequest = exports.RegisterAccountsHeaders = exports.RefundCommodityResponse = exports.RefundCommodityResponseBody = exports.RefundCommodityRequest = exports.RefundCommodityHeaders = exports.RedirectTaskResponse = exports.RedirectTaskRequest = exports.RedirectTaskHeaders = exports.QueryServiceRecordResponse = exports.QueryServiceRecordResponseBody = exports.QueryServiceRecordRequest = exports.QueryServiceRecordHeaders = exports.PreviewPublishedProcessResponse = exports.PreviewPublishedProcessResponseBody = exports.PreviewPublishedProcessRequest = exports.PreviewPublishedProcessHeaders = exports.PageFormBaseInfosResponse = exports.PageFormBaseInfosResponseBody = exports.PageFormBaseInfosRequest = exports.PageFormBaseInfosHeaders = exports.PageAutoFlowLogResponse = exports.PageAutoFlowLogResponseBody = exports.PageAutoFlowLogRequest = exports.PageAutoFlowLogHeaders = void 0;
exports.UpdateCloudAccountInformationResponseBody = exports.UpdateCloudAccountInformationRequest = exports.UpdateCloudAccountInformationHeaders = exports.TerminateInstanceResponse = exports.TerminateInstanceRequest = exports.TerminateInstanceHeaders = exports.TerminateCloudAuthorizationResponse = exports.TerminateCloudAuthorizationResponseBody = exports.TerminateCloudAuthorizationRequest = exports.TerminateCloudAuthorizationHeaders = exports.StartInstanceResponse = exports.StartInstanceResponseBody = exports.StartInstanceRequest = exports.StartInstanceHeaders = exports.SearchFormDatasResponse = exports.SearchFormDatasResponseBody = exports.SearchFormDatasRequest = exports.SearchFormDatasHeaders = exports.SearchFormDataSecondGenerationNoTableFieldResponse = exports.SearchFormDataSecondGenerationNoTableFieldResponseBody = exports.SearchFormDataSecondGenerationNoTableFieldRequest = exports.SearchFormDataSecondGenerationNoTableFieldHeaders = exports.SearchFormDataSecondGenerationResponse = exports.SearchFormDataSecondGenerationResponseBody = exports.SearchFormDataSecondGenerationRequest = exports.SearchFormDataSecondGenerationHeaders = exports.SearchFormDataRemovalTableDataResponse = exports.SearchFormDataRemovalTableDataResponseBody = exports.SearchFormDataRemovalTableDataRequest = exports.SearchFormDataRemovalTableDataHeaders = exports.SearchFormDataIdListResponse = exports.SearchFormDataIdListResponseBody = exports.SearchFormDataIdListRequest = exports.SearchFormDataIdListHeaders = exports.SearchEmployeeFieldValuesResponse = exports.SearchEmployeeFieldValuesResponseBody = exports.SearchEmployeeFieldValuesRequest = exports.SearchEmployeeFieldValuesHeaders = exports.SearchActivationCodeResponse = exports.SearchActivationCodeResponseBody = exports.SearchActivationCodeRequest = exports.SearchActivationCodeHeaders = exports.SavePrintTplDetailInfoResponse = exports.SavePrintTplDetailInfoResponseBody = exports.SavePrintTplDetailInfoRequest = exports.SavePrintTplDetailInfoHeaders = exports.SaveFormRemarkResponse = exports.SaveFormRemarkResponseBody = exports.SaveFormRemarkRequest = exports.SaveFormRemarkHeaders = void 0;
exports.GetCorpAccomplishmentTasksResponseBodyData = exports.GetAutoFlowLogDetailResponseBodyData = exports.GetAllAuthCubesResponseBodyResult = exports.GetAllAuthCubesResponseBodyResultUserInformation = exports.GetAllAuthCubesResponseBodyResultCubeDataRanges = exports.GetActivityListResponseBodyResult = exports.GetActivityButtonListResponseBodyResult = exports.BatchGetFormDataByIdListResponseBodyResult = exports.BatchGetFormDataByIdListResponseBodyResultOriginator = exports.BatchGetFormDataByIdListResponseBodyResultOriginatorName = exports.BatchGetFormDataByIdListResponseBodyResultModifyUser = exports.BatchGetFormDataByIdListResponseBodyResultModifyUserName = exports.ValidateOrderUpgradeResponse = exports.ValidateOrderUpgradeResponseBody = exports.ValidateOrderUpgradeRequest = exports.ValidateOrderUpgradeHeaders = exports.ValidateOrderUpdateResponse = exports.ValidateOrderUpdateResponseBody = exports.ValidateOrderUpdateRequest = exports.ValidateOrderUpdateHeaders = exports.ValidateOrderBuyResponse = exports.ValidateOrderBuyResponseBody = exports.ValidateOrderBuyRequest = exports.ValidateOrderBuyHeaders = exports.ValidateApplicationServiceOrderUpgradeResponse = exports.ValidateApplicationServiceOrderUpgradeResponseBody = exports.ValidateApplicationServiceOrderUpgradeRequest = exports.ValidateApplicationServiceOrderUpgradeHeaders = exports.ValidateApplicationAuthorizationServiceOrderResponse = exports.ValidateApplicationAuthorizationServiceOrderResponseBody = exports.ValidateApplicationAuthorizationServiceOrderRequest = exports.ValidateApplicationAuthorizationServiceOrderHeaders = exports.ValidateApplicationAuthorizationOrderResponse = exports.ValidateApplicationAuthorizationOrderResponseBody = exports.ValidateApplicationAuthorizationOrderRequest = exports.ValidateApplicationAuthorizationOrderHeaders = exports.UpgradeTenantInformationResponse = exports.UpgradeTenantInformationResponseBody = exports.UpgradeTenantInformationRequest = exports.UpgradeTenantInformationHeaders = exports.UpdateStatusResponse = exports.UpdateStatusRequest = exports.UpdateStatusHeaders = exports.UpdateInstanceResponse = exports.UpdateInstanceRequest = exports.UpdateInstanceHeaders = exports.UpdateFormDataResponse = exports.UpdateFormDataRequest = exports.UpdateFormDataHeaders = exports.UpdateCloudAccountInformationResponse = void 0;
exports.GetProcessDesignByCodeResponseBodyFlowConfigSidInstDetail = exports.GetProcessDesignByCodeResponseBodyApprovalSummary = exports.GetProcessDesignByCodeResponseBodyApprovalSummaryTitle = exports.GetProcessDesignResponseBodyProps = exports.GetProcessDesignResponseBodyNodes = exports.GetProcessDesignResponseBodyNodesName = exports.GetProcessDesignResponseBodyFormulaRules = exports.GetProcessDesignResponseBodyFormulaRulesRule = exports.GetProcessDesignResponseBodyFormulaRulesName = exports.GetProcessDesignResponseBodyFlowConfig = exports.GetProcessDesignResponseBodyFlowConfigSidInstDetail = exports.GetProcessDesignResponseBodyApprovalSummary = exports.GetProcessDesignResponseBodyApprovalSummaryTitle = exports.GetProcessDefinitionResponseBodyTasks = exports.GetProcessDefinitionResponseBodyTasksActivity = exports.GetProcessDefinitionResponseBodyOwners = exports.GetProcessDefinitionResponseBodyOwnersMasterDataDepartments = exports.GetProcessDefinitionResponseBodyOriginator = exports.GetProcessDefinitionResponseBodyOriginatorMasterDataDepartments = exports.GetPrintAppInfoResponseBodyResult = exports.GetPrintAppInfoResponseBodyResultFormInfoList = exports.GetOperationRecordsResponseBodyResult = exports.GetOperationRecordsResponseBodyResultDomainList = exports.GetOperationRecordsResponseBodyResultDomainListOperatorAgentIdList = exports.GetNotifyMeResponseBodyData = exports.GetMeCorpSubmissionResponseBodyData = exports.GetMeCorpSubmissionResponseBodyDataCurrentActivityInstances = exports.GetMeCorpSubmissionResponseBodyDataActioner = exports.GetInstancesByIdListResponseBodyResult = exports.GetInstancesByIdListResponseBodyResultOriginator = exports.GetInstancesByIdListResponseBodyResultOriginatorName = exports.GetInstancesByIdListResponseBodyResultActionExecutor = exports.GetInstancesByIdListResponseBodyResultActionExecutorName = exports.GetInstancesResponseBodyData = exports.GetInstancesResponseBodyDataOriginator = exports.GetInstancesResponseBodyDataOriginatorName = exports.GetInstancesResponseBodyDataActionExecutor = exports.GetInstancesResponseBodyDataActionExecutorName = exports.GetInstanceByIdResponseBodyOriginator = exports.GetInstanceByIdResponseBodyOriginatorName = exports.GetInstanceByIdResponseBodyActionExecutor = exports.GetInstanceByIdResponseBodyActionExecutorName = exports.GetFormListInAppResponseBodyResult = exports.GetFormListInAppResponseBodyResultData = exports.GetFormListInAppResponseBodyResultDataTitle = exports.GetFormDataByIDResponseBodyOriginator = exports.GetFormDataByIDResponseBodyOriginatorName = exports.GetFormComponentDefinitionListResponseBodyResult = exports.GetFieldDefByUuidResponseBodyResult = exports.GetCorpTasksResponseBodyData = void 0;
exports.SearchFormDatasResponseBodyDataOriginatorUserName = exports.SearchFormDatasResponseBodyDataModifyUser = exports.SearchFormDatasResponseBodyDataModifyUserUserName = exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyData = exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginator = exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginatorName = exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUser = exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUserName = exports.SearchFormDataSecondGenerationResponseBodyData = exports.SearchFormDataSecondGenerationResponseBodyDataOriginator = exports.SearchFormDataSecondGenerationResponseBodyDataOriginatorName = exports.SearchFormDataSecondGenerationResponseBodyDataModifyUser = exports.SearchFormDataSecondGenerationResponseBodyDataModifyUserName = exports.SearchFormDataRemovalTableDataResponseBodyData = exports.SearchFormDataRemovalTableDataResponseBodyDataOriginator = exports.SearchFormDataRemovalTableDataResponseBodyDataOriginatorName = exports.SearchFormDataRemovalTableDataResponseBodyDataModifyUser = exports.SearchFormDataRemovalTableDataResponseBodyDataModifyUserName = exports.QueryServiceRecordResponseBodyValues = exports.PreviewPublishedProcessResponseBodyResult = exports.PageFormBaseInfosResponseBodyResult = exports.PageFormBaseInfosResponseBodyResultData = exports.PageFormBaseInfosResponseBodyResultDataTitle = exports.PageAutoFlowLogResponseBodyData = exports.ListNavigationByFormTypeResponseBodyResult = exports.ListNavigationByFormTypeResponseBodyResultTitle = exports.ListConnectorInformationResponseBodyPluginInfos = exports.ListConnectorInformationResponseBodyPluginInfosApps = exports.ListCommodityResponseBodyCommodityVOList = exports.ListApplicationInformationResponseBodyApplicationInformation = exports.ListApplicationInformationResponseBodyApplicationInformationUsagePlugins = exports.ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformation = exports.ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformationApplications = exports.ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformation = exports.ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformationUsagePlugins = exports.ListApplicationResponseBodyData = exports.GetTaskCopiesResponseBodyData = exports.GetTaskCopiesResponseBodyDataCurrentActivityInstances = exports.GetSimpleCubeModelListResponseBodyResult = exports.GetSimpleCubeModelListResponseBodyResultChildren = exports.GetSaleUserInfoByUserIdResponseBodyCorpList = exports.GetRunningTasksResponseBodyResult = exports.GetRunningTaskListResponseBodyResult = exports.GetProcessDesignByCodeResponseBodyProps = exports.GetProcessDesignByCodeResponseBodyNodes = exports.GetProcessDesignByCodeResponseBodyNodesName = exports.GetProcessDesignByCodeResponseBodyFormulaRules = exports.GetProcessDesignByCodeResponseBodyFormulaRulesRule = exports.GetProcessDesignByCodeResponseBodyFormulaRulesName = exports.GetProcessDesignByCodeResponseBodyFlowConfig = void 0;
exports.SearchFormDatasResponseBodyData = exports.SearchFormDatasResponseBodyDataOriginator = void 0;
// This file is auto-generated, don't edit it
/**
 */
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
const gateway_dingtalk_1 = __importDefault(require("@alicloud/gateway-dingtalk"));
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
const $tea = __importStar(require("@alicloud/tea-typescript"));
class AppLoginCodeGenHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.AppLoginCodeGenHeaders = AppLoginCodeGenHeaders;
class AppLoginCodeGenRequest extends $tea.Model {
    static names() {
        return {
            appKey: 'appKey',
            signTimestampStr: 'signTimestampStr',
            signature: 'signature',
            fullUrl: 'fullUrl',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appKey: 'string',
            signTimestampStr: 'string',
            signature: 'string',
            fullUrl: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.AppLoginCodeGenRequest = AppLoginCodeGenRequest;
class AppLoginCodeGenResponseBody extends $tea.Model {
    static names() {
        return {
            loginCode: 'loginCode',
        };
    }
    static types() {
        return {
            loginCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.AppLoginCodeGenResponseBody = AppLoginCodeGenResponseBody;
class AppLoginCodeGenResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: AppLoginCodeGenResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.AppLoginCodeGenResponse = AppLoginCodeGenResponse;
class BatchGetFormDataByIdListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListHeaders = BatchGetFormDataByIdListHeaders;
class BatchGetFormDataByIdListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formInstanceIdList: 'formInstanceIdList',
            formUuid: 'formUuid',
            needFormInstanceValue: 'needFormInstanceValue',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formInstanceIdList: { 'type': 'array', 'itemType': 'string' },
            formUuid: 'string',
            needFormInstanceValue: 'boolean',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListRequest = BatchGetFormDataByIdListRequest;
class BatchGetFormDataByIdListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': BatchGetFormDataByIdListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponseBody = BatchGetFormDataByIdListResponseBody;
class BatchGetFormDataByIdListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BatchGetFormDataByIdListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponse = BatchGetFormDataByIdListResponse;
class BatchRemovalByFormInstanceIdListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchRemovalByFormInstanceIdListHeaders = BatchRemovalByFormInstanceIdListHeaders;
class BatchRemovalByFormInstanceIdListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            asynchronousExecution: 'asynchronousExecution',
            executeExpression: 'executeExpression',
            formInstanceIdList: 'formInstanceIdList',
            formUuid: 'formUuid',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            asynchronousExecution: 'boolean',
            executeExpression: 'boolean',
            formInstanceIdList: { 'type': 'array', 'itemType': 'string' },
            formUuid: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchRemovalByFormInstanceIdListRequest = BatchRemovalByFormInstanceIdListRequest;
class BatchRemovalByFormInstanceIdListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchRemovalByFormInstanceIdListResponse = BatchRemovalByFormInstanceIdListResponse;
class BatchSaveFormDataHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchSaveFormDataHeaders = BatchSaveFormDataHeaders;
class BatchSaveFormDataRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            asynchronousExecution: 'asynchronousExecution',
            formDataJsonList: 'formDataJsonList',
            formUuid: 'formUuid',
            keepRunningAfterException: 'keepRunningAfterException',
            noExecuteExpression: 'noExecuteExpression',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            asynchronousExecution: 'boolean',
            formDataJsonList: { 'type': 'array', 'itemType': 'string' },
            formUuid: 'string',
            keepRunningAfterException: 'boolean',
            noExecuteExpression: 'boolean',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchSaveFormDataRequest = BatchSaveFormDataRequest;
class BatchSaveFormDataResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchSaveFormDataResponseBody = BatchSaveFormDataResponseBody;
class BatchSaveFormDataResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BatchSaveFormDataResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchSaveFormDataResponse = BatchSaveFormDataResponse;
class BatchUpdateFormDataByInstanceIdHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceIdHeaders = BatchUpdateFormDataByInstanceIdHeaders;
class BatchUpdateFormDataByInstanceIdRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            asynchronousExecution: 'asynchronousExecution',
            formInstanceIdList: 'formInstanceIdList',
            formUuid: 'formUuid',
            ignoreEmpty: 'ignoreEmpty',
            noExecuteExpression: 'noExecuteExpression',
            systemToken: 'systemToken',
            updateFormDataJson: 'updateFormDataJson',
            useLatestFormSchemaVersion: 'useLatestFormSchemaVersion',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            asynchronousExecution: 'boolean',
            formInstanceIdList: { 'type': 'array', 'itemType': 'string' },
            formUuid: 'string',
            ignoreEmpty: 'boolean',
            noExecuteExpression: 'boolean',
            systemToken: 'string',
            updateFormDataJson: 'string',
            useLatestFormSchemaVersion: 'boolean',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceIdRequest = BatchUpdateFormDataByInstanceIdRequest;
class BatchUpdateFormDataByInstanceIdResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceIdResponseBody = BatchUpdateFormDataByInstanceIdResponseBody;
class BatchUpdateFormDataByInstanceIdResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BatchUpdateFormDataByInstanceIdResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceIdResponse = BatchUpdateFormDataByInstanceIdResponse;
class BatchUpdateFormDataByInstanceMapHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceMapHeaders = BatchUpdateFormDataByInstanceMapHeaders;
class BatchUpdateFormDataByInstanceMapRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            asynchronousExecution: 'asynchronousExecution',
            formUuid: 'formUuid',
            ignoreEmpty: 'ignoreEmpty',
            noExecuteExpression: 'noExecuteExpression',
            systemToken: 'systemToken',
            updateFormDataJsonMap: 'updateFormDataJsonMap',
            useLatestFormSchemaVersion: 'useLatestFormSchemaVersion',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            asynchronousExecution: 'boolean',
            formUuid: 'string',
            ignoreEmpty: 'boolean',
            noExecuteExpression: 'boolean',
            systemToken: 'string',
            updateFormDataJsonMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            useLatestFormSchemaVersion: 'boolean',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceMapRequest = BatchUpdateFormDataByInstanceMapRequest;
class BatchUpdateFormDataByInstanceMapResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceMapResponseBody = BatchUpdateFormDataByInstanceMapResponseBody;
class BatchUpdateFormDataByInstanceMapResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BatchUpdateFormDataByInstanceMapResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchUpdateFormDataByInstanceMapResponse = BatchUpdateFormDataByInstanceMapResponse;
class BuyAuthorizationOrderHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyAuthorizationOrderHeaders = BuyAuthorizationOrderHeaders;
class BuyAuthorizationOrderRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            accountNumber: 'accountNumber',
            beginTimeGMT: 'beginTimeGMT',
            callerUnionId: 'callerUnionId',
            chargeType: 'chargeType',
            commerceType: 'commerceType',
            commodityType: 'commodityType',
            endTimeGMT: 'endTimeGMT',
            instanceId: 'instanceId',
            instanceName: 'instanceName',
            produceCode: 'produceCode',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            accountNumber: 'string',
            beginTimeGMT: 'number',
            callerUnionId: 'string',
            chargeType: 'string',
            commerceType: 'string',
            commodityType: 'string',
            endTimeGMT: 'number',
            instanceId: 'string',
            instanceName: 'string',
            produceCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyAuthorizationOrderRequest = BuyAuthorizationOrderRequest;
class BuyAuthorizationOrderResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyAuthorizationOrderResponseBody = BuyAuthorizationOrderResponseBody;
class BuyAuthorizationOrderResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BuyAuthorizationOrderResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyAuthorizationOrderResponse = BuyAuthorizationOrderResponse;
class BuyFreshOrderHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyFreshOrderHeaders = BuyFreshOrderHeaders;
class BuyFreshOrderRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            accountNumber: 'accountNumber',
            beginTimeGMT: 'beginTimeGMT',
            callerUnionId: 'callerUnionId',
            chargeType: 'chargeType',
            commerceType: 'commerceType',
            commodityType: 'commodityType',
            endTimeGMT: 'endTimeGMT',
            instanceId: 'instanceId',
            instanceName: 'instanceName',
            produceCode: 'produceCode',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            accountNumber: 'string',
            beginTimeGMT: 'number',
            callerUnionId: 'string',
            chargeType: 'string',
            commerceType: 'string',
            commodityType: 'string',
            endTimeGMT: 'number',
            instanceId: 'string',
            instanceName: 'string',
            produceCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyFreshOrderRequest = BuyFreshOrderRequest;
class BuyFreshOrderResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyFreshOrderResponseBody = BuyFreshOrderResponseBody;
class BuyFreshOrderResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BuyFreshOrderResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BuyFreshOrderResponse = BuyFreshOrderResponse;
class CheckCloudAccountStatusHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CheckCloudAccountStatusHeaders = CheckCloudAccountStatusHeaders;
class CheckCloudAccountStatusRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
        };
    }
    static types() {
        return {
            accessKey: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CheckCloudAccountStatusRequest = CheckCloudAccountStatusRequest;
class CheckCloudAccountStatusResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CheckCloudAccountStatusResponseBody = CheckCloudAccountStatusResponseBody;
class CheckCloudAccountStatusResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: CheckCloudAccountStatusResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CheckCloudAccountStatusResponse = CheckCloudAccountStatusResponse;
class CreateOrUpdateFormDataHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateOrUpdateFormDataHeaders = CreateOrUpdateFormDataHeaders;
class CreateOrUpdateFormDataRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formDataJson: 'formDataJson',
            formUuid: 'formUuid',
            noExecuteExpression: 'noExecuteExpression',
            searchCondition: 'searchCondition',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formDataJson: 'string',
            formUuid: 'string',
            noExecuteExpression: 'boolean',
            searchCondition: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateOrUpdateFormDataRequest = CreateOrUpdateFormDataRequest;
class CreateOrUpdateFormDataResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateOrUpdateFormDataResponseBody = CreateOrUpdateFormDataResponseBody;
class CreateOrUpdateFormDataResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: CreateOrUpdateFormDataResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateOrUpdateFormDataResponse = CreateOrUpdateFormDataResponse;
class DeleteFormDataHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteFormDataHeaders = DeleteFormDataHeaders;
class DeleteFormDataRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formInstanceId: 'formInstanceId',
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formInstanceId: 'string',
            language: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteFormDataRequest = DeleteFormDataRequest;
class DeleteFormDataResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteFormDataResponse = DeleteFormDataResponse;
class DeleteInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteInstanceHeaders = DeleteInstanceHeaders;
class DeleteInstanceRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            processInstanceId: 'processInstanceId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            processInstanceId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteInstanceRequest = DeleteInstanceRequest;
class DeleteInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteInstanceResponse = DeleteInstanceResponse;
class DeleteSequenceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteSequenceHeaders = DeleteSequenceHeaders;
class DeleteSequenceRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            sequence: 'sequence',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            sequence: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteSequenceRequest = DeleteSequenceRequest;
class DeleteSequenceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteSequenceResponse = DeleteSequenceResponse;
class DeployFunctionCallbackHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeployFunctionCallbackHeaders = DeployFunctionCallbackHeaders;
class DeployFunctionCallbackRequest extends $tea.Model {
    static names() {
        return {
            appId: 'appId',
            customDomain: 'customDomain',
            deployStage: 'deployStage',
            gateWayAppKey: 'gateWayAppKey',
            gateWayAppSecret: 'gateWayAppSecret',
            gateWayDomain: 'gateWayDomain',
        };
    }
    static types() {
        return {
            appId: 'string',
            customDomain: 'string',
            deployStage: 'string',
            gateWayAppKey: 'string',
            gateWayAppSecret: 'string',
            gateWayDomain: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeployFunctionCallbackRequest = DeployFunctionCallbackRequest;
class DeployFunctionCallbackResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeployFunctionCallbackResponseBody = DeployFunctionCallbackResponseBody;
class DeployFunctionCallbackResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: DeployFunctionCallbackResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeployFunctionCallbackResponse = DeployFunctionCallbackResponse;
class ExecuteBatchTaskHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteBatchTaskHeaders = ExecuteBatchTaskHeaders;
class ExecuteBatchTaskRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            outResult: 'outResult',
            remark: 'remark',
            systemToken: 'systemToken',
            taskInformationList: 'taskInformationList',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            outResult: 'string',
            remark: 'string',
            systemToken: 'string',
            taskInformationList: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteBatchTaskRequest = ExecuteBatchTaskRequest;
class ExecuteBatchTaskResponseBody extends $tea.Model {
    static names() {
        return {
            failNumber: 'failNumber',
            successNumber: 'successNumber',
            total: 'total',
        };
    }
    static types() {
        return {
            failNumber: 'number',
            successNumber: 'number',
            total: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteBatchTaskResponseBody = ExecuteBatchTaskResponseBody;
class ExecuteBatchTaskResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ExecuteBatchTaskResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteBatchTaskResponse = ExecuteBatchTaskResponse;
class ExecuteCustomApiHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteCustomApiHeaders = ExecuteCustomApiHeaders;
class ExecuteCustomApiRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            data: 'data',
            language: 'language',
            serviceId: 'serviceId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            data: 'string',
            language: 'string',
            serviceId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteCustomApiRequest = ExecuteCustomApiRequest;
class ExecuteCustomApiResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteCustomApiResponseBody = ExecuteCustomApiResponseBody;
class ExecuteCustomApiResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ExecuteCustomApiResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteCustomApiResponse = ExecuteCustomApiResponse;
class ExecutePlatformTaskHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecutePlatformTaskHeaders = ExecutePlatformTaskHeaders;
class ExecutePlatformTaskRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formDataJson: 'formDataJson',
            language: 'language',
            noExecuteExpressions: 'noExecuteExpressions',
            outResult: 'outResult',
            processInstanceId: 'processInstanceId',
            remark: 'remark',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formDataJson: 'string',
            language: 'string',
            noExecuteExpressions: 'string',
            outResult: 'string',
            processInstanceId: 'string',
            remark: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecutePlatformTaskRequest = ExecutePlatformTaskRequest;
class ExecutePlatformTaskResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecutePlatformTaskResponse = ExecutePlatformTaskResponse;
class ExecuteTaskHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteTaskHeaders = ExecuteTaskHeaders;
class ExecuteTaskRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            digitalSignUrl: 'digitalSignUrl',
            formDataJson: 'formDataJson',
            language: 'language',
            noExecuteExpressions: 'noExecuteExpressions',
            outResult: 'outResult',
            processInstanceId: 'processInstanceId',
            remark: 'remark',
            systemToken: 'systemToken',
            taskId: 'taskId',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            digitalSignUrl: 'string',
            formDataJson: 'string',
            language: 'string',
            noExecuteExpressions: 'string',
            outResult: 'string',
            processInstanceId: 'string',
            remark: 'string',
            systemToken: 'string',
            taskId: 'number',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteTaskRequest = ExecuteTaskRequest;
class ExecuteTaskResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExecuteTaskResponse = ExecuteTaskResponse;
class ExpireCommodityHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExpireCommodityHeaders = ExpireCommodityHeaders;
class ExpireCommodityRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExpireCommodityRequest = ExpireCommodityRequest;
class ExpireCommodityResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            success: 'success',
        };
    }
    static types() {
        return {
            message: 'string',
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExpireCommodityResponseBody = ExpireCommodityResponseBody;
class ExpireCommodityResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ExpireCommodityResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ExpireCommodityResponse = ExpireCommodityResponse;
class GetActivationCodeByCallerUnionIdHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivationCodeByCallerUnionIdHeaders = GetActivationCodeByCallerUnionIdHeaders;
class GetActivationCodeByCallerUnionIdRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
        };
    }
    static types() {
        return {
            accessKey: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivationCodeByCallerUnionIdRequest = GetActivationCodeByCallerUnionIdRequest;
class GetActivationCodeByCallerUnionIdResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivationCodeByCallerUnionIdResponseBody = GetActivationCodeByCallerUnionIdResponseBody;
class GetActivationCodeByCallerUnionIdResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetActivationCodeByCallerUnionIdResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivationCodeByCallerUnionIdResponse = GetActivationCodeByCallerUnionIdResponse;
class GetActivityButtonListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityButtonListHeaders = GetActivityButtonListHeaders;
class GetActivityButtonListRequest extends $tea.Model {
    static names() {
        return {
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            language: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityButtonListRequest = GetActivityButtonListRequest;
class GetActivityButtonListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetActivityButtonListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityButtonListResponseBody = GetActivityButtonListResponseBody;
class GetActivityButtonListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetActivityButtonListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityButtonListResponse = GetActivityButtonListResponse;
class GetActivityListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityListHeaders = GetActivityListHeaders;
class GetActivityListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            processCode: 'processCode',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            processCode: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityListRequest = GetActivityListRequest;
class GetActivityListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetActivityListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityListResponseBody = GetActivityListResponseBody;
class GetActivityListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetActivityListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityListResponse = GetActivityListResponse;
class GetAllAuthCubesHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesHeaders = GetAllAuthCubesHeaders;
class GetAllAuthCubesRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            corpId: 'corpId',
            keywords: 'keywords',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            corpId: 'string',
            keywords: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesRequest = GetAllAuthCubesRequest;
class GetAllAuthCubesResponseBody extends $tea.Model {
    static names() {
        return {
            count: 'count',
            result: 'result',
        };
    }
    static types() {
        return {
            count: 'number',
            result: { 'type': 'array', 'itemType': GetAllAuthCubesResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesResponseBody = GetAllAuthCubesResponseBody;
class GetAllAuthCubesResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetAllAuthCubesResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesResponse = GetAllAuthCubesResponse;
class GetApplicationAuthorizationServicePlatformResourceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetApplicationAuthorizationServicePlatformResourceHeaders = GetApplicationAuthorizationServicePlatformResourceHeaders;
class GetApplicationAuthorizationServicePlatformResourceRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetApplicationAuthorizationServicePlatformResourceRequest = GetApplicationAuthorizationServicePlatformResourceRequest;
class GetApplicationAuthorizationServicePlatformResourceResponseBody extends $tea.Model {
    static names() {
        return {
            accountTotalAmount: 'accountTotalAmount',
            accountUsageAmount: 'accountUsageAmount',
            appTotalAmount: 'appTotalAmount',
            attachmentTotalAmount: 'attachmentTotalAmount',
            attachmentUsageAmount: 'attachmentUsageAmount',
            instanceId: 'instanceId',
            instanceTotalAmount: 'instanceTotalAmount',
            instanceUsageAmount: 'instanceUsageAmount',
            pluginUsageAmount: 'pluginUsageAmount',
        };
    }
    static types() {
        return {
            accountTotalAmount: 'number',
            accountUsageAmount: 'number',
            appTotalAmount: 'number',
            attachmentTotalAmount: 'number',
            attachmentUsageAmount: 'number',
            instanceId: 'string',
            instanceTotalAmount: 'number',
            instanceUsageAmount: 'number',
            pluginUsageAmount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetApplicationAuthorizationServicePlatformResourceResponseBody = GetApplicationAuthorizationServicePlatformResourceResponseBody;
class GetApplicationAuthorizationServicePlatformResourceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetApplicationAuthorizationServicePlatformResourceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetApplicationAuthorizationServicePlatformResourceResponse = GetApplicationAuthorizationServicePlatformResourceResponse;
class GetAutoFlowLogDetailHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAutoFlowLogDetailHeaders = GetAutoFlowLogDetailHeaders;
class GetAutoFlowLogDetailRequest extends $tea.Model {
    static names() {
        return {
            corpId: 'corpId',
            env: 'env',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            procInstanceId: 'procInstanceId',
            token: 'token',
            userId: 'userId',
        };
    }
    static types() {
        return {
            corpId: 'string',
            env: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            procInstanceId: 'string',
            token: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAutoFlowLogDetailRequest = GetAutoFlowLogDetailRequest;
class GetAutoFlowLogDetailResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            hasMoreData: 'hasMoreData',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetAutoFlowLogDetailResponseBodyData },
            hasMoreData: 'boolean',
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAutoFlowLogDetailResponseBody = GetAutoFlowLogDetailResponseBody;
class GetAutoFlowLogDetailResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetAutoFlowLogDetailResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAutoFlowLogDetailResponse = GetAutoFlowLogDetailResponse;
class GetCorpAccomplishmentTasksHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpAccomplishmentTasksHeaders = GetCorpAccomplishmentTasksHeaders;
class GetCorpAccomplishmentTasksRequest extends $tea.Model {
    static names() {
        return {
            appTypes: 'appTypes',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            env: 'env',
            keyword: 'keyword',
            language: 'language',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            processCodes: 'processCodes',
            token: 'token',
        };
    }
    static types() {
        return {
            appTypes: 'string',
            createFromTimeGMT: 'number',
            createToTimeGMT: 'number',
            env: 'string',
            keyword: 'string',
            language: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            processCodes: 'string',
            token: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpAccomplishmentTasksRequest = GetCorpAccomplishmentTasksRequest;
class GetCorpAccomplishmentTasksResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetCorpAccomplishmentTasksResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpAccomplishmentTasksResponseBody = GetCorpAccomplishmentTasksResponseBody;
class GetCorpAccomplishmentTasksResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetCorpAccomplishmentTasksResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpAccomplishmentTasksResponse = GetCorpAccomplishmentTasksResponse;
class GetCorpLevelByAccountIdHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpLevelByAccountIdHeaders = GetCorpLevelByAccountIdHeaders;
class GetCorpLevelByAccountIdRequest extends $tea.Model {
    static names() {
        return {
            accountId: 'accountId',
        };
    }
    static types() {
        return {
            accountId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpLevelByAccountIdRequest = GetCorpLevelByAccountIdRequest;
class GetCorpLevelByAccountIdResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpLevelByAccountIdResponseBody = GetCorpLevelByAccountIdResponseBody;
class GetCorpLevelByAccountIdResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetCorpLevelByAccountIdResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpLevelByAccountIdResponse = GetCorpLevelByAccountIdResponse;
class GetCorpTasksHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpTasksHeaders = GetCorpTasksHeaders;
class GetCorpTasksRequest extends $tea.Model {
    static names() {
        return {
            appTypes: 'appTypes',
            corpId: 'corpId',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            env: 'env',
            keyword: 'keyword',
            language: 'language',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            processCodes: 'processCodes',
            token: 'token',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appTypes: 'string',
            corpId: 'string',
            createFromTimeGMT: 'number',
            createToTimeGMT: 'number',
            env: 'string',
            keyword: 'string',
            language: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            processCodes: 'string',
            token: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpTasksRequest = GetCorpTasksRequest;
class GetCorpTasksResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetCorpTasksResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpTasksResponseBody = GetCorpTasksResponseBody;
class GetCorpTasksResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetCorpTasksResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpTasksResponse = GetCorpTasksResponse;
class GetDbConfigHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetDbConfigHeaders = GetDbConfigHeaders;
class GetDbConfigRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            corpId: 'corpId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            corpId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetDbConfigRequest = GetDbConfigRequest;
class GetDbConfigResponseBody extends $tea.Model {
    static names() {
        return {
            config: 'config',
            corpId: 'corpId',
            createTimeGMT: 'createTimeGMT',
            creator: 'creator',
            exclusive: 'exclusive',
            id: 'id',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifier: 'modifier',
            type: 'type',
        };
    }
    static types() {
        return {
            config: 'string',
            corpId: 'string',
            createTimeGMT: 'string',
            creator: 'string',
            exclusive: 'string',
            id: 'string',
            modifiedTimeGMT: 'string',
            modifier: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetDbConfigResponseBody = GetDbConfigResponseBody;
class GetDbConfigResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetDbConfigResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetDbConfigResponse = GetDbConfigResponse;
class GetFieldDefByUuidHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFieldDefByUuidHeaders = GetFieldDefByUuidHeaders;
class GetFieldDefByUuidRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formUuid: 'formUuid',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formUuid: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFieldDefByUuidRequest = GetFieldDefByUuidRequest;
class GetFieldDefByUuidResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
            success: 'success',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetFieldDefByUuidResponseBodyResult },
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFieldDefByUuidResponseBody = GetFieldDefByUuidResponseBody;
class GetFieldDefByUuidResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetFieldDefByUuidResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFieldDefByUuidResponse = GetFieldDefByUuidResponse;
class GetFormComponentDefinitionListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormComponentDefinitionListHeaders = GetFormComponentDefinitionListHeaders;
class GetFormComponentDefinitionListRequest extends $tea.Model {
    static names() {
        return {
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
            version: 'version',
        };
    }
    static types() {
        return {
            language: 'string',
            systemToken: 'string',
            userId: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormComponentDefinitionListRequest = GetFormComponentDefinitionListRequest;
class GetFormComponentDefinitionListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetFormComponentDefinitionListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormComponentDefinitionListResponseBody = GetFormComponentDefinitionListResponseBody;
class GetFormComponentDefinitionListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetFormComponentDefinitionListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormComponentDefinitionListResponse = GetFormComponentDefinitionListResponse;
class GetFormDataByIDHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormDataByIDHeaders = GetFormDataByIDHeaders;
class GetFormDataByIDRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormDataByIDRequest = GetFormDataByIDRequest;
class GetFormDataByIDResponseBody extends $tea.Model {
    static names() {
        return {
            formData: 'formData',
            formInstId: 'formInstId',
            modifiedTimeGMT: 'modifiedTimeGMT',
            originator: 'originator',
        };
    }
    static types() {
        return {
            formData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formInstId: 'string',
            modifiedTimeGMT: 'string',
            originator: GetFormDataByIDResponseBodyOriginator,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormDataByIDResponseBody = GetFormDataByIDResponseBody;
class GetFormDataByIDResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetFormDataByIDResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormDataByIDResponse = GetFormDataByIDResponse;
class GetFormListInAppHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppHeaders = GetFormListInAppHeaders;
class GetFormListInAppRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formTypes: 'formTypes',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formTypes: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppRequest = GetFormListInAppRequest;
class GetFormListInAppResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
            success: 'success',
        };
    }
    static types() {
        return {
            result: GetFormListInAppResponseBodyResult,
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppResponseBody = GetFormListInAppResponseBody;
class GetFormListInAppResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetFormListInAppResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppResponse = GetFormListInAppResponse;
class GetInstanceByIdHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdHeaders = GetInstanceByIdHeaders;
class GetInstanceByIdRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdRequest = GetInstanceByIdRequest;
class GetInstanceByIdResponseBody extends $tea.Model {
    static names() {
        return {
            actionExecutor: 'actionExecutor',
            approvedResult: 'approvedResult',
            createTimeGMT: 'createTimeGMT',
            data: 'data',
            formUuid: 'formUuid',
            instanceStatus: 'instanceStatus',
            modifiedTimeGMT: 'modifiedTimeGMT',
            originator: 'originator',
            processCode: 'processCode',
            processInstanceId: 'processInstanceId',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            actionExecutor: { 'type': 'array', 'itemType': GetInstanceByIdResponseBodyActionExecutor },
            approvedResult: 'string',
            createTimeGMT: 'string',
            data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formUuid: 'string',
            instanceStatus: 'string',
            modifiedTimeGMT: 'string',
            originator: GetInstanceByIdResponseBodyOriginator,
            processCode: 'string',
            processInstanceId: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdResponseBody = GetInstanceByIdResponseBody;
class GetInstanceByIdResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetInstanceByIdResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdResponse = GetInstanceByIdResponse;
class GetInstanceIdListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceIdListHeaders = GetInstanceIdListHeaders;
class GetInstanceIdListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            approvedResult: 'approvedResult',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            formUuid: 'formUuid',
            instanceStatus: 'instanceStatus',
            language: 'language',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            originatorId: 'originatorId',
            searchFieldJson: 'searchFieldJson',
            systemToken: 'systemToken',
            taskId: 'taskId',
            userId: 'userId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            appType: 'string',
            approvedResult: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            formUuid: 'string',
            instanceStatus: 'string',
            language: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            originatorId: 'string',
            searchFieldJson: 'string',
            systemToken: 'string',
            taskId: 'string',
            userId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceIdListRequest = GetInstanceIdListRequest;
class GetInstanceIdListResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': 'string' },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceIdListResponseBody = GetInstanceIdListResponseBody;
class GetInstanceIdListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetInstanceIdListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceIdListResponse = GetInstanceIdListResponse;
class GetInstancesHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesHeaders = GetInstancesHeaders;
class GetInstancesRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            approvedResult: 'approvedResult',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            env: 'env',
            formUuid: 'formUuid',
            instanceStatus: 'instanceStatus',
            language: 'language',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            orderConfigJson: 'orderConfigJson',
            originatorId: 'originatorId',
            searchFieldJson: 'searchFieldJson',
            systemToken: 'systemToken',
            taskId: 'taskId',
            userId: 'userId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            appType: 'string',
            approvedResult: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            env: 'string',
            formUuid: 'string',
            instanceStatus: 'string',
            language: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            orderConfigJson: 'string',
            originatorId: 'string',
            searchFieldJson: 'string',
            systemToken: 'string',
            taskId: 'string',
            userId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesRequest = GetInstancesRequest;
class GetInstancesResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetInstancesResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponseBody = GetInstancesResponseBody;
class GetInstancesResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetInstancesResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponse = GetInstancesResponse;
class GetInstancesByIdListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListHeaders = GetInstancesByIdListHeaders;
class GetInstancesByIdListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            processInstanceIds: 'processInstanceIds',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            processInstanceIds: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListRequest = GetInstancesByIdListRequest;
class GetInstancesByIdListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetInstancesByIdListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponseBody = GetInstancesByIdListResponseBody;
class GetInstancesByIdListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetInstancesByIdListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponse = GetInstancesByIdListResponse;
class GetMeCorpSubmissionHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionHeaders = GetMeCorpSubmissionHeaders;
class GetMeCorpSubmissionRequest extends $tea.Model {
    static names() {
        return {
            appTypes: 'appTypes',
            corpId: 'corpId',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            env: 'env',
            keyword: 'keyword',
            language: 'language',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            processCodes: 'processCodes',
            token: 'token',
        };
    }
    static types() {
        return {
            appTypes: 'string',
            corpId: 'string',
            createFromTimeGMT: 'number',
            createToTimeGMT: 'number',
            env: 'string',
            keyword: 'string',
            language: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            processCodes: 'string',
            token: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionRequest = GetMeCorpSubmissionRequest;
class GetMeCorpSubmissionResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetMeCorpSubmissionResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionResponseBody = GetMeCorpSubmissionResponseBody;
class GetMeCorpSubmissionResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetMeCorpSubmissionResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionResponse = GetMeCorpSubmissionResponse;
class GetNotifyMeHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNotifyMeHeaders = GetNotifyMeHeaders;
class GetNotifyMeRequest extends $tea.Model {
    static names() {
        return {
            appTypes: 'appTypes',
            corpId: 'corpId',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            env: 'env',
            instanceCreateFromTimeGMT: 'instanceCreateFromTimeGMT',
            instanceCreateToTimeGMT: 'instanceCreateToTimeGMT',
            keyword: 'keyword',
            language: 'language',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            processCodes: 'processCodes',
            token: 'token',
        };
    }
    static types() {
        return {
            appTypes: 'string',
            corpId: 'string',
            createFromTimeGMT: 'number',
            createToTimeGMT: 'number',
            env: 'string',
            instanceCreateFromTimeGMT: 'number',
            instanceCreateToTimeGMT: 'number',
            keyword: 'string',
            language: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            processCodes: 'string',
            token: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNotifyMeRequest = GetNotifyMeRequest;
class GetNotifyMeResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetNotifyMeResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNotifyMeResponseBody = GetNotifyMeResponseBody;
class GetNotifyMeResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetNotifyMeResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNotifyMeResponse = GetNotifyMeResponse;
class GetOpenUrlHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOpenUrlHeaders = GetOpenUrlHeaders;
class GetOpenUrlRequest extends $tea.Model {
    static names() {
        return {
            fileUrl: 'fileUrl',
            language: 'language',
            systemToken: 'systemToken',
            timeout: 'timeout',
            userId: 'userId',
        };
    }
    static types() {
        return {
            fileUrl: 'string',
            language: 'string',
            systemToken: 'string',
            timeout: 'number',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOpenUrlRequest = GetOpenUrlRequest;
class GetOpenUrlResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOpenUrlResponseBody = GetOpenUrlResponseBody;
class GetOpenUrlResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetOpenUrlResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOpenUrlResponse = GetOpenUrlResponse;
class GetOperationRecordsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsHeaders = GetOperationRecordsHeaders;
class GetOperationRecordsRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            env: 'env',
            language: 'language',
            processInstanceId: 'processInstanceId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            env: 'string',
            language: 'string',
            processInstanceId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsRequest = GetOperationRecordsRequest;
class GetOperationRecordsResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetOperationRecordsResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsResponseBody = GetOperationRecordsResponseBody;
class GetOperationRecordsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetOperationRecordsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsResponse = GetOperationRecordsResponse;
class GetPlatformResourceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPlatformResourceHeaders = GetPlatformResourceHeaders;
class GetPlatformResourceRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPlatformResourceRequest = GetPlatformResourceRequest;
class GetPlatformResourceResponseBody extends $tea.Model {
    static names() {
        return {
            accountTotalAmount: 'accountTotalAmount',
            accountUsageAmount: 'accountUsageAmount',
            appTotalAmount: 'appTotalAmount',
            attachmentTotalAmount: 'attachmentTotalAmount',
            attachmentUsageAmount: 'attachmentUsageAmount',
            instanceTotalAmount: 'instanceTotalAmount',
            instanceUsageAmount: 'instanceUsageAmount',
            pluginUsageAmount: 'pluginUsageAmount',
        };
    }
    static types() {
        return {
            accountTotalAmount: 'number',
            accountUsageAmount: 'number',
            appTotalAmount: 'number',
            attachmentTotalAmount: 'number',
            attachmentUsageAmount: 'number',
            instanceTotalAmount: 'number',
            instanceUsageAmount: 'number',
            pluginUsageAmount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPlatformResourceResponseBody = GetPlatformResourceResponseBody;
class GetPlatformResourceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetPlatformResourceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPlatformResourceResponse = GetPlatformResourceResponse;
class GetPrintAppInfoHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintAppInfoHeaders = GetPrintAppInfoHeaders;
class GetPrintAppInfoRequest extends $tea.Model {
    static names() {
        return {
            nameLike: 'nameLike',
            userId: 'userId',
        };
    }
    static types() {
        return {
            nameLike: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintAppInfoRequest = GetPrintAppInfoRequest;
class GetPrintAppInfoResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetPrintAppInfoResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintAppInfoResponseBody = GetPrintAppInfoResponseBody;
class GetPrintAppInfoResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetPrintAppInfoResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintAppInfoResponse = GetPrintAppInfoResponse;
class GetPrintDictionaryHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintDictionaryHeaders = GetPrintDictionaryHeaders;
class GetPrintDictionaryRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formUuid: 'formUuid',
            userId: 'userId',
            version: 'version',
        };
    }
    static types() {
        return {
            appType: 'string',
            formUuid: 'string',
            userId: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintDictionaryRequest = GetPrintDictionaryRequest;
class GetPrintDictionaryResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintDictionaryResponseBody = GetPrintDictionaryResponseBody;
class GetPrintDictionaryResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetPrintDictionaryResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintDictionaryResponse = GetPrintDictionaryResponse;
class GetProcessDefinitionHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionHeaders = GetProcessDefinitionHeaders;
class GetProcessDefinitionRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            corpId: 'corpId',
            groupId: 'groupId',
            language: 'language',
            nameSpace: 'nameSpace',
            orderNumber: 'orderNumber',
            systemToken: 'systemToken',
            systemType: 'systemType',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            corpId: 'string',
            groupId: 'string',
            language: 'string',
            nameSpace: 'string',
            orderNumber: 'string',
            systemToken: 'string',
            systemType: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionRequest = GetProcessDefinitionRequest;
class GetProcessDefinitionResponseBody extends $tea.Model {
    static names() {
        return {
            formUuid: 'formUuid',
            originator: 'originator',
            outResult: 'outResult',
            owners: 'owners',
            processId: 'processId',
            processInstanceId: 'processInstanceId',
            status: 'status',
            tasks: 'tasks',
            title: 'title',
            variables: 'variables',
        };
    }
    static types() {
        return {
            formUuid: 'string',
            originator: GetProcessDefinitionResponseBodyOriginator,
            outResult: 'string',
            owners: { 'type': 'array', 'itemType': GetProcessDefinitionResponseBodyOwners },
            processId: 'string',
            processInstanceId: 'string',
            status: 'string',
            tasks: { 'type': 'array', 'itemType': GetProcessDefinitionResponseBodyTasks },
            title: 'string',
            variables: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBody = GetProcessDefinitionResponseBody;
class GetProcessDefinitionResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetProcessDefinitionResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponse = GetProcessDefinitionResponse;
class GetProcessDesignHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignHeaders = GetProcessDesignHeaders;
class GetProcessDesignRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignRequest = GetProcessDesignRequest;
class GetProcessDesignResponseBody extends $tea.Model {
    static names() {
        return {
            approvalSummary: 'approvalSummary',
            flowConfig: 'flowConfig',
            formulaRules: 'formulaRules',
            nodes: 'nodes',
            props: 'props',
        };
    }
    static types() {
        return {
            approvalSummary: { 'type': 'array', 'itemType': GetProcessDesignResponseBodyApprovalSummary },
            flowConfig: GetProcessDesignResponseBodyFlowConfig,
            formulaRules: { 'type': 'array', 'itemType': GetProcessDesignResponseBodyFormulaRules },
            nodes: { 'type': 'array', 'itemType': GetProcessDesignResponseBodyNodes },
            props: GetProcessDesignResponseBodyProps,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBody = GetProcessDesignResponseBody;
class GetProcessDesignResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetProcessDesignResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponse = GetProcessDesignResponse;
class GetProcessDesignByCodeHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeHeaders = GetProcessDesignByCodeHeaders;
class GetProcessDesignByCodeRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            processCode: 'processCode',
            processId: 'processId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            processCode: 'string',
            processId: 'number',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeRequest = GetProcessDesignByCodeRequest;
class GetProcessDesignByCodeResponseBody extends $tea.Model {
    static names() {
        return {
            approvalSummary: 'approvalSummary',
            flowConfig: 'flowConfig',
            formulaRules: 'formulaRules',
            nodes: 'nodes',
            props: 'props',
        };
    }
    static types() {
        return {
            approvalSummary: { 'type': 'array', 'itemType': GetProcessDesignByCodeResponseBodyApprovalSummary },
            flowConfig: GetProcessDesignByCodeResponseBodyFlowConfig,
            formulaRules: { 'type': 'array', 'itemType': GetProcessDesignByCodeResponseBodyFormulaRules },
            nodes: { 'type': 'array', 'itemType': GetProcessDesignByCodeResponseBodyNodes },
            props: GetProcessDesignByCodeResponseBodyProps,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBody = GetProcessDesignByCodeResponseBody;
class GetProcessDesignByCodeResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetProcessDesignByCodeResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponse = GetProcessDesignByCodeResponse;
class GetRunningTaskListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTaskListHeaders = GetRunningTaskListHeaders;
class GetRunningTaskListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            processInstanceIdList: 'processInstanceIdList',
            systemToken: 'systemToken',
            userCorpId: 'userCorpId',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            processInstanceIdList: 'string',
            systemToken: 'string',
            userCorpId: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTaskListRequest = GetRunningTaskListRequest;
class GetRunningTaskListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetRunningTaskListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTaskListResponseBody = GetRunningTaskListResponseBody;
class GetRunningTaskListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetRunningTaskListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTaskListResponse = GetRunningTaskListResponse;
class GetRunningTasksHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTasksHeaders = GetRunningTasksHeaders;
class GetRunningTasksRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            processInstanceId: 'processInstanceId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            processInstanceId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTasksRequest = GetRunningTasksRequest;
class GetRunningTasksResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetRunningTasksResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTasksResponseBody = GetRunningTasksResponseBody;
class GetRunningTasksResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetRunningTasksResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTasksResponse = GetRunningTasksResponse;
class GetSaleUserInfoByUserIdHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSaleUserInfoByUserIdHeaders = GetSaleUserInfoByUserIdHeaders;
class GetSaleUserInfoByUserIdRequest extends $tea.Model {
    static names() {
        return {
            corpId: 'corpId',
            namespace: 'namespace',
            userId: 'userId',
        };
    }
    static types() {
        return {
            corpId: 'string',
            namespace: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSaleUserInfoByUserIdRequest = GetSaleUserInfoByUserIdRequest;
class GetSaleUserInfoByUserIdResponseBody extends $tea.Model {
    static names() {
        return {
            accountId: 'accountId',
            corpList: 'corpList',
            userId: 'userId',
            userName: 'userName',
        };
    }
    static types() {
        return {
            accountId: 'number',
            corpList: { 'type': 'array', 'itemType': GetSaleUserInfoByUserIdResponseBodyCorpList },
            userId: 'string',
            userName: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSaleUserInfoByUserIdResponseBody = GetSaleUserInfoByUserIdResponseBody;
class GetSaleUserInfoByUserIdResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetSaleUserInfoByUserIdResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSaleUserInfoByUserIdResponse = GetSaleUserInfoByUserIdResponse;
class GetSimpleCubeModelListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSimpleCubeModelListHeaders = GetSimpleCubeModelListHeaders;
class GetSimpleCubeModelListRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            corpId: 'corpId',
            cubeCode: 'cubeCode',
            cubeTenantId: 'cubeTenantId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            corpId: 'string',
            cubeCode: 'string',
            cubeTenantId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSimpleCubeModelListRequest = GetSimpleCubeModelListRequest;
class GetSimpleCubeModelListResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': GetSimpleCubeModelListResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSimpleCubeModelListResponseBody = GetSimpleCubeModelListResponseBody;
class GetSimpleCubeModelListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetSimpleCubeModelListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSimpleCubeModelListResponse = GetSimpleCubeModelListResponse;
class GetTaskCopiesHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTaskCopiesHeaders = GetTaskCopiesHeaders;
class GetTaskCopiesRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            keyword: 'keyword',
            language: 'language',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            processCodes: 'processCodes',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            createFromTimeGMT: 'number',
            createToTimeGMT: 'number',
            keyword: 'string',
            language: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            processCodes: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTaskCopiesRequest = GetTaskCopiesRequest;
class GetTaskCopiesResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': GetTaskCopiesResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTaskCopiesResponseBody = GetTaskCopiesResponseBody;
class GetTaskCopiesResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetTaskCopiesResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTaskCopiesResponse = GetTaskCopiesResponse;
class ListApplicationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationHeaders = ListApplicationHeaders;
class ListApplicationRequest extends $tea.Model {
    static names() {
        return {
            appFilter: 'appFilter',
            appNameSearchKeyword: 'appNameSearchKeyword',
            corpId: 'corpId',
            env: 'env',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            token: 'token',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appFilter: 'string',
            appNameSearchKeyword: 'string',
            corpId: 'string',
            env: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            token: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationRequest = ListApplicationRequest;
class ListApplicationResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': ListApplicationResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationResponseBody = ListApplicationResponseBody;
class ListApplicationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListApplicationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationResponse = ListApplicationResponse;
class ListApplicationAuthorizationServiceApplicationInformationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceApplicationInformationHeaders = ListApplicationAuthorizationServiceApplicationInformationHeaders;
class ListApplicationAuthorizationServiceApplicationInformationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUnionId: 'callerUnionId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUnionId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceApplicationInformationRequest = ListApplicationAuthorizationServiceApplicationInformationRequest;
class ListApplicationAuthorizationServiceApplicationInformationResponseBody extends $tea.Model {
    static names() {
        return {
            applicationInformation: 'applicationInformation',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            applicationInformation: { 'type': 'array', 'itemType': ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformation },
            pageNumber: 'number',
            pageSize: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceApplicationInformationResponseBody = ListApplicationAuthorizationServiceApplicationInformationResponseBody;
class ListApplicationAuthorizationServiceApplicationInformationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListApplicationAuthorizationServiceApplicationInformationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceApplicationInformationResponse = ListApplicationAuthorizationServiceApplicationInformationResponse;
class ListApplicationAuthorizationServiceConnectorInformationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceConnectorInformationHeaders = ListApplicationAuthorizationServiceConnectorInformationHeaders;
class ListApplicationAuthorizationServiceConnectorInformationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceConnectorInformationRequest = ListApplicationAuthorizationServiceConnectorInformationRequest;
class ListApplicationAuthorizationServiceConnectorInformationResponseBody extends $tea.Model {
    static names() {
        return {
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            plugInformation: 'plugInformation',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            pageNumber: 'number',
            pageSize: 'number',
            plugInformation: { 'type': 'array', 'itemType': ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformation },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceConnectorInformationResponseBody = ListApplicationAuthorizationServiceConnectorInformationResponseBody;
class ListApplicationAuthorizationServiceConnectorInformationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListApplicationAuthorizationServiceConnectorInformationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceConnectorInformationResponse = ListApplicationAuthorizationServiceConnectorInformationResponse;
class ListApplicationInformationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationInformationHeaders = ListApplicationInformationHeaders;
class ListApplicationInformationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationInformationRequest = ListApplicationInformationRequest;
class ListApplicationInformationResponseBody extends $tea.Model {
    static names() {
        return {
            applicationInformation: 'applicationInformation',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            applicationInformation: { 'type': 'array', 'itemType': ListApplicationInformationResponseBodyApplicationInformation },
            pageNumber: 'number',
            pageSize: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationInformationResponseBody = ListApplicationInformationResponseBody;
class ListApplicationInformationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListApplicationInformationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationInformationResponse = ListApplicationInformationResponse;
class ListCommodityHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCommodityHeaders = ListCommodityHeaders;
class ListCommodityRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCommodityRequest = ListCommodityRequest;
class ListCommodityResponseBody extends $tea.Model {
    static names() {
        return {
            commodityVOList: 'commodityVOList',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            commodityVOList: { 'type': 'array', 'itemType': ListCommodityResponseBodyCommodityVOList },
            pageNumber: 'number',
            pageSize: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCommodityResponseBody = ListCommodityResponseBody;
class ListCommodityResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListCommodityResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCommodityResponse = ListCommodityResponse;
class ListConnectorInformationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListConnectorInformationHeaders = ListConnectorInformationHeaders;
class ListConnectorInformationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListConnectorInformationRequest = ListConnectorInformationRequest;
class ListConnectorInformationResponseBody extends $tea.Model {
    static names() {
        return {
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            pluginInfos: 'pluginInfos',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            pageNumber: 'number',
            pageSize: 'number',
            pluginInfos: { 'type': 'array', 'itemType': ListConnectorInformationResponseBodyPluginInfos },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListConnectorInformationResponseBody = ListConnectorInformationResponseBody;
class ListConnectorInformationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListConnectorInformationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListConnectorInformationResponse = ListConnectorInformationResponse;
class ListFormRemarksHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListFormRemarksHeaders = ListFormRemarksHeaders;
class ListFormRemarksRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formInstanceIdList: 'formInstanceIdList',
            formUuid: 'formUuid',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formInstanceIdList: { 'type': 'array', 'itemType': 'string' },
            formUuid: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListFormRemarksRequest = ListFormRemarksRequest;
class ListFormRemarksResponseBody extends $tea.Model {
    static names() {
        return {
            formRemarkVoMap: 'formRemarkVoMap',
        };
    }
    static types() {
        return {
            formRemarkVoMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListFormRemarksResponseBody = ListFormRemarksResponseBody;
class ListFormRemarksResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListFormRemarksResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListFormRemarksResponse = ListFormRemarksResponse;
class ListNavigationByFormTypeHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListNavigationByFormTypeHeaders = ListNavigationByFormTypeHeaders;
class ListNavigationByFormTypeRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formType: 'formType',
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formType: 'string',
            language: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListNavigationByFormTypeRequest = ListNavigationByFormTypeRequest;
class ListNavigationByFormTypeResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': ListNavigationByFormTypeResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListNavigationByFormTypeResponseBody = ListNavigationByFormTypeResponseBody;
class ListNavigationByFormTypeResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListNavigationByFormTypeResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListNavigationByFormTypeResponse = ListNavigationByFormTypeResponse;
class ListOperationLogsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListOperationLogsHeaders = ListOperationLogsHeaders;
class ListOperationLogsRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formInstanceIdList: 'formInstanceIdList',
            formUuid: 'formUuid',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formInstanceIdList: { 'type': 'array', 'itemType': 'string' },
            formUuid: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListOperationLogsRequest = ListOperationLogsRequest;
class ListOperationLogsResponseBody extends $tea.Model {
    static names() {
        return {
            operationLogMap: 'operationLogMap',
        };
    }
    static types() {
        return {
            operationLogMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListOperationLogsResponseBody = ListOperationLogsResponseBody;
class ListOperationLogsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListOperationLogsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListOperationLogsResponse = ListOperationLogsResponse;
class ListTableDataByFormInstanceIdTableIdHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTableDataByFormInstanceIdTableIdHeaders = ListTableDataByFormInstanceIdTableIdHeaders;
class ListTableDataByFormInstanceIdTableIdRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formUuid: 'formUuid',
            needRowId: 'needRowId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            systemToken: 'systemToken',
            tableFieldId: 'tableFieldId',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formUuid: 'string',
            needRowId: 'boolean',
            pageNumber: 'number',
            pageSize: 'number',
            systemToken: 'string',
            tableFieldId: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTableDataByFormInstanceIdTableIdRequest = ListTableDataByFormInstanceIdTableIdRequest;
class ListTableDataByFormInstanceIdTableIdResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTableDataByFormInstanceIdTableIdResponseBody = ListTableDataByFormInstanceIdTableIdResponseBody;
class ListTableDataByFormInstanceIdTableIdResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ListTableDataByFormInstanceIdTableIdResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListTableDataByFormInstanceIdTableIdResponse = ListTableDataByFormInstanceIdTableIdResponse;
class LoginCodeGenHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoginCodeGenHeaders = LoginCodeGenHeaders;
class LoginCodeGenRequest extends $tea.Model {
    static names() {
        return {
            userId: 'userId',
        };
    }
    static types() {
        return {
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoginCodeGenRequest = LoginCodeGenRequest;
class LoginCodeGenResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoginCodeGenResponseBody = LoginCodeGenResponseBody;
class LoginCodeGenResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: LoginCodeGenResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoginCodeGenResponse = LoginCodeGenResponse;
class NotifyAuthorizationResultHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.NotifyAuthorizationResultHeaders = NotifyAuthorizationResultHeaders;
class NotifyAuthorizationResultRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            accountNumber: 'accountNumber',
            beginTimeGMT: 'beginTimeGMT',
            callerUid: 'callerUid',
            chargeType: 'chargeType',
            commerceType: 'commerceType',
            commodityType: 'commodityType',
            endTimeGMT: 'endTimeGMT',
            instanceId: 'instanceId',
            instanceName: 'instanceName',
            produceCode: 'produceCode',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            accountNumber: 'string',
            beginTimeGMT: 'number',
            callerUid: 'string',
            chargeType: 'string',
            commerceType: 'string',
            commodityType: 'string',
            endTimeGMT: 'number',
            instanceId: 'string',
            instanceName: 'string',
            produceCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.NotifyAuthorizationResultRequest = NotifyAuthorizationResultRequest;
class NotifyAuthorizationResultResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.NotifyAuthorizationResultResponseBody = NotifyAuthorizationResultResponseBody;
class NotifyAuthorizationResultResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: NotifyAuthorizationResultResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.NotifyAuthorizationResultResponse = NotifyAuthorizationResultResponse;
class PageAutoFlowLogHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageAutoFlowLogHeaders = PageAutoFlowLogHeaders;
class PageAutoFlowLogRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            corpId: 'corpId',
            endTimeGMT: 'endTimeGMT',
            env: 'env',
            formUuid: 'formUuid',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            processCode: 'processCode',
            startTimeGMT: 'startTimeGMT',
            status: 'status',
            token: 'token',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            corpId: 'string',
            endTimeGMT: 'number',
            env: 'string',
            formUuid: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            processCode: 'string',
            startTimeGMT: 'number',
            status: 'number',
            token: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageAutoFlowLogRequest = PageAutoFlowLogRequest;
class PageAutoFlowLogResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            hasMoreData: 'hasMoreData',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': PageAutoFlowLogResponseBodyData },
            hasMoreData: 'boolean',
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageAutoFlowLogResponseBody = PageAutoFlowLogResponseBody;
class PageAutoFlowLogResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: PageAutoFlowLogResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageAutoFlowLogResponse = PageAutoFlowLogResponse;
class PageFormBaseInfosHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosHeaders = PageFormBaseInfosHeaders;
class PageFormBaseInfosRequest extends $tea.Model {
    static names() {
        return {
            appKey: 'appKey',
            formTypeList: 'formTypeList',
            language: 'language',
            pageIndex: 'pageIndex',
            pageSize: 'pageSize',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appKey: 'string',
            formTypeList: { 'type': 'array', 'itemType': 'string' },
            language: 'string',
            pageIndex: 'number',
            pageSize: 'number',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosRequest = PageFormBaseInfosRequest;
class PageFormBaseInfosResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
            success: 'success',
        };
    }
    static types() {
        return {
            result: PageFormBaseInfosResponseBodyResult,
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosResponseBody = PageFormBaseInfosResponseBody;
class PageFormBaseInfosResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: PageFormBaseInfosResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosResponse = PageFormBaseInfosResponse;
class PreviewPublishedProcessHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PreviewPublishedProcessHeaders = PreviewPublishedProcessHeaders;
class PreviewPublishedProcessRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            departmentId: 'departmentId',
            formDataJson: 'formDataJson',
            formUuid: 'formUuid',
            language: 'language',
            processCode: 'processCode',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            departmentId: 'string',
            formDataJson: 'string',
            formUuid: 'string',
            language: 'string',
            processCode: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PreviewPublishedProcessRequest = PreviewPublishedProcessRequest;
class PreviewPublishedProcessResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: { 'type': 'array', 'itemType': PreviewPublishedProcessResponseBodyResult },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PreviewPublishedProcessResponseBody = PreviewPublishedProcessResponseBody;
class PreviewPublishedProcessResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: PreviewPublishedProcessResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PreviewPublishedProcessResponse = PreviewPublishedProcessResponse;
class QueryServiceRecordHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryServiceRecordHeaders = QueryServiceRecordHeaders;
class QueryServiceRecordRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formUuid: 'formUuid',
            hookType: 'hookType',
            hookUuid: 'hookUuid',
            instanceId: 'instanceId',
            invokeAfterDateGMT: 'invokeAfterDateGMT',
            invokeBeforeDateGMT: 'invokeBeforeDateGMT',
            invokeStatus: 'invokeStatus',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            requestUrl: 'requestUrl',
            sourceUuid: 'sourceUuid',
            success: 'success',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formUuid: 'string',
            hookType: 'string',
            hookUuid: 'string',
            instanceId: 'string',
            invokeAfterDateGMT: 'string',
            invokeBeforeDateGMT: 'string',
            invokeStatus: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            requestUrl: 'string',
            sourceUuid: 'string',
            success: 'boolean',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryServiceRecordRequest = QueryServiceRecordRequest;
class QueryServiceRecordResponseBody extends $tea.Model {
    static names() {
        return {
            totalCount: 'totalCount',
            values: 'values',
        };
    }
    static types() {
        return {
            totalCount: 'number',
            values: { 'type': 'array', 'itemType': QueryServiceRecordResponseBodyValues },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryServiceRecordResponseBody = QueryServiceRecordResponseBody;
class QueryServiceRecordResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryServiceRecordResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryServiceRecordResponse = QueryServiceRecordResponse;
class RedirectTaskHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RedirectTaskHeaders = RedirectTaskHeaders;
class RedirectTaskRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            byManager: 'byManager',
            language: 'language',
            nowActionExecutorId: 'nowActionExecutorId',
            processInstanceId: 'processInstanceId',
            remark: 'remark',
            systemToken: 'systemToken',
            taskId: 'taskId',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            byManager: 'string',
            language: 'string',
            nowActionExecutorId: 'string',
            processInstanceId: 'string',
            remark: 'string',
            systemToken: 'string',
            taskId: 'number',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RedirectTaskRequest = RedirectTaskRequest;
class RedirectTaskResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RedirectTaskResponse = RedirectTaskResponse;
class RefundCommodityHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RefundCommodityHeaders = RefundCommodityHeaders;
class RefundCommodityRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RefundCommodityRequest = RefundCommodityRequest;
class RefundCommodityResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            success: 'success',
        };
    }
    static types() {
        return {
            message: 'string',
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RefundCommodityResponseBody = RefundCommodityResponseBody;
class RefundCommodityResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: RefundCommodityResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RefundCommodityResponse = RefundCommodityResponse;
class RegisterAccountsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RegisterAccountsHeaders = RegisterAccountsHeaders;
class RegisterAccountsRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            activeCode: 'activeCode',
            corpId: 'corpId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            activeCode: 'string',
            corpId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RegisterAccountsRequest = RegisterAccountsRequest;
class RegisterAccountsResponseBody extends $tea.Model {
    static names() {
        return {
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RegisterAccountsResponseBody = RegisterAccountsResponseBody;
class RegisterAccountsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: RegisterAccountsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RegisterAccountsResponse = RegisterAccountsResponse;
class ReleaseCommodityHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ReleaseCommodityHeaders = ReleaseCommodityHeaders;
class ReleaseCommodityRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ReleaseCommodityRequest = ReleaseCommodityRequest;
class ReleaseCommodityResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            success: 'success',
        };
    }
    static types() {
        return {
            message: 'string',
            success: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ReleaseCommodityResponseBody = ReleaseCommodityResponseBody;
class ReleaseCommodityResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ReleaseCommodityResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ReleaseCommodityResponse = ReleaseCommodityResponse;
class RemoveTenantResourceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RemoveTenantResourceHeaders = RemoveTenantResourceHeaders;
class RemoveTenantResourceRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
        };
    }
    static types() {
        return {
            accessKey: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RemoveTenantResourceRequest = RemoveTenantResourceRequest;
class RemoveTenantResourceResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RemoveTenantResourceResponseBody = RemoveTenantResourceResponseBody;
class RemoveTenantResourceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: RemoveTenantResourceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RemoveTenantResourceResponse = RemoveTenantResourceResponse;
class RenderBatchCallbackHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenderBatchCallbackHeaders = RenderBatchCallbackHeaders;
class RenderBatchCallbackRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            corpId: 'corpId',
            fileSize: 'fileSize',
            language: 'language',
            namespace: 'namespace',
            ossUrl: 'ossUrl',
            sequenceId: 'sequenceId',
            source: 'source',
            status: 'status',
            systemToken: 'systemToken',
            timeZone: 'timeZone',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            corpId: 'string',
            fileSize: 'number',
            language: 'string',
            namespace: 'string',
            ossUrl: 'string',
            sequenceId: 'string',
            source: 'string',
            status: 'string',
            systemToken: 'string',
            timeZone: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenderBatchCallbackRequest = RenderBatchCallbackRequest;
class RenderBatchCallbackResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenderBatchCallbackResponse = RenderBatchCallbackResponse;
class RenewApplicationAuthorizationServiceOrderHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewApplicationAuthorizationServiceOrderHeaders = RenewApplicationAuthorizationServiceOrderHeaders;
class RenewApplicationAuthorizationServiceOrderRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUnionId: 'callerUnionId',
            endTimeGMT: 'endTimeGMT',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUnionId: 'string',
            endTimeGMT: 'number',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewApplicationAuthorizationServiceOrderRequest = RenewApplicationAuthorizationServiceOrderRequest;
class RenewApplicationAuthorizationServiceOrderResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewApplicationAuthorizationServiceOrderResponseBody = RenewApplicationAuthorizationServiceOrderResponseBody;
class RenewApplicationAuthorizationServiceOrderResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: RenewApplicationAuthorizationServiceOrderResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewApplicationAuthorizationServiceOrderResponse = RenewApplicationAuthorizationServiceOrderResponse;
class RenewTenantOrderHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewTenantOrderHeaders = RenewTenantOrderHeaders;
class RenewTenantOrderRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUnionId: 'callerUnionId',
            endTimeGMT: 'endTimeGMT',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUnionId: 'string',
            endTimeGMT: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewTenantOrderRequest = RenewTenantOrderRequest;
class RenewTenantOrderResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewTenantOrderResponseBody = RenewTenantOrderResponseBody;
class RenewTenantOrderResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: RenewTenantOrderResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.RenewTenantOrderResponse = RenewTenantOrderResponse;
class SaveFormDataHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormDataHeaders = SaveFormDataHeaders;
class SaveFormDataRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            formDataJson: 'formDataJson',
            formUuid: 'formUuid',
            language: 'language',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            formDataJson: 'string',
            formUuid: 'string',
            language: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormDataRequest = SaveFormDataRequest;
class SaveFormDataResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormDataResponseBody = SaveFormDataResponseBody;
class SaveFormDataResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SaveFormDataResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormDataResponse = SaveFormDataResponse;
class SaveFormRemarkHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormRemarkHeaders = SaveFormRemarkHeaders;
class SaveFormRemarkRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            atUserId: 'atUserId',
            content: 'content',
            formInstanceId: 'formInstanceId',
            language: 'language',
            replyId: 'replyId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            atUserId: 'string',
            content: 'string',
            formInstanceId: 'string',
            language: 'string',
            replyId: 'number',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormRemarkRequest = SaveFormRemarkRequest;
class SaveFormRemarkResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormRemarkResponseBody = SaveFormRemarkResponseBody;
class SaveFormRemarkResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SaveFormRemarkResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SaveFormRemarkResponse = SaveFormRemarkResponse;
class SavePrintTplDetailInfoHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SavePrintTplDetailInfoHeaders = SavePrintTplDetailInfoHeaders;
class SavePrintTplDetailInfoRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            description: 'description',
            fileNameConfig: 'fileNameConfig',
            formUuid: 'formUuid',
            formVersion: 'formVersion',
            setting: 'setting',
            templateId: 'templateId',
            title: 'title',
            userId: 'userId',
            vm: 'vm',
        };
    }
    static types() {
        return {
            appType: 'string',
            description: 'string',
            fileNameConfig: 'string',
            formUuid: 'string',
            formVersion: 'number',
            setting: 'string',
            templateId: 'number',
            title: 'string',
            userId: 'string',
            vm: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SavePrintTplDetailInfoRequest = SavePrintTplDetailInfoRequest;
class SavePrintTplDetailInfoResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SavePrintTplDetailInfoResponseBody = SavePrintTplDetailInfoResponseBody;
class SavePrintTplDetailInfoResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SavePrintTplDetailInfoResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SavePrintTplDetailInfoResponse = SavePrintTplDetailInfoResponse;
class SearchActivationCodeHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchActivationCodeHeaders = SearchActivationCodeHeaders;
class SearchActivationCodeRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchActivationCodeRequest = SearchActivationCodeRequest;
class SearchActivationCodeResponseBody extends $tea.Model {
    static names() {
        return {
            activationCode: 'activationCode',
            authType: 'authType',
            expireTimeGMT: 'expireTimeGMT',
            instanceId: 'instanceId',
            status: 'status',
        };
    }
    static types() {
        return {
            activationCode: 'string',
            authType: 'string',
            expireTimeGMT: 'string',
            instanceId: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchActivationCodeResponseBody = SearchActivationCodeResponseBody;
class SearchActivationCodeResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchActivationCodeResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchActivationCodeResponse = SearchActivationCodeResponse;
class SearchEmployeeFieldValuesHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchEmployeeFieldValuesHeaders = SearchEmployeeFieldValuesHeaders;
class SearchEmployeeFieldValuesRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            formUuid: 'formUuid',
            language: 'language',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            originatorId: 'originatorId',
            searchFieldJson: 'searchFieldJson',
            systemToken: 'systemToken',
            targetFieldJson: 'targetFieldJson',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            formUuid: 'string',
            language: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            originatorId: 'string',
            searchFieldJson: 'string',
            systemToken: 'string',
            targetFieldJson: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchEmployeeFieldValuesRequest = SearchEmployeeFieldValuesRequest;
class SearchEmployeeFieldValuesResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchEmployeeFieldValuesResponseBody = SearchEmployeeFieldValuesResponseBody;
class SearchEmployeeFieldValuesResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchEmployeeFieldValuesResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchEmployeeFieldValuesResponse = SearchEmployeeFieldValuesResponse;
class SearchFormDataIdListHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataIdListHeaders = SearchFormDataIdListHeaders;
class SearchFormDataIdListRequest extends $tea.Model {
    static names() {
        return {
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            language: 'language',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            originatorId: 'originatorId',
            searchFieldJson: 'searchFieldJson',
            systemToken: 'systemToken',
            userId: 'userId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
        };
    }
    static types() {
        return {
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            language: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            originatorId: 'string',
            searchFieldJson: 'string',
            systemToken: 'string',
            userId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataIdListRequest = SearchFormDataIdListRequest;
class SearchFormDataIdListResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': 'string' },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataIdListResponseBody = SearchFormDataIdListResponseBody;
class SearchFormDataIdListResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchFormDataIdListResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataIdListResponse = SearchFormDataIdListResponse;
class SearchFormDataRemovalTableDataHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataHeaders = SearchFormDataRemovalTableDataHeaders;
class SearchFormDataRemovalTableDataRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            formUuid: 'formUuid',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            orderConfigJson: 'orderConfigJson',
            originatorId: 'originatorId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            searchFieldJson: 'searchFieldJson',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            formUuid: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            orderConfigJson: 'string',
            originatorId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            searchFieldJson: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataRequest = SearchFormDataRemovalTableDataRequest;
class SearchFormDataRemovalTableDataResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            hasMoreData: 'hasMoreData',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': SearchFormDataRemovalTableDataResponseBodyData },
            hasMoreData: 'boolean',
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponseBody = SearchFormDataRemovalTableDataResponseBody;
class SearchFormDataRemovalTableDataResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchFormDataRemovalTableDataResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponse = SearchFormDataRemovalTableDataResponse;
class SearchFormDataSecondGenerationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationHeaders = SearchFormDataSecondGenerationHeaders;
class SearchFormDataSecondGenerationRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            formUuid: 'formUuid',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            orderConfigJson: 'orderConfigJson',
            originatorId: 'originatorId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            searchCondition: 'searchCondition',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            formUuid: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            orderConfigJson: 'string',
            originatorId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            searchCondition: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationRequest = SearchFormDataSecondGenerationRequest;
class SearchFormDataSecondGenerationResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': SearchFormDataSecondGenerationResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponseBody = SearchFormDataSecondGenerationResponseBody;
class SearchFormDataSecondGenerationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchFormDataSecondGenerationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponse = SearchFormDataSecondGenerationResponse;
class SearchFormDataSecondGenerationNoTableFieldHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldHeaders = SearchFormDataSecondGenerationNoTableFieldHeaders;
class SearchFormDataSecondGenerationNoTableFieldRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            formUuid: 'formUuid',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            orderConfigJson: 'orderConfigJson',
            originatorId: 'originatorId',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            searchCondition: 'searchCondition',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            formUuid: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            orderConfigJson: 'string',
            originatorId: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            searchCondition: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldRequest = SearchFormDataSecondGenerationNoTableFieldRequest;
class SearchFormDataSecondGenerationNoTableFieldResponseBody extends $tea.Model {
    static names() {
        return {
            data: 'data',
            pageNumber: 'pageNumber',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            data: { 'type': 'array', 'itemType': SearchFormDataSecondGenerationNoTableFieldResponseBodyData },
            pageNumber: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponseBody = SearchFormDataSecondGenerationNoTableFieldResponseBody;
class SearchFormDataSecondGenerationNoTableFieldResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchFormDataSecondGenerationNoTableFieldResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponse = SearchFormDataSecondGenerationNoTableFieldResponse;
class SearchFormDatasHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasHeaders = SearchFormDatasHeaders;
class SearchFormDatasRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            createFromTimeGMT: 'createFromTimeGMT',
            createToTimeGMT: 'createToTimeGMT',
            currentPage: 'currentPage',
            dynamicOrder: 'dynamicOrder',
            env: 'env',
            formUuid: 'formUuid',
            language: 'language',
            logicOperator: 'logicOperator',
            modifiedFromTimeGMT: 'modifiedFromTimeGMT',
            modifiedToTimeGMT: 'modifiedToTimeGMT',
            originatorId: 'originatorId',
            pageSize: 'pageSize',
            searchFieldJson: 'searchFieldJson',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            createFromTimeGMT: 'string',
            createToTimeGMT: 'string',
            currentPage: 'number',
            dynamicOrder: 'string',
            env: 'string',
            formUuid: 'string',
            language: 'string',
            logicOperator: 'string',
            modifiedFromTimeGMT: 'string',
            modifiedToTimeGMT: 'string',
            originatorId: 'string',
            pageSize: 'number',
            searchFieldJson: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasRequest = SearchFormDatasRequest;
class SearchFormDatasResponseBody extends $tea.Model {
    static names() {
        return {
            currentPage: 'currentPage',
            data: 'data',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            currentPage: 'number',
            data: { 'type': 'array', 'itemType': SearchFormDatasResponseBodyData },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponseBody = SearchFormDatasResponseBody;
class SearchFormDatasResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: SearchFormDatasResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponse = SearchFormDatasResponse;
class StartInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.StartInstanceHeaders = StartInstanceHeaders;
class StartInstanceRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            departmentId: 'departmentId',
            formDataJson: 'formDataJson',
            formUuid: 'formUuid',
            language: 'language',
            processCode: 'processCode',
            processData: 'processData',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            departmentId: 'string',
            formDataJson: 'string',
            formUuid: 'string',
            language: 'string',
            processCode: 'string',
            processData: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.StartInstanceRequest = StartInstanceRequest;
class StartInstanceResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.StartInstanceResponseBody = StartInstanceResponseBody;
class StartInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: StartInstanceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.StartInstanceResponse = StartInstanceResponse;
class TerminateCloudAuthorizationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateCloudAuthorizationHeaders = TerminateCloudAuthorizationHeaders;
class TerminateCloudAuthorizationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUnionId: 'callerUnionId',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUnionId: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateCloudAuthorizationRequest = TerminateCloudAuthorizationRequest;
class TerminateCloudAuthorizationResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateCloudAuthorizationResponseBody = TerminateCloudAuthorizationResponseBody;
class TerminateCloudAuthorizationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: TerminateCloudAuthorizationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateCloudAuthorizationResponse = TerminateCloudAuthorizationResponse;
class TerminateInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateInstanceHeaders = TerminateInstanceHeaders;
class TerminateInstanceRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            processInstanceId: 'processInstanceId',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            processInstanceId: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateInstanceRequest = TerminateInstanceRequest;
class TerminateInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.TerminateInstanceResponse = TerminateInstanceResponse;
class UpdateCloudAccountInformationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateCloudAccountInformationHeaders = UpdateCloudAccountInformationHeaders;
class UpdateCloudAccountInformationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            accountNumber: 'accountNumber',
            callerUnionId: 'callerUnionId',
            commodityType: 'commodityType',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            accountNumber: 'string',
            callerUnionId: 'string',
            commodityType: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateCloudAccountInformationRequest = UpdateCloudAccountInformationRequest;
class UpdateCloudAccountInformationResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateCloudAccountInformationResponseBody = UpdateCloudAccountInformationResponseBody;
class UpdateCloudAccountInformationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: UpdateCloudAccountInformationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateCloudAccountInformationResponse = UpdateCloudAccountInformationResponse;
class UpdateFormDataHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateFormDataHeaders = UpdateFormDataHeaders;
class UpdateFormDataRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            env: 'env',
            formInstanceId: 'formInstanceId',
            language: 'language',
            systemToken: 'systemToken',
            updateFormDataJson: 'updateFormDataJson',
            useLatestVersion: 'useLatestVersion',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            env: 'string',
            formInstanceId: 'string',
            language: 'string',
            systemToken: 'string',
            updateFormDataJson: 'string',
            useLatestVersion: 'boolean',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateFormDataRequest = UpdateFormDataRequest;
class UpdateFormDataResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateFormDataResponse = UpdateFormDataResponse;
class UpdateInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateInstanceHeaders = UpdateInstanceHeaders;
class UpdateInstanceRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            language: 'language',
            processInstanceId: 'processInstanceId',
            systemToken: 'systemToken',
            updateFormDataJson: 'updateFormDataJson',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            language: 'string',
            processInstanceId: 'string',
            systemToken: 'string',
            updateFormDataJson: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateInstanceRequest = UpdateInstanceRequest;
class UpdateInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateInstanceResponse = UpdateInstanceResponse;
class UpdateStatusHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateStatusHeaders = UpdateStatusHeaders;
class UpdateStatusRequest extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            errorLines: 'errorLines',
            importSequence: 'importSequence',
            language: 'language',
            status: 'status',
            systemToken: 'systemToken',
            userId: 'userId',
        };
    }
    static types() {
        return {
            appType: 'string',
            errorLines: { 'type': 'array', 'itemType': 'number' },
            importSequence: 'string',
            language: 'string',
            status: 'string',
            systemToken: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateStatusRequest = UpdateStatusRequest;
class UpdateStatusResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateStatusResponse = UpdateStatusResponse;
class UpgradeTenantInformationHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpgradeTenantInformationHeaders = UpgradeTenantInformationHeaders;
class UpgradeTenantInformationRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            accountNumber: 'accountNumber',
            callerUnionId: 'callerUnionId',
            commodityType: 'commodityType',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            accountNumber: 'string',
            callerUnionId: 'string',
            commodityType: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpgradeTenantInformationRequest = UpgradeTenantInformationRequest;
class UpgradeTenantInformationResponseBody extends $tea.Model {
    static names() {
        return {
            result: 'result',
        };
    }
    static types() {
        return {
            result: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpgradeTenantInformationResponseBody = UpgradeTenantInformationResponseBody;
class UpgradeTenantInformationResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: UpgradeTenantInformationResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpgradeTenantInformationResponse = UpgradeTenantInformationResponse;
class ValidateApplicationAuthorizationOrderHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationOrderHeaders = ValidateApplicationAuthorizationOrderHeaders;
class ValidateApplicationAuthorizationOrderRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUnionId: 'callerUnionId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUnionId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationOrderRequest = ValidateApplicationAuthorizationOrderRequest;
class ValidateApplicationAuthorizationOrderResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            status: 'status',
        };
    }
    static types() {
        return {
            message: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationOrderResponseBody = ValidateApplicationAuthorizationOrderResponseBody;
class ValidateApplicationAuthorizationOrderResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ValidateApplicationAuthorizationOrderResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationOrderResponse = ValidateApplicationAuthorizationOrderResponse;
class ValidateApplicationAuthorizationServiceOrderHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationServiceOrderHeaders = ValidateApplicationAuthorizationServiceOrderHeaders;
class ValidateApplicationAuthorizationServiceOrderRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
        };
    }
    static types() {
        return {
            accessKey: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationServiceOrderRequest = ValidateApplicationAuthorizationServiceOrderRequest;
class ValidateApplicationAuthorizationServiceOrderResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            status: 'status',
        };
    }
    static types() {
        return {
            message: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationServiceOrderResponseBody = ValidateApplicationAuthorizationServiceOrderResponseBody;
class ValidateApplicationAuthorizationServiceOrderResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ValidateApplicationAuthorizationServiceOrderResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationAuthorizationServiceOrderResponse = ValidateApplicationAuthorizationServiceOrderResponse;
class ValidateApplicationServiceOrderUpgradeHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationServiceOrderUpgradeHeaders = ValidateApplicationServiceOrderUpgradeHeaders;
class ValidateApplicationServiceOrderUpgradeRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
        };
    }
    static types() {
        return {
            accessKey: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationServiceOrderUpgradeRequest = ValidateApplicationServiceOrderUpgradeRequest;
class ValidateApplicationServiceOrderUpgradeResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            status: 'status',
        };
    }
    static types() {
        return {
            message: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationServiceOrderUpgradeResponseBody = ValidateApplicationServiceOrderUpgradeResponseBody;
class ValidateApplicationServiceOrderUpgradeResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ValidateApplicationServiceOrderUpgradeResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateApplicationServiceOrderUpgradeResponse = ValidateApplicationServiceOrderUpgradeResponse;
class ValidateOrderBuyHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderBuyHeaders = ValidateOrderBuyHeaders;
class ValidateOrderBuyRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderBuyRequest = ValidateOrderBuyRequest;
class ValidateOrderBuyResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            status: 'status',
        };
    }
    static types() {
        return {
            message: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderBuyResponseBody = ValidateOrderBuyResponseBody;
class ValidateOrderBuyResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ValidateOrderBuyResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderBuyResponse = ValidateOrderBuyResponse;
class ValidateOrderUpdateHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpdateHeaders = ValidateOrderUpdateHeaders;
class ValidateOrderUpdateRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpdateRequest = ValidateOrderUpdateRequest;
class ValidateOrderUpdateResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            status: 'status',
        };
    }
    static types() {
        return {
            message: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpdateResponseBody = ValidateOrderUpdateResponseBody;
class ValidateOrderUpdateResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ValidateOrderUpdateResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpdateResponse = ValidateOrderUpdateResponse;
class ValidateOrderUpgradeHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpgradeHeaders = ValidateOrderUpgradeHeaders;
class ValidateOrderUpgradeRequest extends $tea.Model {
    static names() {
        return {
            accessKey: 'accessKey',
            callerUid: 'callerUid',
            instanceId: 'instanceId',
        };
    }
    static types() {
        return {
            accessKey: 'string',
            callerUid: 'string',
            instanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpgradeRequest = ValidateOrderUpgradeRequest;
class ValidateOrderUpgradeResponseBody extends $tea.Model {
    static names() {
        return {
            message: 'message',
            status: 'status',
        };
    }
    static types() {
        return {
            message: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpgradeResponseBody = ValidateOrderUpgradeResponseBody;
class ValidateOrderUpgradeResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: ValidateOrderUpgradeResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ValidateOrderUpgradeResponse = ValidateOrderUpgradeResponse;
class BatchGetFormDataByIdListResponseBodyResultModifyUserName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponseBodyResultModifyUserName = BatchGetFormDataByIdListResponseBodyResultModifyUserName;
class BatchGetFormDataByIdListResponseBodyResultModifyUser extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: BatchGetFormDataByIdListResponseBodyResultModifyUserName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponseBodyResultModifyUser = BatchGetFormDataByIdListResponseBodyResultModifyUser;
class BatchGetFormDataByIdListResponseBodyResultOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponseBodyResultOriginatorName = BatchGetFormDataByIdListResponseBodyResultOriginatorName;
class BatchGetFormDataByIdListResponseBodyResultOriginator extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: BatchGetFormDataByIdListResponseBodyResultOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponseBodyResultOriginator = BatchGetFormDataByIdListResponseBodyResultOriginator;
class BatchGetFormDataByIdListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            createTimeGMT: 'createTimeGMT',
            creatorUserId: 'creatorUserId',
            formData: 'formData',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            id: 'id',
            instanceValue: 'instanceValue',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifier: 'modifier',
            modifyUser: 'modifyUser',
            originator: 'originator',
            sequence: 'sequence',
            serialNumber: 'serialNumber',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            createTimeGMT: 'string',
            creatorUserId: 'string',
            formData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formInstanceId: 'string',
            formUuid: 'string',
            id: 'number',
            instanceValue: 'string',
            modifiedTimeGMT: 'string',
            modifier: 'string',
            modifyUser: BatchGetFormDataByIdListResponseBodyResultModifyUser,
            originator: BatchGetFormDataByIdListResponseBodyResultOriginator,
            sequence: 'string',
            serialNumber: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchGetFormDataByIdListResponseBodyResult = BatchGetFormDataByIdListResponseBodyResult;
class GetActivityButtonListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            aliasInChinese: 'aliasInChinese',
            aliasInEnglish: 'aliasInEnglish',
        };
    }
    static types() {
        return {
            aliasInChinese: 'string',
            aliasInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityButtonListResponseBodyResult = GetActivityButtonListResponseBodyResult;
class GetActivityListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            activityId: 'activityId',
            activityName: 'activityName',
            activityNameInEnglish: 'activityNameInEnglish',
        };
    }
    static types() {
        return {
            activityId: 'string',
            activityName: 'string',
            activityNameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetActivityListResponseBodyResult = GetActivityListResponseBodyResult;
class GetAllAuthCubesResponseBodyResultCubeDataRanges extends $tea.Model {
    static names() {
        return {
            classifiedCode: 'classifiedCode',
            conditionKey: 'conditionKey',
            conditionValue: 'conditionValue',
            elementCode: 'elementCode',
            elementType: 'elementType',
            operator: 'operator',
        };
    }
    static types() {
        return {
            classifiedCode: 'string',
            conditionKey: 'string',
            conditionValue: { 'type': 'array', 'itemType': 'any' },
            elementCode: 'string',
            elementType: 'string',
            operator: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesResponseBodyResultCubeDataRanges = GetAllAuthCubesResponseBodyResultCubeDataRanges;
class GetAllAuthCubesResponseBodyResultUserInformation extends $tea.Model {
    static names() {
        return {
            authProvider: 'authProvider',
            corpId: 'corpId',
            departmentName: 'departmentName',
            name: 'name',
            nickName: 'nickName',
            realmId: 'realmId',
            refererNamespaceCode: 'refererNamespaceCode',
            showName: 'showName',
            workNo: 'workNo',
        };
    }
    static types() {
        return {
            authProvider: 'string',
            corpId: 'string',
            departmentName: 'string',
            name: 'string',
            nickName: 'string',
            realmId: 'number',
            refererNamespaceCode: 'string',
            showName: 'string',
            workNo: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesResponseBodyResultUserInformation = GetAllAuthCubesResponseBodyResultUserInformation;
class GetAllAuthCubesResponseBodyResult extends $tea.Model {
    static names() {
        return {
            apappliedCount: 'apappliedCount',
            appCode: 'appCode',
            appInstanceCode: 'appInstanceCode',
            appStoreCode: 'appStoreCode',
            authMode: 'authMode',
            authorizationType: 'authorizationType',
            businessProcessCode: 'businessProcessCode',
            categoriesFirst: 'categoriesFirst',
            categoriesSecond: 'categoriesSecond',
            createTimeGMT: 'createTimeGMT',
            creatorUserId: 'creatorUserId',
            cubeAuthType: 'cubeAuthType',
            cubeCode: 'cubeCode',
            cubeDataRange: 'cubeDataRange',
            cubeDataRanges: 'cubeDataRanges',
            cubeSource: 'cubeSource',
            dataCacheTimeConfiguration: 'dataCacheTimeConfiguration',
            dataflowCode: 'dataflowCode',
            description: 'description',
            domainCode: 'domainCode',
            enableCache: 'enableCache',
            id: 'id',
            isNeedApplication: 'isNeedApplication',
            isTrend: 'isTrend',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifier: 'modifier',
            name: 'name',
            namespaceCode: 'namespaceCode',
            owner: 'owner',
            sharedDataSet: 'sharedDataSet',
            tenantCorpId: 'tenantCorpId',
            type: 'type',
            userInformation: 'userInformation',
        };
    }
    static types() {
        return {
            apappliedCount: 'number',
            appCode: 'string',
            appInstanceCode: 'string',
            appStoreCode: 'string',
            authMode: 'string',
            authorizationType: 'number',
            businessProcessCode: 'string',
            categoriesFirst: 'string',
            categoriesSecond: 'string',
            createTimeGMT: 'string',
            creatorUserId: 'string',
            cubeAuthType: 'string',
            cubeCode: 'string',
            cubeDataRange: 'string',
            cubeDataRanges: { 'type': 'array', 'itemType': GetAllAuthCubesResponseBodyResultCubeDataRanges },
            cubeSource: 'string',
            dataCacheTimeConfiguration: 'string',
            dataflowCode: 'string',
            description: 'string',
            domainCode: 'string',
            enableCache: 'boolean',
            id: 'number',
            isNeedApplication: 'string',
            isTrend: 'string',
            modifiedTimeGMT: 'string',
            modifier: 'string',
            name: 'string',
            namespaceCode: 'string',
            owner: 'string',
            sharedDataSet: 'boolean',
            tenantCorpId: 'string',
            type: 'string',
            userInformation: GetAllAuthCubesResponseBodyResultUserInformation,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAllAuthCubesResponseBodyResult = GetAllAuthCubesResponseBodyResult;
class GetAutoFlowLogDetailResponseBodyData extends $tea.Model {
    static names() {
        return {
            activityKey: 'activityKey',
            elapsedTimeGMT: 'elapsedTimeGMT',
            finishTimeGMT: 'finishTimeGMT',
            flag: 'flag',
            inputParams: 'inputParams',
            name: 'name',
            others: 'others',
            outputParams: 'outputParams',
            status: 'status',
            uuid: 'uuid',
        };
    }
    static types() {
        return {
            activityKey: 'string',
            elapsedTimeGMT: 'number',
            finishTimeGMT: 'string',
            flag: 'string',
            inputParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            name: 'string',
            others: 'string',
            outputParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            status: 'string',
            uuid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAutoFlowLogDetailResponseBodyData = GetAutoFlowLogDetailResponseBodyData;
class GetCorpAccomplishmentTasksResponseBodyData extends $tea.Model {
    static names() {
        return {
            activeTimeGMT: 'activeTimeGMT',
            actualActionerId: 'actualActionerId',
            appType: 'appType',
            createTimeGMT: 'createTimeGMT',
            finishTimeGMT: 'finishTimeGMT',
            originatorEmail: 'originatorEmail',
            originatorId: 'originatorId',
            originatorName: 'originatorName',
            originatorNameInEnglish: 'originatorNameInEnglish',
            originatorNickName: 'originatorNickName',
            originatorNickNameInEnglish: 'originatorNickNameInEnglish',
            originatorPhoto: 'originatorPhoto',
            outResult: 'outResult',
            outResultName: 'outResultName',
            processInstanceId: 'processInstanceId',
            status: 'status',
            taskId: 'taskId',
            taskType: 'taskType',
            title: 'title',
            titleInEnglish: 'titleInEnglish',
        };
    }
    static types() {
        return {
            activeTimeGMT: 'string',
            actualActionerId: 'string',
            appType: 'string',
            createTimeGMT: 'string',
            finishTimeGMT: 'string',
            originatorEmail: 'string',
            originatorId: 'string',
            originatorName: 'string',
            originatorNameInEnglish: 'string',
            originatorNickName: 'string',
            originatorNickNameInEnglish: 'string',
            originatorPhoto: 'string',
            outResult: 'string',
            outResultName: 'string',
            processInstanceId: 'string',
            status: 'string',
            taskId: 'string',
            taskType: 'string',
            title: 'string',
            titleInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpAccomplishmentTasksResponseBodyData = GetCorpAccomplishmentTasksResponseBodyData;
class GetCorpTasksResponseBodyData extends $tea.Model {
    static names() {
        return {
            activeTimeGMT: 'activeTimeGMT',
            actualActionerId: 'actualActionerId',
            appType: 'appType',
            createTimeGMT: 'createTimeGMT',
            finishTimeGMT: 'finishTimeGMT',
            originatorEmail: 'originatorEmail',
            originatorId: 'originatorId',
            originatorName: 'originatorName',
            originatorNameInEnglish: 'originatorNameInEnglish',
            originatorNickName: 'originatorNickName',
            originatorNickNameEn: 'originatorNickNameEn',
            originatorPhoto: 'originatorPhoto',
            outResult: 'outResult',
            outResultName: 'outResultName',
            processInstanceId: 'processInstanceId',
            status: 'status',
            taskId: 'taskId',
            taskType: 'taskType',
            title: 'title',
            titleInEnglish: 'titleInEnglish',
        };
    }
    static types() {
        return {
            activeTimeGMT: 'string',
            actualActionerId: 'string',
            appType: 'string',
            createTimeGMT: 'string',
            finishTimeGMT: 'string',
            originatorEmail: 'string',
            originatorId: 'string',
            originatorName: 'string',
            originatorNameInEnglish: 'string',
            originatorNickName: 'string',
            originatorNickNameEn: 'string',
            originatorPhoto: 'string',
            outResult: 'string',
            outResultName: 'string',
            processInstanceId: 'string',
            status: 'string',
            taskId: 'string',
            taskType: 'string',
            title: 'string',
            titleInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetCorpTasksResponseBodyData = GetCorpTasksResponseBodyData;
class GetFieldDefByUuidResponseBodyResult extends $tea.Model {
    static names() {
        return {
            behavior: 'behavior',
            children: 'children',
            componentName: 'componentName',
            fieldId: 'fieldId',
            label: 'label',
            props: 'props',
        };
    }
    static types() {
        return {
            behavior: 'string',
            children: 'string',
            componentName: 'string',
            fieldId: 'string',
            label: 'any',
            props: 'any',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFieldDefByUuidResponseBodyResult = GetFieldDefByUuidResponseBodyResult;
class GetFormComponentDefinitionListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            componentName: 'componentName',
            fieldId: 'fieldId',
            label: 'label',
            parentId: 'parentId',
        };
    }
    static types() {
        return {
            componentName: 'string',
            fieldId: 'string',
            label: 'string',
            parentId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormComponentDefinitionListResponseBodyResult = GetFormComponentDefinitionListResponseBodyResult;
class GetFormDataByIDResponseBodyOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormDataByIDResponseBodyOriginatorName = GetFormDataByIDResponseBodyOriginatorName;
class GetFormDataByIDResponseBodyOriginator extends $tea.Model {
    static names() {
        return {
            departmentName: 'departmentName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentName: 'string',
            email: 'string',
            name: GetFormDataByIDResponseBodyOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormDataByIDResponseBodyOriginator = GetFormDataByIDResponseBodyOriginator;
class GetFormListInAppResponseBodyResultDataTitle extends $tea.Model {
    static names() {
        return {
            enUS: 'enUS',
            zhCN: 'zhCN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppResponseBodyResultDataTitle = GetFormListInAppResponseBodyResultDataTitle;
class GetFormListInAppResponseBodyResultData extends $tea.Model {
    static names() {
        return {
            creator: 'creator',
            formType: 'formType',
            formUuid: 'formUuid',
            gmtCreate: 'gmtCreate',
            title: 'title',
        };
    }
    static types() {
        return {
            creator: 'string',
            formType: 'string',
            formUuid: 'string',
            gmtCreate: 'string',
            title: GetFormListInAppResponseBodyResultDataTitle,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppResponseBodyResultData = GetFormListInAppResponseBodyResultData;
class GetFormListInAppResponseBodyResult extends $tea.Model {
    static names() {
        return {
            currentPage: 'currentPage',
            data: 'data',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            currentPage: 'number',
            data: { 'type': 'array', 'itemType': GetFormListInAppResponseBodyResultData },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetFormListInAppResponseBodyResult = GetFormListInAppResponseBodyResult;
class GetInstanceByIdResponseBodyActionExecutorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdResponseBodyActionExecutorName = GetInstanceByIdResponseBodyActionExecutorName;
class GetInstanceByIdResponseBodyActionExecutor extends $tea.Model {
    static names() {
        return {
            deptName: 'deptName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            deptName: 'string',
            email: 'string',
            name: GetInstanceByIdResponseBodyActionExecutorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdResponseBodyActionExecutor = GetInstanceByIdResponseBodyActionExecutor;
class GetInstanceByIdResponseBodyOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdResponseBodyOriginatorName = GetInstanceByIdResponseBodyOriginatorName;
class GetInstanceByIdResponseBodyOriginator extends $tea.Model {
    static names() {
        return {
            deptName: 'deptName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            deptName: 'string',
            email: 'string',
            name: GetInstanceByIdResponseBodyOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstanceByIdResponseBodyOriginator = GetInstanceByIdResponseBodyOriginator;
class GetInstancesResponseBodyDataActionExecutorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponseBodyDataActionExecutorName = GetInstancesResponseBodyDataActionExecutorName;
class GetInstancesResponseBodyDataActionExecutor extends $tea.Model {
    static names() {
        return {
            deptName: 'deptName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            deptName: 'string',
            email: 'string',
            name: GetInstancesResponseBodyDataActionExecutorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponseBodyDataActionExecutor = GetInstancesResponseBodyDataActionExecutor;
class GetInstancesResponseBodyDataOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponseBodyDataOriginatorName = GetInstancesResponseBodyDataOriginatorName;
class GetInstancesResponseBodyDataOriginator extends $tea.Model {
    static names() {
        return {
            deptName: 'deptName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            deptName: 'string',
            email: 'string',
            name: GetInstancesResponseBodyDataOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponseBodyDataOriginator = GetInstancesResponseBodyDataOriginator;
class GetInstancesResponseBodyData extends $tea.Model {
    static names() {
        return {
            actionExecutor: 'actionExecutor',
            approvedResult: 'approvedResult',
            createTimeGMT: 'createTimeGMT',
            data: 'data',
            formUuid: 'formUuid',
            instanceStatus: 'instanceStatus',
            modifiedTimeGMT: 'modifiedTimeGMT',
            originator: 'originator',
            processCode: 'processCode',
            processInstanceId: 'processInstanceId',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            actionExecutor: { 'type': 'array', 'itemType': GetInstancesResponseBodyDataActionExecutor },
            approvedResult: 'string',
            createTimeGMT: 'string',
            data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formUuid: 'string',
            instanceStatus: 'string',
            modifiedTimeGMT: 'string',
            originator: GetInstancesResponseBodyDataOriginator,
            processCode: 'string',
            processInstanceId: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesResponseBodyData = GetInstancesResponseBodyData;
class GetInstancesByIdListResponseBodyResultActionExecutorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponseBodyResultActionExecutorName = GetInstancesByIdListResponseBodyResultActionExecutorName;
class GetInstancesByIdListResponseBodyResultActionExecutor extends $tea.Model {
    static names() {
        return {
            departmentName: 'departmentName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentName: 'string',
            email: 'string',
            name: GetInstancesByIdListResponseBodyResultActionExecutorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponseBodyResultActionExecutor = GetInstancesByIdListResponseBodyResultActionExecutor;
class GetInstancesByIdListResponseBodyResultOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponseBodyResultOriginatorName = GetInstancesByIdListResponseBodyResultOriginatorName;
class GetInstancesByIdListResponseBodyResultOriginator extends $tea.Model {
    static names() {
        return {
            departmentName: 'departmentName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentName: 'string',
            email: 'string',
            name: GetInstancesByIdListResponseBodyResultOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponseBodyResultOriginator = GetInstancesByIdListResponseBodyResultOriginator;
class GetInstancesByIdListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            actionExecutor: 'actionExecutor',
            approvedResult: 'approvedResult',
            data: 'data',
            formUuid: 'formUuid',
            instanceStatus: 'instanceStatus',
            originator: 'originator',
            processCode: 'processCode',
            processInstanceId: 'processInstanceId',
            title: 'title',
        };
    }
    static types() {
        return {
            actionExecutor: { 'type': 'array', 'itemType': GetInstancesByIdListResponseBodyResultActionExecutor },
            approvedResult: 'string',
            data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formUuid: 'string',
            instanceStatus: 'string',
            originator: GetInstancesByIdListResponseBodyResultOriginator,
            processCode: 'string',
            processInstanceId: 'string',
            title: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetInstancesByIdListResponseBodyResult = GetInstancesByIdListResponseBodyResult;
class GetMeCorpSubmissionResponseBodyDataActioner extends $tea.Model {
    static names() {
        return {
            buName: 'buName',
            email: 'email',
            employeeType: 'employeeType',
            employeeTypeInformation: 'employeeTypeInformation',
            humanResourceGroupWorkNumber: 'humanResourceGroupWorkNumber',
            isSystemAdmin: 'isSystemAdmin',
            level: 'level',
            name: 'name',
            nickName: 'nickName',
            orderNumber: 'orderNumber',
            personalPhoto: 'personalPhoto',
            personalPhotoUrl: 'personalPhotoUrl',
            pinyinNameAll: 'pinyinNameAll',
            pinyinNickName: 'pinyinNickName',
            state: 'state',
            superUserId: 'superUserId',
            tbWang: 'tbWang',
            userId: 'userId',
        };
    }
    static types() {
        return {
            buName: 'string',
            email: 'string',
            employeeType: 'string',
            employeeTypeInformation: 'string',
            humanResourceGroupWorkNumber: 'string',
            isSystemAdmin: 'boolean',
            level: 'string',
            name: 'string',
            nickName: 'string',
            orderNumber: 'string',
            personalPhoto: 'string',
            personalPhotoUrl: 'string',
            pinyinNameAll: 'string',
            pinyinNickName: 'string',
            state: 'string',
            superUserId: 'string',
            tbWang: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionResponseBodyDataActioner = GetMeCorpSubmissionResponseBodyDataActioner;
class GetMeCorpSubmissionResponseBodyDataCurrentActivityInstances extends $tea.Model {
    static names() {
        return {
            activityId: 'activityId',
            activityInstanceStatus: 'activityInstanceStatus',
            activityName: 'activityName',
            activityNameEn: 'activityNameEn',
            id: 'id',
        };
    }
    static types() {
        return {
            activityId: 'string',
            activityInstanceStatus: 'string',
            activityName: 'string',
            activityNameEn: 'string',
            id: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionResponseBodyDataCurrentActivityInstances = GetMeCorpSubmissionResponseBodyDataCurrentActivityInstances;
class GetMeCorpSubmissionResponseBodyData extends $tea.Model {
    static names() {
        return {
            actioner: 'actioner',
            actionerId: 'actionerId',
            actionerName: 'actionerName',
            appType: 'appType',
            createTimeGMT: 'createTimeGMT',
            currentActivityInstances: 'currentActivityInstances',
            dataMap: 'dataMap',
            dataType: 'dataType',
            finishTimeGMT: 'finishTimeGMT',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            instanceValue: 'instanceValue',
            modifiedTimeGMT: 'modifiedTimeGMT',
            originatorAvatar: 'originatorAvatar',
            originatorDisplayName: 'originatorDisplayName',
            originatorId: 'originatorId',
            processApprovedResult: 'processApprovedResult',
            processApprovedResultText: 'processApprovedResultText',
            processCode: 'processCode',
            processId: 'processId',
            processInstanceId: 'processInstanceId',
            processInstanceStatus: 'processInstanceStatus',
            processInstanceStatusText: 'processInstanceStatusText',
            processName: 'processName',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            actioner: { 'type': 'array', 'itemType': GetMeCorpSubmissionResponseBodyDataActioner },
            actionerId: { 'type': 'array', 'itemType': 'string' },
            actionerName: { 'type': 'array', 'itemType': 'string' },
            appType: 'string',
            createTimeGMT: 'string',
            currentActivityInstances: { 'type': 'array', 'itemType': GetMeCorpSubmissionResponseBodyDataCurrentActivityInstances },
            dataMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            dataType: 'string',
            finishTimeGMT: 'string',
            formInstanceId: 'string',
            formUuid: 'string',
            instanceValue: 'string',
            modifiedTimeGMT: 'string',
            originatorAvatar: 'string',
            originatorDisplayName: 'string',
            originatorId: 'string',
            processApprovedResult: 'string',
            processApprovedResultText: 'string',
            processCode: 'string',
            processId: 'number',
            processInstanceId: 'string',
            processInstanceStatus: 'string',
            processInstanceStatusText: 'string',
            processName: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetMeCorpSubmissionResponseBodyData = GetMeCorpSubmissionResponseBodyData;
class GetNotifyMeResponseBodyData extends $tea.Model {
    static names() {
        return {
            activityId: 'activityId',
            appType: 'appType',
            corpId: 'corpId',
            createTimeGMT: 'createTimeGMT',
            creatorUserId: 'creatorUserId',
            formInstanceId: 'formInstanceId',
            instStatus: 'instStatus',
            mobileUrl: 'mobileUrl',
            modifiedTimeGMT: 'modifiedTimeGMT',
            processCode: 'processCode',
            title: 'title',
            titleInEnglish: 'titleInEnglish',
            url: 'url',
        };
    }
    static types() {
        return {
            activityId: 'string',
            appType: 'string',
            corpId: 'string',
            createTimeGMT: 'string',
            creatorUserId: 'string',
            formInstanceId: 'string',
            instStatus: 'string',
            mobileUrl: 'string',
            modifiedTimeGMT: 'string',
            processCode: 'string',
            title: 'string',
            titleInEnglish: 'string',
            url: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetNotifyMeResponseBodyData = GetNotifyMeResponseBodyData;
class GetOperationRecordsResponseBodyResultDomainListOperatorAgentIdList extends $tea.Model {
    static names() {
        return {
            departmentDescription: 'departmentDescription',
            displayName: 'displayName',
            displayNameInEnglish: 'displayNameInEnglish',
            orderNumber: 'orderNumber',
            personalPhoto: 'personalPhoto',
            status: 'status',
            userId: 'userId',
            userInformation: 'userInformation',
        };
    }
    static types() {
        return {
            departmentDescription: 'string',
            displayName: 'string',
            displayNameInEnglish: 'string',
            orderNumber: 'string',
            personalPhoto: 'string',
            status: 'string',
            userId: 'string',
            userInformation: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsResponseBodyResultDomainListOperatorAgentIdList = GetOperationRecordsResponseBodyResultDomainListOperatorAgentIdList;
class GetOperationRecordsResponseBodyResultDomainList extends $tea.Model {
    static names() {
        return {
            action: 'action',
            activeTimeGMT: 'activeTimeGMT',
            activityId: 'activityId',
            digitalSignature: 'digitalSignature',
            files: 'files',
            formatAction: 'formatAction',
            operateTimeGMT: 'operateTimeGMT',
            operateType: 'operateType',
            operator: 'operator',
            operatorAgentIdList: 'operatorAgentIdList',
            operatorDisplayName: 'operatorDisplayName',
            operatorName: 'operatorName',
            operatorNickName: 'operatorNickName',
            operatorPhotoUrl: 'operatorPhotoUrl',
            operatorStatus: 'operatorStatus',
            processInstanceId: 'processInstanceId',
            remark: 'remark',
            showName: 'showName',
            size: 'size',
            taskExecuteType: 'taskExecuteType',
            taskHoldTimeGMT: 'taskHoldTimeGMT',
            taskId: 'taskId',
            taskType: 'taskType',
            type: 'type',
        };
    }
    static types() {
        return {
            action: 'string',
            activeTimeGMT: 'string',
            activityId: 'string',
            digitalSignature: 'string',
            files: 'string',
            formatAction: 'string',
            operateTimeGMT: 'string',
            operateType: 'string',
            operator: 'string',
            operatorAgentIdList: { 'type': 'array', 'itemType': GetOperationRecordsResponseBodyResultDomainListOperatorAgentIdList },
            operatorDisplayName: 'string',
            operatorName: 'string',
            operatorNickName: 'string',
            operatorPhotoUrl: 'string',
            operatorStatus: 'string',
            processInstanceId: 'string',
            remark: 'string',
            showName: 'string',
            size: 'number',
            taskExecuteType: 'string',
            taskHoldTimeGMT: 'number',
            taskId: 'string',
            taskType: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsResponseBodyResultDomainList = GetOperationRecordsResponseBodyResultDomainList;
class GetOperationRecordsResponseBodyResult extends $tea.Model {
    static names() {
        return {
            action: 'action',
            actionExit: 'actionExit',
            activeTimeGMT: 'activeTimeGMT',
            activityId: 'activityId',
            dataId: 'dataId',
            digitalSign: 'digitalSign',
            domainList: 'domainList',
            files: 'files',
            operateTimeGMT: 'operateTimeGMT',
            operateType: 'operateType',
            operatorDisplayName: 'operatorDisplayName',
            operatorName: 'operatorName',
            operatorNickName: 'operatorNickName',
            operatorPhotoUrl: 'operatorPhotoUrl',
            operatorStatus: 'operatorStatus',
            operatorUserId: 'operatorUserId',
            processInstanceId: 'processInstanceId',
            remark: 'remark',
            showName: 'showName',
            size: 'size',
            taskExecuteType: 'taskExecuteType',
            taskHoldTimeGMT: 'taskHoldTimeGMT',
            taskId: 'taskId',
            taskType: 'taskType',
            type: 'type',
        };
    }
    static types() {
        return {
            action: 'string',
            actionExit: 'string',
            activeTimeGMT: 'string',
            activityId: 'string',
            dataId: 'number',
            digitalSign: 'string',
            domainList: { 'type': 'array', 'itemType': GetOperationRecordsResponseBodyResultDomainList },
            files: 'string',
            operateTimeGMT: 'string',
            operateType: 'string',
            operatorDisplayName: 'string',
            operatorName: 'string',
            operatorNickName: 'string',
            operatorPhotoUrl: 'string',
            operatorStatus: 'string',
            operatorUserId: 'string',
            processInstanceId: 'string',
            remark: 'string',
            showName: 'string',
            size: 'number',
            taskExecuteType: 'string',
            taskHoldTimeGMT: 'number',
            taskId: 'string',
            taskType: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOperationRecordsResponseBodyResult = GetOperationRecordsResponseBodyResult;
class GetPrintAppInfoResponseBodyResultFormInfoList extends $tea.Model {
    static names() {
        return {
            formName: 'formName',
            formUuid: 'formUuid',
        };
    }
    static types() {
        return {
            formName: 'string',
            formUuid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintAppInfoResponseBodyResultFormInfoList = GetPrintAppInfoResponseBodyResultFormInfoList;
class GetPrintAppInfoResponseBodyResult extends $tea.Model {
    static names() {
        return {
            appName: 'appName',
            appType: 'appType',
            formInfoList: 'formInfoList',
            iconUrl: 'iconUrl',
        };
    }
    static types() {
        return {
            appName: 'string',
            appType: 'string',
            formInfoList: { 'type': 'array', 'itemType': GetPrintAppInfoResponseBodyResultFormInfoList },
            iconUrl: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetPrintAppInfoResponseBodyResult = GetPrintAppInfoResponseBodyResult;
class GetProcessDefinitionResponseBodyOriginatorMasterDataDepartments extends $tea.Model {
    static names() {
        return {
            deptName: 'deptName',
            deptNameInEnglish: 'deptNameInEnglish',
            deptNo: 'deptNo',
            deptPath: 'deptPath',
            humanSourceGroupOrderNumber: 'humanSourceGroupOrderNumber',
            humanSourceGroupWorkNo: 'humanSourceGroupWorkNo',
            id: 'id',
            masterWorkNo: 'masterWorkNo',
        };
    }
    static types() {
        return {
            deptName: 'string',
            deptNameInEnglish: 'string',
            deptNo: 'string',
            deptPath: 'string',
            humanSourceGroupOrderNumber: 'string',
            humanSourceGroupWorkNo: 'string',
            id: 'number',
            masterWorkNo: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBodyOriginatorMasterDataDepartments = GetProcessDefinitionResponseBodyOriginatorMasterDataDepartments;
class GetProcessDefinitionResponseBodyOriginator extends $tea.Model {
    static names() {
        return {
            departmentDescription: 'departmentDescription',
            displayEnName: 'displayEnName',
            displayName: 'displayName',
            masterDataDepartments: 'masterDataDepartments',
            orderNumber: 'orderNumber',
            personalPhoto: 'personalPhoto',
            status: 'status',
            tbWang: 'tbWang',
            userId: 'userId',
            userInfo: 'userInfo',
        };
    }
    static types() {
        return {
            departmentDescription: 'string',
            displayEnName: 'string',
            displayName: 'string',
            masterDataDepartments: { 'type': 'array', 'itemType': GetProcessDefinitionResponseBodyOriginatorMasterDataDepartments },
            orderNumber: 'string',
            personalPhoto: 'string',
            status: 'string',
            tbWang: 'string',
            userId: 'string',
            userInfo: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBodyOriginator = GetProcessDefinitionResponseBodyOriginator;
class GetProcessDefinitionResponseBodyOwnersMasterDataDepartments extends $tea.Model {
    static names() {
        return {
            deptName: 'deptName',
            deptNameInEnglish: 'deptNameInEnglish',
            deptNo: 'deptNo',
            deptPath: 'deptPath',
            humanSourceGroupOrderNumber: 'humanSourceGroupOrderNumber',
            humanSourceGroupWorkNo: 'humanSourceGroupWorkNo',
            id: 'id',
            masterWorkNo: 'masterWorkNo',
        };
    }
    static types() {
        return {
            deptName: 'string',
            deptNameInEnglish: 'string',
            deptNo: 'string',
            deptPath: 'string',
            humanSourceGroupOrderNumber: 'string',
            humanSourceGroupWorkNo: 'string',
            id: 'number',
            masterWorkNo: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBodyOwnersMasterDataDepartments = GetProcessDefinitionResponseBodyOwnersMasterDataDepartments;
class GetProcessDefinitionResponseBodyOwners extends $tea.Model {
    static names() {
        return {
            departmentDescription: 'departmentDescription',
            displayEnName: 'displayEnName',
            displayName: 'displayName',
            masterDataDepartments: 'masterDataDepartments',
            orderNumber: 'orderNumber',
            personalPhoto: 'personalPhoto',
            status: 'status',
            tbWang: 'tbWang',
            userId: 'userId',
            userInfo: 'userInfo',
        };
    }
    static types() {
        return {
            departmentDescription: 'string',
            displayEnName: 'string',
            displayName: 'string',
            masterDataDepartments: { 'type': 'array', 'itemType': GetProcessDefinitionResponseBodyOwnersMasterDataDepartments },
            orderNumber: 'string',
            personalPhoto: 'string',
            status: 'string',
            tbWang: 'string',
            userId: 'string',
            userInfo: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBodyOwners = GetProcessDefinitionResponseBodyOwners;
class GetProcessDefinitionResponseBodyTasksActivity extends $tea.Model {
    static names() {
        return {
            activityId: 'activityId',
            activityInstanceStatus: 'activityInstanceStatus',
            activityName: 'activityName',
            activityNameInEnglish: 'activityNameInEnglish',
            id: 'id',
        };
    }
    static types() {
        return {
            activityId: 'string',
            activityInstanceStatus: 'string',
            activityName: 'string',
            activityNameInEnglish: 'string',
            id: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBodyTasksActivity = GetProcessDefinitionResponseBodyTasksActivity;
class GetProcessDefinitionResponseBodyTasks extends $tea.Model {
    static names() {
        return {
            actionerId: 'actionerId',
            activity: 'activity',
            status: 'status',
            taskId: 'taskId',
        };
    }
    static types() {
        return {
            actionerId: 'string',
            activity: GetProcessDefinitionResponseBodyTasksActivity,
            status: 'string',
            taskId: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDefinitionResponseBodyTasks = GetProcessDefinitionResponseBodyTasks;
class GetProcessDesignResponseBodyApprovalSummaryTitle extends $tea.Model {
    static names() {
        return {
            enUS: 'en_US',
            type: 'type',
            zhCN: 'zh_CN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            type: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyApprovalSummaryTitle = GetProcessDesignResponseBodyApprovalSummaryTitle;
class GetProcessDesignResponseBodyApprovalSummary extends $tea.Model {
    static names() {
        return {
            title: 'title',
        };
    }
    static types() {
        return {
            title: GetProcessDesignResponseBodyApprovalSummaryTitle,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyApprovalSummary = GetProcessDesignResponseBodyApprovalSummary;
class GetProcessDesignResponseBodyFlowConfigSidInstDetail extends $tea.Model {
    static names() {
        return {
            fieldBehavior: 'fieldBehavior',
            fieldId: 'fieldId',
        };
    }
    static types() {
        return {
            fieldBehavior: 'string',
            fieldId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyFlowConfigSidInstDetail = GetProcessDesignResponseBodyFlowConfigSidInstDetail;
class GetProcessDesignResponseBodyFlowConfig extends $tea.Model {
    static names() {
        return {
            sidInstDetail: 'sid_instDetail',
        };
    }
    static types() {
        return {
            sidInstDetail: { 'type': 'array', 'itemType': GetProcessDesignResponseBodyFlowConfigSidInstDetail },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyFlowConfig = GetProcessDesignResponseBodyFlowConfig;
class GetProcessDesignResponseBodyFormulaRulesName extends $tea.Model {
    static names() {
        return {
            enUS: 'en_US',
            zhCN: 'zh_CN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyFormulaRulesName = GetProcessDesignResponseBodyFormulaRulesName;
class GetProcessDesignResponseBodyFormulaRulesRule extends $tea.Model {
    static names() {
        return {
            content: 'content',
            displayRule: 'displayRule',
            source: 'source',
        };
    }
    static types() {
        return {
            content: 'string',
            displayRule: 'string',
            source: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyFormulaRulesRule = GetProcessDesignResponseBodyFormulaRulesRule;
class GetProcessDesignResponseBodyFormulaRules extends $tea.Model {
    static names() {
        return {
            activityAction: 'activityAction',
            activityId: 'activityId',
            block: 'block',
            message: 'message',
            name: 'name',
            nodeType: 'nodeType',
            rule: 'rule',
            ruleType: 'ruleType',
            triggerMode: 'triggerMode',
        };
    }
    static types() {
        return {
            activityAction: { 'type': 'array', 'itemType': 'string' },
            activityId: { 'type': 'array', 'itemType': 'string' },
            block: 'string',
            message: 'string',
            name: GetProcessDesignResponseBodyFormulaRulesName,
            nodeType: 'string',
            rule: GetProcessDesignResponseBodyFormulaRulesRule,
            ruleType: 'string',
            triggerMode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyFormulaRules = GetProcessDesignResponseBodyFormulaRules;
class GetProcessDesignResponseBodyNodesName extends $tea.Model {
    static names() {
        return {
            enUS: 'en_US',
            zhCN: 'zh_CN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyNodesName = GetProcessDesignResponseBodyNodesName;
class GetProcessDesignResponseBodyNodes extends $tea.Model {
    static names() {
        return {
            childNodes: 'childNodes',
            description: 'description',
            name: 'name',
            nextId: 'nextId',
            nodeId: 'nodeId',
            prevId: 'prevId',
            props: 'props',
            type: 'type',
        };
    }
    static types() {
        return {
            childNodes: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
            description: 'string',
            name: GetProcessDesignResponseBodyNodesName,
            nextId: { 'type': 'array', 'itemType': 'string' },
            nodeId: 'string',
            prevId: 'string',
            props: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyNodes = GetProcessDesignResponseBodyNodes;
class GetProcessDesignResponseBodyProps extends $tea.Model {
    static names() {
        return {
            allowCollaboration: 'allowCollaboration',
            allowTemporaryStorage: 'allowTemporaryStorage',
            allowWithdraw: 'allowWithdraw',
            bindingForm: 'bindingForm',
            noRecordRecall: 'noRecordRecall',
            processCode: 'processCode',
            processDetailUrl: 'processDetailUrl',
            processInitUrl: 'processInitUrl',
            processMobileDetailUrl: 'processMobileDetailUrl',
            stopAssociationRulesIfFailed: 'stopAssociationRulesIfFailed',
        };
    }
    static types() {
        return {
            allowCollaboration: 'boolean',
            allowTemporaryStorage: 'boolean',
            allowWithdraw: 'boolean',
            bindingForm: 'string',
            noRecordRecall: 'boolean',
            processCode: 'string',
            processDetailUrl: 'string',
            processInitUrl: 'string',
            processMobileDetailUrl: 'string',
            stopAssociationRulesIfFailed: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignResponseBodyProps = GetProcessDesignResponseBodyProps;
class GetProcessDesignByCodeResponseBodyApprovalSummaryTitle extends $tea.Model {
    static names() {
        return {
            enUS: 'en_US',
            type: 'type',
            zhCN: 'zh_CN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            type: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyApprovalSummaryTitle = GetProcessDesignByCodeResponseBodyApprovalSummaryTitle;
class GetProcessDesignByCodeResponseBodyApprovalSummary extends $tea.Model {
    static names() {
        return {
            title: 'title',
        };
    }
    static types() {
        return {
            title: GetProcessDesignByCodeResponseBodyApprovalSummaryTitle,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyApprovalSummary = GetProcessDesignByCodeResponseBodyApprovalSummary;
class GetProcessDesignByCodeResponseBodyFlowConfigSidInstDetail extends $tea.Model {
    static names() {
        return {
            fieldBehavior: 'fieldBehavior',
            fieldId: 'fieldId',
        };
    }
    static types() {
        return {
            fieldBehavior: 'string',
            fieldId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyFlowConfigSidInstDetail = GetProcessDesignByCodeResponseBodyFlowConfigSidInstDetail;
class GetProcessDesignByCodeResponseBodyFlowConfig extends $tea.Model {
    static names() {
        return {
            sidInstDetail: 'sid_instDetail',
        };
    }
    static types() {
        return {
            sidInstDetail: { 'type': 'array', 'itemType': GetProcessDesignByCodeResponseBodyFlowConfigSidInstDetail },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyFlowConfig = GetProcessDesignByCodeResponseBodyFlowConfig;
class GetProcessDesignByCodeResponseBodyFormulaRulesName extends $tea.Model {
    static names() {
        return {
            enUS: 'en_US',
            zhCN: 'zh_CN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyFormulaRulesName = GetProcessDesignByCodeResponseBodyFormulaRulesName;
class GetProcessDesignByCodeResponseBodyFormulaRulesRule extends $tea.Model {
    static names() {
        return {
            content: 'content',
            displayRule: 'displayRule',
            source: 'source',
        };
    }
    static types() {
        return {
            content: 'string',
            displayRule: 'string',
            source: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyFormulaRulesRule = GetProcessDesignByCodeResponseBodyFormulaRulesRule;
class GetProcessDesignByCodeResponseBodyFormulaRules extends $tea.Model {
    static names() {
        return {
            activityAction: 'activityAction',
            activityId: 'activityId',
            block: 'block',
            message: 'message',
            name: 'name',
            nodeType: 'nodeType',
            rule: 'rule',
            ruleType: 'ruleType',
            triggerMode: 'triggerMode',
        };
    }
    static types() {
        return {
            activityAction: { 'type': 'array', 'itemType': 'string' },
            activityId: { 'type': 'array', 'itemType': 'string' },
            block: 'string',
            message: 'string',
            name: GetProcessDesignByCodeResponseBodyFormulaRulesName,
            nodeType: 'string',
            rule: GetProcessDesignByCodeResponseBodyFormulaRulesRule,
            ruleType: 'string',
            triggerMode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyFormulaRules = GetProcessDesignByCodeResponseBodyFormulaRules;
class GetProcessDesignByCodeResponseBodyNodesName extends $tea.Model {
    static names() {
        return {
            enUS: 'en_US',
            zhCN: 'zh_CN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyNodesName = GetProcessDesignByCodeResponseBodyNodesName;
class GetProcessDesignByCodeResponseBodyNodes extends $tea.Model {
    static names() {
        return {
            childNodes: 'childNodes',
            description: 'description',
            name: 'name',
            nextId: 'nextId',
            nodeId: 'nodeId',
            prevId: 'prevId',
            props: 'props',
            type: 'type',
        };
    }
    static types() {
        return {
            childNodes: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
            description: 'string',
            name: GetProcessDesignByCodeResponseBodyNodesName,
            nextId: { 'type': 'array', 'itemType': 'string' },
            nodeId: 'string',
            prevId: 'string',
            props: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyNodes = GetProcessDesignByCodeResponseBodyNodes;
class GetProcessDesignByCodeResponseBodyProps extends $tea.Model {
    static names() {
        return {
            allowCollaboration: 'allowCollaboration',
            allowTemporaryStorage: 'allowTemporaryStorage',
            allowWithdraw: 'allowWithdraw',
            bindingForm: 'bindingForm',
            noRecordRecall: 'noRecordRecall',
            processCode: 'processCode',
            processDetailUrl: 'processDetailUrl',
            processInitUrl: 'processInitUrl',
            processMobileDetailUrl: 'processMobileDetailUrl',
            stopAssociationRulesIfFailed: 'stopAssociationRulesIfFailed',
        };
    }
    static types() {
        return {
            allowCollaboration: 'boolean',
            allowTemporaryStorage: 'boolean',
            allowWithdraw: 'boolean',
            bindingForm: 'string',
            noRecordRecall: 'boolean',
            processCode: 'string',
            processDetailUrl: 'string',
            processInitUrl: 'string',
            processMobileDetailUrl: 'string',
            stopAssociationRulesIfFailed: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetProcessDesignByCodeResponseBodyProps = GetProcessDesignByCodeResponseBodyProps;
class GetRunningTaskListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            activeTimeGMT: 'activeTimeGMT',
            actualActionExecutorId: 'actualActionExecutorId',
            appType: 'appType',
            createTimeGMT: 'createTimeGMT',
            finishTimeGMT: 'finishTimeGMT',
            originatorEmail: 'originatorEmail',
            originatorId: 'originatorId',
            originatorName: 'originatorName',
            originatorNameInEnglish: 'originatorNameInEnglish',
            originatorNickName: 'originatorNickName',
            originatorNickNameInEnglish: 'originatorNickNameInEnglish',
            originatorPhoto: 'originatorPhoto',
            outResult: 'outResult',
            outResultName: 'outResultName',
            processInstanceId: 'processInstanceId',
            status: 'status',
            taskId: 'taskId',
            taskType: 'taskType',
            title: 'title',
            titleInEnglish: 'titleInEnglish',
        };
    }
    static types() {
        return {
            activeTimeGMT: 'string',
            actualActionExecutorId: 'string',
            appType: 'string',
            createTimeGMT: 'string',
            finishTimeGMT: 'string',
            originatorEmail: 'string',
            originatorId: 'string',
            originatorName: 'string',
            originatorNameInEnglish: 'string',
            originatorNickName: 'string',
            originatorNickNameInEnglish: 'string',
            originatorPhoto: 'string',
            outResult: 'string',
            outResultName: 'string',
            processInstanceId: 'string',
            status: 'string',
            taskId: 'string',
            taskType: 'string',
            title: 'string',
            titleInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTaskListResponseBodyResult = GetRunningTaskListResponseBodyResult;
class GetRunningTasksResponseBodyResult extends $tea.Model {
    static names() {
        return {
            activeTimeGMT: 'activeTimeGMT',
            activityId: 'activityId',
            actualActionerId: 'actualActionerId',
            createTimeGMT: 'createTimeGMT',
            finishTimeGMT: 'finishTimeGMT',
            originatorId: 'originatorId',
            processInstanceId: 'processInstanceId',
            status: 'status',
            taskId: 'taskId',
            taskType: 'taskType',
            title: 'title',
            titleInEnglish: 'titleInEnglish',
        };
    }
    static types() {
        return {
            activeTimeGMT: 'string',
            activityId: 'string',
            actualActionerId: 'string',
            createTimeGMT: 'string',
            finishTimeGMT: 'string',
            originatorId: 'string',
            processInstanceId: 'string',
            status: 'string',
            taskId: 'string',
            taskType: 'string',
            title: 'string',
            titleInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRunningTasksResponseBodyResult = GetRunningTasksResponseBodyResult;
class GetSaleUserInfoByUserIdResponseBodyCorpList extends $tea.Model {
    static names() {
        return {
            corpId: 'corpId',
            corpName: 'corpName',
            namespace: 'namespace',
        };
    }
    static types() {
        return {
            corpId: 'string',
            corpName: 'string',
            namespace: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSaleUserInfoByUserIdResponseBodyCorpList = GetSaleUserInfoByUserIdResponseBodyCorpList;
class GetSimpleCubeModelListResponseBodyResultChildren extends $tea.Model {
    static names() {
        return {
            classifiedCode: 'classifiedCode',
            cubeCode: 'cubeCode',
            dataType: 'dataType',
            dimensionType: 'dimensionType',
            fieldCode: 'fieldCode',
            id: 'id',
            isDimension: 'isDimension',
            isVisible: 'isVisible',
            measureType: 'measureType',
            text: 'text',
            timeFormat: 'timeFormat',
            timeGranularityType: 'timeGranularityType',
        };
    }
    static types() {
        return {
            classifiedCode: 'string',
            cubeCode: 'string',
            dataType: 'string',
            dimensionType: 'string',
            fieldCode: 'string',
            id: 'string',
            isDimension: 'string',
            isVisible: 'string',
            measureType: 'string',
            text: 'string',
            timeFormat: 'string',
            timeGranularityType: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSimpleCubeModelListResponseBodyResultChildren = GetSimpleCubeModelListResponseBodyResultChildren;
class GetSimpleCubeModelListResponseBodyResult extends $tea.Model {
    static names() {
        return {
            children: 'children',
            id: 'id',
            isDimension: 'isDimension',
            text: 'text',
        };
    }
    static types() {
        return {
            children: { 'type': 'array', 'itemType': GetSimpleCubeModelListResponseBodyResultChildren },
            id: 'string',
            isDimension: 'string',
            text: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetSimpleCubeModelListResponseBodyResult = GetSimpleCubeModelListResponseBodyResult;
class GetTaskCopiesResponseBodyDataCurrentActivityInstances extends $tea.Model {
    static names() {
        return {
            activityId: 'activityId',
            activityInstanceStatus: 'activityInstanceStatus',
            activityName: 'activityName',
            activityNameInEnglish: 'activityNameInEnglish',
            id: 'id',
        };
    }
    static types() {
        return {
            activityId: 'string',
            activityInstanceStatus: 'string',
            activityName: 'string',
            activityNameInEnglish: 'string',
            id: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTaskCopiesResponseBodyDataCurrentActivityInstances = GetTaskCopiesResponseBodyDataCurrentActivityInstances;
class GetTaskCopiesResponseBodyData extends $tea.Model {
    static names() {
        return {
            actionExecutorId: 'actionExecutorId',
            actionExecutorName: 'actionExecutorName',
            appType: 'appType',
            carbonActivityId: 'carbonActivityId',
            createTimeGMT: 'createTimeGMT',
            currentActivityInstances: 'currentActivityInstances',
            dataMap: 'dataMap',
            dataType: 'dataType',
            finishTimeGMT: 'finishTimeGMT',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            instanceValue: 'instanceValue',
            modifiedTimeGMT: 'modifiedTimeGMT',
            originatorAvatar: 'originatorAvatar',
            originatorDisplayName: 'originatorDisplayName',
            originatorId: 'originatorId',
            processApprovedResult: 'processApprovedResult',
            processApprovedResultText: 'processApprovedResultText',
            processCode: 'processCode',
            processId: 'processId',
            processInstanceId: 'processInstanceId',
            processInstanceStatus: 'processInstanceStatus',
            processInstanceStatusText: 'processInstanceStatusText',
            processName: 'processName',
            serialNumber: 'serialNumber',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            actionExecutorId: { 'type': 'array', 'itemType': 'string' },
            actionExecutorName: { 'type': 'array', 'itemType': 'string' },
            appType: 'string',
            carbonActivityId: 'string',
            createTimeGMT: 'string',
            currentActivityInstances: { 'type': 'array', 'itemType': GetTaskCopiesResponseBodyDataCurrentActivityInstances },
            dataMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            dataType: 'string',
            finishTimeGMT: 'string',
            formInstanceId: 'string',
            formUuid: 'string',
            instanceValue: 'string',
            modifiedTimeGMT: 'string',
            originatorAvatar: 'string',
            originatorDisplayName: 'string',
            originatorId: 'string',
            processApprovedResult: 'string',
            processApprovedResultText: 'string',
            processCode: 'string',
            processId: 'number',
            processInstanceId: 'string',
            processInstanceStatus: 'string',
            processInstanceStatusText: 'string',
            processName: 'string',
            serialNumber: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetTaskCopiesResponseBodyData = GetTaskCopiesResponseBodyData;
class ListApplicationResponseBodyData extends $tea.Model {
    static names() {
        return {
            appConfig: 'appConfig',
            appType: 'appType',
            applicationStatus: 'applicationStatus',
            corpId: 'corpId',
            creatorUserId: 'creatorUserId',
            description: 'description',
            icon: 'icon',
            inexistence: 'inexistence',
            name: 'name',
            releaseToDingStatus: 'releaseToDingStatus',
            subCorpId: 'subCorpId',
            systemToken: 'systemToken',
        };
    }
    static types() {
        return {
            appConfig: 'string',
            appType: 'string',
            applicationStatus: 'string',
            corpId: 'string',
            creatorUserId: 'string',
            description: 'string',
            icon: 'string',
            inexistence: 'string',
            name: 'string',
            releaseToDingStatus: 'string',
            subCorpId: 'string',
            systemToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationResponseBodyData = ListApplicationResponseBodyData;
class ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformationUsagePlugins extends $tea.Model {
    static names() {
        return {
            iconUrl: 'iconUrl',
            pluginName: 'pluginName',
        };
    }
    static types() {
        return {
            iconUrl: 'string',
            pluginName: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformationUsagePlugins = ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformationUsagePlugins;
class ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformation extends $tea.Model {
    static names() {
        return {
            appName: 'appName',
            appType: 'appType',
            attachmentUsageAmount: 'attachmentUsageAmount',
            instanceUsageAmount: 'instanceUsageAmount',
            usagePlugins: 'usagePlugins',
        };
    }
    static types() {
        return {
            appName: 'string',
            appType: 'string',
            attachmentUsageAmount: 'number',
            instanceUsageAmount: 'number',
            usagePlugins: { 'type': 'array', 'itemType': ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformationUsagePlugins },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformation = ListApplicationAuthorizationServiceApplicationInformationResponseBodyApplicationInformation;
class ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformationApplications extends $tea.Model {
    static names() {
        return {
            appName: 'appName',
        };
    }
    static types() {
        return {
            appName: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformationApplications = ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformationApplications;
class ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformation extends $tea.Model {
    static names() {
        return {
            applications: 'applications',
            iconUrl: 'iconUrl',
            plugName: 'plugName',
            plugPayType: 'plugPayType',
            plugStatus: 'plugStatus',
            plugTotalAmount: 'plugTotalAmount',
            plugUsageAmount: 'plugUsageAmount',
            plugUuid: 'plugUuid',
        };
    }
    static types() {
        return {
            applications: { 'type': 'array', 'itemType': ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformationApplications },
            iconUrl: 'string',
            plugName: 'string',
            plugPayType: 'number',
            plugStatus: 'number',
            plugTotalAmount: 'number',
            plugUsageAmount: 'number',
            plugUuid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformation = ListApplicationAuthorizationServiceConnectorInformationResponseBodyPlugInformation;
class ListApplicationInformationResponseBodyApplicationInformationUsagePlugins extends $tea.Model {
    static names() {
        return {
            iconUrl: 'iconUrl',
            pluginName: 'pluginName',
        };
    }
    static types() {
        return {
            iconUrl: 'string',
            pluginName: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationInformationResponseBodyApplicationInformationUsagePlugins = ListApplicationInformationResponseBodyApplicationInformationUsagePlugins;
class ListApplicationInformationResponseBodyApplicationInformation extends $tea.Model {
    static names() {
        return {
            appName: 'appName',
            appType: 'appType',
            attachmentUsageAmount: 'attachmentUsageAmount',
            instanceUsageAmount: 'instanceUsageAmount',
            usagePlugins: 'usagePlugins',
        };
    }
    static types() {
        return {
            appName: 'string',
            appType: 'string',
            attachmentUsageAmount: 'number',
            instanceUsageAmount: 'number',
            usagePlugins: { 'type': 'array', 'itemType': ListApplicationInformationResponseBodyApplicationInformationUsagePlugins },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListApplicationInformationResponseBodyApplicationInformation = ListApplicationInformationResponseBodyApplicationInformation;
class ListCommodityResponseBodyCommodityVOList extends $tea.Model {
    static names() {
        return {
            accountDistributionNumber: 'accountDistributionNumber',
            accountNumber: 'accountNumber',
            activationCode: 'activationCode',
            buyDateGMT: 'buyDateGMT',
            expireDateGMT: 'expireDateGMT',
            instanceId: 'instanceId',
            status: 'status',
            version: 'version',
        };
    }
    static types() {
        return {
            accountDistributionNumber: 'number',
            accountNumber: 'number',
            activationCode: 'string',
            buyDateGMT: 'string',
            expireDateGMT: 'string',
            instanceId: 'string',
            status: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListCommodityResponseBodyCommodityVOList = ListCommodityResponseBodyCommodityVOList;
class ListConnectorInformationResponseBodyPluginInfosApps extends $tea.Model {
    static names() {
        return {
            appName: 'appName',
        };
    }
    static types() {
        return {
            appName: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListConnectorInformationResponseBodyPluginInfosApps = ListConnectorInformationResponseBodyPluginInfosApps;
class ListConnectorInformationResponseBodyPluginInfos extends $tea.Model {
    static names() {
        return {
            apps: 'apps',
            iconUrl: 'iconUrl',
            pluginName: 'pluginName',
            pluginPayType: 'pluginPayType',
            pluginStatus: 'pluginStatus',
            pluginTotalAmount: 'pluginTotalAmount',
            pluginUsageAmount: 'pluginUsageAmount',
            pluginUuid: 'pluginUuid',
        };
    }
    static types() {
        return {
            apps: { 'type': 'array', 'itemType': ListConnectorInformationResponseBodyPluginInfosApps },
            iconUrl: 'string',
            pluginName: 'string',
            pluginPayType: 'number',
            pluginStatus: 'number',
            pluginTotalAmount: 'number',
            pluginUsageAmount: 'number',
            pluginUuid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListConnectorInformationResponseBodyPluginInfos = ListConnectorInformationResponseBodyPluginInfos;
class ListNavigationByFormTypeResponseBodyResultTitle extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListNavigationByFormTypeResponseBodyResultTitle = ListNavigationByFormTypeResponseBodyResultTitle;
class ListNavigationByFormTypeResponseBodyResult extends $tea.Model {
    static names() {
        return {
            formUuid: 'formUuid',
            processCode: 'processCode',
            title: 'title',
        };
    }
    static types() {
        return {
            formUuid: 'string',
            processCode: 'string',
            title: ListNavigationByFormTypeResponseBodyResultTitle,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.ListNavigationByFormTypeResponseBodyResult = ListNavigationByFormTypeResponseBodyResult;
class PageAutoFlowLogResponseBodyData extends $tea.Model {
    static names() {
        return {
            appType: 'appType',
            elapsedTimeGMT: 'elapsedTimeGMT',
            finishTimeGMT: 'finishTimeGMT',
            flag: 'flag',
            procInstanceId: 'procInstanceId',
            processCode: 'processCode',
            srcProcInstanceFinishTimeGMT: 'srcProcInstanceFinishTimeGMT',
            srcProcInstanceId: 'srcProcInstanceId',
            status: 'status',
        };
    }
    static types() {
        return {
            appType: 'string',
            elapsedTimeGMT: 'number',
            finishTimeGMT: 'string',
            flag: 'string',
            procInstanceId: 'string',
            processCode: 'string',
            srcProcInstanceFinishTimeGMT: 'string',
            srcProcInstanceId: 'string',
            status: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageAutoFlowLogResponseBodyData = PageAutoFlowLogResponseBodyData;
class PageFormBaseInfosResponseBodyResultDataTitle extends $tea.Model {
    static names() {
        return {
            enUS: 'enUS',
            zhCN: 'zhCN',
        };
    }
    static types() {
        return {
            enUS: 'string',
            zhCN: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosResponseBodyResultDataTitle = PageFormBaseInfosResponseBodyResultDataTitle;
class PageFormBaseInfosResponseBodyResultData extends $tea.Model {
    static names() {
        return {
            creator: 'creator',
            formType: 'formType',
            formUuid: 'formUuid',
            gmtCreate: 'gmtCreate',
            title: 'title',
        };
    }
    static types() {
        return {
            creator: 'string',
            formType: 'string',
            formUuid: 'string',
            gmtCreate: 'string',
            title: PageFormBaseInfosResponseBodyResultDataTitle,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosResponseBodyResultData = PageFormBaseInfosResponseBodyResultData;
class PageFormBaseInfosResponseBodyResult extends $tea.Model {
    static names() {
        return {
            currentPage: 'currentPage',
            data: 'data',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            currentPage: 'number',
            data: { 'type': 'array', 'itemType': PageFormBaseInfosResponseBodyResultData },
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PageFormBaseInfosResponseBodyResult = PageFormBaseInfosResponseBodyResult;
class PreviewPublishedProcessResponseBodyResult extends $tea.Model {
    static names() {
        return {
            action: 'action',
            actionExit: 'actionExit',
            activeTimeGMT: 'activeTimeGMT',
            activityId: 'activityId',
            dataId: 'dataId',
            digitalSign: 'digitalSign',
            domains: 'domains',
            files: 'files',
            operateTimeGMT: 'operateTimeGMT',
            operateType: 'operateType',
            operatorDisplayName: 'operatorDisplayName',
            operatorName: 'operatorName',
            operatorNickName: 'operatorNickName',
            operatorPhotoUrl: 'operatorPhotoUrl',
            operatorStatus: 'operatorStatus',
            operatorUserId: 'operatorUserId',
            processInstanceId: 'processInstanceId',
            remark: 'remark',
            showName: 'showName',
            size: 'size',
            taskExecuteType: 'taskExecuteType',
            taskHoldTimeGMT: 'taskHoldTimeGMT',
            taskId: 'taskId',
            taskType: 'taskType',
            type: 'type',
        };
    }
    static types() {
        return {
            action: 'string',
            actionExit: 'string',
            activeTimeGMT: 'string',
            activityId: 'string',
            dataId: 'number',
            digitalSign: 'string',
            domains: { 'type': 'array', 'itemType': 'any' },
            files: 'string',
            operateTimeGMT: 'string',
            operateType: 'string',
            operatorDisplayName: 'string',
            operatorName: 'string',
            operatorNickName: 'string',
            operatorPhotoUrl: 'string',
            operatorStatus: 'string',
            operatorUserId: 'string',
            processInstanceId: 'string',
            remark: 'string',
            showName: 'string',
            size: 'number',
            taskExecuteType: 'string',
            taskHoldTimeGMT: 'number',
            taskId: 'string',
            taskType: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.PreviewPublishedProcessResponseBodyResult = PreviewPublishedProcessResponseBodyResult;
class QueryServiceRecordResponseBodyValues extends $tea.Model {
    static names() {
        return {
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            hookType: 'hookType',
            hookUuid: 'hookUuid',
            invokeParameter: 'invokeParameter',
            invokeResult: 'invokeResult',
            invokeStatus: 'invokeStatus',
            invokeSuccess: 'invokeSuccess',
            invokeUrl: 'invokeUrl',
            serviceContent: 'serviceContent',
            serviceName: 'serviceName',
            serviceParameter: 'serviceParameter',
            sourceUuid: 'sourceUuid',
        };
    }
    static types() {
        return {
            formInstanceId: 'string',
            formUuid: 'string',
            hookType: 'string',
            hookUuid: 'string',
            invokeParameter: 'string',
            invokeResult: 'string',
            invokeStatus: 'string',
            invokeSuccess: 'string',
            invokeUrl: 'string',
            serviceContent: 'string',
            serviceName: 'string',
            serviceParameter: 'string',
            sourceUuid: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryServiceRecordResponseBodyValues = QueryServiceRecordResponseBodyValues;
class SearchFormDataRemovalTableDataResponseBodyDataModifyUserName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponseBodyDataModifyUserName = SearchFormDataRemovalTableDataResponseBodyDataModifyUserName;
class SearchFormDataRemovalTableDataResponseBodyDataModifyUser extends $tea.Model {
    static names() {
        return {
            departmentName: 'departmentName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentName: 'string',
            email: 'string',
            name: SearchFormDataRemovalTableDataResponseBodyDataModifyUserName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponseBodyDataModifyUser = SearchFormDataRemovalTableDataResponseBodyDataModifyUser;
class SearchFormDataRemovalTableDataResponseBodyDataOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponseBodyDataOriginatorName = SearchFormDataRemovalTableDataResponseBodyDataOriginatorName;
class SearchFormDataRemovalTableDataResponseBodyDataOriginator extends $tea.Model {
    static names() {
        return {
            departmentName: 'departmentName',
            email: 'email',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentName: 'string',
            email: 'string',
            name: SearchFormDataRemovalTableDataResponseBodyDataOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponseBodyDataOriginator = SearchFormDataRemovalTableDataResponseBodyDataOriginator;
class SearchFormDataRemovalTableDataResponseBodyData extends $tea.Model {
    static names() {
        return {
            createTimeGMT: 'createTimeGMT',
            creatorUserId: 'creatorUserId',
            formData: 'formData',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            id: 'id',
            instanceValue: 'instanceValue',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifier: 'modifier',
            modifyUser: 'modifyUser',
            originator: 'originator',
            sequence: 'sequence',
            serialNumber: 'serialNumber',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            createTimeGMT: 'string',
            creatorUserId: 'string',
            formData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formInstanceId: 'string',
            formUuid: 'string',
            id: 'number',
            instanceValue: 'string',
            modifiedTimeGMT: 'string',
            modifier: 'string',
            modifyUser: SearchFormDataRemovalTableDataResponseBodyDataModifyUser,
            originator: SearchFormDataRemovalTableDataResponseBodyDataOriginator,
            sequence: 'string',
            serialNumber: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataRemovalTableDataResponseBodyData = SearchFormDataRemovalTableDataResponseBodyData;
class SearchFormDataSecondGenerationResponseBodyDataModifyUserName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponseBodyDataModifyUserName = SearchFormDataSecondGenerationResponseBodyDataModifyUserName;
class SearchFormDataSecondGenerationResponseBodyDataModifyUser extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: SearchFormDataSecondGenerationResponseBodyDataModifyUserName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponseBodyDataModifyUser = SearchFormDataSecondGenerationResponseBodyDataModifyUser;
class SearchFormDataSecondGenerationResponseBodyDataOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponseBodyDataOriginatorName = SearchFormDataSecondGenerationResponseBodyDataOriginatorName;
class SearchFormDataSecondGenerationResponseBodyDataOriginator extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: SearchFormDataSecondGenerationResponseBodyDataOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponseBodyDataOriginator = SearchFormDataSecondGenerationResponseBodyDataOriginator;
class SearchFormDataSecondGenerationResponseBodyData extends $tea.Model {
    static names() {
        return {
            createTimeGMT: 'createTimeGMT',
            creatorUserId: 'creatorUserId',
            formData: 'formData',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            id: 'id',
            instanceValue: 'instanceValue',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifier: 'modifier',
            modifyUser: 'modifyUser',
            originator: 'originator',
            sequence: 'sequence',
            serialNumber: 'serialNumber',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            createTimeGMT: 'string',
            creatorUserId: 'string',
            formData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formInstanceId: 'string',
            formUuid: 'string',
            id: 'number',
            instanceValue: 'string',
            modifiedTimeGMT: 'string',
            modifier: 'string',
            modifyUser: SearchFormDataSecondGenerationResponseBodyDataModifyUser,
            originator: SearchFormDataSecondGenerationResponseBodyDataOriginator,
            sequence: 'string',
            serialNumber: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationResponseBodyData = SearchFormDataSecondGenerationResponseBodyData;
class SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUserName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUserName = SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUserName;
class SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUser extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUserName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUser = SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUser;
class SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginatorName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginatorName = SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginatorName;
class SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginator extends $tea.Model {
    static names() {
        return {
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            name: SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginatorName,
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginator = SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginator;
class SearchFormDataSecondGenerationNoTableFieldResponseBodyData extends $tea.Model {
    static names() {
        return {
            createTimeGMT: 'createTimeGMT',
            creatorUserId: 'creatorUserId',
            formData: 'formData',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            id: 'id',
            instanceValue: 'instanceValue',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifier: 'modifier',
            modifyUser: 'modifyUser',
            originator: 'originator',
            sequence: 'sequence',
            serialNumber: 'serialNumber',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            createTimeGMT: 'string',
            creatorUserId: 'string',
            formData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formInstanceId: 'string',
            formUuid: 'string',
            id: 'number',
            instanceValue: 'string',
            modifiedTimeGMT: 'string',
            modifier: 'string',
            modifyUser: SearchFormDataSecondGenerationNoTableFieldResponseBodyDataModifyUser,
            originator: SearchFormDataSecondGenerationNoTableFieldResponseBodyDataOriginator,
            sequence: 'string',
            serialNumber: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDataSecondGenerationNoTableFieldResponseBodyData = SearchFormDataSecondGenerationNoTableFieldResponseBodyData;
class SearchFormDatasResponseBodyDataModifyUserUserName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponseBodyDataModifyUserUserName = SearchFormDatasResponseBodyDataModifyUserUserName;
class SearchFormDatasResponseBodyDataModifyUser extends $tea.Model {
    static names() {
        return {
            userId: 'userId',
            userName: 'userName',
        };
    }
    static types() {
        return {
            userId: 'string',
            userName: SearchFormDatasResponseBodyDataModifyUserUserName,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponseBodyDataModifyUser = SearchFormDatasResponseBodyDataModifyUser;
class SearchFormDatasResponseBodyDataOriginatorUserName extends $tea.Model {
    static names() {
        return {
            nameInChinese: 'nameInChinese',
            nameInEnglish: 'nameInEnglish',
            type: 'type',
        };
    }
    static types() {
        return {
            nameInChinese: 'string',
            nameInEnglish: 'string',
            type: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponseBodyDataOriginatorUserName = SearchFormDatasResponseBodyDataOriginatorUserName;
class SearchFormDatasResponseBodyDataOriginator extends $tea.Model {
    static names() {
        return {
            userId: 'userId',
            userName: 'userName',
        };
    }
    static types() {
        return {
            userId: 'string',
            userName: SearchFormDatasResponseBodyDataOriginatorUserName,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponseBodyDataOriginator = SearchFormDatasResponseBodyDataOriginator;
class SearchFormDatasResponseBodyData extends $tea.Model {
    static names() {
        return {
            createdTimeGMT: 'createdTimeGMT',
            creatorUserId: 'creatorUserId',
            dataId: 'dataId',
            formData: 'formData',
            formInstanceId: 'formInstanceId',
            formUuid: 'formUuid',
            instanceValue: 'instanceValue',
            modelUuid: 'modelUuid',
            modifiedTimeGMT: 'modifiedTimeGMT',
            modifierUserId: 'modifierUserId',
            modifyUser: 'modifyUser',
            originator: 'originator',
            sequence: 'sequence',
            serialNo: 'serialNo',
            title: 'title',
            version: 'version',
        };
    }
    static types() {
        return {
            createdTimeGMT: 'string',
            creatorUserId: 'string',
            dataId: 'number',
            formData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            formInstanceId: 'string',
            formUuid: 'string',
            instanceValue: 'string',
            modelUuid: 'string',
            modifiedTimeGMT: 'string',
            modifierUserId: 'string',
            modifyUser: SearchFormDatasResponseBodyDataModifyUser,
            originator: SearchFormDatasResponseBodyDataOriginator,
            sequence: 'string',
            serialNo: 'string',
            title: 'string',
            version: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.SearchFormDatasResponseBodyData = SearchFormDatasResponseBodyData;
class Client extends openapi_client_1.default {
    constructor(config) {
        super(config);
        let gatewayClient = new gateway_dingtalk_1.default();
        this._spi = gatewayClient;
        this._endpointRule = "";
        if (tea_util_1.default.empty(this._endpoint)) {
            this._endpoint = "api.dingtalk.com";
        }
    }
    /**
     * 生成登录态传递用的code
     *
     * @param request - AppLoginCodeGenRequest
     * @param headers - AppLoginCodeGenHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns AppLoginCodeGenResponse
     */
    async appLoginCodeGenWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.fullUrl)) {
            query["fullUrl"] = request.fullUrl;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let body = {};
        if (!tea_util_1.default.isUnset(request.appKey)) {
            body["appKey"] = request.appKey;
        }
        if (!tea_util_1.default.isUnset(request.signTimestampStr)) {
            body["signTimestampStr"] = request.signTimestampStr;
        }
        if (!tea_util_1.default.isUnset(request.signature)) {
            body["signature"] = request.signature;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "AppLoginCodeGen",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/authorizations/appLoginCodes`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new AppLoginCodeGenResponse({}));
    }
    /**
     * 生成登录态传递用的code
     *
     * @param request - AppLoginCodeGenRequest
     * @returns AppLoginCodeGenResponse
     */
    async appLoginCodeGen(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new AppLoginCodeGenHeaders({});
        return await this.appLoginCodeGenWithOptions(request, headers, runtime);
    }
    /**
     * 批量获取指定表单实例ID列表对应的表单实例数据
     *
     * @param request - BatchGetFormDataByIdListRequest
     * @param headers - BatchGetFormDataByIdListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BatchGetFormDataByIdListResponse
     */
    async batchGetFormDataByIdListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceIdList)) {
            body["formInstanceIdList"] = request.formInstanceIdList;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.needFormInstanceValue)) {
            body["needFormInstanceValue"] = request.needFormInstanceValue;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BatchGetFormDataByIdList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/ids/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BatchGetFormDataByIdListResponse({}));
    }
    /**
     * 批量获取指定表单实例ID列表对应的表单实例数据
     *
     * @param request - BatchGetFormDataByIdListRequest
     * @returns BatchGetFormDataByIdListResponse
     */
    async batchGetFormDataByIdList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BatchGetFormDataByIdListHeaders({});
        return await this.batchGetFormDataByIdListWithOptions(request, headers, runtime);
    }
    /**
     * 批量删除指定的表单实例
     *
     * @param request - BatchRemovalByFormInstanceIdListRequest
     * @param headers - BatchRemovalByFormInstanceIdListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BatchRemovalByFormInstanceIdListResponse
     */
    async batchRemovalByFormInstanceIdListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.asynchronousExecution)) {
            body["asynchronousExecution"] = request.asynchronousExecution;
        }
        if (!tea_util_1.default.isUnset(request.executeExpression)) {
            body["executeExpression"] = request.executeExpression;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceIdList)) {
            body["formInstanceIdList"] = request.formInstanceIdList;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BatchRemovalByFormInstanceIdList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/batchRemove`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BatchRemovalByFormInstanceIdListResponse({}));
    }
    /**
     * 批量删除指定的表单实例
     *
     * @param request - BatchRemovalByFormInstanceIdListRequest
     * @returns BatchRemovalByFormInstanceIdListResponse
     */
    async batchRemovalByFormInstanceIdList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BatchRemovalByFormInstanceIdListHeaders({});
        return await this.batchRemovalByFormInstanceIdListWithOptions(request, headers, runtime);
    }
    /**
     * 批量保存表单实例数据
     *
     * @param request - BatchSaveFormDataRequest
     * @param headers - BatchSaveFormDataHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BatchSaveFormDataResponse
     */
    async batchSaveFormDataWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.asynchronousExecution)) {
            body["asynchronousExecution"] = request.asynchronousExecution;
        }
        if (!tea_util_1.default.isUnset(request.formDataJsonList)) {
            body["formDataJsonList"] = request.formDataJsonList;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.keepRunningAfterException)) {
            body["keepRunningAfterException"] = request.keepRunningAfterException;
        }
        if (!tea_util_1.default.isUnset(request.noExecuteExpression)) {
            body["noExecuteExpression"] = request.noExecuteExpression;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BatchSaveFormData",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/batchSave`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BatchSaveFormDataResponse({}));
    }
    /**
     * 批量保存表单实例数据
     *
     * @param request - BatchSaveFormDataRequest
     * @returns BatchSaveFormDataResponse
     */
    async batchSaveFormData(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BatchSaveFormDataHeaders({});
        return await this.batchSaveFormDataWithOptions(request, headers, runtime);
    }
    /**
     * 将多条表单实例的指定表单组件更新成指定值
     *
     * @param request - BatchUpdateFormDataByInstanceIdRequest
     * @param headers - BatchUpdateFormDataByInstanceIdHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BatchUpdateFormDataByInstanceIdResponse
     */
    async batchUpdateFormDataByInstanceIdWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.asynchronousExecution)) {
            body["asynchronousExecution"] = request.asynchronousExecution;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceIdList)) {
            body["formInstanceIdList"] = request.formInstanceIdList;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.ignoreEmpty)) {
            body["ignoreEmpty"] = request.ignoreEmpty;
        }
        if (!tea_util_1.default.isUnset(request.noExecuteExpression)) {
            body["noExecuteExpression"] = request.noExecuteExpression;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.updateFormDataJson)) {
            body["updateFormDataJson"] = request.updateFormDataJson;
        }
        if (!tea_util_1.default.isUnset(request.useLatestFormSchemaVersion)) {
            body["useLatestFormSchemaVersion"] = request.useLatestFormSchemaVersion;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BatchUpdateFormDataByInstanceId",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/components`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BatchUpdateFormDataByInstanceIdResponse({}));
    }
    /**
     * 将多条表单实例的指定表单组件更新成指定值
     *
     * @param request - BatchUpdateFormDataByInstanceIdRequest
     * @returns BatchUpdateFormDataByInstanceIdResponse
     */
    async batchUpdateFormDataByInstanceId(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BatchUpdateFormDataByInstanceIdHeaders({});
        return await this.batchUpdateFormDataByInstanceIdWithOptions(request, headers, runtime);
    }
    /**
     * 通过表单实例数据批量更新表单实例
     *
     * @param request - BatchUpdateFormDataByInstanceMapRequest
     * @param headers - BatchUpdateFormDataByInstanceMapHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BatchUpdateFormDataByInstanceMapResponse
     */
    async batchUpdateFormDataByInstanceMapWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.asynchronousExecution)) {
            body["asynchronousExecution"] = request.asynchronousExecution;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.ignoreEmpty)) {
            body["ignoreEmpty"] = request.ignoreEmpty;
        }
        if (!tea_util_1.default.isUnset(request.noExecuteExpression)) {
            body["noExecuteExpression"] = request.noExecuteExpression;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.updateFormDataJsonMap)) {
            body["updateFormDataJsonMap"] = request.updateFormDataJsonMap;
        }
        if (!tea_util_1.default.isUnset(request.useLatestFormSchemaVersion)) {
            body["useLatestFormSchemaVersion"] = request.useLatestFormSchemaVersion;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BatchUpdateFormDataByInstanceMap",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/datas`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BatchUpdateFormDataByInstanceMapResponse({}));
    }
    /**
     * 通过表单实例数据批量更新表单实例
     *
     * @param request - BatchUpdateFormDataByInstanceMapRequest
     * @returns BatchUpdateFormDataByInstanceMapResponse
     */
    async batchUpdateFormDataByInstanceMap(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BatchUpdateFormDataByInstanceMapHeaders({});
        return await this.batchUpdateFormDataByInstanceMapWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道新购(通过应用授权服务)
     *
     * @param request - BuyAuthorizationOrderRequest
     * @param headers - BuyAuthorizationOrderHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BuyAuthorizationOrderResponse
     */
    async buyAuthorizationOrderWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.accountNumber)) {
            body["accountNumber"] = request.accountNumber;
        }
        if (!tea_util_1.default.isUnset(request.beginTimeGMT)) {
            body["beginTimeGMT"] = request.beginTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.chargeType)) {
            body["chargeType"] = request.chargeType;
        }
        if (!tea_util_1.default.isUnset(request.commerceType)) {
            body["commerceType"] = request.commerceType;
        }
        if (!tea_util_1.default.isUnset(request.commodityType)) {
            body["commodityType"] = request.commodityType;
        }
        if (!tea_util_1.default.isUnset(request.endTimeGMT)) {
            body["endTimeGMT"] = request.endTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            body["instanceId"] = request.instanceId;
        }
        if (!tea_util_1.default.isUnset(request.instanceName)) {
            body["instanceName"] = request.instanceName;
        }
        if (!tea_util_1.default.isUnset(request.produceCode)) {
            body["produceCode"] = request.produceCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BuyAuthorizationOrder",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/appAuthorizations/order`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BuyAuthorizationOrderResponse({}));
    }
    /**
     * 多渠道新购(通过应用授权服务)
     *
     * @param request - BuyAuthorizationOrderRequest
     * @returns BuyAuthorizationOrderResponse
     */
    async buyAuthorizationOrder(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BuyAuthorizationOrderHeaders({});
        return await this.buyAuthorizationOrderWithOptions(request, headers, runtime);
    }
    /**
     * 新购宜搭产品
     *
     * @param request - BuyFreshOrderRequest
     * @param headers - BuyFreshOrderHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BuyFreshOrderResponse
     */
    async buyFreshOrderWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.accountNumber)) {
            body["accountNumber"] = request.accountNumber;
        }
        if (!tea_util_1.default.isUnset(request.beginTimeGMT)) {
            body["beginTimeGMT"] = request.beginTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.chargeType)) {
            body["chargeType"] = request.chargeType;
        }
        if (!tea_util_1.default.isUnset(request.commerceType)) {
            body["commerceType"] = request.commerceType;
        }
        if (!tea_util_1.default.isUnset(request.commodityType)) {
            body["commodityType"] = request.commodityType;
        }
        if (!tea_util_1.default.isUnset(request.endTimeGMT)) {
            body["endTimeGMT"] = request.endTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            body["instanceId"] = request.instanceId;
        }
        if (!tea_util_1.default.isUnset(request.instanceName)) {
            body["instanceName"] = request.instanceName;
        }
        if (!tea_util_1.default.isUnset(request.produceCode)) {
            body["produceCode"] = request.produceCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BuyFreshOrder",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/freshOrders`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BuyFreshOrderResponse({}));
    }
    /**
     * 新购宜搭产品
     *
     * @param request - BuyFreshOrderRequest
     * @returns BuyFreshOrderResponse
     */
    async buyFreshOrder(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BuyFreshOrderHeaders({});
        return await this.buyFreshOrderWithOptions(request, headers, runtime);
    }
    /**
     * 根据阿里云账号验证激活结果
     *
     * @param request - CheckCloudAccountStatusRequest
     * @param headers - CheckCloudAccountStatusHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns CheckCloudAccountStatusResponse
     */
    async checkCloudAccountStatusWithOptions(callerUid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "CheckCloudAccountStatus",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/cloudAccountStatus/${callerUid}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new CheckCloudAccountStatusResponse({}));
    }
    /**
     * 根据阿里云账号验证激活结果
     *
     * @param request - CheckCloudAccountStatusRequest
     * @returns CheckCloudAccountStatusResponse
     */
    async checkCloudAccountStatus(callerUid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new CheckCloudAccountStatusHeaders({});
        return await this.checkCloudAccountStatusWithOptions(callerUid, request, headers, runtime);
    }
    /**
     * 新增或更新表单实例
     *
     * @param request - CreateOrUpdateFormDataRequest
     * @param headers - CreateOrUpdateFormDataHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns CreateOrUpdateFormDataResponse
     */
    async createOrUpdateFormDataWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formDataJson)) {
            body["formDataJson"] = request.formDataJson;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.noExecuteExpression)) {
            body["noExecuteExpression"] = request.noExecuteExpression;
        }
        if (!tea_util_1.default.isUnset(request.searchCondition)) {
            body["searchCondition"] = request.searchCondition;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "CreateOrUpdateFormData",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/insertOrUpdate`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new CreateOrUpdateFormDataResponse({}));
    }
    /**
     * 新增或更新表单实例
     *
     * @param request - CreateOrUpdateFormDataRequest
     * @returns CreateOrUpdateFormDataResponse
     */
    async createOrUpdateFormData(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new CreateOrUpdateFormDataHeaders({});
        return await this.createOrUpdateFormDataWithOptions(request, headers, runtime);
    }
    /**
     * 删除表单实例
     *
     * @param request - DeleteFormDataRequest
     * @param headers - DeleteFormDataHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns DeleteFormDataResponse
     */
    async deleteFormDataWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceId)) {
            query["formInstanceId"] = request.formInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "DeleteFormData",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new DeleteFormDataResponse({}));
    }
    /**
     * 删除表单实例
     *
     * @param request - DeleteFormDataRequest
     * @returns DeleteFormDataResponse
     */
    async deleteFormData(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new DeleteFormDataHeaders({});
        return await this.deleteFormDataWithOptions(request, headers, runtime);
    }
    /**
     * 删除流程实例
     *
     * @param request - DeleteInstanceRequest
     * @param headers - DeleteInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns DeleteInstanceResponse
     */
    async deleteInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            query["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "DeleteInstance",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instances`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new DeleteInstanceResponse({}));
    }
    /**
     * 删除流程实例
     *
     * @param request - DeleteInstanceRequest
     * @returns DeleteInstanceResponse
     */
    async deleteInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new DeleteInstanceHeaders({});
        return await this.deleteInstanceWithOptions(request, headers, runtime);
    }
    /**
     * deleteSequence
     *
     * @param request - DeleteSequenceRequest
     * @param headers - DeleteSequenceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns DeleteSequenceResponse
     */
    async deleteSequenceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.sequence)) {
            query["sequence"] = request.sequence;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "DeleteSequence",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/deleteSequence`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new DeleteSequenceResponse({}));
    }
    /**
     * deleteSequence
     *
     * @param request - DeleteSequenceRequest
     * @returns DeleteSequenceResponse
     */
    async deleteSequence(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new DeleteSequenceHeaders({});
        return await this.deleteSequenceWithOptions(request, headers, runtime);
    }
    /**
     * 云开发平台函数计算部署完成回调宜搭
     *
     * @param request - DeployFunctionCallbackRequest
     * @param headers - DeployFunctionCallbackHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns DeployFunctionCallbackResponse
     */
    async deployFunctionCallbackWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appId)) {
            body["appId"] = request.appId;
        }
        if (!tea_util_1.default.isUnset(request.customDomain)) {
            body["customDomain"] = request.customDomain;
        }
        if (!tea_util_1.default.isUnset(request.deployStage)) {
            body["deployStage"] = request.deployStage;
        }
        if (!tea_util_1.default.isUnset(request.gateWayAppKey)) {
            body["gateWayAppKey"] = request.gateWayAppKey;
        }
        if (!tea_util_1.default.isUnset(request.gateWayAppSecret)) {
            body["gateWayAppSecret"] = request.gateWayAppSecret;
        }
        if (!tea_util_1.default.isUnset(request.gateWayDomain)) {
            body["gateWayDomain"] = request.gateWayDomain;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "DeployFunctionCallback",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/functionComputeConnectors/completeDeployments/notify`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new DeployFunctionCallbackResponse({}));
    }
    /**
     * 云开发平台函数计算部署完成回调宜搭
     *
     * @param request - DeployFunctionCallbackRequest
     * @returns DeployFunctionCallbackResponse
     */
    async deployFunctionCallback(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new DeployFunctionCallbackHeaders({});
        return await this.deployFunctionCallbackWithOptions(request, headers, runtime);
    }
    /**
     * 批量审批
     *
     * @param request - ExecuteBatchTaskRequest
     * @param headers - ExecuteBatchTaskHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ExecuteBatchTaskResponse
     */
    async executeBatchTaskWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.outResult)) {
            body["outResult"] = request.outResult;
        }
        if (!tea_util_1.default.isUnset(request.remark)) {
            body["remark"] = request.remark;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.taskInformationList)) {
            body["taskInformationList"] = request.taskInformationList;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "ExecuteBatchTask",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/batches/execute`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ExecuteBatchTaskResponse({}));
    }
    /**
     * 批量审批
     *
     * @param request - ExecuteBatchTaskRequest
     * @returns ExecuteBatchTaskResponse
     */
    async executeBatchTask(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ExecuteBatchTaskHeaders({});
        return await this.executeBatchTaskWithOptions(request, headers, runtime);
    }
    /**
     * 执行用户自定义的API接口
     *
     * @param request - ExecuteCustomApiRequest
     * @param headers - ExecuteCustomApiHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ExecuteCustomApiResponse
     */
    async executeCustomApiWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.data)) {
            query["data"] = request.data;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.serviceId)) {
            query["serviceId"] = request.serviceId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ExecuteCustomApi",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/customApi/execute`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ExecuteCustomApiResponse({}));
    }
    /**
     * 执行用户自定义的API接口
     *
     * @param request - ExecuteCustomApiRequest
     * @returns ExecuteCustomApiResponse
     */
    async executeCustomApi(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ExecuteCustomApiHeaders({});
        return await this.executeCustomApiWithOptions(request, headers, runtime);
    }
    /**
     * 执行宜搭平台的审批任务
     *
     * @param request - ExecutePlatformTaskRequest
     * @param headers - ExecutePlatformTaskHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ExecutePlatformTaskResponse
     */
    async executePlatformTaskWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formDataJson)) {
            body["formDataJson"] = request.formDataJson;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.noExecuteExpressions)) {
            body["noExecuteExpressions"] = request.noExecuteExpressions;
        }
        if (!tea_util_1.default.isUnset(request.outResult)) {
            body["outResult"] = request.outResult;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            body["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.remark)) {
            body["remark"] = request.remark;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "ExecutePlatformTask",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/platformTasks/execute`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ExecutePlatformTaskResponse({}));
    }
    /**
     * 执行宜搭平台的审批任务
     *
     * @param request - ExecutePlatformTaskRequest
     * @returns ExecutePlatformTaskResponse
     */
    async executePlatformTask(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ExecutePlatformTaskHeaders({});
        return await this.executePlatformTaskWithOptions(request, headers, runtime);
    }
    /**
     * 执行审批任务
     *
     * @param request - ExecuteTaskRequest
     * @param headers - ExecuteTaskHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ExecuteTaskResponse
     */
    async executeTaskWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.digitalSignUrl)) {
            body["digitalSignUrl"] = request.digitalSignUrl;
        }
        if (!tea_util_1.default.isUnset(request.formDataJson)) {
            body["formDataJson"] = request.formDataJson;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.noExecuteExpressions)) {
            body["noExecuteExpressions"] = request.noExecuteExpressions;
        }
        if (!tea_util_1.default.isUnset(request.outResult)) {
            body["outResult"] = request.outResult;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            body["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.remark)) {
            body["remark"] = request.remark;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.taskId)) {
            body["taskId"] = request.taskId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "ExecuteTask",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/execute`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ExecuteTaskResponse({}));
    }
    /**
     * 执行审批任务
     *
     * @param request - ExecuteTaskRequest
     * @returns ExecuteTaskResponse
     */
    async executeTask(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ExecuteTaskHeaders({});
        return await this.executeTaskWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道到期
     *
     * @param request - ExpireCommodityRequest
     * @param headers - ExpireCommodityHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ExpireCommodityResponse
     */
    async expireCommodityWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ExpireCommodity",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/appAuth/commodities/expire`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ExpireCommodityResponse({}));
    }
    /**
     * 多渠道到期
     *
     * @param request - ExpireCommodityRequest
     * @returns ExpireCommodityResponse
     */
    async expireCommodity(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ExpireCommodityHeaders({});
        return await this.expireCommodityWithOptions(request, headers, runtime);
    }
    /**
     * 根据阿里云账号获取激活码
     *
     * @param request - GetActivationCodeByCallerUnionIdRequest
     * @param headers - GetActivationCodeByCallerUnionIdHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetActivationCodeByCallerUnionIdResponse
     */
    async getActivationCodeByCallerUnionIdWithOptions(callerUid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetActivationCodeByCallerUnionId",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applications/activationCodes/${callerUid}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetActivationCodeByCallerUnionIdResponse({}));
    }
    /**
     * 根据阿里云账号获取激活码
     *
     * @param request - GetActivationCodeByCallerUnionIdRequest
     * @returns GetActivationCodeByCallerUnionIdResponse
     */
    async getActivationCodeByCallerUnionId(callerUid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetActivationCodeByCallerUnionIdHeaders({});
        return await this.getActivationCodeByCallerUnionIdWithOptions(callerUid, request, headers, runtime);
    }
    /**
     * 获取流程实例可操作功能列表
     *
     * @param request - GetActivityButtonListRequest
     * @param headers - GetActivityButtonListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetActivityButtonListResponse
     */
    async getActivityButtonListWithOptions(appType, processCode, activityId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetActivityButtonList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processDefinitions/buttons/${appType}/${processCode}/${activityId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetActivityButtonListResponse({}));
    }
    /**
     * 获取流程实例可操作功能列表
     *
     * @param request - GetActivityButtonListRequest
     * @returns GetActivityButtonListResponse
     */
    async getActivityButtonList(appType, processCode, activityId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetActivityButtonListHeaders({});
        return await this.getActivityButtonListWithOptions(appType, processCode, activityId, request, headers, runtime);
    }
    /**
     * 获取流程设计的节点信息
     *
     * @param request - GetActivityListRequest
     * @param headers - GetActivityListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetActivityListResponse
     */
    async getActivityListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processCode)) {
            query["processCode"] = request.processCode;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetActivityList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/activities`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetActivityListResponse({}));
    }
    /**
     * 获取流程设计的节点信息
     *
     * @param request - GetActivityListRequest
     * @returns GetActivityListResponse
     */
    async getActivityList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetActivityListHeaders({});
        return await this.getActivityListWithOptions(request, headers, runtime);
    }
    /**
     * 查询表单的接口，支持分页、表单名称模糊查询
     *
     * @param request - GetAllAuthCubesRequest
     * @param headers - GetAllAuthCubesHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetAllAuthCubesResponse
     */
    async getAllAuthCubesWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            body["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.keywords)) {
            body["keywords"] = request.keywords;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            body["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetAllAuthCubes",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/metadata/allAuthCubes/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetAllAuthCubesResponse({}));
    }
    /**
     * 查询表单的接口，支持分页、表单名称模糊查询
     *
     * @param request - GetAllAuthCubesRequest
     * @returns GetAllAuthCubesResponse
     */
    async getAllAuthCubes(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetAllAuthCubesHeaders({});
        return await this.getAllAuthCubesWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道平台概览接口
     *
     * @param request - GetApplicationAuthorizationServicePlatformResourceRequest
     * @param headers - GetApplicationAuthorizationServicePlatformResourceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetApplicationAuthorizationServicePlatformResourceResponse
     */
    async getApplicationAuthorizationServicePlatformResourceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetApplicationAuthorizationServicePlatformResource",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/authorization/platformResources`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetApplicationAuthorizationServicePlatformResourceResponse({}));
    }
    /**
     * 多渠道平台概览接口
     *
     * @param request - GetApplicationAuthorizationServicePlatformResourceRequest
     * @returns GetApplicationAuthorizationServicePlatformResourceResponse
     */
    async getApplicationAuthorizationServicePlatformResource(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetApplicationAuthorizationServicePlatformResourceHeaders({});
        return await this.getApplicationAuthorizationServicePlatformResourceWithOptions(request, headers, runtime);
    }
    /**
     * 获取自动化流日志详情
     *
     * @param request - GetAutoFlowLogDetailRequest
     * @param headers - GetAutoFlowLogDetailHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetAutoFlowLogDetailResponse
     */
    async getAutoFlowLogDetailWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.procInstanceId)) {
            query["procInstanceId"] = request.procInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            query["token"] = request.token;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetAutoFlowLogDetail",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/logs/automations`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetAutoFlowLogDetailResponse({}));
    }
    /**
     * 获取自动化流日志详情
     *
     * @param request - GetAutoFlowLogDetailRequest
     * @returns GetAutoFlowLogDetailResponse
     */
    async getAutoFlowLogDetail(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetAutoFlowLogDetailHeaders({});
        return await this.getAutoFlowLogDetailWithOptions(request, headers, runtime);
    }
    /**
     * 查询已完成任务列表
     *
     * @param request - GetCorpAccomplishmentTasksRequest
     * @param headers - GetCorpAccomplishmentTasksHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetCorpAccomplishmentTasksResponse
     */
    async getCorpAccomplishmentTasksWithOptions(corpId, userId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appTypes)) {
            query["appTypes"] = request.appTypes;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            query["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            query["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.keyword)) {
            query["keyword"] = request.keyword;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.processCodes)) {
            query["processCodes"] = request.processCodes;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            query["token"] = request.token;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetCorpAccomplishmentTasks",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/completedTasks/${corpId}/${userId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetCorpAccomplishmentTasksResponse({}));
    }
    /**
     * 查询已完成任务列表
     *
     * @param request - GetCorpAccomplishmentTasksRequest
     * @returns GetCorpAccomplishmentTasksResponse
     */
    async getCorpAccomplishmentTasks(corpId, userId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetCorpAccomplishmentTasksHeaders({});
        return await this.getCorpAccomplishmentTasksWithOptions(corpId, userId, request, headers, runtime);
    }
    /**
     * 根据accountId获取企业等级
     *
     * @param request - GetCorpLevelByAccountIdRequest
     * @param headers - GetCorpLevelByAccountIdHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetCorpLevelByAccountIdResponse
     */
    async getCorpLevelByAccountIdWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accountId)) {
            query["accountId"] = request.accountId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetCorpLevelByAccountId",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/corpLevel`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetCorpLevelByAccountIdResponse({}));
    }
    /**
     * 根据accountId获取企业等级
     *
     * @param request - GetCorpLevelByAccountIdRequest
     * @returns GetCorpLevelByAccountIdResponse
     */
    async getCorpLevelByAccountId(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetCorpLevelByAccountIdHeaders({});
        return await this.getCorpLevelByAccountIdWithOptions(request, headers, runtime);
    }
    /**
     * 查询待办任务列表
     *
     * @param request - GetCorpTasksRequest
     * @param headers - GetCorpTasksHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetCorpTasksResponse
     */
    async getCorpTasksWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appTypes)) {
            query["appTypes"] = request.appTypes;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            query["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            query["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.keyword)) {
            query["keyword"] = request.keyword;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.processCodes)) {
            query["processCodes"] = request.processCodes;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            query["token"] = request.token;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetCorpTasks",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/corpTasks`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetCorpTasksResponse({}));
    }
    /**
     * 查询待办任务列表
     *
     * @param request - GetCorpTasksRequest
     * @returns GetCorpTasksResponse
     */
    async getCorpTasks(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetCorpTasksHeaders({});
        return await this.getCorpTasksWithOptions(request, headers, runtime);
    }
    /**
     * 获取数据库连接串信息
     *
     * @param request - GetDbConfigRequest
     * @param headers - GetDbConfigHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetDbConfigResponse
     */
    async getDbConfigWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetDbConfig",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/metadata/dbConfigs`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetDbConfigResponse({}));
    }
    /**
     * 获取数据库连接串信息
     *
     * @param request - GetDbConfigRequest
     * @returns GetDbConfigResponse
     */
    async getDbConfig(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetDbConfigHeaders({});
        return await this.getDbConfigWithOptions(request, headers, runtime);
    }
    /**
     * 根据表单ID获取字段信息
     *
     * @param request - GetFieldDefByUuidRequest
     * @param headers - GetFieldDefByUuidHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetFieldDefByUuidResponse
     */
    async getFieldDefByUuidWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            query["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetFieldDefByUuid",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/formFields`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetFieldDefByUuidResponse({}));
    }
    /**
     * 根据表单ID获取字段信息
     *
     * @param request - GetFieldDefByUuidRequest
     * @returns GetFieldDefByUuidResponse
     */
    async getFieldDefByUuid(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetFieldDefByUuidHeaders({});
        return await this.getFieldDefByUuidWithOptions(request, headers, runtime);
    }
    /**
     * 获取表单定义
     *
     * @param request - GetFormComponentDefinitionListRequest
     * @param headers - GetFormComponentDefinitionListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetFormComponentDefinitionListResponse
     */
    async getFormComponentDefinitionListWithOptions(appType, formUuid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        if (!tea_util_1.default.isUnset(request.version)) {
            query["version"] = request.version;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetFormComponentDefinitionList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/definitions/${appType}/${formUuid}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetFormComponentDefinitionListResponse({}));
    }
    /**
     * 获取表单定义
     *
     * @param request - GetFormComponentDefinitionListRequest
     * @returns GetFormComponentDefinitionListResponse
     */
    async getFormComponentDefinitionList(appType, formUuid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetFormComponentDefinitionListHeaders({});
        return await this.getFormComponentDefinitionListWithOptions(appType, formUuid, request, headers, runtime);
    }
    /**
     * 根据表单 ID 查询实例详情
     *
     * @param request - GetFormDataByIDRequest
     * @param headers - GetFormDataByIDHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetFormDataByIDResponse
     */
    async getFormDataByIDWithOptions(id, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetFormDataByID",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/${id}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetFormDataByIDResponse({}));
    }
    /**
     * 根据表单 ID 查询实例详情
     *
     * @param request - GetFormDataByIDRequest
     * @returns GetFormDataByIDResponse
     */
    async getFormDataByID(id, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetFormDataByIDHeaders({});
        return await this.getFormDataByIDWithOptions(id, request, headers, runtime);
    }
    /**
     * 获取应用内表单列表信息
     *
     * @param request - GetFormListInAppRequest
     * @param headers - GetFormListInAppHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetFormListInAppResponse
     */
    async getFormListInAppWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formTypes)) {
            query["formTypes"] = request.formTypes;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetFormListInApp",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetFormListInAppResponse({}));
    }
    /**
     * 获取应用内表单列表信息
     *
     * @param request - GetFormListInAppRequest
     * @returns GetFormListInAppResponse
     */
    async getFormListInApp(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetFormListInAppHeaders({});
        return await this.getFormListInAppWithOptions(request, headers, runtime);
    }
    /**
     * 根据实例 ID 获取流程实例详情
     *
     * @param request - GetInstanceByIdRequest
     * @param headers - GetInstanceByIdHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetInstanceByIdResponse
     */
    async getInstanceByIdWithOptions(id, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetInstanceById",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instancesInfos/${id}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetInstanceByIdResponse({}));
    }
    /**
     * 根据实例 ID 获取流程实例详情
     *
     * @param request - GetInstanceByIdRequest
     * @returns GetInstanceByIdResponse
     */
    async getInstanceById(id, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetInstanceByIdHeaders({});
        return await this.getInstanceByIdWithOptions(id, request, headers, runtime);
    }
    /**
     * 根据条件搜索流程实例 ID
     *
     * @param request - GetInstanceIdListRequest
     * @param headers - GetInstanceIdListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetInstanceIdListResponse
     */
    async getInstanceIdListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.approvedResult)) {
            body["approvedResult"] = request.approvedResult;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.instanceStatus)) {
            body["instanceStatus"] = request.instanceStatus;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.searchFieldJson)) {
            body["searchFieldJson"] = request.searchFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.taskId)) {
            body["taskId"] = request.taskId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetInstanceIdList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instanceIds`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetInstanceIdListResponse({}));
    }
    /**
     * 根据条件搜索流程实例 ID
     *
     * @param request - GetInstanceIdListRequest
     * @returns GetInstanceIdListResponse
     */
    async getInstanceIdList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetInstanceIdListHeaders({});
        return await this.getInstanceIdListWithOptions(request, headers, runtime);
    }
    /**
     * 根据搜索条件获取流程表单实例详情
     *
     * @param request - GetInstancesRequest
     * @param headers - GetInstancesHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetInstancesResponse
     */
    async getInstancesWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.approvedResult)) {
            body["approvedResult"] = request.approvedResult;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            body["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.instanceStatus)) {
            body["instanceStatus"] = request.instanceStatus;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.orderConfigJson)) {
            body["orderConfigJson"] = request.orderConfigJson;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.searchFieldJson)) {
            body["searchFieldJson"] = request.searchFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.taskId)) {
            body["taskId"] = request.taskId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetInstances",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instances`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetInstancesResponse({}));
    }
    /**
     * 根据搜索条件获取流程表单实例详情
     *
     * @param request - GetInstancesRequest
     * @returns GetInstancesResponse
     */
    async getInstances(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetInstancesHeaders({});
        return await this.getInstancesWithOptions(request, headers, runtime);
    }
    /**
     * 根据实例 ID 列表批量获取流程实例详情
     *
     * @param request - GetInstancesByIdListRequest
     * @param headers - GetInstancesByIdListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetInstancesByIdListResponse
     */
    async getInstancesByIdListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceIds)) {
            query["processInstanceIds"] = request.processInstanceIds;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetInstancesByIdList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instances/searchWithIds`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetInstancesByIdListResponse({}));
    }
    /**
     * 根据实例 ID 列表批量获取流程实例详情
     *
     * @param request - GetInstancesByIdListRequest
     * @returns GetInstancesByIdListResponse
     */
    async getInstancesByIdList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetInstancesByIdListHeaders({});
        return await this.getInstancesByIdListWithOptions(request, headers, runtime);
    }
    /**
     * 查询已提交任务列表
     *
     * @param request - GetMeCorpSubmissionRequest
     * @param headers - GetMeCorpSubmissionHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetMeCorpSubmissionResponse
     */
    async getMeCorpSubmissionWithOptions(userId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appTypes)) {
            query["appTypes"] = request.appTypes;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            query["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            query["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.keyword)) {
            query["keyword"] = request.keyword;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.processCodes)) {
            query["processCodes"] = request.processCodes;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            query["token"] = request.token;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetMeCorpSubmission",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/myCorpSubmission/${userId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetMeCorpSubmissionResponse({}));
    }
    /**
     * 查询已提交任务列表
     *
     * @param request - GetMeCorpSubmissionRequest
     * @returns GetMeCorpSubmissionResponse
     */
    async getMeCorpSubmission(userId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetMeCorpSubmissionHeaders({});
        return await this.getMeCorpSubmissionWithOptions(userId, request, headers, runtime);
    }
    /**
     * 查询抄送我的任务列表（企业维度）
     *
     * @param request - GetNotifyMeRequest
     * @param headers - GetNotifyMeHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetNotifyMeResponse
     */
    async getNotifyMeWithOptions(userId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appTypes)) {
            query["appTypes"] = request.appTypes;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            query["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            query["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.instanceCreateFromTimeGMT)) {
            query["instanceCreateFromTimeGMT"] = request.instanceCreateFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.instanceCreateToTimeGMT)) {
            query["instanceCreateToTimeGMT"] = request.instanceCreateToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.keyword)) {
            query["keyword"] = request.keyword;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.processCodes)) {
            query["processCodes"] = request.processCodes;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            query["token"] = request.token;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetNotifyMe",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/corpNotifications/${userId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetNotifyMeResponse({}));
    }
    /**
     * 查询抄送我的任务列表（企业维度）
     *
     * @param request - GetNotifyMeRequest
     * @returns GetNotifyMeResponse
     */
    async getNotifyMe(userId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetNotifyMeHeaders({});
        return await this.getNotifyMeWithOptions(userId, request, headers, runtime);
    }
    /**
     * 附件地址转临时免登地址
     *
     * @param request - GetOpenUrlRequest
     * @param headers - GetOpenUrlHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetOpenUrlResponse
     */
    async getOpenUrlWithOptions(appType, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.fileUrl)) {
            query["fileUrl"] = request.fileUrl;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.timeout)) {
            query["timeout"] = request.timeout;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetOpenUrl",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/temporaryUrls/${appType}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetOpenUrlResponse({}));
    }
    /**
     * 附件地址转临时免登地址
     *
     * @param request - GetOpenUrlRequest
     * @returns GetOpenUrlResponse
     */
    async getOpenUrl(appType, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetOpenUrlHeaders({});
        return await this.getOpenUrlWithOptions(appType, request, headers, runtime);
    }
    /**
     * 获取审批记录
     *
     * @param request - GetOperationRecordsRequest
     * @param headers - GetOperationRecordsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetOperationRecordsResponse
     */
    async getOperationRecordsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            query["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetOperationRecords",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/operationRecords`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetOperationRecordsResponse({}));
    }
    /**
     * 获取审批记录
     *
     * @param request - GetOperationRecordsRequest
     * @returns GetOperationRecordsResponse
     */
    async getOperationRecords(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetOperationRecordsHeaders({});
        return await this.getOperationRecordsWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道平台概览接口
     *
     * @param request - GetPlatformResourceRequest
     * @param headers - GetPlatformResourceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetPlatformResourceResponse
     */
    async getPlatformResourceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetPlatformResource",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/platformResources`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetPlatformResourceResponse({}));
    }
    /**
     * 多渠道平台概览接口
     *
     * @param request - GetPlatformResourceRequest
     * @returns GetPlatformResourceResponse
     */
    async getPlatformResource(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetPlatformResourceHeaders({});
        return await this.getPlatformResourceWithOptions(request, headers, runtime);
    }
    /**
     * 查询用户开通打印模板的应用信息
     *
     * @param request - GetPrintAppInfoRequest
     * @param headers - GetPrintAppInfoHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetPrintAppInfoResponse
     */
    async getPrintAppInfoWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.nameLike)) {
            query["nameLike"] = request.nameLike;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetPrintAppInfo",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/printTemplates/printAppInfos`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetPrintAppInfoResponse({}));
    }
    /**
     * 查询用户开通打印模板的应用信息
     *
     * @param request - GetPrintAppInfoRequest
     * @returns GetPrintAppInfoResponse
     */
    async getPrintAppInfo(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetPrintAppInfoHeaders({});
        return await this.getPrintAppInfoWithOptions(request, headers, runtime);
    }
    /**
     * 获取打印所需的表单与流程节点
     *
     * @param request - GetPrintDictionaryRequest
     * @param headers - GetPrintDictionaryHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetPrintDictionaryResponse
     */
    async getPrintDictionaryWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            query["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        if (!tea_util_1.default.isUnset(request.version)) {
            query["version"] = request.version;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetPrintDictionary",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/printTemplates/printDictionaries`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetPrintDictionaryResponse({}));
    }
    /**
     * 获取打印所需的表单与流程节点
     *
     * @param request - GetPrintDictionaryRequest
     * @returns GetPrintDictionaryResponse
     */
    async getPrintDictionary(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetPrintDictionaryHeaders({});
        return await this.getPrintDictionaryWithOptions(request, headers, runtime);
    }
    /**
     * 获取流程定义
     *
     * @param request - GetProcessDefinitionRequest
     * @param headers - GetProcessDefinitionHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetProcessDefinitionResponse
     */
    async getProcessDefinitionWithOptions(processInstanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.groupId)) {
            query["groupId"] = request.groupId;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.nameSpace)) {
            query["nameSpace"] = request.nameSpace;
        }
        if (!tea_util_1.default.isUnset(request.orderNumber)) {
            query["orderNumber"] = request.orderNumber;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.systemType)) {
            query["systemType"] = request.systemType;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetProcessDefinition",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/definitions/${processInstanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetProcessDefinitionResponse({}));
    }
    /**
     * 获取流程定义
     *
     * @param request - GetProcessDefinitionRequest
     * @returns GetProcessDefinitionResponse
     */
    async getProcessDefinition(processInstanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetProcessDefinitionHeaders({});
        return await this.getProcessDefinitionWithOptions(processInstanceId, request, headers, runtime);
    }
    /**
     * 根据流程ID获取流程设计结构
     *
     * @param request - GetProcessDesignRequest
     * @param headers - GetProcessDesignHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetProcessDesignResponse
     */
    async getProcessDesignWithOptions(processId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetProcessDesign",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/${processId}definitions/designs`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetProcessDesignResponse({}));
    }
    /**
     * 根据流程ID获取流程设计结构
     *
     * @param request - GetProcessDesignRequest
     * @returns GetProcessDesignResponse
     */
    async getProcessDesign(processId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetProcessDesignHeaders({});
        return await this.getProcessDesignWithOptions(processId, request, headers, runtime);
    }
    /**
     * 根据流程ID获取流程设计结构
     *
     * @param request - GetProcessDesignByCodeRequest
     * @param headers - GetProcessDesignByCodeHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetProcessDesignByCodeResponse
     */
    async getProcessDesignByCodeWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.processCode)) {
            query["processCode"] = request.processCode;
        }
        if (!tea_util_1.default.isUnset(request.processId)) {
            query["processId"] = request.processId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetProcessDesignByCode",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/designStructures`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetProcessDesignByCodeResponse({}));
    }
    /**
     * 根据流程ID获取流程设计结构
     *
     * @param request - GetProcessDesignByCodeRequest
     * @returns GetProcessDesignByCodeResponse
     */
    async getProcessDesignByCode(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetProcessDesignByCodeHeaders({});
        return await this.getProcessDesignByCodeWithOptions(request, headers, runtime);
    }
    /**
     * 通过实例id批量获取待办任务
     *
     * @param request - GetRunningTaskListRequest
     * @param headers - GetRunningTaskListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetRunningTaskListResponse
     */
    async getRunningTaskListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceIdList)) {
            body["processInstanceIdList"] = request.processInstanceIdList;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userCorpId)) {
            body["userCorpId"] = request.userCorpId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetRunningTaskList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/runningTasks/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetRunningTaskListResponse({}));
    }
    /**
     * 通过实例id批量获取待办任务
     *
     * @param request - GetRunningTaskListRequest
     * @returns GetRunningTaskListResponse
     */
    async getRunningTaskList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetRunningTaskListHeaders({});
        return await this.getRunningTaskListWithOptions(request, headers, runtime);
    }
    /**
     * 查询流程运行任务（vpc）
     *
     * @param request - GetRunningTasksRequest
     * @param headers - GetRunningTasksHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetRunningTasksResponse
     */
    async getRunningTasksWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            query["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetRunningTasks",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/tasks/getRunningTasks`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetRunningTasksResponse({}));
    }
    /**
     * 查询流程运行任务（vpc）
     *
     * @param request - GetRunningTasksRequest
     * @returns GetRunningTasksResponse
     */
    async getRunningTasks(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetRunningTasksHeaders({});
        return await this.getRunningTasksWithOptions(request, headers, runtime);
    }
    /**
     * 根据用户employeeCode获取所在企业信息(包含售卖版本)
     *
     * @param request - GetSaleUserInfoByUserIdRequest
     * @param headers - GetSaleUserInfoByUserIdHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetSaleUserInfoByUserIdResponse
     */
    async getSaleUserInfoByUserIdWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.namespace)) {
            query["namespace"] = request.namespace;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetSaleUserInfoByUserId",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/saleUserInfo`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetSaleUserInfoByUserIdResponse({}));
    }
    /**
     * 根据用户employeeCode获取所在企业信息(包含售卖版本)
     *
     * @param request - GetSaleUserInfoByUserIdRequest
     * @returns GetSaleUserInfoByUserIdResponse
     */
    async getSaleUserInfoByUserId(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetSaleUserInfoByUserIdHeaders({});
        return await this.getSaleUserInfoByUserIdWithOptions(request, headers, runtime);
    }
    /**
     * 表单的元数据(字段)查询接口
     *
     * @param request - GetSimpleCubeModelListRequest
     * @param headers - GetSimpleCubeModelListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetSimpleCubeModelListResponse
     */
    async getSimpleCubeModelListWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.cubeCode)) {
            query["cubeCode"] = request.cubeCode;
        }
        if (!tea_util_1.default.isUnset(request.cubeTenantId)) {
            query["cubeTenantId"] = request.cubeTenantId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetSimpleCubeModelList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/metadata/simpleCubeModelLists`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetSimpleCubeModelListResponse({}));
    }
    /**
     * 表单的元数据(字段)查询接口
     *
     * @param request - GetSimpleCubeModelListRequest
     * @returns GetSimpleCubeModelListResponse
     */
    async getSimpleCubeModelList(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetSimpleCubeModelListHeaders({});
        return await this.getSimpleCubeModelListWithOptions(request, headers, runtime);
    }
    /**
     * 查询抄送我的任务列表（应用维度）
     *
     * @param request - GetTaskCopiesRequest
     * @param headers - GetTaskCopiesHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetTaskCopiesResponse
     */
    async getTaskCopiesWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            query["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            query["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.keyword)) {
            query["keyword"] = request.keyword;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.processCodes)) {
            query["processCodes"] = request.processCodes;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetTaskCopies",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/taskCopies`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetTaskCopiesResponse({}));
    }
    /**
     * 查询抄送我的任务列表（应用维度）
     *
     * @param request - GetTaskCopiesRequest
     * @returns GetTaskCopiesResponse
     */
    async getTaskCopies(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetTaskCopiesHeaders({});
        return await this.getTaskCopiesWithOptions(request, headers, runtime);
    }
    /**
     * 获取组织下的宜搭应用列表
     *
     * @param request - ListApplicationRequest
     * @param headers - ListApplicationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListApplicationResponse
     */
    async listApplicationWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appFilter)) {
            query["appFilter"] = request.appFilter;
        }
        if (!tea_util_1.default.isUnset(request.appNameSearchKeyword)) {
            query["appNameSearchKeyword"] = request.appNameSearchKeyword;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            query["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            query["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            query["token"] = request.token;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListApplication",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/organizations/applications`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListApplicationResponse({}));
    }
    /**
     * 获取组织下的宜搭应用列表
     *
     * @param request - ListApplicationRequest
     * @returns ListApplicationResponse
     */
    async listApplication(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListApplicationHeaders({});
        return await this.listApplicationWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道应用概览
     *
     * @param request - ListApplicationAuthorizationServiceApplicationInformationRequest
     * @param headers - ListApplicationAuthorizationServiceApplicationInformationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListApplicationAuthorizationServiceApplicationInformationResponse
     */
    async listApplicationAuthorizationServiceApplicationInformationWithOptions(instanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            query["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListApplicationAuthorizationServiceApplicationInformation",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/authorizations/applicationInfos/${instanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListApplicationAuthorizationServiceApplicationInformationResponse({}));
    }
    /**
     * 多渠道应用概览
     *
     * @param request - ListApplicationAuthorizationServiceApplicationInformationRequest
     * @returns ListApplicationAuthorizationServiceApplicationInformationResponse
     */
    async listApplicationAuthorizationServiceApplicationInformation(instanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListApplicationAuthorizationServiceApplicationInformationHeaders({});
        return await this.listApplicationAuthorizationServiceApplicationInformationWithOptions(instanceId, request, headers, runtime);
    }
    /**
     * 多渠道插件概览
     *
     * @param request - ListApplicationAuthorizationServiceConnectorInformationRequest
     * @param headers - ListApplicationAuthorizationServiceConnectorInformationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListApplicationAuthorizationServiceConnectorInformationResponse
     */
    async listApplicationAuthorizationServiceConnectorInformationWithOptions(instanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListApplicationAuthorizationServiceConnectorInformation",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applicationAuthorizations/plugs/${instanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListApplicationAuthorizationServiceConnectorInformationResponse({}));
    }
    /**
     * 多渠道插件概览
     *
     * @param request - ListApplicationAuthorizationServiceConnectorInformationRequest
     * @returns ListApplicationAuthorizationServiceConnectorInformationResponse
     */
    async listApplicationAuthorizationServiceConnectorInformation(instanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListApplicationAuthorizationServiceConnectorInformationHeaders({});
        return await this.listApplicationAuthorizationServiceConnectorInformationWithOptions(instanceId, request, headers, runtime);
    }
    /**
     * 多渠道应用概览
     *
     * @param request - ListApplicationInformationRequest
     * @param headers - ListApplicationInformationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListApplicationInformationResponse
     */
    async listApplicationInformationWithOptions(instanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListApplicationInformation",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/infos/${instanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListApplicationInformationResponse({}));
    }
    /**
     * 多渠道应用概览
     *
     * @param request - ListApplicationInformationRequest
     * @returns ListApplicationInformationResponse
     */
    async listApplicationInformation(instanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListApplicationInformationHeaders({});
        return await this.listApplicationInformationWithOptions(instanceId, request, headers, runtime);
    }
    /**
     * 多渠道列出商品列表
     *
     * @param request - ListCommodityRequest
     * @param headers - ListCommodityHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListCommodityResponse
     */
    async listCommodityWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListCommodity",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/appAuth/commodities`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListCommodityResponse({}));
    }
    /**
     * 多渠道列出商品列表
     *
     * @param request - ListCommodityRequest
     * @returns ListCommodityResponse
     */
    async listCommodity(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListCommodityHeaders({});
        return await this.listCommodityWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道插件概览
     *
     * @param request - ListConnectorInformationRequest
     * @param headers - ListConnectorInformationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListConnectorInformationResponse
     */
    async listConnectorInformationWithOptions(instanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListConnectorInformation",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/plugins/infos/${instanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListConnectorInformationResponse({}));
    }
    /**
     * 多渠道插件概览
     *
     * @param request - ListConnectorInformationRequest
     * @returns ListConnectorInformationResponse
     */
    async listConnectorInformation(instanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListConnectorInformationHeaders({});
        return await this.listConnectorInformationWithOptions(instanceId, request, headers, runtime);
    }
    /**
     * 查询表单实例评论列表
     *
     * @param request - ListFormRemarksRequest
     * @param headers - ListFormRemarksHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListFormRemarksResponse
     */
    async listFormRemarksWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceIdList)) {
            body["formInstanceIdList"] = request.formInstanceIdList;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "ListFormRemarks",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/remarks/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListFormRemarksResponse({}));
    }
    /**
     * 查询表单实例评论列表
     *
     * @param request - ListFormRemarksRequest
     * @returns ListFormRemarksResponse
     */
    async listFormRemarks(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListFormRemarksHeaders({});
        return await this.listFormRemarksWithOptions(request, headers, runtime);
    }
    /**
     * 获取应用下的页面列表
     *
     * @param request - ListNavigationByFormTypeRequest
     * @param headers - ListNavigationByFormTypeHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListNavigationByFormTypeResponse
     */
    async listNavigationByFormTypeWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formType)) {
            query["formType"] = request.formType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListNavigationByFormType",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/navigations`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListNavigationByFormTypeResponse({}));
    }
    /**
     * 获取应用下的页面列表
     *
     * @param request - ListNavigationByFormTypeRequest
     * @returns ListNavigationByFormTypeResponse
     */
    async listNavigationByFormType(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListNavigationByFormTypeHeaders({});
        return await this.listNavigationByFormTypeWithOptions(request, headers, runtime);
    }
    /**
     * 查询表单的变更记录
     *
     * @param request - ListOperationLogsRequest
     * @param headers - ListOperationLogsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListOperationLogsResponse
     */
    async listOperationLogsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceIdList)) {
            body["formInstanceIdList"] = request.formInstanceIdList;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "ListOperationLogs",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/operationsLogs/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListOperationLogsResponse({}));
    }
    /**
     * 查询表单的变更记录
     *
     * @param request - ListOperationLogsRequest
     * @returns ListOperationLogsResponse
     */
    async listOperationLogs(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListOperationLogsHeaders({});
        return await this.listOperationLogsWithOptions(request, headers, runtime);
    }
    /**
     * 获取子表单数据
     *
     * @param request - ListTableDataByFormInstanceIdTableIdRequest
     * @param headers - ListTableDataByFormInstanceIdTableIdHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ListTableDataByFormInstanceIdTableIdResponse
     */
    async listTableDataByFormInstanceIdTableIdWithOptions(formInstanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            query["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.needRowId)) {
            query["needRowId"] = request.needRowId;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.tableFieldId)) {
            query["tableFieldId"] = request.tableFieldId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ListTableDataByFormInstanceIdTableId",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/innerTables/${formInstanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ListTableDataByFormInstanceIdTableIdResponse({}));
    }
    /**
     * 获取子表单数据
     *
     * @param request - ListTableDataByFormInstanceIdTableIdRequest
     * @returns ListTableDataByFormInstanceIdTableIdResponse
     */
    async listTableDataByFormInstanceIdTableId(formInstanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ListTableDataByFormInstanceIdTableIdHeaders({});
        return await this.listTableDataByFormInstanceIdTableIdWithOptions(formInstanceId, request, headers, runtime);
    }
    /**
     * 生成宜搭登录态穿透用的code
     *
     * @param request - LoginCodeGenRequest
     * @param headers - LoginCodeGenHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns LoginCodeGenResponse
     */
    async loginCodeGenWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "LoginCodeGen",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/authorizations/loginCodes`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new LoginCodeGenResponse({}));
    }
    /**
     * 生成宜搭登录态穿透用的code
     *
     * @param request - LoginCodeGenRequest
     * @returns LoginCodeGenResponse
     */
    async loginCodeGen(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new LoginCodeGenHeaders({});
        return await this.loginCodeGenWithOptions(request, headers, runtime);
    }
    /**
     * 通知宜搭授权(购买)结果
     *
     * @param request - NotifyAuthorizationResultRequest
     * @param headers - NotifyAuthorizationResultHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns NotifyAuthorizationResultResponse
     */
    async notifyAuthorizationResultWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.accountNumber)) {
            body["accountNumber"] = request.accountNumber;
        }
        if (!tea_util_1.default.isUnset(request.beginTimeGMT)) {
            body["beginTimeGMT"] = request.beginTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            body["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.chargeType)) {
            body["chargeType"] = request.chargeType;
        }
        if (!tea_util_1.default.isUnset(request.commerceType)) {
            body["commerceType"] = request.commerceType;
        }
        if (!tea_util_1.default.isUnset(request.commodityType)) {
            body["commodityType"] = request.commodityType;
        }
        if (!tea_util_1.default.isUnset(request.endTimeGMT)) {
            body["endTimeGMT"] = request.endTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            body["instanceId"] = request.instanceId;
        }
        if (!tea_util_1.default.isUnset(request.instanceName)) {
            body["instanceName"] = request.instanceName;
        }
        if (!tea_util_1.default.isUnset(request.produceCode)) {
            body["produceCode"] = request.produceCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "NotifyAuthorizationResult",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/authorizationResults/notify`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new NotifyAuthorizationResultResponse({}));
    }
    /**
     * 通知宜搭授权(购买)结果
     *
     * @param request - NotifyAuthorizationResultRequest
     * @returns NotifyAuthorizationResultResponse
     */
    async notifyAuthorizationResult(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new NotifyAuthorizationResultHeaders({});
        return await this.notifyAuthorizationResultWithOptions(request, headers, runtime);
    }
    /**
     * 分页查询宜搭流程自动化运行记录
     *
     * @param request - PageAutoFlowLogRequest
     * @param headers - PageAutoFlowLogHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns PageAutoFlowLogResponse
     */
    async pageAutoFlowLogWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            body["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.endTimeGMT)) {
            body["endTimeGMT"] = request.endTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            body["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            body["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.processCode)) {
            body["processCode"] = request.processCode;
        }
        if (!tea_util_1.default.isUnset(request.startTimeGMT)) {
            body["startTimeGMT"] = request.startTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.status)) {
            body["status"] = request.status;
        }
        if (!tea_util_1.default.isUnset(request.token)) {
            body["token"] = request.token;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "PageAutoFlowLog",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/logs/automations/paginationQuery`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new PageAutoFlowLogResponse({}));
    }
    /**
     * 分页查询宜搭流程自动化运行记录
     *
     * @param request - PageAutoFlowLogRequest
     * @returns PageAutoFlowLogResponse
     */
    async pageAutoFlowLog(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new PageAutoFlowLogHeaders({});
        return await this.pageAutoFlowLogWithOptions(request, headers, runtime);
    }
    /**
     * 分页获取应用下表单列表
     *
     * @param request - PageFormBaseInfosRequest
     * @param headers - PageFormBaseInfosHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns PageFormBaseInfosResponse
     */
    async pageFormBaseInfosWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appKey)) {
            body["appKey"] = request.appKey;
        }
        if (!tea_util_1.default.isUnset(request.formTypeList)) {
            body["formTypeList"] = request.formTypeList;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.pageIndex)) {
            body["pageIndex"] = request.pageIndex;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "PageFormBaseInfos",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/forms/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new PageFormBaseInfosResponse({}));
    }
    /**
     * 分页获取应用下表单列表
     *
     * @param request - PageFormBaseInfosRequest
     * @returns PageFormBaseInfosResponse
     */
    async pageFormBaseInfos(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new PageFormBaseInfosHeaders({});
        return await this.pageFormBaseInfosWithOptions(request, headers, runtime);
    }
    /**
     * 预览审批流程
     *
     * @param request - PreviewPublishedProcessRequest
     * @param headers - PreviewPublishedProcessHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns PreviewPublishedProcessResponse
     */
    async previewPublishedProcessWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.departmentId)) {
            body["departmentId"] = request.departmentId;
        }
        if (!tea_util_1.default.isUnset(request.formDataJson)) {
            body["formDataJson"] = request.formDataJson;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processCode)) {
            body["processCode"] = request.processCode;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "PreviewPublishedProcess",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/preview`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new PreviewPublishedProcessResponse({}));
    }
    /**
     * 预览审批流程
     *
     * @param request - PreviewPublishedProcessRequest
     * @returns PreviewPublishedProcessResponse
     */
    async previewPublishedProcess(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new PreviewPublishedProcessHeaders({});
        return await this.previewPublishedProcessWithOptions(request, headers, runtime);
    }
    /**
     * 查询服务调用记录
     *
     * @param request - QueryServiceRecordRequest
     * @param headers - QueryServiceRecordHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryServiceRecordResponse
     */
    async queryServiceRecordWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            query["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.hookType)) {
            query["hookType"] = request.hookType;
        }
        if (!tea_util_1.default.isUnset(request.hookUuid)) {
            query["hookUuid"] = request.hookUuid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        if (!tea_util_1.default.isUnset(request.invokeAfterDateGMT)) {
            query["invokeAfterDateGMT"] = request.invokeAfterDateGMT;
        }
        if (!tea_util_1.default.isUnset(request.invokeBeforeDateGMT)) {
            query["invokeBeforeDateGMT"] = request.invokeBeforeDateGMT;
        }
        if (!tea_util_1.default.isUnset(request.invokeStatus)) {
            query["invokeStatus"] = request.invokeStatus;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.requestUrl)) {
            query["requestUrl"] = request.requestUrl;
        }
        if (!tea_util_1.default.isUnset(request.sourceUuid)) {
            query["sourceUuid"] = request.sourceUuid;
        }
        if (!tea_util_1.default.isUnset(request.success)) {
            query["success"] = request.success;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "QueryServiceRecord",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/services/invocationRecords`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryServiceRecordResponse({}));
    }
    /**
     * 查询服务调用记录
     *
     * @param request - QueryServiceRecordRequest
     * @returns QueryServiceRecordResponse
     */
    async queryServiceRecord(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryServiceRecordHeaders({});
        return await this.queryServiceRecordWithOptions(request, headers, runtime);
    }
    /**
     * 执行转交任务
     *
     * @param request - RedirectTaskRequest
     * @param headers - RedirectTaskHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RedirectTaskResponse
     */
    async redirectTaskWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.byManager)) {
            body["byManager"] = request.byManager;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.nowActionExecutorId)) {
            body["nowActionExecutorId"] = request.nowActionExecutorId;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            body["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.remark)) {
            body["remark"] = request.remark;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.taskId)) {
            body["taskId"] = request.taskId;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "RedirectTask",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/tasks/redirect`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RedirectTaskResponse({}));
    }
    /**
     * 执行转交任务
     *
     * @param request - RedirectTaskRequest
     * @returns RedirectTaskResponse
     */
    async redirectTask(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RedirectTaskHeaders({});
        return await this.redirectTaskWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道退款
     *
     * @param request - RefundCommodityRequest
     * @param headers - RefundCommodityHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RefundCommodityResponse
     */
    async refundCommodityWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "RefundCommodity",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/appAuth/commodities/refund`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RefundCommodityResponse({}));
    }
    /**
     * 多渠道退款
     *
     * @param request - RefundCommodityRequest
     * @returns RefundCommodityResponse
     */
    async refundCommodity(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RefundCommodityHeaders({});
        return await this.refundCommodityWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道注册
     *
     * @param request - RegisterAccountsRequest
     * @param headers - RegisterAccountsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RegisterAccountsResponse
     */
    async registerAccountsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.activeCode)) {
            body["activeCode"] = request.activeCode;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            body["corpId"] = request.corpId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "RegisterAccounts",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applicationAuthorizations/accounts/register`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RegisterAccountsResponse({}));
    }
    /**
     * 多渠道注册
     *
     * @param request - RegisterAccountsRequest
     * @returns RegisterAccountsResponse
     */
    async registerAccounts(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RegisterAccountsHeaders({});
        return await this.registerAccountsWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道释放
     *
     * @param request - ReleaseCommodityRequest
     * @param headers - ReleaseCommodityHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ReleaseCommodityResponse
     */
    async releaseCommodityWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ReleaseCommodity",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/appAuth/commodities/release`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ReleaseCommodityResponse({}));
    }
    /**
     * 多渠道释放
     *
     * @param request - ReleaseCommodityRequest
     * @returns ReleaseCommodityResponse
     */
    async releaseCommodity(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ReleaseCommodityHeaders({});
        return await this.releaseCommodityWithOptions(request, headers, runtime);
    }
    /**
     * 租户到期30天后, 删除租户关联的资源
     *
     * @param request - RemoveTenantResourceRequest
     * @param headers - RemoveTenantResourceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RemoveTenantResourceResponse
     */
    async removeTenantResourceWithOptions(callerUid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "RemoveTenantResource",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applications/tenantRelatedResources/${callerUid}`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RemoveTenantResourceResponse({}));
    }
    /**
     * 租户到期30天后, 删除租户关联的资源
     *
     * @param request - RemoveTenantResourceRequest
     * @returns RemoveTenantResourceResponse
     */
    async removeTenantResource(callerUid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RemoveTenantResourceHeaders({});
        return await this.removeTenantResourceWithOptions(callerUid, request, headers, runtime);
    }
    /**
     * 宜搭vpc批量打印回调
     *
     * @param request - RenderBatchCallbackRequest
     * @param headers - RenderBatchCallbackHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RenderBatchCallbackResponse
     */
    async renderBatchCallbackWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.corpId)) {
            body["corpId"] = request.corpId;
        }
        if (!tea_util_1.default.isUnset(request.fileSize)) {
            body["fileSize"] = request.fileSize;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.namespace)) {
            body["namespace"] = request.namespace;
        }
        if (!tea_util_1.default.isUnset(request.ossUrl)) {
            body["ossUrl"] = request.ossUrl;
        }
        if (!tea_util_1.default.isUnset(request.sequenceId)) {
            body["sequenceId"] = request.sequenceId;
        }
        if (!tea_util_1.default.isUnset(request.source)) {
            body["source"] = request.source;
        }
        if (!tea_util_1.default.isUnset(request.status)) {
            body["status"] = request.status;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.timeZone)) {
            body["timeZone"] = request.timeZone;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "RenderBatchCallback",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/printings/callbacks/batch`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RenderBatchCallbackResponse({}));
    }
    /**
     * 宜搭vpc批量打印回调
     *
     * @param request - RenderBatchCallbackRequest
     * @returns RenderBatchCallbackResponse
     */
    async renderBatchCallback(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RenderBatchCallbackHeaders({});
        return await this.renderBatchCallbackWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道续费
     *
     * @param request - RenewApplicationAuthorizationServiceOrderRequest
     * @param headers - RenewApplicationAuthorizationServiceOrderHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RenewApplicationAuthorizationServiceOrderResponse
     */
    async renewApplicationAuthorizationServiceOrderWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.endTimeGMT)) {
            body["endTimeGMT"] = request.endTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            body["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "RenewApplicationAuthorizationServiceOrder",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applicationAuthorizations/orders/renew`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RenewApplicationAuthorizationServiceOrderResponse({}));
    }
    /**
     * 多渠道续费
     *
     * @param request - RenewApplicationAuthorizationServiceOrderRequest
     * @returns RenewApplicationAuthorizationServiceOrderResponse
     */
    async renewApplicationAuthorizationServiceOrder(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RenewApplicationAuthorizationServiceOrderHeaders({});
        return await this.renewApplicationAuthorizationServiceOrderWithOptions(request, headers, runtime);
    }
    /**
     * 续费租户
     *
     * @param request - RenewTenantOrderRequest
     * @param headers - RenewTenantOrderHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns RenewTenantOrderResponse
     */
    async renewTenantOrderWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.endTimeGMT)) {
            body["endTimeGMT"] = request.endTimeGMT;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "RenewTenantOrder",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/tenants/reorder`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new RenewTenantOrderResponse({}));
    }
    /**
     * 续费租户
     *
     * @param request - RenewTenantOrderRequest
     * @returns RenewTenantOrderResponse
     */
    async renewTenantOrder(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new RenewTenantOrderHeaders({});
        return await this.renewTenantOrderWithOptions(request, headers, runtime);
    }
    /**
     * 新增表单实例
     *
     * @param request - SaveFormDataRequest
     * @param headers - SaveFormDataHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SaveFormDataResponse
     */
    async saveFormDataWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.formDataJson)) {
            body["formDataJson"] = request.formDataJson;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SaveFormData",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SaveFormDataResponse({}));
    }
    /**
     * 新增表单实例
     *
     * @param request - SaveFormDataRequest
     * @returns SaveFormDataResponse
     */
    async saveFormData(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SaveFormDataHeaders({});
        return await this.saveFormDataWithOptions(request, headers, runtime);
    }
    /**
     * 提交表单/流程实例下的评论
     *
     * @param request - SaveFormRemarkRequest
     * @param headers - SaveFormRemarkHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SaveFormRemarkResponse
     */
    async saveFormRemarkWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.atUserId)) {
            body["atUserId"] = request.atUserId;
        }
        if (!tea_util_1.default.isUnset(request.content)) {
            body["content"] = request.content;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceId)) {
            body["formInstanceId"] = request.formInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.replyId)) {
            body["replyId"] = request.replyId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SaveFormRemark",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/remarks`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SaveFormRemarkResponse({}));
    }
    /**
     * 提交表单/流程实例下的评论
     *
     * @param request - SaveFormRemarkRequest
     * @returns SaveFormRemarkResponse
     */
    async saveFormRemark(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SaveFormRemarkHeaders({});
        return await this.saveFormRemarkWithOptions(request, headers, runtime);
    }
    /**
     * 保存用户设计的模板结构
     *
     * @param request - SavePrintTplDetailInfoRequest
     * @param headers - SavePrintTplDetailInfoHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SavePrintTplDetailInfoResponse
     */
    async savePrintTplDetailInfoWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.description)) {
            body["description"] = request.description;
        }
        if (!tea_util_1.default.isUnset(request.fileNameConfig)) {
            body["fileNameConfig"] = request.fileNameConfig;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.formVersion)) {
            body["formVersion"] = request.formVersion;
        }
        if (!tea_util_1.default.isUnset(request.setting)) {
            body["setting"] = request.setting;
        }
        if (!tea_util_1.default.isUnset(request.templateId)) {
            body["templateId"] = request.templateId;
        }
        if (!tea_util_1.default.isUnset(request.title)) {
            body["title"] = request.title;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        if (!tea_util_1.default.isUnset(request.vm)) {
            body["vm"] = request.vm;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SavePrintTplDetailInfo",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/printTemplates/printTplDetailInfos`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SavePrintTplDetailInfoResponse({}));
    }
    /**
     * 保存用户设计的模板结构
     *
     * @param request - SavePrintTplDetailInfoRequest
     * @returns SavePrintTplDetailInfoResponse
     */
    async savePrintTplDetailInfo(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SavePrintTplDetailInfoHeaders({});
        return await this.savePrintTplDetailInfoWithOptions(request, headers, runtime);
    }
    /**
     * 获取阿里云账号购买宜搭的账号信息
     *
     * @param request - SearchActivationCodeRequest
     * @param headers - SearchActivationCodeHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchActivationCodeResponse
     */
    async searchActivationCodeWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "SearchActivationCode",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/activationCode/information`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchActivationCodeResponse({}));
    }
    /**
     * 获取阿里云账号购买宜搭的账号信息
     *
     * @param request - SearchActivationCodeRequest
     * @returns SearchActivationCodeResponse
     */
    async searchActivationCode(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchActivationCodeHeaders({});
        return await this.searchActivationCodeWithOptions(request, headers, runtime);
    }
    /**
     * 搜索表单中指定人员组件的值
     *
     * @param request - SearchEmployeeFieldValuesRequest
     * @param headers - SearchEmployeeFieldValuesHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchEmployeeFieldValuesResponse
     */
    async searchEmployeeFieldValuesWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.searchFieldJson)) {
            body["searchFieldJson"] = request.searchFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.targetFieldJson)) {
            body["targetFieldJson"] = request.targetFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SearchEmployeeFieldValues",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/employeeFields`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchEmployeeFieldValuesResponse({}));
    }
    /**
     * 搜索表单中指定人员组件的值
     *
     * @param request - SearchEmployeeFieldValuesRequest
     * @returns SearchEmployeeFieldValuesResponse
     */
    async searchEmployeeFieldValues(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchEmployeeFieldValuesHeaders({});
        return await this.searchEmployeeFieldValuesWithOptions(request, headers, runtime);
    }
    /**
     * 根据条件搜索表单实例 ID 列表
     *
     * @param request - SearchFormDataIdListRequest
     * @param headers - SearchFormDataIdListHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchFormDataIdListResponse
     */
    async searchFormDataIdListWithOptions(appType, formUuid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            query["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            query["pageSize"] = request.pageSize;
        }
        let body = {};
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.searchFieldJson)) {
            body["searchFieldJson"] = request.searchFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SearchFormDataIdList",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/ids/${appType}/${formUuid}`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchFormDataIdListResponse({}));
    }
    /**
     * 根据条件搜索表单实例 ID 列表
     *
     * @param request - SearchFormDataIdListRequest
     * @returns SearchFormDataIdListResponse
     */
    async searchFormDataIdList(appType, formUuid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchFormDataIdListHeaders({});
        return await this.searchFormDataIdListWithOptions(appType, formUuid, request, headers, runtime);
    }
    /**
     * 查询表单实例数据(不返回表单的子表单组件数据)
     *
     * @param request - SearchFormDataRemovalTableDataRequest
     * @param headers - SearchFormDataRemovalTableDataHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchFormDataRemovalTableDataResponse
     */
    async searchFormDataRemovalTableDataWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.orderConfigJson)) {
            body["orderConfigJson"] = request.orderConfigJson;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            body["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.searchFieldJson)) {
            body["searchFieldJson"] = request.searchFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SearchFormDataRemovalTableData",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchFormDataRemovalTableDataResponse({}));
    }
    /**
     * 查询表单实例数据(不返回表单的子表单组件数据)
     *
     * @param request - SearchFormDataRemovalTableDataRequest
     * @returns SearchFormDataRemovalTableDataResponse
     */
    async searchFormDataRemovalTableData(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchFormDataRemovalTableDataHeaders({});
        return await this.searchFormDataRemovalTableDataWithOptions(request, headers, runtime);
    }
    /**
     * 通过高级检索条件查询表单实例
     *
     * @param request - SearchFormDataSecondGenerationRequest
     * @param headers - SearchFormDataSecondGenerationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchFormDataSecondGenerationResponse
     */
    async searchFormDataSecondGenerationWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.orderConfigJson)) {
            body["orderConfigJson"] = request.orderConfigJson;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            body["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.searchCondition)) {
            body["searchCondition"] = request.searchCondition;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SearchFormDataSecondGeneration",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/advances/queryAll`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchFormDataSecondGenerationResponse({}));
    }
    /**
     * 通过高级检索条件查询表单实例
     *
     * @param request - SearchFormDataSecondGenerationRequest
     * @returns SearchFormDataSecondGenerationResponse
     */
    async searchFormDataSecondGeneration(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchFormDataSecondGenerationHeaders({});
        return await this.searchFormDataSecondGenerationWithOptions(request, headers, runtime);
    }
    /**
     * 通过高级查询条件查询表单实例数据(不返回子表单组件数据)
     *
     * @param request - SearchFormDataSecondGenerationNoTableFieldRequest
     * @param headers - SearchFormDataSecondGenerationNoTableFieldHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchFormDataSecondGenerationNoTableFieldResponse
     */
    async searchFormDataSecondGenerationNoTableFieldWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.orderConfigJson)) {
            body["orderConfigJson"] = request.orderConfigJson;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            body["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.searchCondition)) {
            body["searchCondition"] = request.searchCondition;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SearchFormDataSecondGenerationNoTableField",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/advances/query`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchFormDataSecondGenerationNoTableFieldResponse({}));
    }
    /**
     * 通过高级查询条件查询表单实例数据(不返回子表单组件数据)
     *
     * @param request - SearchFormDataSecondGenerationNoTableFieldRequest
     * @returns SearchFormDataSecondGenerationNoTableFieldResponse
     */
    async searchFormDataSecondGenerationNoTableField(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchFormDataSecondGenerationNoTableFieldHeaders({});
        return await this.searchFormDataSecondGenerationNoTableFieldWithOptions(request, headers, runtime);
    }
    /**
     * 根据条件搜索表单实例详情列表,对应原searchFormDatas
     *
     * @param request - SearchFormDatasRequest
     * @param headers - SearchFormDatasHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns SearchFormDatasResponse
     */
    async searchFormDatasWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.createFromTimeGMT)) {
            body["createFromTimeGMT"] = request.createFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.createToTimeGMT)) {
            body["createToTimeGMT"] = request.createToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.currentPage)) {
            body["currentPage"] = request.currentPage;
        }
        if (!tea_util_1.default.isUnset(request.dynamicOrder)) {
            body["dynamicOrder"] = request.dynamicOrder;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            body["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.logicOperator)) {
            body["logicOperator"] = request.logicOperator;
        }
        if (!tea_util_1.default.isUnset(request.modifiedFromTimeGMT)) {
            body["modifiedFromTimeGMT"] = request.modifiedFromTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.modifiedToTimeGMT)) {
            body["modifiedToTimeGMT"] = request.modifiedToTimeGMT;
        }
        if (!tea_util_1.default.isUnset(request.originatorId)) {
            body["originatorId"] = request.originatorId;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.searchFieldJson)) {
            body["searchFieldJson"] = request.searchFieldJson;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "SearchFormDatas",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances/search`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new SearchFormDatasResponse({}));
    }
    /**
     * 根据条件搜索表单实例详情列表,对应原searchFormDatas
     *
     * @param request - SearchFormDatasRequest
     * @returns SearchFormDatasResponse
     */
    async searchFormDatas(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new SearchFormDatasHeaders({});
        return await this.searchFormDatasWithOptions(request, headers, runtime);
    }
    /**
     * 发起新的流程实例
     *
     * @param request - StartInstanceRequest
     * @param headers - StartInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns StartInstanceResponse
     */
    async startInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.departmentId)) {
            body["departmentId"] = request.departmentId;
        }
        if (!tea_util_1.default.isUnset(request.formDataJson)) {
            body["formDataJson"] = request.formDataJson;
        }
        if (!tea_util_1.default.isUnset(request.formUuid)) {
            body["formUuid"] = request.formUuid;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processCode)) {
            body["processCode"] = request.processCode;
        }
        if (!tea_util_1.default.isUnset(request.processData)) {
            body["processData"] = request.processData;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "StartInstance",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instances/start`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new StartInstanceResponse({}));
    }
    /**
     * 发起新的流程实例
     *
     * @param request - StartInstanceRequest
     * @returns StartInstanceResponse
     */
    async startInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new StartInstanceHeaders({});
        return await this.startInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 阿里云合同到期终止
     *
     * @param request - TerminateCloudAuthorizationRequest
     * @param headers - TerminateCloudAuthorizationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns TerminateCloudAuthorizationResponse
     */
    async terminateCloudAuthorizationWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            body["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "TerminateCloudAuthorization",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/cloudAuthorizations/terminate`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new TerminateCloudAuthorizationResponse({}));
    }
    /**
     * 阿里云合同到期终止
     *
     * @param request - TerminateCloudAuthorizationRequest
     * @returns TerminateCloudAuthorizationResponse
     */
    async terminateCloudAuthorization(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new TerminateCloudAuthorizationHeaders({});
        return await this.terminateCloudAuthorizationWithOptions(request, headers, runtime);
    }
    /**
     * 终止流程实例
     *
     * @param request - TerminateInstanceRequest
     * @param headers - TerminateInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns TerminateInstanceResponse
     */
    async terminateInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            query["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            query["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            query["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            query["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            query["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "TerminateInstance",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instances/terminate`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new TerminateInstanceResponse({}));
    }
    /**
     * 终止流程实例
     *
     * @param request - TerminateInstanceRequest
     * @returns TerminateInstanceResponse
     */
    async terminateInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new TerminateInstanceHeaders({});
        return await this.terminateInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 变配阿里云账号对应的租户信息
     *
     * @param request - UpdateCloudAccountInformationRequest
     * @param headers - UpdateCloudAccountInformationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns UpdateCloudAccountInformationResponse
     */
    async updateCloudAccountInformationWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.accountNumber)) {
            body["accountNumber"] = request.accountNumber;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.commodityType)) {
            body["commodityType"] = request.commodityType;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "UpdateCloudAccountInformation",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/cloudAccountInfos`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new UpdateCloudAccountInformationResponse({}));
    }
    /**
     * 变配阿里云账号对应的租户信息
     *
     * @param request - UpdateCloudAccountInformationRequest
     * @returns UpdateCloudAccountInformationResponse
     */
    async updateCloudAccountInformation(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new UpdateCloudAccountInformationHeaders({});
        return await this.updateCloudAccountInformationWithOptions(request, headers, runtime);
    }
    /**
     * 更新表单实例
     *
     * @param request - UpdateFormDataRequest
     * @param headers - UpdateFormDataHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns UpdateFormDataResponse
     */
    async updateFormDataWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.env)) {
            body["env"] = request.env;
        }
        if (!tea_util_1.default.isUnset(request.formInstanceId)) {
            body["formInstanceId"] = request.formInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.updateFormDataJson)) {
            body["updateFormDataJson"] = request.updateFormDataJson;
        }
        if (!tea_util_1.default.isUnset(request.useLatestVersion)) {
            body["useLatestVersion"] = request.useLatestVersion;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "UpdateFormData",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/instances`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "none",
        });
        return $tea.cast(await this.execute(params, req, runtime), new UpdateFormDataResponse({}));
    }
    /**
     * 更新表单实例
     *
     * @param request - UpdateFormDataRequest
     * @returns UpdateFormDataResponse
     */
    async updateFormData(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new UpdateFormDataHeaders({});
        return await this.updateFormDataWithOptions(request, headers, runtime);
    }
    /**
     * 更新流程实例
     *
     * @param request - UpdateInstanceRequest
     * @param headers - UpdateInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns UpdateInstanceResponse
     */
    async updateInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            body["processInstanceId"] = request.processInstanceId;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.updateFormDataJson)) {
            body["updateFormDataJson"] = request.updateFormDataJson;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "UpdateInstance",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/processes/instances`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new UpdateInstanceResponse({}));
    }
    /**
     * 更新流程实例
     *
     * @param request - UpdateInstanceRequest
     * @returns UpdateInstanceResponse
     */
    async updateInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new UpdateInstanceHeaders({});
        return await this.updateInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 未知
     *
     * @param request - UpdateStatusRequest
     * @param headers - UpdateStatusHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns UpdateStatusResponse
     */
    async updateStatusWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.appType)) {
            body["appType"] = request.appType;
        }
        if (!tea_util_1.default.isUnset(request.errorLines)) {
            body["errorLines"] = request.errorLines;
        }
        if (!tea_util_1.default.isUnset(request.importSequence)) {
            body["importSequence"] = request.importSequence;
        }
        if (!tea_util_1.default.isUnset(request.language)) {
            body["language"] = request.language;
        }
        if (!tea_util_1.default.isUnset(request.status)) {
            body["status"] = request.status;
        }
        if (!tea_util_1.default.isUnset(request.systemToken)) {
            body["systemToken"] = request.systemToken;
        }
        if (!tea_util_1.default.isUnset(request.userId)) {
            body["userId"] = request.userId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "UpdateStatus",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/forms/status`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new UpdateStatusResponse({}));
    }
    /**
     * 未知
     *
     * @param request - UpdateStatusRequest
     * @returns UpdateStatusResponse
     */
    async updateStatus(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new UpdateStatusHeaders({});
        return await this.updateStatusWithOptions(request, headers, runtime);
    }
    /**
     * 变配阿里云账号对应的租户信息
     *
     * @param request - UpgradeTenantInformationRequest
     * @param headers - UpgradeTenantInformationHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns UpgradeTenantInformationResponse
     */
    async upgradeTenantInformationWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            body["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.accountNumber)) {
            body["accountNumber"] = request.accountNumber;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            body["callerUnionId"] = request.callerUnionId;
        }
        if (!tea_util_1.default.isUnset(request.commodityType)) {
            body["commodityType"] = request.commodityType;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "UpgradeTenantInformation",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/tenantInfos`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "json",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new UpgradeTenantInformationResponse({}));
    }
    /**
     * 变配阿里云账号对应的租户信息
     *
     * @param request - UpgradeTenantInformationRequest
     * @returns UpgradeTenantInformationResponse
     */
    async upgradeTenantInformation(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new UpgradeTenantInformationHeaders({});
        return await this.upgradeTenantInformationWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道续费前校验
     *
     * @param request - ValidateApplicationAuthorizationOrderRequest
     * @param headers - ValidateApplicationAuthorizationOrderHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ValidateApplicationAuthorizationOrderResponse
     */
    async validateApplicationAuthorizationOrderWithOptions(instanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUnionId)) {
            query["callerUnionId"] = request.callerUnionId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ValidateApplicationAuthorizationOrder",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applicationOrderUpdateAuthorizations/${instanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ValidateApplicationAuthorizationOrderResponse({}));
    }
    /**
     * 多渠道续费前校验
     *
     * @param request - ValidateApplicationAuthorizationOrderRequest
     * @returns ValidateApplicationAuthorizationOrderResponse
     */
    async validateApplicationAuthorizationOrder(instanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ValidateApplicationAuthorizationOrderHeaders({});
        return await this.validateApplicationAuthorizationOrderWithOptions(instanceId, request, headers, runtime);
    }
    /**
     * 多渠道新购校验
     *
     * @param request - ValidateApplicationAuthorizationServiceOrderRequest
     * @param headers - ValidateApplicationAuthorizationServiceOrderHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ValidateApplicationAuthorizationServiceOrderResponse
     */
    async validateApplicationAuthorizationServiceOrderWithOptions(callerUid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ValidateApplicationAuthorizationServiceOrder",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/appsAuthorizations/freshOrderInfoReviews/${callerUid}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ValidateApplicationAuthorizationServiceOrderResponse({}));
    }
    /**
     * 多渠道新购校验
     *
     * @param request - ValidateApplicationAuthorizationServiceOrderRequest
     * @returns ValidateApplicationAuthorizationServiceOrderResponse
     */
    async validateApplicationAuthorizationServiceOrder(callerUid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ValidateApplicationAuthorizationServiceOrderHeaders({});
        return await this.validateApplicationAuthorizationServiceOrderWithOptions(callerUid, request, headers, runtime);
    }
    /**
     * 校验变配
     *
     * @param request - ValidateApplicationServiceOrderUpgradeRequest
     * @param headers - ValidateApplicationServiceOrderUpgradeHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ValidateApplicationServiceOrderUpgradeResponse
     */
    async validateApplicationServiceOrderUpgradeWithOptions(callerUnionid, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ValidateApplicationServiceOrderUpgrade",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/applications/orderValidations/${callerUnionid}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ValidateApplicationServiceOrderUpgradeResponse({}));
    }
    /**
     * 校验变配
     *
     * @param request - ValidateApplicationServiceOrderUpgradeRequest
     * @returns ValidateApplicationServiceOrderUpgradeResponse
     */
    async validateApplicationServiceOrderUpgrade(callerUnionid, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ValidateApplicationServiceOrderUpgradeHeaders({});
        return await this.validateApplicationServiceOrderUpgradeWithOptions(callerUnionid, request, headers, runtime);
    }
    /**
     * 多渠道新购校验
     *
     * @param request - ValidateOrderBuyRequest
     * @param headers - ValidateOrderBuyHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ValidateOrderBuyResponse
     */
    async validateOrderBuyWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ValidateOrderBuy",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/orderBuy/validate`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ValidateOrderBuyResponse({}));
    }
    /**
     * 多渠道新购校验
     *
     * @param request - ValidateOrderBuyRequest
     * @returns ValidateOrderBuyResponse
     */
    async validateOrderBuy(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ValidateOrderBuyHeaders({});
        return await this.validateOrderBuyWithOptions(request, headers, runtime);
    }
    /**
     * 多渠道续费前校验
     *
     * @param request - ValidateOrderUpdateRequest
     * @param headers - ValidateOrderUpdateHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ValidateOrderUpdateResponse
     */
    async validateOrderUpdateWithOptions(instanceId, request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ValidateOrderUpdate",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/orders/renewalReviews/${instanceId}`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ValidateOrderUpdateResponse({}));
    }
    /**
     * 多渠道续费前校验
     *
     * @param request - ValidateOrderUpdateRequest
     * @returns ValidateOrderUpdateResponse
     */
    async validateOrderUpdate(instanceId, request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ValidateOrderUpdateHeaders({});
        return await this.validateOrderUpdateWithOptions(instanceId, request, headers, runtime);
    }
    /**
     * 多渠道升配前校验
     *
     * @param request - ValidateOrderUpgradeRequest
     * @param headers - ValidateOrderUpgradeHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns ValidateOrderUpgradeResponse
     */
    async validateOrderUpgradeWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.accessKey)) {
            query["accessKey"] = request.accessKey;
        }
        if (!tea_util_1.default.isUnset(request.callerUid)) {
            query["callerUid"] = request.callerUid;
        }
        if (!tea_util_1.default.isUnset(request.instanceId)) {
            query["instanceId"] = request.instanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "ValidateOrderUpgrade",
            version: "yida_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/yida/apps/orderUpgrade/validate`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "formData",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new ValidateOrderUpgradeResponse({}));
    }
    /**
     * 多渠道升配前校验
     *
     * @param request - ValidateOrderUpgradeRequest
     * @returns ValidateOrderUpgradeResponse
     */
    async validateOrderUpgrade(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new ValidateOrderUpgradeHeaders({});
        return await this.validateOrderUpgradeWithOptions(request, headers, runtime);
    }
}
exports.default = Client;
//# sourceMappingURL=client.js.map