@elqnt/types 1.0.0
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 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +124 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +70 -0
- package/dist/index.mjs.map +1 -0
- package/dist/models/index.d.mts +178 -0
- package/dist/models/index.d.ts +178 -0
- package/dist/models/index.js +124 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/index.mjs +70 -0
- package/dist/models/index.mjs.map +1 -0
- package/package.json +42 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, JSONSchema, ProductName, ProductNameDocBrain, ProductNameDoneProjects, ProductNameFinance, ProductNameHub, ProductNameLegal, ProductNameOptionTS, ProductNamePublicSector, ProductNameQuickMind, ProductNameRealEstate, ProductNameShopAssist, ProductNameTS, ProductNames, ResponseMetadata, ServiceEvent, ServiceEventMetadata, UpdateUserStatusRequest, UpdateUserStatusResponse, UpdateUserStatusSubject, UserStatus, UserStatusAway, UserStatusBusy, UserStatusOffline, UserStatusOnline, UserStatusTS, Variable, VariableReference, VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, VariableValidation } from './models/index.mjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, JSONSchema, ProductName, ProductNameDocBrain, ProductNameDoneProjects, ProductNameFinance, ProductNameHub, ProductNameLegal, ProductNameOptionTS, ProductNamePublicSector, ProductNameQuickMind, ProductNameRealEstate, ProductNameShopAssist, ProductNameTS, ProductNames, ResponseMetadata, ServiceEvent, ServiceEventMetadata, UpdateUserStatusRequest, UpdateUserStatusResponse, UpdateUserStatusSubject, UserStatus, UserStatusAway, UserStatusBusy, UserStatusOffline, UserStatusOnline, UserStatusTS, Variable, VariableReference, VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, VariableValidation } from './models/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.tsx
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
DataTypeArray: () => DataTypeArray,
|
|
24
|
+
DataTypeBoolean: () => DataTypeBoolean,
|
|
25
|
+
DataTypeDate: () => DataTypeDate,
|
|
26
|
+
DataTypeFile: () => DataTypeFile,
|
|
27
|
+
DataTypeFloat: () => DataTypeFloat,
|
|
28
|
+
DataTypeInputFields: () => DataTypeInputFields,
|
|
29
|
+
DataTypeInt: () => DataTypeInt,
|
|
30
|
+
DataTypeJSON: () => DataTypeJSON,
|
|
31
|
+
DataTypeObjectList: () => DataTypeObjectList,
|
|
32
|
+
DataTypeString: () => DataTypeString,
|
|
33
|
+
ProductNameDocBrain: () => ProductNameDocBrain,
|
|
34
|
+
ProductNameDoneProjects: () => ProductNameDoneProjects,
|
|
35
|
+
ProductNameFinance: () => ProductNameFinance,
|
|
36
|
+
ProductNameHub: () => ProductNameHub,
|
|
37
|
+
ProductNameLegal: () => ProductNameLegal,
|
|
38
|
+
ProductNamePublicSector: () => ProductNamePublicSector,
|
|
39
|
+
ProductNameQuickMind: () => ProductNameQuickMind,
|
|
40
|
+
ProductNameRealEstate: () => ProductNameRealEstate,
|
|
41
|
+
ProductNameShopAssist: () => ProductNameShopAssist,
|
|
42
|
+
ProductNames: () => ProductNames,
|
|
43
|
+
UpdateUserStatusSubject: () => UpdateUserStatusSubject,
|
|
44
|
+
UserStatusAway: () => UserStatusAway,
|
|
45
|
+
UserStatusBusy: () => UserStatusBusy,
|
|
46
|
+
UserStatusOffline: () => UserStatusOffline,
|
|
47
|
+
UserStatusOnline: () => UserStatusOnline,
|
|
48
|
+
VariableScopeEdge: () => VariableScopeEdge,
|
|
49
|
+
VariableScopeGlobal: () => VariableScopeGlobal,
|
|
50
|
+
VariableScopeNode: () => VariableScopeNode
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(index_exports);
|
|
53
|
+
|
|
54
|
+
// models/types.ts
|
|
55
|
+
var ProductNameShopAssist = "shop-assist";
|
|
56
|
+
var ProductNamePublicSector = "public-sector";
|
|
57
|
+
var ProductNameHub = "hub";
|
|
58
|
+
var ProductNameFinance = "finance";
|
|
59
|
+
var ProductNameLegal = "legal";
|
|
60
|
+
var ProductNameRealEstate = "real-estate";
|
|
61
|
+
var ProductNameQuickMind = "quick-mind";
|
|
62
|
+
var ProductNameDocBrain = "doc-brain";
|
|
63
|
+
var ProductNameDoneProjects = "done-projects";
|
|
64
|
+
var ProductNames = {
|
|
65
|
+
"shop-assist": { value: "shop-assist", label: "Shop Assist" },
|
|
66
|
+
"public-sector": { value: "public-sector", label: "Public Sector" },
|
|
67
|
+
"hub": { value: "hub", label: "Hub" },
|
|
68
|
+
"finance": { value: "finance", label: "Finance" },
|
|
69
|
+
"legal": { value: "legal", label: "Legal" },
|
|
70
|
+
"real-estate": { value: "real-estate", label: "Real Estate" },
|
|
71
|
+
"quick-mind": { value: "quick-mind", label: "Quick Mind" },
|
|
72
|
+
"doc-brain": { value: "doc-brain", label: "Doc Brain" },
|
|
73
|
+
"done-projects": { value: "done-projects", label: "Done Projects" }
|
|
74
|
+
};
|
|
75
|
+
var DataTypeString = "string";
|
|
76
|
+
var DataTypeInt = "int";
|
|
77
|
+
var DataTypeFloat = "float";
|
|
78
|
+
var DataTypeBoolean = "boolean";
|
|
79
|
+
var DataTypeDate = "date";
|
|
80
|
+
var DataTypeJSON = "json";
|
|
81
|
+
var DataTypeArray = "array";
|
|
82
|
+
var DataTypeInputFields = "inputFields";
|
|
83
|
+
var DataTypeFile = "file";
|
|
84
|
+
var DataTypeObjectList = "objectList";
|
|
85
|
+
var VariableScopeGlobal = "global";
|
|
86
|
+
var VariableScopeNode = "node";
|
|
87
|
+
var VariableScopeEdge = "edge";
|
|
88
|
+
var UserStatusOnline = "online";
|
|
89
|
+
var UserStatusAway = "away";
|
|
90
|
+
var UserStatusBusy = "busy";
|
|
91
|
+
var UserStatusOffline = "offline";
|
|
92
|
+
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
DataTypeArray,
|
|
96
|
+
DataTypeBoolean,
|
|
97
|
+
DataTypeDate,
|
|
98
|
+
DataTypeFile,
|
|
99
|
+
DataTypeFloat,
|
|
100
|
+
DataTypeInputFields,
|
|
101
|
+
DataTypeInt,
|
|
102
|
+
DataTypeJSON,
|
|
103
|
+
DataTypeObjectList,
|
|
104
|
+
DataTypeString,
|
|
105
|
+
ProductNameDocBrain,
|
|
106
|
+
ProductNameDoneProjects,
|
|
107
|
+
ProductNameFinance,
|
|
108
|
+
ProductNameHub,
|
|
109
|
+
ProductNameLegal,
|
|
110
|
+
ProductNamePublicSector,
|
|
111
|
+
ProductNameQuickMind,
|
|
112
|
+
ProductNameRealEstate,
|
|
113
|
+
ProductNameShopAssist,
|
|
114
|
+
ProductNames,
|
|
115
|
+
UpdateUserStatusSubject,
|
|
116
|
+
UserStatusAway,
|
|
117
|
+
UserStatusBusy,
|
|
118
|
+
UserStatusOffline,
|
|
119
|
+
UserStatusOnline,
|
|
120
|
+
VariableScopeEdge,
|
|
121
|
+
VariableScopeGlobal,
|
|
122
|
+
VariableScopeNode
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../index.tsx","../models/types.ts"],"sourcesContent":["export * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: common-types.go\n\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: any /* time.Time */;\n message?: string;\n error?: string;\n}\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: 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\n//////////\n// source: user-status.go (moved from chat-models.go to break circular dependency)\n\nexport type UserStatusTS = 'online' | 'away' | 'busy' | 'offline';\nexport type UserStatus = string;\nexport const UserStatusOnline: UserStatus = \"online\";\nexport const UserStatusAway: UserStatus = \"away\";\nexport const UserStatusBusy: UserStatus = \"busy\";\nexport const UserStatusOffline: UserStatus = \"offline\";\n\n/**\n * User status update requests\n */\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\n/**\n * User Status Subject\n */\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\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;;;ACgBO,IAAM,wBAAqC;AAC3C,IAAM,0BAAuC;AAC7C,IAAM,iBAA8B;AACpC,IAAM,qBAAkC;AACxC,IAAM,mBAAgC;AACtC,IAAM,wBAAqC;AAC3C,IAAM,uBAAoC;AAC1C,IAAM,sBAAmC;AACzC,IAAM,0BAAuC;AAE7C,IAAM,eAAe;AAAA,EAC1B,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AAAA,EAClE,OAAO,EAAE,OAAO,OAAO,OAAO,MAAM;AAAA,EACpC,WAAW,EAAE,OAAO,WAAW,OAAO,UAAU;AAAA,EAChD,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,cAAc,EAAE,OAAO,cAAc,OAAO,aAAa;AAAA,EACzD,aAAa,EAAE,OAAO,aAAa,OAAO,YAAY;AAAA,EACtD,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AACpE;AAuFO,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;AAmBzC,IAAM,mBAA+B;AACrC,IAAM,iBAA6B;AACnC,IAAM,iBAA6B;AACnC,IAAM,oBAAgC;AAiBtC,IAAM,0BAA0B;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// models/types.ts
|
|
2
|
+
var ProductNameShopAssist = "shop-assist";
|
|
3
|
+
var ProductNamePublicSector = "public-sector";
|
|
4
|
+
var ProductNameHub = "hub";
|
|
5
|
+
var ProductNameFinance = "finance";
|
|
6
|
+
var ProductNameLegal = "legal";
|
|
7
|
+
var ProductNameRealEstate = "real-estate";
|
|
8
|
+
var ProductNameQuickMind = "quick-mind";
|
|
9
|
+
var ProductNameDocBrain = "doc-brain";
|
|
10
|
+
var ProductNameDoneProjects = "done-projects";
|
|
11
|
+
var ProductNames = {
|
|
12
|
+
"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
|
+
"legal": { value: "legal", label: "Legal" },
|
|
17
|
+
"real-estate": { value: "real-estate", label: "Real Estate" },
|
|
18
|
+
"quick-mind": { value: "quick-mind", label: "Quick Mind" },
|
|
19
|
+
"doc-brain": { value: "doc-brain", label: "Doc Brain" },
|
|
20
|
+
"done-projects": { value: "done-projects", label: "Done Projects" }
|
|
21
|
+
};
|
|
22
|
+
var DataTypeString = "string";
|
|
23
|
+
var DataTypeInt = "int";
|
|
24
|
+
var DataTypeFloat = "float";
|
|
25
|
+
var DataTypeBoolean = "boolean";
|
|
26
|
+
var DataTypeDate = "date";
|
|
27
|
+
var DataTypeJSON = "json";
|
|
28
|
+
var DataTypeArray = "array";
|
|
29
|
+
var DataTypeInputFields = "inputFields";
|
|
30
|
+
var DataTypeFile = "file";
|
|
31
|
+
var DataTypeObjectList = "objectList";
|
|
32
|
+
var VariableScopeGlobal = "global";
|
|
33
|
+
var VariableScopeNode = "node";
|
|
34
|
+
var VariableScopeEdge = "edge";
|
|
35
|
+
var UserStatusOnline = "online";
|
|
36
|
+
var UserStatusAway = "away";
|
|
37
|
+
var UserStatusBusy = "busy";
|
|
38
|
+
var UserStatusOffline = "offline";
|
|
39
|
+
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
40
|
+
export {
|
|
41
|
+
DataTypeArray,
|
|
42
|
+
DataTypeBoolean,
|
|
43
|
+
DataTypeDate,
|
|
44
|
+
DataTypeFile,
|
|
45
|
+
DataTypeFloat,
|
|
46
|
+
DataTypeInputFields,
|
|
47
|
+
DataTypeInt,
|
|
48
|
+
DataTypeJSON,
|
|
49
|
+
DataTypeObjectList,
|
|
50
|
+
DataTypeString,
|
|
51
|
+
ProductNameDocBrain,
|
|
52
|
+
ProductNameDoneProjects,
|
|
53
|
+
ProductNameFinance,
|
|
54
|
+
ProductNameHub,
|
|
55
|
+
ProductNameLegal,
|
|
56
|
+
ProductNamePublicSector,
|
|
57
|
+
ProductNameQuickMind,
|
|
58
|
+
ProductNameRealEstate,
|
|
59
|
+
ProductNameShopAssist,
|
|
60
|
+
ProductNames,
|
|
61
|
+
UpdateUserStatusSubject,
|
|
62
|
+
UserStatusAway,
|
|
63
|
+
UserStatusBusy,
|
|
64
|
+
UserStatusOffline,
|
|
65
|
+
UserStatusOnline,
|
|
66
|
+
VariableScopeEdge,
|
|
67
|
+
VariableScopeGlobal,
|
|
68
|
+
VariableScopeNode
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../models/types.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: common-types.go\n\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: any /* time.Time */;\n message?: string;\n error?: string;\n}\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: 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\n//////////\n// source: user-status.go (moved from chat-models.go to break circular dependency)\n\nexport type UserStatusTS = 'online' | 'away' | 'busy' | 'offline';\nexport type UserStatus = string;\nexport const UserStatusOnline: UserStatus = \"online\";\nexport const UserStatusAway: UserStatus = \"away\";\nexport const UserStatusBusy: UserStatus = \"busy\";\nexport const UserStatusOffline: UserStatus = \"offline\";\n\n/**\n * User status update requests\n */\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\n/**\n * User Status Subject\n */\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n"],"mappings":";AAgBO,IAAM,wBAAqC;AAC3C,IAAM,0BAAuC;AAC7C,IAAM,iBAA8B;AACpC,IAAM,qBAAkC;AACxC,IAAM,mBAAgC;AACtC,IAAM,wBAAqC;AAC3C,IAAM,uBAAoC;AAC1C,IAAM,sBAAmC;AACzC,IAAM,0BAAuC;AAE7C,IAAM,eAAe;AAAA,EAC1B,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AAAA,EAClE,OAAO,EAAE,OAAO,OAAO,OAAO,MAAM;AAAA,EACpC,WAAW,EAAE,OAAO,WAAW,OAAO,UAAU;AAAA,EAChD,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,cAAc,EAAE,OAAO,cAAc,OAAO,aAAa;AAAA,EACzD,aAAa,EAAE,OAAO,aAAa,OAAO,YAAY;AAAA,EACtD,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AACpE;AAuFO,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;AAmBzC,IAAM,mBAA+B;AACrC,IAAM,iBAA6B;AACnC,IAAM,iBAA6B;AACnC,IAAM,oBAAgC;AAiBtC,IAAM,0BAA0B;","names":[]}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
interface ResponseMetadata {
|
|
2
|
+
success: boolean;
|
|
3
|
+
timestamp: any;
|
|
4
|
+
message?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
}
|
|
7
|
+
type ProductName = string;
|
|
8
|
+
declare const ProductNameShopAssist: ProductName;
|
|
9
|
+
declare const ProductNamePublicSector: ProductName;
|
|
10
|
+
declare const ProductNameHub: ProductName;
|
|
11
|
+
declare const ProductNameFinance: ProductName;
|
|
12
|
+
declare const ProductNameLegal: ProductName;
|
|
13
|
+
declare const ProductNameRealEstate: ProductName;
|
|
14
|
+
declare const ProductNameQuickMind: ProductName;
|
|
15
|
+
declare const ProductNameDocBrain: ProductName;
|
|
16
|
+
declare const ProductNameDoneProjects: ProductName;
|
|
17
|
+
declare const ProductNames: {
|
|
18
|
+
readonly "shop-assist": {
|
|
19
|
+
readonly value: "shop-assist";
|
|
20
|
+
readonly label: "Shop Assist";
|
|
21
|
+
};
|
|
22
|
+
readonly "public-sector": {
|
|
23
|
+
readonly value: "public-sector";
|
|
24
|
+
readonly label: "Public Sector";
|
|
25
|
+
};
|
|
26
|
+
readonly hub: {
|
|
27
|
+
readonly value: "hub";
|
|
28
|
+
readonly label: "Hub";
|
|
29
|
+
};
|
|
30
|
+
readonly finance: {
|
|
31
|
+
readonly value: "finance";
|
|
32
|
+
readonly label: "Finance";
|
|
33
|
+
};
|
|
34
|
+
readonly legal: {
|
|
35
|
+
readonly value: "legal";
|
|
36
|
+
readonly label: "Legal";
|
|
37
|
+
};
|
|
38
|
+
readonly "real-estate": {
|
|
39
|
+
readonly value: "real-estate";
|
|
40
|
+
readonly label: "Real Estate";
|
|
41
|
+
};
|
|
42
|
+
readonly "quick-mind": {
|
|
43
|
+
readonly value: "quick-mind";
|
|
44
|
+
readonly label: "Quick Mind";
|
|
45
|
+
};
|
|
46
|
+
readonly "doc-brain": {
|
|
47
|
+
readonly value: "doc-brain";
|
|
48
|
+
readonly label: "Doc Brain";
|
|
49
|
+
};
|
|
50
|
+
readonly "done-projects": {
|
|
51
|
+
readonly value: "done-projects";
|
|
52
|
+
readonly label: "Done Projects";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type ProductNameTS = keyof typeof ProductNames;
|
|
56
|
+
type ProductNameOptionTS = typeof ProductNames[ProductNameTS];
|
|
57
|
+
/**
|
|
58
|
+
* Base JSON Schema type for reuse
|
|
59
|
+
*/
|
|
60
|
+
interface JSONSchema {
|
|
61
|
+
/**
|
|
62
|
+
* Core Schema Metadata
|
|
63
|
+
*/
|
|
64
|
+
type: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
default?: any;
|
|
68
|
+
/**
|
|
69
|
+
* Schema Composition
|
|
70
|
+
*/
|
|
71
|
+
properties?: {
|
|
72
|
+
[key: string]: JSONSchema;
|
|
73
|
+
};
|
|
74
|
+
items?: JSONSchema;
|
|
75
|
+
required?: string[];
|
|
76
|
+
'$ref'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Validation
|
|
79
|
+
*/
|
|
80
|
+
minLength?: number;
|
|
81
|
+
maxLength?: number;
|
|
82
|
+
minimum?: number;
|
|
83
|
+
maximum?: number;
|
|
84
|
+
pattern?: string;
|
|
85
|
+
format?: string;
|
|
86
|
+
enum?: any[];
|
|
87
|
+
/**
|
|
88
|
+
* Extended Properties
|
|
89
|
+
*/
|
|
90
|
+
'x-enumLabels'?: string[];
|
|
91
|
+
'x-enumColors'?: string[];
|
|
92
|
+
'x-enumDescriptions'?: string[];
|
|
93
|
+
'x-refDisplayFields'?: string[];
|
|
94
|
+
'x-refSearchFields'?: string[];
|
|
95
|
+
'x-refMultiple'?: boolean;
|
|
96
|
+
'x-searchable'?: boolean;
|
|
97
|
+
'x-unique'?: boolean;
|
|
98
|
+
'x-displayOrder'?: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* ServiceEventMetadata contains metadata for service events
|
|
102
|
+
*/
|
|
103
|
+
interface ServiceEventMetadata {
|
|
104
|
+
id: string;
|
|
105
|
+
timestamp: any;
|
|
106
|
+
version: string;
|
|
107
|
+
source: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* ServiceEvent represents an event published by a service
|
|
111
|
+
*/
|
|
112
|
+
interface ServiceEvent {
|
|
113
|
+
metadata: ServiceEventMetadata;
|
|
114
|
+
data: any;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* todo: remove this
|
|
118
|
+
*/
|
|
119
|
+
interface Variable {
|
|
120
|
+
type: DataType;
|
|
121
|
+
value: any;
|
|
122
|
+
defaultValue?: any;
|
|
123
|
+
validation?: VariableValidation;
|
|
124
|
+
scope: VariableScope;
|
|
125
|
+
reference?: VariableReference;
|
|
126
|
+
description?: string;
|
|
127
|
+
required: boolean;
|
|
128
|
+
}
|
|
129
|
+
type DataType = string;
|
|
130
|
+
declare const DataTypeString: DataType;
|
|
131
|
+
declare const DataTypeInt: DataType;
|
|
132
|
+
declare const DataTypeFloat: DataType;
|
|
133
|
+
declare const DataTypeBoolean: DataType;
|
|
134
|
+
declare const DataTypeDate: DataType;
|
|
135
|
+
declare const DataTypeJSON: DataType;
|
|
136
|
+
declare const DataTypeArray: DataType;
|
|
137
|
+
declare const DataTypeInputFields: DataType;
|
|
138
|
+
declare const DataTypeFile: DataType;
|
|
139
|
+
declare const DataTypeObjectList: DataType;
|
|
140
|
+
type VariableScope = string;
|
|
141
|
+
declare const VariableScopeGlobal: VariableScope;
|
|
142
|
+
declare const VariableScopeNode: VariableScope;
|
|
143
|
+
declare const VariableScopeEdge: VariableScope;
|
|
144
|
+
interface VariableValidation {
|
|
145
|
+
minLength?: number;
|
|
146
|
+
maxLength?: number;
|
|
147
|
+
pattern?: string;
|
|
148
|
+
min?: number;
|
|
149
|
+
max?: number;
|
|
150
|
+
options?: string[];
|
|
151
|
+
}
|
|
152
|
+
interface VariableReference {
|
|
153
|
+
nodeId?: string;
|
|
154
|
+
fieldPath: string;
|
|
155
|
+
}
|
|
156
|
+
type UserStatusTS = 'online' | 'away' | 'busy' | 'offline';
|
|
157
|
+
type UserStatus = string;
|
|
158
|
+
declare const UserStatusOnline: UserStatus;
|
|
159
|
+
declare const UserStatusAway: UserStatus;
|
|
160
|
+
declare const UserStatusBusy: UserStatus;
|
|
161
|
+
declare const UserStatusOffline: UserStatus;
|
|
162
|
+
/**
|
|
163
|
+
* User status update requests
|
|
164
|
+
*/
|
|
165
|
+
interface UpdateUserStatusRequest {
|
|
166
|
+
orgId: string;
|
|
167
|
+
userId: string;
|
|
168
|
+
status: UserStatusTS;
|
|
169
|
+
}
|
|
170
|
+
interface UpdateUserStatusResponse {
|
|
171
|
+
metadata: ResponseMetadata;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* User Status Subject
|
|
175
|
+
*/
|
|
176
|
+
declare const UpdateUserStatusSubject = "chat.user.status.update";
|
|
177
|
+
|
|
178
|
+
export { type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type JSONSchema, type ProductName, ProductNameDocBrain, ProductNameDoneProjects, ProductNameFinance, ProductNameHub, ProductNameLegal, type ProductNameOptionTS, ProductNamePublicSector, ProductNameQuickMind, ProductNameRealEstate, ProductNameShopAssist, type ProductNameTS, ProductNames, type ResponseMetadata, type ServiceEvent, type ServiceEventMetadata, type UpdateUserStatusRequest, type UpdateUserStatusResponse, UpdateUserStatusSubject, type UserStatus, UserStatusAway, UserStatusBusy, UserStatusOffline, UserStatusOnline, type UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
interface ResponseMetadata {
|
|
2
|
+
success: boolean;
|
|
3
|
+
timestamp: any;
|
|
4
|
+
message?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
}
|
|
7
|
+
type ProductName = string;
|
|
8
|
+
declare const ProductNameShopAssist: ProductName;
|
|
9
|
+
declare const ProductNamePublicSector: ProductName;
|
|
10
|
+
declare const ProductNameHub: ProductName;
|
|
11
|
+
declare const ProductNameFinance: ProductName;
|
|
12
|
+
declare const ProductNameLegal: ProductName;
|
|
13
|
+
declare const ProductNameRealEstate: ProductName;
|
|
14
|
+
declare const ProductNameQuickMind: ProductName;
|
|
15
|
+
declare const ProductNameDocBrain: ProductName;
|
|
16
|
+
declare const ProductNameDoneProjects: ProductName;
|
|
17
|
+
declare const ProductNames: {
|
|
18
|
+
readonly "shop-assist": {
|
|
19
|
+
readonly value: "shop-assist";
|
|
20
|
+
readonly label: "Shop Assist";
|
|
21
|
+
};
|
|
22
|
+
readonly "public-sector": {
|
|
23
|
+
readonly value: "public-sector";
|
|
24
|
+
readonly label: "Public Sector";
|
|
25
|
+
};
|
|
26
|
+
readonly hub: {
|
|
27
|
+
readonly value: "hub";
|
|
28
|
+
readonly label: "Hub";
|
|
29
|
+
};
|
|
30
|
+
readonly finance: {
|
|
31
|
+
readonly value: "finance";
|
|
32
|
+
readonly label: "Finance";
|
|
33
|
+
};
|
|
34
|
+
readonly legal: {
|
|
35
|
+
readonly value: "legal";
|
|
36
|
+
readonly label: "Legal";
|
|
37
|
+
};
|
|
38
|
+
readonly "real-estate": {
|
|
39
|
+
readonly value: "real-estate";
|
|
40
|
+
readonly label: "Real Estate";
|
|
41
|
+
};
|
|
42
|
+
readonly "quick-mind": {
|
|
43
|
+
readonly value: "quick-mind";
|
|
44
|
+
readonly label: "Quick Mind";
|
|
45
|
+
};
|
|
46
|
+
readonly "doc-brain": {
|
|
47
|
+
readonly value: "doc-brain";
|
|
48
|
+
readonly label: "Doc Brain";
|
|
49
|
+
};
|
|
50
|
+
readonly "done-projects": {
|
|
51
|
+
readonly value: "done-projects";
|
|
52
|
+
readonly label: "Done Projects";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type ProductNameTS = keyof typeof ProductNames;
|
|
56
|
+
type ProductNameOptionTS = typeof ProductNames[ProductNameTS];
|
|
57
|
+
/**
|
|
58
|
+
* Base JSON Schema type for reuse
|
|
59
|
+
*/
|
|
60
|
+
interface JSONSchema {
|
|
61
|
+
/**
|
|
62
|
+
* Core Schema Metadata
|
|
63
|
+
*/
|
|
64
|
+
type: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
default?: any;
|
|
68
|
+
/**
|
|
69
|
+
* Schema Composition
|
|
70
|
+
*/
|
|
71
|
+
properties?: {
|
|
72
|
+
[key: string]: JSONSchema;
|
|
73
|
+
};
|
|
74
|
+
items?: JSONSchema;
|
|
75
|
+
required?: string[];
|
|
76
|
+
'$ref'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Validation
|
|
79
|
+
*/
|
|
80
|
+
minLength?: number;
|
|
81
|
+
maxLength?: number;
|
|
82
|
+
minimum?: number;
|
|
83
|
+
maximum?: number;
|
|
84
|
+
pattern?: string;
|
|
85
|
+
format?: string;
|
|
86
|
+
enum?: any[];
|
|
87
|
+
/**
|
|
88
|
+
* Extended Properties
|
|
89
|
+
*/
|
|
90
|
+
'x-enumLabels'?: string[];
|
|
91
|
+
'x-enumColors'?: string[];
|
|
92
|
+
'x-enumDescriptions'?: string[];
|
|
93
|
+
'x-refDisplayFields'?: string[];
|
|
94
|
+
'x-refSearchFields'?: string[];
|
|
95
|
+
'x-refMultiple'?: boolean;
|
|
96
|
+
'x-searchable'?: boolean;
|
|
97
|
+
'x-unique'?: boolean;
|
|
98
|
+
'x-displayOrder'?: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* ServiceEventMetadata contains metadata for service events
|
|
102
|
+
*/
|
|
103
|
+
interface ServiceEventMetadata {
|
|
104
|
+
id: string;
|
|
105
|
+
timestamp: any;
|
|
106
|
+
version: string;
|
|
107
|
+
source: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* ServiceEvent represents an event published by a service
|
|
111
|
+
*/
|
|
112
|
+
interface ServiceEvent {
|
|
113
|
+
metadata: ServiceEventMetadata;
|
|
114
|
+
data: any;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* todo: remove this
|
|
118
|
+
*/
|
|
119
|
+
interface Variable {
|
|
120
|
+
type: DataType;
|
|
121
|
+
value: any;
|
|
122
|
+
defaultValue?: any;
|
|
123
|
+
validation?: VariableValidation;
|
|
124
|
+
scope: VariableScope;
|
|
125
|
+
reference?: VariableReference;
|
|
126
|
+
description?: string;
|
|
127
|
+
required: boolean;
|
|
128
|
+
}
|
|
129
|
+
type DataType = string;
|
|
130
|
+
declare const DataTypeString: DataType;
|
|
131
|
+
declare const DataTypeInt: DataType;
|
|
132
|
+
declare const DataTypeFloat: DataType;
|
|
133
|
+
declare const DataTypeBoolean: DataType;
|
|
134
|
+
declare const DataTypeDate: DataType;
|
|
135
|
+
declare const DataTypeJSON: DataType;
|
|
136
|
+
declare const DataTypeArray: DataType;
|
|
137
|
+
declare const DataTypeInputFields: DataType;
|
|
138
|
+
declare const DataTypeFile: DataType;
|
|
139
|
+
declare const DataTypeObjectList: DataType;
|
|
140
|
+
type VariableScope = string;
|
|
141
|
+
declare const VariableScopeGlobal: VariableScope;
|
|
142
|
+
declare const VariableScopeNode: VariableScope;
|
|
143
|
+
declare const VariableScopeEdge: VariableScope;
|
|
144
|
+
interface VariableValidation {
|
|
145
|
+
minLength?: number;
|
|
146
|
+
maxLength?: number;
|
|
147
|
+
pattern?: string;
|
|
148
|
+
min?: number;
|
|
149
|
+
max?: number;
|
|
150
|
+
options?: string[];
|
|
151
|
+
}
|
|
152
|
+
interface VariableReference {
|
|
153
|
+
nodeId?: string;
|
|
154
|
+
fieldPath: string;
|
|
155
|
+
}
|
|
156
|
+
type UserStatusTS = 'online' | 'away' | 'busy' | 'offline';
|
|
157
|
+
type UserStatus = string;
|
|
158
|
+
declare const UserStatusOnline: UserStatus;
|
|
159
|
+
declare const UserStatusAway: UserStatus;
|
|
160
|
+
declare const UserStatusBusy: UserStatus;
|
|
161
|
+
declare const UserStatusOffline: UserStatus;
|
|
162
|
+
/**
|
|
163
|
+
* User status update requests
|
|
164
|
+
*/
|
|
165
|
+
interface UpdateUserStatusRequest {
|
|
166
|
+
orgId: string;
|
|
167
|
+
userId: string;
|
|
168
|
+
status: UserStatusTS;
|
|
169
|
+
}
|
|
170
|
+
interface UpdateUserStatusResponse {
|
|
171
|
+
metadata: ResponseMetadata;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* User Status Subject
|
|
175
|
+
*/
|
|
176
|
+
declare const UpdateUserStatusSubject = "chat.user.status.update";
|
|
177
|
+
|
|
178
|
+
export { type DataType, DataTypeArray, DataTypeBoolean, DataTypeDate, DataTypeFile, DataTypeFloat, DataTypeInputFields, DataTypeInt, DataTypeJSON, DataTypeObjectList, DataTypeString, type JSONSchema, type ProductName, ProductNameDocBrain, ProductNameDoneProjects, ProductNameFinance, ProductNameHub, ProductNameLegal, type ProductNameOptionTS, ProductNamePublicSector, ProductNameQuickMind, ProductNameRealEstate, ProductNameShopAssist, type ProductNameTS, ProductNames, type ResponseMetadata, type ServiceEvent, type ServiceEventMetadata, type UpdateUserStatusRequest, type UpdateUserStatusResponse, UpdateUserStatusSubject, type UserStatus, UserStatusAway, UserStatusBusy, UserStatusOffline, UserStatusOnline, type UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// models/index.ts
|
|
21
|
+
var models_exports = {};
|
|
22
|
+
__export(models_exports, {
|
|
23
|
+
DataTypeArray: () => DataTypeArray,
|
|
24
|
+
DataTypeBoolean: () => DataTypeBoolean,
|
|
25
|
+
DataTypeDate: () => DataTypeDate,
|
|
26
|
+
DataTypeFile: () => DataTypeFile,
|
|
27
|
+
DataTypeFloat: () => DataTypeFloat,
|
|
28
|
+
DataTypeInputFields: () => DataTypeInputFields,
|
|
29
|
+
DataTypeInt: () => DataTypeInt,
|
|
30
|
+
DataTypeJSON: () => DataTypeJSON,
|
|
31
|
+
DataTypeObjectList: () => DataTypeObjectList,
|
|
32
|
+
DataTypeString: () => DataTypeString,
|
|
33
|
+
ProductNameDocBrain: () => ProductNameDocBrain,
|
|
34
|
+
ProductNameDoneProjects: () => ProductNameDoneProjects,
|
|
35
|
+
ProductNameFinance: () => ProductNameFinance,
|
|
36
|
+
ProductNameHub: () => ProductNameHub,
|
|
37
|
+
ProductNameLegal: () => ProductNameLegal,
|
|
38
|
+
ProductNamePublicSector: () => ProductNamePublicSector,
|
|
39
|
+
ProductNameQuickMind: () => ProductNameQuickMind,
|
|
40
|
+
ProductNameRealEstate: () => ProductNameRealEstate,
|
|
41
|
+
ProductNameShopAssist: () => ProductNameShopAssist,
|
|
42
|
+
ProductNames: () => ProductNames,
|
|
43
|
+
UpdateUserStatusSubject: () => UpdateUserStatusSubject,
|
|
44
|
+
UserStatusAway: () => UserStatusAway,
|
|
45
|
+
UserStatusBusy: () => UserStatusBusy,
|
|
46
|
+
UserStatusOffline: () => UserStatusOffline,
|
|
47
|
+
UserStatusOnline: () => UserStatusOnline,
|
|
48
|
+
VariableScopeEdge: () => VariableScopeEdge,
|
|
49
|
+
VariableScopeGlobal: () => VariableScopeGlobal,
|
|
50
|
+
VariableScopeNode: () => VariableScopeNode
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(models_exports);
|
|
53
|
+
|
|
54
|
+
// models/types.ts
|
|
55
|
+
var ProductNameShopAssist = "shop-assist";
|
|
56
|
+
var ProductNamePublicSector = "public-sector";
|
|
57
|
+
var ProductNameHub = "hub";
|
|
58
|
+
var ProductNameFinance = "finance";
|
|
59
|
+
var ProductNameLegal = "legal";
|
|
60
|
+
var ProductNameRealEstate = "real-estate";
|
|
61
|
+
var ProductNameQuickMind = "quick-mind";
|
|
62
|
+
var ProductNameDocBrain = "doc-brain";
|
|
63
|
+
var ProductNameDoneProjects = "done-projects";
|
|
64
|
+
var ProductNames = {
|
|
65
|
+
"shop-assist": { value: "shop-assist", label: "Shop Assist" },
|
|
66
|
+
"public-sector": { value: "public-sector", label: "Public Sector" },
|
|
67
|
+
"hub": { value: "hub", label: "Hub" },
|
|
68
|
+
"finance": { value: "finance", label: "Finance" },
|
|
69
|
+
"legal": { value: "legal", label: "Legal" },
|
|
70
|
+
"real-estate": { value: "real-estate", label: "Real Estate" },
|
|
71
|
+
"quick-mind": { value: "quick-mind", label: "Quick Mind" },
|
|
72
|
+
"doc-brain": { value: "doc-brain", label: "Doc Brain" },
|
|
73
|
+
"done-projects": { value: "done-projects", label: "Done Projects" }
|
|
74
|
+
};
|
|
75
|
+
var DataTypeString = "string";
|
|
76
|
+
var DataTypeInt = "int";
|
|
77
|
+
var DataTypeFloat = "float";
|
|
78
|
+
var DataTypeBoolean = "boolean";
|
|
79
|
+
var DataTypeDate = "date";
|
|
80
|
+
var DataTypeJSON = "json";
|
|
81
|
+
var DataTypeArray = "array";
|
|
82
|
+
var DataTypeInputFields = "inputFields";
|
|
83
|
+
var DataTypeFile = "file";
|
|
84
|
+
var DataTypeObjectList = "objectList";
|
|
85
|
+
var VariableScopeGlobal = "global";
|
|
86
|
+
var VariableScopeNode = "node";
|
|
87
|
+
var VariableScopeEdge = "edge";
|
|
88
|
+
var UserStatusOnline = "online";
|
|
89
|
+
var UserStatusAway = "away";
|
|
90
|
+
var UserStatusBusy = "busy";
|
|
91
|
+
var UserStatusOffline = "offline";
|
|
92
|
+
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
DataTypeArray,
|
|
96
|
+
DataTypeBoolean,
|
|
97
|
+
DataTypeDate,
|
|
98
|
+
DataTypeFile,
|
|
99
|
+
DataTypeFloat,
|
|
100
|
+
DataTypeInputFields,
|
|
101
|
+
DataTypeInt,
|
|
102
|
+
DataTypeJSON,
|
|
103
|
+
DataTypeObjectList,
|
|
104
|
+
DataTypeString,
|
|
105
|
+
ProductNameDocBrain,
|
|
106
|
+
ProductNameDoneProjects,
|
|
107
|
+
ProductNameFinance,
|
|
108
|
+
ProductNameHub,
|
|
109
|
+
ProductNameLegal,
|
|
110
|
+
ProductNamePublicSector,
|
|
111
|
+
ProductNameQuickMind,
|
|
112
|
+
ProductNameRealEstate,
|
|
113
|
+
ProductNameShopAssist,
|
|
114
|
+
ProductNames,
|
|
115
|
+
UpdateUserStatusSubject,
|
|
116
|
+
UserStatusAway,
|
|
117
|
+
UserStatusBusy,
|
|
118
|
+
UserStatusOffline,
|
|
119
|
+
UserStatusOnline,
|
|
120
|
+
VariableScopeEdge,
|
|
121
|
+
VariableScopeGlobal,
|
|
122
|
+
VariableScopeNode
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../models/index.ts","../../models/types.ts"],"sourcesContent":["export * from \"./types\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: common-types.go\n\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: any /* time.Time */;\n message?: string;\n error?: string;\n}\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: 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\n//////////\n// source: user-status.go (moved from chat-models.go to break circular dependency)\n\nexport type UserStatusTS = 'online' | 'away' | 'busy' | 'offline';\nexport type UserStatus = string;\nexport const UserStatusOnline: UserStatus = \"online\";\nexport const UserStatusAway: UserStatus = \"away\";\nexport const UserStatusBusy: UserStatus = \"busy\";\nexport const UserStatusOffline: UserStatus = \"offline\";\n\n/**\n * User status update requests\n */\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\n/**\n * User Status Subject\n */\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\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;;;ACgBO,IAAM,wBAAqC;AAC3C,IAAM,0BAAuC;AAC7C,IAAM,iBAA8B;AACpC,IAAM,qBAAkC;AACxC,IAAM,mBAAgC;AACtC,IAAM,wBAAqC;AAC3C,IAAM,uBAAoC;AAC1C,IAAM,sBAAmC;AACzC,IAAM,0BAAuC;AAE7C,IAAM,eAAe;AAAA,EAC1B,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AAAA,EAClE,OAAO,EAAE,OAAO,OAAO,OAAO,MAAM;AAAA,EACpC,WAAW,EAAE,OAAO,WAAW,OAAO,UAAU;AAAA,EAChD,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,cAAc,EAAE,OAAO,cAAc,OAAO,aAAa;AAAA,EACzD,aAAa,EAAE,OAAO,aAAa,OAAO,YAAY;AAAA,EACtD,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AACpE;AAuFO,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;AAmBzC,IAAM,mBAA+B;AACrC,IAAM,iBAA6B;AACnC,IAAM,iBAA6B;AACnC,IAAM,oBAAgC;AAiBtC,IAAM,0BAA0B;","names":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// models/types.ts
|
|
2
|
+
var ProductNameShopAssist = "shop-assist";
|
|
3
|
+
var ProductNamePublicSector = "public-sector";
|
|
4
|
+
var ProductNameHub = "hub";
|
|
5
|
+
var ProductNameFinance = "finance";
|
|
6
|
+
var ProductNameLegal = "legal";
|
|
7
|
+
var ProductNameRealEstate = "real-estate";
|
|
8
|
+
var ProductNameQuickMind = "quick-mind";
|
|
9
|
+
var ProductNameDocBrain = "doc-brain";
|
|
10
|
+
var ProductNameDoneProjects = "done-projects";
|
|
11
|
+
var ProductNames = {
|
|
12
|
+
"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
|
+
"legal": { value: "legal", label: "Legal" },
|
|
17
|
+
"real-estate": { value: "real-estate", label: "Real Estate" },
|
|
18
|
+
"quick-mind": { value: "quick-mind", label: "Quick Mind" },
|
|
19
|
+
"doc-brain": { value: "doc-brain", label: "Doc Brain" },
|
|
20
|
+
"done-projects": { value: "done-projects", label: "Done Projects" }
|
|
21
|
+
};
|
|
22
|
+
var DataTypeString = "string";
|
|
23
|
+
var DataTypeInt = "int";
|
|
24
|
+
var DataTypeFloat = "float";
|
|
25
|
+
var DataTypeBoolean = "boolean";
|
|
26
|
+
var DataTypeDate = "date";
|
|
27
|
+
var DataTypeJSON = "json";
|
|
28
|
+
var DataTypeArray = "array";
|
|
29
|
+
var DataTypeInputFields = "inputFields";
|
|
30
|
+
var DataTypeFile = "file";
|
|
31
|
+
var DataTypeObjectList = "objectList";
|
|
32
|
+
var VariableScopeGlobal = "global";
|
|
33
|
+
var VariableScopeNode = "node";
|
|
34
|
+
var VariableScopeEdge = "edge";
|
|
35
|
+
var UserStatusOnline = "online";
|
|
36
|
+
var UserStatusAway = "away";
|
|
37
|
+
var UserStatusBusy = "busy";
|
|
38
|
+
var UserStatusOffline = "offline";
|
|
39
|
+
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
40
|
+
export {
|
|
41
|
+
DataTypeArray,
|
|
42
|
+
DataTypeBoolean,
|
|
43
|
+
DataTypeDate,
|
|
44
|
+
DataTypeFile,
|
|
45
|
+
DataTypeFloat,
|
|
46
|
+
DataTypeInputFields,
|
|
47
|
+
DataTypeInt,
|
|
48
|
+
DataTypeJSON,
|
|
49
|
+
DataTypeObjectList,
|
|
50
|
+
DataTypeString,
|
|
51
|
+
ProductNameDocBrain,
|
|
52
|
+
ProductNameDoneProjects,
|
|
53
|
+
ProductNameFinance,
|
|
54
|
+
ProductNameHub,
|
|
55
|
+
ProductNameLegal,
|
|
56
|
+
ProductNamePublicSector,
|
|
57
|
+
ProductNameQuickMind,
|
|
58
|
+
ProductNameRealEstate,
|
|
59
|
+
ProductNameShopAssist,
|
|
60
|
+
ProductNames,
|
|
61
|
+
UpdateUserStatusSubject,
|
|
62
|
+
UserStatusAway,
|
|
63
|
+
UserStatusBusy,
|
|
64
|
+
UserStatusOffline,
|
|
65
|
+
UserStatusOnline,
|
|
66
|
+
VariableScopeEdge,
|
|
67
|
+
VariableScopeGlobal,
|
|
68
|
+
VariableScopeNode
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../models/types.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: common-types.go\n\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: any /* time.Time */;\n message?: string;\n error?: string;\n}\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: 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\n//////////\n// source: user-status.go (moved from chat-models.go to break circular dependency)\n\nexport type UserStatusTS = 'online' | 'away' | 'busy' | 'offline';\nexport type UserStatus = string;\nexport const UserStatusOnline: UserStatus = \"online\";\nexport const UserStatusAway: UserStatus = \"away\";\nexport const UserStatusBusy: UserStatus = \"busy\";\nexport const UserStatusOffline: UserStatus = \"offline\";\n\n/**\n * User status update requests\n */\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\n/**\n * User Status Subject\n */\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n"],"mappings":";AAgBO,IAAM,wBAAqC;AAC3C,IAAM,0BAAuC;AAC7C,IAAM,iBAA8B;AACpC,IAAM,qBAAkC;AACxC,IAAM,mBAAgC;AACtC,IAAM,wBAAqC;AAC3C,IAAM,uBAAoC;AAC1C,IAAM,sBAAmC;AACzC,IAAM,0BAAuC;AAE7C,IAAM,eAAe;AAAA,EAC1B,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AAAA,EAClE,OAAO,EAAE,OAAO,OAAO,OAAO,MAAM;AAAA,EACpC,WAAW,EAAE,OAAO,WAAW,OAAO,UAAU;AAAA,EAChD,SAAS,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EAC1C,eAAe,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC5D,cAAc,EAAE,OAAO,cAAc,OAAO,aAAa;AAAA,EACzD,aAAa,EAAE,OAAO,aAAa,OAAO,YAAY;AAAA,EACtD,iBAAiB,EAAE,OAAO,iBAAiB,OAAO,gBAAgB;AACpE;AAuFO,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;AAmBzC,IAAM,mBAA+B;AACrC,IAAM,iBAA6B;AACnC,IAAM,iBAA6B;AACnC,IAAM,oBAAgC;AAiBtC,IAAM,0BAA0B;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elqnt/types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared TypeScript type definitions for Eloquent platform",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./models": {
|
|
15
|
+
"import": "./dist/models/index.mjs",
|
|
16
|
+
"require": "./dist/models/index.js",
|
|
17
|
+
"types": "./dist/models/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup",
|
|
25
|
+
"dev": "tsup --watch",
|
|
26
|
+
"clean": "rm -rf dist",
|
|
27
|
+
"typecheck": "tsc --noEmit"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/Blazi-Commerce/eloquent-packages.git",
|
|
32
|
+
"directory": "packages/types"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/react": "^19.0.0",
|
|
39
|
+
"tsup": "^8.0.0",
|
|
40
|
+
"typescript": "^5.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|