@elqnt/types 1.0.8 → 1.0.9
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 +2 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +4 -13
- package/dist/models/index.d.ts +4 -13
- package/dist/models/index.js +2 -12
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +2 -8
- package/dist/models/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1 +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,
|
|
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, UserStatusTS, Variable, VariableReference, VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, VariableValidation } from './models/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +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,
|
|
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, UserStatusTS, Variable, VariableReference, VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, VariableValidation } from './models/index.js';
|
package/dist/index.js
CHANGED
|
@@ -41,10 +41,6 @@ __export(index_exports, {
|
|
|
41
41
|
ProductNameShopAssist: () => ProductNameShopAssist,
|
|
42
42
|
ProductNames: () => ProductNames,
|
|
43
43
|
UpdateUserStatusSubject: () => UpdateUserStatusSubject,
|
|
44
|
-
UserStatusAway: () => UserStatusAway,
|
|
45
|
-
UserStatusBusy: () => UserStatusBusy,
|
|
46
|
-
UserStatusOffline: () => UserStatusOffline,
|
|
47
|
-
UserStatusOnline: () => UserStatusOnline,
|
|
48
44
|
VariableScopeEdge: () => VariableScopeEdge,
|
|
49
45
|
VariableScopeGlobal: () => VariableScopeGlobal,
|
|
50
46
|
VariableScopeNode: () => VariableScopeNode
|
|
@@ -85,10 +81,8 @@ var DataTypeObjectList = "objectList";
|
|
|
85
81
|
var VariableScopeGlobal = "global";
|
|
86
82
|
var VariableScopeNode = "node";
|
|
87
83
|
var VariableScopeEdge = "edge";
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var UserStatusBusy = "busy";
|
|
91
|
-
var UserStatusOffline = "offline";
|
|
84
|
+
|
|
85
|
+
// models/user-status.ts
|
|
92
86
|
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
93
87
|
// Annotate the CommonJS export names for ESM import in node:
|
|
94
88
|
0 && (module.exports = {
|
|
@@ -113,10 +107,6 @@ var UpdateUserStatusSubject = "chat.user.status.update";
|
|
|
113
107
|
ProductNameShopAssist,
|
|
114
108
|
ProductNames,
|
|
115
109
|
UpdateUserStatusSubject,
|
|
116
|
-
UserStatusAway,
|
|
117
|
-
UserStatusBusy,
|
|
118
|
-
UserStatusOffline,
|
|
119
|
-
UserStatusOnline,
|
|
120
110
|
VariableScopeEdge,
|
|
121
111
|
VariableScopeGlobal,
|
|
122
112
|
VariableScopeNode
|
package/dist/index.js.map
CHANGED
|
@@ -1 +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
|
|
1
|
+
{"version":3,"sources":["../index.tsx","../models/types.ts","../models/user-status.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 'x-component'?: string; // Custom UI component to render for this field\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"],"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;;;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;AAwFO,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;;;ACxHzC,IAAM,0BAA0B;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -32,10 +32,8 @@ var DataTypeObjectList = "objectList";
|
|
|
32
32
|
var VariableScopeGlobal = "global";
|
|
33
33
|
var VariableScopeNode = "node";
|
|
34
34
|
var VariableScopeEdge = "edge";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var UserStatusBusy = "busy";
|
|
38
|
-
var UserStatusOffline = "offline";
|
|
35
|
+
|
|
36
|
+
// models/user-status.ts
|
|
39
37
|
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
40
38
|
export {
|
|
41
39
|
DataTypeArray,
|
|
@@ -59,10 +57,6 @@ export {
|
|
|
59
57
|
ProductNameShopAssist,
|
|
60
58
|
ProductNames,
|
|
61
59
|
UpdateUserStatusSubject,
|
|
62
|
-
UserStatusAway,
|
|
63
|
-
UserStatusBusy,
|
|
64
|
-
UserStatusOffline,
|
|
65
|
-
UserStatusOnline,
|
|
66
60
|
VariableScopeEdge,
|
|
67
61
|
VariableScopeGlobal,
|
|
68
62
|
VariableScopeNode
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +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
|
|
1
|
+
{"version":3,"sources":["../models/types.ts","../models/user-status.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 'x-component'?: string; // Custom UI component to render for this field\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"],"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;AAwFO,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;;;ACxHzC,IAAM,0BAA0B;","names":[]}
|
package/dist/models/index.d.mts
CHANGED
|
@@ -96,6 +96,7 @@ interface JSONSchema {
|
|
|
96
96
|
'x-searchable'?: boolean;
|
|
97
97
|
'x-unique'?: boolean;
|
|
98
98
|
'x-displayOrder'?: number;
|
|
99
|
+
'x-component'?: string;
|
|
99
100
|
}
|
|
100
101
|
/**
|
|
101
102
|
* ServiceEventMetadata contains metadata for service events
|
|
@@ -153,15 +154,8 @@ interface VariableReference {
|
|
|
153
154
|
nodeId?: string;
|
|
154
155
|
fieldPath: string;
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
-
type
|
|
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
|
-
*/
|
|
157
|
+
|
|
158
|
+
type UserStatusTS = "online" | "away" | "busy" | "offline";
|
|
165
159
|
interface UpdateUserStatusRequest {
|
|
166
160
|
orgId: string;
|
|
167
161
|
userId: string;
|
|
@@ -170,9 +164,6 @@ interface UpdateUserStatusRequest {
|
|
|
170
164
|
interface UpdateUserStatusResponse {
|
|
171
165
|
metadata: ResponseMetadata;
|
|
172
166
|
}
|
|
173
|
-
/**
|
|
174
|
-
* User Status Subject
|
|
175
|
-
*/
|
|
176
167
|
declare const UpdateUserStatusSubject = "chat.user.status.update";
|
|
177
168
|
|
|
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
|
|
169
|
+
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 UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation };
|
package/dist/models/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ interface JSONSchema {
|
|
|
96
96
|
'x-searchable'?: boolean;
|
|
97
97
|
'x-unique'?: boolean;
|
|
98
98
|
'x-displayOrder'?: number;
|
|
99
|
+
'x-component'?: string;
|
|
99
100
|
}
|
|
100
101
|
/**
|
|
101
102
|
* ServiceEventMetadata contains metadata for service events
|
|
@@ -153,15 +154,8 @@ interface VariableReference {
|
|
|
153
154
|
nodeId?: string;
|
|
154
155
|
fieldPath: string;
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
-
type
|
|
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
|
-
*/
|
|
157
|
+
|
|
158
|
+
type UserStatusTS = "online" | "away" | "busy" | "offline";
|
|
165
159
|
interface UpdateUserStatusRequest {
|
|
166
160
|
orgId: string;
|
|
167
161
|
userId: string;
|
|
@@ -170,9 +164,6 @@ interface UpdateUserStatusRequest {
|
|
|
170
164
|
interface UpdateUserStatusResponse {
|
|
171
165
|
metadata: ResponseMetadata;
|
|
172
166
|
}
|
|
173
|
-
/**
|
|
174
|
-
* User Status Subject
|
|
175
|
-
*/
|
|
176
167
|
declare const UpdateUserStatusSubject = "chat.user.status.update";
|
|
177
168
|
|
|
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
|
|
169
|
+
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 UserStatusTS, type Variable, type VariableReference, type VariableScope, VariableScopeEdge, VariableScopeGlobal, VariableScopeNode, type VariableValidation };
|
package/dist/models/index.js
CHANGED
|
@@ -41,10 +41,6 @@ __export(models_exports, {
|
|
|
41
41
|
ProductNameShopAssist: () => ProductNameShopAssist,
|
|
42
42
|
ProductNames: () => ProductNames,
|
|
43
43
|
UpdateUserStatusSubject: () => UpdateUserStatusSubject,
|
|
44
|
-
UserStatusAway: () => UserStatusAway,
|
|
45
|
-
UserStatusBusy: () => UserStatusBusy,
|
|
46
|
-
UserStatusOffline: () => UserStatusOffline,
|
|
47
|
-
UserStatusOnline: () => UserStatusOnline,
|
|
48
44
|
VariableScopeEdge: () => VariableScopeEdge,
|
|
49
45
|
VariableScopeGlobal: () => VariableScopeGlobal,
|
|
50
46
|
VariableScopeNode: () => VariableScopeNode
|
|
@@ -85,10 +81,8 @@ var DataTypeObjectList = "objectList";
|
|
|
85
81
|
var VariableScopeGlobal = "global";
|
|
86
82
|
var VariableScopeNode = "node";
|
|
87
83
|
var VariableScopeEdge = "edge";
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var UserStatusBusy = "busy";
|
|
91
|
-
var UserStatusOffline = "offline";
|
|
84
|
+
|
|
85
|
+
// models/user-status.ts
|
|
92
86
|
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
93
87
|
// Annotate the CommonJS export names for ESM import in node:
|
|
94
88
|
0 && (module.exports = {
|
|
@@ -113,10 +107,6 @@ var UpdateUserStatusSubject = "chat.user.status.update";
|
|
|
113
107
|
ProductNameShopAssist,
|
|
114
108
|
ProductNames,
|
|
115
109
|
UpdateUserStatusSubject,
|
|
116
|
-
UserStatusAway,
|
|
117
|
-
UserStatusBusy,
|
|
118
|
-
UserStatusOffline,
|
|
119
|
-
UserStatusOnline,
|
|
120
110
|
VariableScopeEdge,
|
|
121
111
|
VariableScopeGlobal,
|
|
122
112
|
VariableScopeNode
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +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
|
|
1
|
+
{"version":3,"sources":["../../models/index.ts","../../models/types.ts","../../models/user-status.ts"],"sourcesContent":["export * from \"./types\";\nexport * from \"./user-status\";\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 'x-component'?: string; // Custom UI component to render for this field\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"],"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;;;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;AAwFO,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;;;ACxHzC,IAAM,0BAA0B;","names":[]}
|
package/dist/models/index.mjs
CHANGED
|
@@ -32,10 +32,8 @@ var DataTypeObjectList = "objectList";
|
|
|
32
32
|
var VariableScopeGlobal = "global";
|
|
33
33
|
var VariableScopeNode = "node";
|
|
34
34
|
var VariableScopeEdge = "edge";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var UserStatusBusy = "busy";
|
|
38
|
-
var UserStatusOffline = "offline";
|
|
35
|
+
|
|
36
|
+
// models/user-status.ts
|
|
39
37
|
var UpdateUserStatusSubject = "chat.user.status.update";
|
|
40
38
|
export {
|
|
41
39
|
DataTypeArray,
|
|
@@ -59,10 +57,6 @@ export {
|
|
|
59
57
|
ProductNameShopAssist,
|
|
60
58
|
ProductNames,
|
|
61
59
|
UpdateUserStatusSubject,
|
|
62
|
-
UserStatusAway,
|
|
63
|
-
UserStatusBusy,
|
|
64
|
-
UserStatusOffline,
|
|
65
|
-
UserStatusOnline,
|
|
66
60
|
VariableScopeEdge,
|
|
67
61
|
VariableScopeGlobal,
|
|
68
62
|
VariableScopeNode
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"sources":["../../models/types.ts","../../models/user-status.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 'x-component'?: string; // Custom UI component to render for this field\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"],"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;AAwFO,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;;;ACxHzC,IAAM,0BAA0B;","names":[]}
|