/*
 * Copyright 2022 The KodeRover Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package lark

type ApproveType string

const (
	ApproveTypeAnd        ApproveType = "AND"
	ApproveTypeOr         ApproveType = "OR"
	ApproveTypeSequential ApproveType = "SEQUENTIAL"

	QueryTypeEmail  = "email"
	QueryTypeMobile = "mobile"
)

const (
	// ApproverSelectionMethodFree is the approver selection method in the definition of approval
	// Free means the approval sponsor can choose the approver freely
	ApproverSelectionMethodFree = "Free"

	approvalNameI18NKey            = `@i18n@approval_name`
	approvalDescriptionI18NKey     = `@i18n@description`
	approvalNodeApproveI18NKeyTmpl = `@i18n@node_approve_%d`
	approvalNodeIDKeyTmpl          = `APPROVAL_NODE_%d`
	approvalNodeNameValueTmpl      = `审批_%d`
	approvalFormNameI18NKey        = `@i18n@formname`
	approvalFormValueI18NKey       = `@i18n@formvalue`

	approvalFormNameI18NValue = `详情`

	defaultFormValueI18NValue = `用于 Zadig Workflow 审批`

	defaultPageSize = 50
)
