@elqnt/types 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -19
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +33 -31
- package/dist/models/index.d.ts +33 -31
- package/dist/models/index.js +28 -25
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +21 -19
- package/dist/models/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { APIError, APIResponse, AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, ChartSettings, ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, DateValue, JSONSchema, MetricResult, ProductName,
|
|
1
|
+
export { APIError, APIResponse, AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, ChartSettings, ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, DateValue, JSONSchema, MetricResult, ProductName, ProductNameAafya, ProductNameCRM, ProductNameDoneProjects, ProductNameEloquent, ProductNameFahim, ProductNameInvoiceBrain, ProductNameLegal, ProductNameOptionTS, ProductNameSanad, ProductNameShopAssist, ProductNameTS, ProductNameZomi, ProductNames, ResponseMetadata, ServiceEvent, ServiceEventMetadata, UpdateUserStatusRequest, UpdateUserStatusResponse, UpdateUserStatusSubject, UserStatusTS, Variable, VariableReference, VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, VariableValidation, Widget, WidgetType, WidgetTypeAccounts, WidgetTypeActivities, WidgetTypeCalendar, WidgetTypeChart, WidgetTypeContacts, WidgetTypeEmail, WidgetTypeFiles, WidgetTypeLeads, WidgetTypeNotes, WidgetTypeOpportunities, WidgetTypeOrders, WidgetTypeTasks } from './models/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { APIError, APIResponse, AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, ChartSettings, ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, DateValue, JSONSchema, MetricResult, ProductName,
|
|
1
|
+
export { APIError, APIResponse, AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, ChartSettings, ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, DateValue, JSONSchema, MetricResult, ProductName, ProductNameAafya, ProductNameCRM, ProductNameDoneProjects, ProductNameEloquent, ProductNameFahim, ProductNameInvoiceBrain, ProductNameLegal, ProductNameOptionTS, ProductNameSanad, ProductNameShopAssist, ProductNameTS, ProductNameZomi, ProductNames, ResponseMetadata, ServiceEvent, ServiceEventMetadata, UpdateUserStatusRequest, UpdateUserStatusResponse, UpdateUserStatusSubject, UserStatusTS, Variable, VariableReference, VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, VariableValidation, Widget, WidgetType, WidgetTypeAccounts, WidgetTypeActivities, WidgetTypeCalendar, WidgetTypeChart, WidgetTypeContacts, WidgetTypeEmail, WidgetTypeFiles, WidgetTypeLeads, WidgetTypeNotes, WidgetTypeOpportunities, WidgetTypeOrders, WidgetTypeTasks } from './models/index.js';
|
package/dist/index.js
CHANGED
|
@@ -41,15 +41,16 @@ __export(index_exports, {
|
|
|
41
41
|
DataTypeJSON: () => DataTypeJSON,
|
|
42
42
|
DataTypeObjectList: () => DataTypeObjectList,
|
|
43
43
|
DataTypeString: () => DataTypeString,
|
|
44
|
-
|
|
44
|
+
ProductNameAafya: () => ProductNameAafya,
|
|
45
|
+
ProductNameCRM: () => ProductNameCRM,
|
|
45
46
|
ProductNameDoneProjects: () => ProductNameDoneProjects,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
ProductNameEloquent: () => ProductNameEloquent,
|
|
48
|
+
ProductNameFahim: () => ProductNameFahim,
|
|
49
|
+
ProductNameInvoiceBrain: () => ProductNameInvoiceBrain,
|
|
48
50
|
ProductNameLegal: () => ProductNameLegal,
|
|
49
|
-
|
|
50
|
-
ProductNameQuickMind: () => ProductNameQuickMind,
|
|
51
|
-
ProductNameRealEstate: () => ProductNameRealEstate,
|
|
51
|
+
ProductNameSanad: () => ProductNameSanad,
|
|
52
52
|
ProductNameShopAssist: () => ProductNameShopAssist,
|
|
53
|
+
ProductNameZomi: () => ProductNameZomi,
|
|
53
54
|
ProductNames: () => ProductNames,
|
|
54
55
|
UpdateUserStatusSubject: () => UpdateUserStatusSubject,
|
|
55
56
|
VariableScopeEdge: () => VariableScopeEdge,
|
|
@@ -71,25 +72,26 @@ __export(index_exports, {
|
|
|
71
72
|
module.exports = __toCommonJS(index_exports);
|
|
72
73
|
|
|
73
74
|
// models/types.ts
|
|
75
|
+
var ProductNameEloquent = "eloquent";
|
|
74
76
|
var ProductNameShopAssist = "shop-assist";
|
|
75
|
-
var ProductNamePublicSector = "public-sector";
|
|
76
|
-
var ProductNameHub = "hub";
|
|
77
|
-
var ProductNameFinance = "finance";
|
|
78
77
|
var ProductNameLegal = "legal";
|
|
79
|
-
var ProductNameRealEstate = "real-estate";
|
|
80
|
-
var ProductNameQuickMind = "quick-mind";
|
|
81
|
-
var ProductNameDocBrain = "doc-brain";
|
|
82
78
|
var ProductNameDoneProjects = "done-projects";
|
|
79
|
+
var ProductNameAafya = "aafya";
|
|
80
|
+
var ProductNameFahim = "fahim";
|
|
81
|
+
var ProductNameSanad = "sanad";
|
|
82
|
+
var ProductNameInvoiceBrain = "invoice-brain";
|
|
83
|
+
var ProductNameZomi = "zomi";
|
|
84
|
+
var ProductNameCRM = "crm";
|
|
83
85
|
var ProductNames = {
|
|
84
86
|
"shop-assist": { value: "shop-assist", label: "Shop Assist" },
|
|
85
|
-
"public-sector": { value: "public-sector", label: "Public Sector" },
|
|
86
|
-
"hub": { value: "hub", label: "Hub" },
|
|
87
|
-
"finance": { value: "finance", label: "Finance" },
|
|
88
87
|
"legal": { value: "legal", label: "Legal" },
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
88
|
+
"done-projects": { value: "done-projects", label: "Done Projects" },
|
|
89
|
+
"aafya": { value: "aafya", label: "Aafya" },
|
|
90
|
+
"fahim": { value: "fahim", label: "Fahim" },
|
|
91
|
+
"sanad": { value: "sanad", label: "Sanad" },
|
|
92
|
+
"invoice-brain": { value: "invoice-brain", label: "Invoice Brain" },
|
|
93
|
+
"zomi": { value: "zomi", label: "Zomi" },
|
|
94
|
+
"crm": { value: "crm", label: "CRM" }
|
|
93
95
|
};
|
|
94
96
|
var DataTypeString = "string";
|
|
95
97
|
var DataTypeInt = "int";
|
|
@@ -155,15 +157,16 @@ var AggregateTypeDistinct = "Distinct";
|
|
|
155
157
|
DataTypeJSON,
|
|
156
158
|
DataTypeObjectList,
|
|
157
159
|
DataTypeString,
|
|
158
|
-
|
|
160
|
+
ProductNameAafya,
|
|
161
|
+
ProductNameCRM,
|
|
159
162
|
ProductNameDoneProjects,
|
|
160
|
-
|
|
161
|
-
|
|
163
|
+
ProductNameEloquent,
|
|
164
|
+
ProductNameFahim,
|
|
165
|
+
ProductNameInvoiceBrain,
|
|
162
166
|
ProductNameLegal,
|
|
163
|
-
|
|
164
|
-
ProductNameQuickMind,
|
|
165
|
-
ProductNameRealEstate,
|
|
167
|
+
ProductNameSanad,
|
|
166
168
|
ProductNameShopAssist,
|
|
169
|
+
ProductNameZomi,
|
|
167
170
|
ProductNames,
|
|
168
171
|
UpdateUserStatusSubject,
|
|
169
172
|
VariableScopeEdge,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../index.tsx","../models/types.ts","../models/user-status.ts","../models/user-models.ts"],"sourcesContent":["export * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNamePublicSector: ProductName = \"public-sector\";\nexport const ProductNameHub: ProductName = \"hub\";\nexport const ProductNameFinance: ProductName = \"finance\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameRealEstate: ProductName = \"real-estate\";\nexport const ProductNameQuickMind: ProductName = \"quick-mind\";\nexport const ProductNameDocBrain: ProductName = \"doc-brain\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"public-sector\": { value: 'public-sector', label: 'Public Sector' },\n \"hub\": { value: 'hub', label: 'Hub' },\n \"finance\": { value: 'finance', label: 'Finance' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"real-estate\": { value: 'real-estate', label: 'Real Estate' },\n \"quick-mind\": { value: 'quick-mind', label: 'Quick Mind' },\n \"doc-brain\": { value: 'doc-brain', label: 'Doc Brain' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterF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ErC,IAAM,sBAAqC;AAC3C,IAAM,oBAAmC;AACzC,IAAM,oBAAmC;;;AChJzC,IAAM,0BAA0B;;;ACXhC,IAAM,qBAAiC;AACvC,IAAM,uBAAmC;AACzC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,qBAAiC;AACvC,IAAM,qBAAiC;AACvC,IAAM,kBAA8B;AACpC,IAAM,0BAAsC;AAC5C,IAAM,kBAA8B;AACpC,IAAM,mBAA+B;AAWrC,IAAM,eAA0B;AAChC,IAAM,gBAA2B;AACjC,IAAM,eAA0B;AAChC,IAAM,oBAA+B;AACrC,IAAM,iBAA4B;AAElC,IAAM,mBAAkC;AACxC,IAAM,qBAAoC;AAC1C,IAAM,uBAAsC;AAC5C,IAAM,mBAAkC;AACxC,IAAM,mBAAkC;AACxC,IAAM,wBAAuC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../index.tsx","../models/types.ts","../models/user-status.ts","../models/user-models.ts"],"sourcesContent":["export * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameEloquent: ProductName = \"eloquent\";\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\nexport const ProductNameAafya: ProductName = \"aafya\";\nexport const ProductNameFahim: ProductName = \"fahim\";\nexport const ProductNameSanad: ProductName = \"sanad\";\nexport const ProductNameInvoiceBrain: ProductName = \"invoice-brain\";\nexport const ProductNameZomi: ProductName = \"zomi\";\nexport const ProductNameCRM: ProductName = \"crm\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n \"aafya\": { value: 'aafya', label: 'Aafya' },\n \"fahim\": { value: 'fahim', label: 'Fahim' },\n \"sanad\": { value: 'sanad', label: 'Sanad' },\n \"invoice-brain\": { value: 'invoice-brain', label: 'Invoice Brain' },\n \"zomi\": { value: 'zomi', label: 'Zomi' },\n \"crm\": { value: 'crm', label: 'CRM' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-ui-component'?: string; // Custom UI component hint (e.g., \"library-picker\")\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,sBAAmC;AACzC,IAAM,wBAAqC;AAC3C,IAAM,mBAAgC;AACtC,IAAM,0BAAuC;AAC7C,IAAM,mBAAgC;AACtC,IAAM,mBAAgC;AACtC,IAAM,mBAAgC;AACtC,IAAM,0BAAuC;AAC7C,IAAM,kBAA+B;AACrC,IAAM,iBAA8B;AAEpC,IAAM,eAAe;AAAA,EAC1B,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AAAA,EAClE,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AAAA,EAClE,QAAQ,EAAE,OAAO,QAAQ,OAAO,OAAO;AAAA,EACvC,OAAO,EAAE,OAAO,OAAO,OAAO,MAAM;AACtC;AA2HO,IAAM,iBAA2B;AACjC,IAAM,cAAwB;AAC9B,IAAM,gBAA0B;AAChC,IAAM,kBAA4B;AAClC,IAAM,eAAyB;AAC/B,IAAM,eAAyB;AAC/B,IAAM,gBAA0B;AAChC,IAAM,sBAAgC;AACtC,IAAM,eAAyB;AAC/B,IAAM,qBAA+B;AAErC,IAAM,sBAAqC;AAC3C,IAAM,oBAAmC;AACzC,IAAM,oBAAmC;;;AClJzC,IAAM,0BAA0B;;;ACXhC,IAAM,qBAAiC;AACvC,IAAM,uBAAmC;AACzC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,qBAAiC;AACvC,IAAM,qBAAiC;AACvC,IAAM,kBAA8B;AACpC,IAAM,0BAAsC;AAC5C,IAAM,kBAA8B;AACpC,IAAM,mBAA+B;AAWrC,IAAM,eAA0B;AAChC,IAAM,gBAA2B;AACjC,IAAM,eAA0B;AAChC,IAAM,oBAA+B;AACrC,IAAM,iBAA4B;AAElC,IAAM,mBAAkC;AACxC,IAAM,qBAAoC;AAC1C,IAAM,uBAAsC;AAC5C,IAAM,mBAAkC;AACxC,IAAM,mBAAkC;AACxC,IAAM,wBAAuC;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
// models/types.ts
|
|
2
|
+
var ProductNameEloquent = "eloquent";
|
|
2
3
|
var ProductNameShopAssist = "shop-assist";
|
|
3
|
-
var ProductNamePublicSector = "public-sector";
|
|
4
|
-
var ProductNameHub = "hub";
|
|
5
|
-
var ProductNameFinance = "finance";
|
|
6
4
|
var ProductNameLegal = "legal";
|
|
7
|
-
var ProductNameRealEstate = "real-estate";
|
|
8
|
-
var ProductNameQuickMind = "quick-mind";
|
|
9
|
-
var ProductNameDocBrain = "doc-brain";
|
|
10
5
|
var ProductNameDoneProjects = "done-projects";
|
|
6
|
+
var ProductNameAafya = "aafya";
|
|
7
|
+
var ProductNameFahim = "fahim";
|
|
8
|
+
var ProductNameSanad = "sanad";
|
|
9
|
+
var ProductNameInvoiceBrain = "invoice-brain";
|
|
10
|
+
var ProductNameZomi = "zomi";
|
|
11
|
+
var ProductNameCRM = "crm";
|
|
11
12
|
var ProductNames = {
|
|
12
13
|
"shop-assist": { value: "shop-assist", label: "Shop Assist" },
|
|
13
|
-
"public-sector": { value: "public-sector", label: "Public Sector" },
|
|
14
|
-
"hub": { value: "hub", label: "Hub" },
|
|
15
|
-
"finance": { value: "finance", label: "Finance" },
|
|
16
14
|
"legal": { value: "legal", label: "Legal" },
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
15
|
+
"done-projects": { value: "done-projects", label: "Done Projects" },
|
|
16
|
+
"aafya": { value: "aafya", label: "Aafya" },
|
|
17
|
+
"fahim": { value: "fahim", label: "Fahim" },
|
|
18
|
+
"sanad": { value: "sanad", label: "Sanad" },
|
|
19
|
+
"invoice-brain": { value: "invoice-brain", label: "Invoice Brain" },
|
|
20
|
+
"zomi": { value: "zomi", label: "Zomi" },
|
|
21
|
+
"crm": { value: "crm", label: "CRM" }
|
|
21
22
|
};
|
|
22
23
|
var DataTypeString = "string";
|
|
23
24
|
var DataTypeInt = "int";
|
|
@@ -82,15 +83,16 @@ export {
|
|
|
82
83
|
DataTypeJSON,
|
|
83
84
|
DataTypeObjectList,
|
|
84
85
|
DataTypeString,
|
|
85
|
-
|
|
86
|
+
ProductNameAafya,
|
|
87
|
+
ProductNameCRM,
|
|
86
88
|
ProductNameDoneProjects,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
ProductNameEloquent,
|
|
90
|
+
ProductNameFahim,
|
|
91
|
+
ProductNameInvoiceBrain,
|
|
89
92
|
ProductNameLegal,
|
|
90
|
-
|
|
91
|
-
ProductNameQuickMind,
|
|
92
|
-
ProductNameRealEstate,
|
|
93
|
+
ProductNameSanad,
|
|
93
94
|
ProductNameShopAssist,
|
|
95
|
+
ProductNameZomi,
|
|
94
96
|
ProductNames,
|
|
95
97
|
UpdateUserStatusSubject,
|
|
96
98
|
VariableScopeEdge,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../models/types.ts","../models/user-status.ts","../models/user-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const
|
|
1
|
+
{"version":3,"sources":["../models/types.ts","../models/user-status.ts","../models/user-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameEloquent: ProductName = \"eloquent\";\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\nexport const ProductNameAafya: ProductName = \"aafya\";\nexport const ProductNameFahim: ProductName = \"fahim\";\nexport const ProductNameSanad: ProductName = \"sanad\";\nexport const ProductNameInvoiceBrain: ProductName = \"invoice-brain\";\nexport const ProductNameZomi: ProductName = \"zomi\";\nexport const ProductNameCRM: ProductName = \"crm\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n \"aafya\": { value: 'aafya', label: 'Aafya' },\n \"fahim\": { value: 'fahim', label: 'Fahim' },\n \"sanad\": { value: 'sanad', label: 'Sanad' },\n \"invoice-brain\": { value: 'invoice-brain', label: 'Invoice Brain' },\n \"zomi\": { value: 'zomi', label: 'Zomi' },\n \"crm\": { value: 'crm', label: 'CRM' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-ui-component'?: string; // Custom UI component hint (e.g., \"library-picker\")\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n"],"mappings":";AAMO,IAAM,sBAAmC;AACzC,IAAM,wBAAqC;AAC3C,IAAM,mBAAgC;AACtC,IAAM,0BAAuC;AAC7C,IAAM,mBAAgC;AACtC,IAAM,mBAAgC;AACtC,IAAM,mBAAgC;AACtC,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1C,IAAM,uBAAsC;AAC5C,IAAM,mBAAkC;AACxC,IAAM,mBAAkC;AACxC,IAAM,wBAAuC;","names":[]}
|
package/dist/models/index.d.mts
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
type ProductName = string;
|
|
2
|
+
declare const ProductNameEloquent: ProductName;
|
|
2
3
|
declare const ProductNameShopAssist: ProductName;
|
|
3
|
-
declare const ProductNamePublicSector: ProductName;
|
|
4
|
-
declare const ProductNameHub: ProductName;
|
|
5
|
-
declare const ProductNameFinance: ProductName;
|
|
6
4
|
declare const ProductNameLegal: ProductName;
|
|
7
|
-
declare const ProductNameRealEstate: ProductName;
|
|
8
|
-
declare const ProductNameQuickMind: ProductName;
|
|
9
|
-
declare const ProductNameDocBrain: ProductName;
|
|
10
5
|
declare const ProductNameDoneProjects: ProductName;
|
|
6
|
+
declare const ProductNameAafya: ProductName;
|
|
7
|
+
declare const ProductNameFahim: ProductName;
|
|
8
|
+
declare const ProductNameSanad: ProductName;
|
|
9
|
+
declare const ProductNameInvoiceBrain: ProductName;
|
|
10
|
+
declare const ProductNameZomi: ProductName;
|
|
11
|
+
declare const ProductNameCRM: ProductName;
|
|
11
12
|
declare const ProductNames: {
|
|
12
13
|
readonly "shop-assist": {
|
|
13
14
|
readonly value: "shop-assist";
|
|
14
15
|
readonly label: "Shop Assist";
|
|
15
16
|
};
|
|
16
|
-
readonly "public-sector": {
|
|
17
|
-
readonly value: "public-sector";
|
|
18
|
-
readonly label: "Public Sector";
|
|
19
|
-
};
|
|
20
|
-
readonly hub: {
|
|
21
|
-
readonly value: "hub";
|
|
22
|
-
readonly label: "Hub";
|
|
23
|
-
};
|
|
24
|
-
readonly finance: {
|
|
25
|
-
readonly value: "finance";
|
|
26
|
-
readonly label: "Finance";
|
|
27
|
-
};
|
|
28
17
|
readonly legal: {
|
|
29
18
|
readonly value: "legal";
|
|
30
19
|
readonly label: "Legal";
|
|
31
20
|
};
|
|
32
|
-
readonly "real-estate": {
|
|
33
|
-
readonly value: "real-estate";
|
|
34
|
-
readonly label: "Real Estate";
|
|
35
|
-
};
|
|
36
|
-
readonly "quick-mind": {
|
|
37
|
-
readonly value: "quick-mind";
|
|
38
|
-
readonly label: "Quick Mind";
|
|
39
|
-
};
|
|
40
|
-
readonly "doc-brain": {
|
|
41
|
-
readonly value: "doc-brain";
|
|
42
|
-
readonly label: "Doc Brain";
|
|
43
|
-
};
|
|
44
21
|
readonly "done-projects": {
|
|
45
22
|
readonly value: "done-projects";
|
|
46
23
|
readonly label: "Done Projects";
|
|
47
24
|
};
|
|
25
|
+
readonly aafya: {
|
|
26
|
+
readonly value: "aafya";
|
|
27
|
+
readonly label: "Aafya";
|
|
28
|
+
};
|
|
29
|
+
readonly fahim: {
|
|
30
|
+
readonly value: "fahim";
|
|
31
|
+
readonly label: "Fahim";
|
|
32
|
+
};
|
|
33
|
+
readonly sanad: {
|
|
34
|
+
readonly value: "sanad";
|
|
35
|
+
readonly label: "Sanad";
|
|
36
|
+
};
|
|
37
|
+
readonly "invoice-brain": {
|
|
38
|
+
readonly value: "invoice-brain";
|
|
39
|
+
readonly label: "Invoice Brain";
|
|
40
|
+
};
|
|
41
|
+
readonly zomi: {
|
|
42
|
+
readonly value: "zomi";
|
|
43
|
+
readonly label: "Zomi";
|
|
44
|
+
};
|
|
45
|
+
readonly crm: {
|
|
46
|
+
readonly value: "crm";
|
|
47
|
+
readonly label: "CRM";
|
|
48
|
+
};
|
|
48
49
|
};
|
|
49
50
|
type ProductNameTS = keyof typeof ProductNames;
|
|
50
51
|
type ProductNameOptionTS = typeof ProductNames[ProductNameTS];
|
|
@@ -114,6 +115,7 @@ interface JSONSchema {
|
|
|
114
115
|
/**
|
|
115
116
|
* Extended Properties
|
|
116
117
|
*/
|
|
118
|
+
'x-ui-component'?: string;
|
|
117
119
|
'x-enumLabels'?: string[];
|
|
118
120
|
'x-enumColors'?: string[];
|
|
119
121
|
'x-enumDescriptions'?: string[];
|
|
@@ -254,4 +256,4 @@ interface ChartSettings {
|
|
|
254
256
|
compareFilterFieldValue: string;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
|
-
export { type APIError, type APIResponse, type AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, type ChartSettings, type ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type DateValue, type JSONSchema, type MetricResult, type ProductName,
|
|
259
|
+
export { type APIError, type APIResponse, type AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, type ChartSettings, type ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type DateValue, type JSONSchema, type MetricResult, type ProductName, ProductNameAafya, ProductNameCRM, ProductNameDoneProjects, ProductNameEloquent, ProductNameFahim, ProductNameInvoiceBrain, ProductNameLegal, type ProductNameOptionTS, ProductNameSanad, ProductNameShopAssist, type ProductNameTS, ProductNameZomi, ProductNames, type ResponseMetadata, type ServiceEvent, type ServiceEventMetadata, type UpdateUserStatusRequest, type UpdateUserStatusResponse, UpdateUserStatusSubject, type UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation, type Widget, type WidgetType, WidgetTypeAccounts, WidgetTypeActivities, WidgetTypeCalendar, WidgetTypeChart, WidgetTypeContacts, WidgetTypeEmail, WidgetTypeFiles, WidgetTypeLeads, WidgetTypeNotes, WidgetTypeOpportunities, WidgetTypeOrders, WidgetTypeTasks };
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
type ProductName = string;
|
|
2
|
+
declare const ProductNameEloquent: ProductName;
|
|
2
3
|
declare const ProductNameShopAssist: ProductName;
|
|
3
|
-
declare const ProductNamePublicSector: ProductName;
|
|
4
|
-
declare const ProductNameHub: ProductName;
|
|
5
|
-
declare const ProductNameFinance: ProductName;
|
|
6
4
|
declare const ProductNameLegal: ProductName;
|
|
7
|
-
declare const ProductNameRealEstate: ProductName;
|
|
8
|
-
declare const ProductNameQuickMind: ProductName;
|
|
9
|
-
declare const ProductNameDocBrain: ProductName;
|
|
10
5
|
declare const ProductNameDoneProjects: ProductName;
|
|
6
|
+
declare const ProductNameAafya: ProductName;
|
|
7
|
+
declare const ProductNameFahim: ProductName;
|
|
8
|
+
declare const ProductNameSanad: ProductName;
|
|
9
|
+
declare const ProductNameInvoiceBrain: ProductName;
|
|
10
|
+
declare const ProductNameZomi: ProductName;
|
|
11
|
+
declare const ProductNameCRM: ProductName;
|
|
11
12
|
declare const ProductNames: {
|
|
12
13
|
readonly "shop-assist": {
|
|
13
14
|
readonly value: "shop-assist";
|
|
14
15
|
readonly label: "Shop Assist";
|
|
15
16
|
};
|
|
16
|
-
readonly "public-sector": {
|
|
17
|
-
readonly value: "public-sector";
|
|
18
|
-
readonly label: "Public Sector";
|
|
19
|
-
};
|
|
20
|
-
readonly hub: {
|
|
21
|
-
readonly value: "hub";
|
|
22
|
-
readonly label: "Hub";
|
|
23
|
-
};
|
|
24
|
-
readonly finance: {
|
|
25
|
-
readonly value: "finance";
|
|
26
|
-
readonly label: "Finance";
|
|
27
|
-
};
|
|
28
17
|
readonly legal: {
|
|
29
18
|
readonly value: "legal";
|
|
30
19
|
readonly label: "Legal";
|
|
31
20
|
};
|
|
32
|
-
readonly "real-estate": {
|
|
33
|
-
readonly value: "real-estate";
|
|
34
|
-
readonly label: "Real Estate";
|
|
35
|
-
};
|
|
36
|
-
readonly "quick-mind": {
|
|
37
|
-
readonly value: "quick-mind";
|
|
38
|
-
readonly label: "Quick Mind";
|
|
39
|
-
};
|
|
40
|
-
readonly "doc-brain": {
|
|
41
|
-
readonly value: "doc-brain";
|
|
42
|
-
readonly label: "Doc Brain";
|
|
43
|
-
};
|
|
44
21
|
readonly "done-projects": {
|
|
45
22
|
readonly value: "done-projects";
|
|
46
23
|
readonly label: "Done Projects";
|
|
47
24
|
};
|
|
25
|
+
readonly aafya: {
|
|
26
|
+
readonly value: "aafya";
|
|
27
|
+
readonly label: "Aafya";
|
|
28
|
+
};
|
|
29
|
+
readonly fahim: {
|
|
30
|
+
readonly value: "fahim";
|
|
31
|
+
readonly label: "Fahim";
|
|
32
|
+
};
|
|
33
|
+
readonly sanad: {
|
|
34
|
+
readonly value: "sanad";
|
|
35
|
+
readonly label: "Sanad";
|
|
36
|
+
};
|
|
37
|
+
readonly "invoice-brain": {
|
|
38
|
+
readonly value: "invoice-brain";
|
|
39
|
+
readonly label: "Invoice Brain";
|
|
40
|
+
};
|
|
41
|
+
readonly zomi: {
|
|
42
|
+
readonly value: "zomi";
|
|
43
|
+
readonly label: "Zomi";
|
|
44
|
+
};
|
|
45
|
+
readonly crm: {
|
|
46
|
+
readonly value: "crm";
|
|
47
|
+
readonly label: "CRM";
|
|
48
|
+
};
|
|
48
49
|
};
|
|
49
50
|
type ProductNameTS = keyof typeof ProductNames;
|
|
50
51
|
type ProductNameOptionTS = typeof ProductNames[ProductNameTS];
|
|
@@ -114,6 +115,7 @@ interface JSONSchema {
|
|
|
114
115
|
/**
|
|
115
116
|
* Extended Properties
|
|
116
117
|
*/
|
|
118
|
+
'x-ui-component'?: string;
|
|
117
119
|
'x-enumLabels'?: string[];
|
|
118
120
|
'x-enumColors'?: string[];
|
|
119
121
|
'x-enumDescriptions'?: string[];
|
|
@@ -254,4 +256,4 @@ interface ChartSettings {
|
|
|
254
256
|
compareFilterFieldValue: string;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
|
-
export { type APIError, type APIResponse, type AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, type ChartSettings, type ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type DateValue, type JSONSchema, type MetricResult, type ProductName,
|
|
259
|
+
export { type APIError, type APIResponse, type AggregateType, AggregateTypeAverage, AggregateTypeCount, AggregateTypeDistinct, AggregateTypeMax, AggregateTypeMin, AggregateTypeSum, type ChartSettings, type ChartType, ChartTypeBar, ChartTypeDoughnut, ChartTypeLine, ChartTypeMetic, ChartTypePie, type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type DateValue, type JSONSchema, type MetricResult, type ProductName, ProductNameAafya, ProductNameCRM, ProductNameDoneProjects, ProductNameEloquent, ProductNameFahim, ProductNameInvoiceBrain, ProductNameLegal, type ProductNameOptionTS, ProductNameSanad, ProductNameShopAssist, type ProductNameTS, ProductNameZomi, ProductNames, type ResponseMetadata, type ServiceEvent, type ServiceEventMetadata, type UpdateUserStatusRequest, type UpdateUserStatusResponse, UpdateUserStatusSubject, type UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation, type Widget, type WidgetType, WidgetTypeAccounts, WidgetTypeActivities, WidgetTypeCalendar, WidgetTypeChart, WidgetTypeContacts, WidgetTypeEmail, WidgetTypeFiles, WidgetTypeLeads, WidgetTypeNotes, WidgetTypeOpportunities, WidgetTypeOrders, WidgetTypeTasks };
|
package/dist/models/index.js
CHANGED
|
@@ -41,15 +41,16 @@ __export(models_exports, {
|
|
|
41
41
|
DataTypeJSON: () => DataTypeJSON,
|
|
42
42
|
DataTypeObjectList: () => DataTypeObjectList,
|
|
43
43
|
DataTypeString: () => DataTypeString,
|
|
44
|
-
|
|
44
|
+
ProductNameAafya: () => ProductNameAafya,
|
|
45
|
+
ProductNameCRM: () => ProductNameCRM,
|
|
45
46
|
ProductNameDoneProjects: () => ProductNameDoneProjects,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
ProductNameEloquent: () => ProductNameEloquent,
|
|
48
|
+
ProductNameFahim: () => ProductNameFahim,
|
|
49
|
+
ProductNameInvoiceBrain: () => ProductNameInvoiceBrain,
|
|
48
50
|
ProductNameLegal: () => ProductNameLegal,
|
|
49
|
-
|
|
50
|
-
ProductNameQuickMind: () => ProductNameQuickMind,
|
|
51
|
-
ProductNameRealEstate: () => ProductNameRealEstate,
|
|
51
|
+
ProductNameSanad: () => ProductNameSanad,
|
|
52
52
|
ProductNameShopAssist: () => ProductNameShopAssist,
|
|
53
|
+
ProductNameZomi: () => ProductNameZomi,
|
|
53
54
|
ProductNames: () => ProductNames,
|
|
54
55
|
UpdateUserStatusSubject: () => UpdateUserStatusSubject,
|
|
55
56
|
VariableScopeEdge: () => VariableScopeEdge,
|
|
@@ -71,25 +72,26 @@ __export(models_exports, {
|
|
|
71
72
|
module.exports = __toCommonJS(models_exports);
|
|
72
73
|
|
|
73
74
|
// models/types.ts
|
|
75
|
+
var ProductNameEloquent = "eloquent";
|
|
74
76
|
var ProductNameShopAssist = "shop-assist";
|
|
75
|
-
var ProductNamePublicSector = "public-sector";
|
|
76
|
-
var ProductNameHub = "hub";
|
|
77
|
-
var ProductNameFinance = "finance";
|
|
78
77
|
var ProductNameLegal = "legal";
|
|
79
|
-
var ProductNameRealEstate = "real-estate";
|
|
80
|
-
var ProductNameQuickMind = "quick-mind";
|
|
81
|
-
var ProductNameDocBrain = "doc-brain";
|
|
82
78
|
var ProductNameDoneProjects = "done-projects";
|
|
79
|
+
var ProductNameAafya = "aafya";
|
|
80
|
+
var ProductNameFahim = "fahim";
|
|
81
|
+
var ProductNameSanad = "sanad";
|
|
82
|
+
var ProductNameInvoiceBrain = "invoice-brain";
|
|
83
|
+
var ProductNameZomi = "zomi";
|
|
84
|
+
var ProductNameCRM = "crm";
|
|
83
85
|
var ProductNames = {
|
|
84
86
|
"shop-assist": { value: "shop-assist", label: "Shop Assist" },
|
|
85
|
-
"public-sector": { value: "public-sector", label: "Public Sector" },
|
|
86
|
-
"hub": { value: "hub", label: "Hub" },
|
|
87
|
-
"finance": { value: "finance", label: "Finance" },
|
|
88
87
|
"legal": { value: "legal", label: "Legal" },
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
88
|
+
"done-projects": { value: "done-projects", label: "Done Projects" },
|
|
89
|
+
"aafya": { value: "aafya", label: "Aafya" },
|
|
90
|
+
"fahim": { value: "fahim", label: "Fahim" },
|
|
91
|
+
"sanad": { value: "sanad", label: "Sanad" },
|
|
92
|
+
"invoice-brain": { value: "invoice-brain", label: "Invoice Brain" },
|
|
93
|
+
"zomi": { value: "zomi", label: "Zomi" },
|
|
94
|
+
"crm": { value: "crm", label: "CRM" }
|
|
93
95
|
};
|
|
94
96
|
var DataTypeString = "string";
|
|
95
97
|
var DataTypeInt = "int";
|
|
@@ -155,15 +157,16 @@ var AggregateTypeDistinct = "Distinct";
|
|
|
155
157
|
DataTypeJSON,
|
|
156
158
|
DataTypeObjectList,
|
|
157
159
|
DataTypeString,
|
|
158
|
-
|
|
160
|
+
ProductNameAafya,
|
|
161
|
+
ProductNameCRM,
|
|
159
162
|
ProductNameDoneProjects,
|
|
160
|
-
|
|
161
|
-
|
|
163
|
+
ProductNameEloquent,
|
|
164
|
+
ProductNameFahim,
|
|
165
|
+
ProductNameInvoiceBrain,
|
|
162
166
|
ProductNameLegal,
|
|
163
|
-
|
|
164
|
-
ProductNameQuickMind,
|
|
165
|
-
ProductNameRealEstate,
|
|
167
|
+
ProductNameSanad,
|
|
166
168
|
ProductNameShopAssist,
|
|
169
|
+
ProductNameZomi,
|
|
167
170
|
ProductNames,
|
|
168
171
|
UpdateUserStatusSubject,
|
|
169
172
|
VariableScopeEdge,
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../models/index.ts","../../models/types.ts","../../models/user-status.ts","../../models/user-models.ts"],"sourcesContent":["// Core shared types\nexport * from \"./types\";\nexport * from \"./user-status\";\nexport * from \"./user-models\";\n\n// Note: admin-models and billing-models have been migrated to @elqnt/admin/models\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNamePublicSector: ProductName = \"public-sector\";\nexport const ProductNameHub: ProductName = \"hub\";\nexport const ProductNameFinance: ProductName = \"finance\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameRealEstate: ProductName = \"real-estate\";\nexport const ProductNameQuickMind: ProductName = \"quick-mind\";\nexport const ProductNameDocBrain: ProductName = \"doc-brain\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"public-sector\": { value: 'public-sector', label: 'Public Sector' },\n \"hub\": { value: 'hub', label: 'Hub' },\n \"finance\": { value: 'finance', label: 'Finance' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"real-estate\": { value: 'real-estate', label: 'Real Estate' },\n \"quick-mind\": { value: 'quick-mind', label: 'Quick Mind' },\n \"doc-brain\": { value: 'doc-brain', label: 'Doc Brain' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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M,0BAAsC;AAC5C,IAAM,kBAA8B;AACpC,IAAM,mBAA+B;AAWrC,IAAM,eAA0B;AAChC,IAAM,gBAA2B;AACjC,IAAM,eAA0B;AAChC,IAAM,oBAA+B;AACrC,IAAM,iBAA4B;AAElC,IAAM,mBAAkC;AACxC,IAAM,qBAAoC;AAC1C,IAAM,uBAAsC;AAC5C,IAAM,mBAAkC;AACxC,IAAM,mBAAkC;AACxC,IAAM,wBAAuC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../models/index.ts","../../models/types.ts","../../models/user-status.ts","../../models/user-models.ts"],"sourcesContent":["// Core shared types\nexport * from \"./types\";\nexport * from \"./user-status\";\nexport * from \"./user-models\";\n\n// Note: admin-models and billing-models have been migrated to @elqnt/admin/models\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameEloquent: ProductName = \"eloquent\";\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\nexport const ProductNameAafya: ProductName = \"aafya\";\nexport const ProductNameFahim: ProductName = \"fahim\";\nexport const ProductNameSanad: ProductName = \"sanad\";\nexport const ProductNameInvoiceBrain: ProductName = \"invoice-brain\";\nexport const ProductNameZomi: ProductName = \"zomi\";\nexport const ProductNameCRM: ProductName = \"crm\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n \"aafya\": { value: 'aafya', label: 'Aafya' },\n \"fahim\": { value: 'fahim', label: 'Fahim' },\n \"sanad\": { value: 'sanad', label: 'Sanad' },\n \"invoice-brain\": { value: 'invoice-brain', label: 'Invoice Brain' },\n \"zomi\": { value: 'zomi', label: 'Zomi' },\n \"crm\": { value: 'crm', label: 'CRM' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-ui-component'?: string; // Custom UI component hint (e.g., \"library-picker\")\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;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AqC;AAC3C,IAAM,oBAAmC;AACzC,IAAM,oBAAmC;;;AClJzC,IAAM,0BAA0B;;;ACXhC,IAAM,qBAAiC;AACvC,IAAM,uBAAmC;AACzC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,kBAA8B;AACpC,IAAM,qBAAiC;AACvC,IAAM,qBAAiC;AACvC,IAAM,kBAA8B;AACpC,IAAM,0BAAsC;AAC5C,IAAM,kBAA8B;AACpC,IAAM,mBAA+B;AAWrC,IAAM,eAA0B;AAChC,IAAM,gBAA2B;AACjC,IAAM,eAA0B;AAChC,IAAM,oBAA+B;AACrC,IAAM,iBAA4B;AAElC,IAAM,mBAAkC;AACxC,IAAM,qBAAoC;AAC1C,IAAM,uBAAsC;AAC5C,IAAM,mBAAkC;AACxC,IAAM,mBAAkC;AACxC,IAAM,wBAAuC;","names":[]}
|
package/dist/models/index.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
// models/types.ts
|
|
2
|
+
var ProductNameEloquent = "eloquent";
|
|
2
3
|
var ProductNameShopAssist = "shop-assist";
|
|
3
|
-
var ProductNamePublicSector = "public-sector";
|
|
4
|
-
var ProductNameHub = "hub";
|
|
5
|
-
var ProductNameFinance = "finance";
|
|
6
4
|
var ProductNameLegal = "legal";
|
|
7
|
-
var ProductNameRealEstate = "real-estate";
|
|
8
|
-
var ProductNameQuickMind = "quick-mind";
|
|
9
|
-
var ProductNameDocBrain = "doc-brain";
|
|
10
5
|
var ProductNameDoneProjects = "done-projects";
|
|
6
|
+
var ProductNameAafya = "aafya";
|
|
7
|
+
var ProductNameFahim = "fahim";
|
|
8
|
+
var ProductNameSanad = "sanad";
|
|
9
|
+
var ProductNameInvoiceBrain = "invoice-brain";
|
|
10
|
+
var ProductNameZomi = "zomi";
|
|
11
|
+
var ProductNameCRM = "crm";
|
|
11
12
|
var ProductNames = {
|
|
12
13
|
"shop-assist": { value: "shop-assist", label: "Shop Assist" },
|
|
13
|
-
"public-sector": { value: "public-sector", label: "Public Sector" },
|
|
14
|
-
"hub": { value: "hub", label: "Hub" },
|
|
15
|
-
"finance": { value: "finance", label: "Finance" },
|
|
16
14
|
"legal": { value: "legal", label: "Legal" },
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
15
|
+
"done-projects": { value: "done-projects", label: "Done Projects" },
|
|
16
|
+
"aafya": { value: "aafya", label: "Aafya" },
|
|
17
|
+
"fahim": { value: "fahim", label: "Fahim" },
|
|
18
|
+
"sanad": { value: "sanad", label: "Sanad" },
|
|
19
|
+
"invoice-brain": { value: "invoice-brain", label: "Invoice Brain" },
|
|
20
|
+
"zomi": { value: "zomi", label: "Zomi" },
|
|
21
|
+
"crm": { value: "crm", label: "CRM" }
|
|
21
22
|
};
|
|
22
23
|
var DataTypeString = "string";
|
|
23
24
|
var DataTypeInt = "int";
|
|
@@ -82,15 +83,16 @@ export {
|
|
|
82
83
|
DataTypeJSON,
|
|
83
84
|
DataTypeObjectList,
|
|
84
85
|
DataTypeString,
|
|
85
|
-
|
|
86
|
+
ProductNameAafya,
|
|
87
|
+
ProductNameCRM,
|
|
86
88
|
ProductNameDoneProjects,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
ProductNameEloquent,
|
|
90
|
+
ProductNameFahim,
|
|
91
|
+
ProductNameInvoiceBrain,
|
|
89
92
|
ProductNameLegal,
|
|
90
|
-
|
|
91
|
-
ProductNameQuickMind,
|
|
92
|
-
ProductNameRealEstate,
|
|
93
|
+
ProductNameSanad,
|
|
93
94
|
ProductNameShopAssist,
|
|
95
|
+
ProductNameZomi,
|
|
94
96
|
ProductNames,
|
|
95
97
|
UpdateUserStatusSubject,
|
|
96
98
|
VariableScopeEdge,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../models/types.ts","../../models/user-status.ts","../../models/user-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const
|
|
1
|
+
{"version":3,"sources":["../../models/types.ts","../../models/user-status.ts","../../models/user-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameEloquent: ProductName = \"eloquent\";\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\nexport const ProductNameAafya: ProductName = \"aafya\";\nexport const ProductNameFahim: ProductName = \"fahim\";\nexport const ProductNameSanad: ProductName = \"sanad\";\nexport const ProductNameInvoiceBrain: ProductName = \"invoice-brain\";\nexport const ProductNameZomi: ProductName = \"zomi\";\nexport const ProductNameCRM: ProductName = \"crm\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n \"aafya\": { value: 'aafya', label: 'Aafya' },\n \"fahim\": { value: 'fahim', label: 'Fahim' },\n \"sanad\": { value: 'sanad', label: 'Sanad' },\n \"invoice-brain\": { value: 'invoice-brain', label: 'Invoice Brain' },\n \"zomi\": { value: 'zomi', label: 'Zomi' },\n \"crm\": { value: 'crm', label: 'CRM' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-ui-component'?: string; // Custom UI component hint (e.g., \"library-picker\")\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n"],"mappings":";AAMO,IAAM,sBAAmC;AACzC,IAAM,wBAAqC;AAC3C,IAAM,mBAAgC;AACtC,IAAM,0BAAuC;AAC7C,IAAM,mBAAgC;AACtC,IAAM,mBAAgC;AACtC,IAAM,mBAAgC;AACtC,IAAM,0BAAuC;AAC7C,IAAM,kBAA+B;AACrC,IAAM,iBAA8B;AAEpC,IAAM,eAAe;AAAA,EAC1B,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,iBAAiB,EAAE,O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