mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
30 lines
1012 B
TypeScript
30 lines
1012 B
TypeScript
import type { AllEntities, Entity, PropertiesOf } from 'n8n-workflow';
|
|
|
|
type SyncroMspMap = {
|
|
contact: 'create' | 'delete' | 'get' | 'getAll' | 'update';
|
|
customer: 'create' | 'delete' | 'get' | 'getAll' | 'update';
|
|
rmm: 'create' | 'delete' | 'get' | 'getAll' | 'mute';
|
|
ticket: 'create' | 'delete' | 'get' | 'getAll' | 'update';
|
|
};
|
|
|
|
export type SyncroMsp = AllEntities<SyncroMspMap>;
|
|
|
|
export type SyncroMspMapContact = Entity<SyncroMspMap, 'contact'>;
|
|
export type SyncroMspMapCustomer = Entity<SyncroMspMap, 'customer'>;
|
|
export type SyncroMspMapRmm = Entity<SyncroMspMap, 'rmm'>;
|
|
export type SyncroMspMapTicket = Entity<SyncroMspMap, 'ticket'>;
|
|
|
|
export type ContactProperties = PropertiesOf<SyncroMspMapContact>;
|
|
export type CustomerProperties = PropertiesOf<SyncroMspMapCustomer>;
|
|
export type RmmProperties = PropertiesOf<SyncroMspMapRmm>;
|
|
export type TicketProperties = PropertiesOf<SyncroMspMapTicket>;
|
|
|
|
export interface IAttachment {
|
|
fields: {
|
|
item?: object[];
|
|
};
|
|
actions: {
|
|
item?: object[];
|
|
};
|
|
}
|