platform/plugins/lead-resources/src/plugin.ts
2023-01-14 17:54:54 +07:00

58 lines
2.0 KiB
TypeScript

//
// Copyright © 2020 Anticrm Platform Contributors.
//
// Licensed under the Eclipse Public 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 https://www.eclipse.org/legal/epl-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.
//
import lead, { leadId } from '@hcengineering/lead'
import { IntlString, mergeIds, Resource } from '@hcengineering/platform'
import { Client, Doc, Ref } from '@hcengineering/core'
import { AnyComponent } from '@hcengineering/ui'
export default mergeIds(leadId, lead, {
string: {
FunnelName: '' as IntlString,
MakePrivate: '' as IntlString,
MakePrivateDescription: '' as IntlString,
CreateFunnel: '' as IntlString,
LeadName: '' as IntlString,
More: '' as IntlString,
SelectFunnel: '' as IntlString,
CreateLead: '' as IntlString,
LeadCreateLabel: '' as IntlString,
Customer: '' as IntlString,
SelectCustomer: '' as IntlString,
Customers: '' as IntlString,
Leads: '' as IntlString,
NoLeadsForDocument: '' as IntlString,
LeadPlaceholder: '' as IntlString,
CreateCustomer: '' as IntlString,
IssueDescriptionPlaceholder: '' as IntlString,
CreateCustomerLabel: '' as IntlString,
Description: '' as IntlString,
FullDescription: '' as IntlString,
FunnelPlaceholder: '' as IntlString,
Members: '' as IntlString,
Assignee: '' as IntlString,
UnAssign: '' as IntlString
},
component: {
CreateCustomer: '' as AnyComponent,
LeadsPresenter: '' as AnyComponent,
CreateFunnel: '' as AnyComponent,
EditFunnel: '' as AnyComponent
},
function: {
LeadTitleProvider: '' as Resource<(client: Client, ref: Ref<Doc>) => Promise<string>>
}
})