@talkpilot/core-db 1.0.11 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,7 @@ export type Client = {
9
9
  credits: number;
10
10
  managedBy?: string;
11
11
  };
12
+ export type ClientDoc = Client & {
13
+ _id: ObjectId;
14
+ };
12
15
  //# sourceMappingURL=clients.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clients.types.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/clients/clients.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"clients.types.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/clients/clients.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAAE,GAAG,EAAE,QAAQ,CAAA;CAAE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export * from './clients.getters';
2
- export type { Client } from './clients.types';
2
+ export * from './clients.types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/clients/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/clients/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./clients.getters"), exports);
18
+ __exportStar(require("./clients.types"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/talkpilot/clients/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/talkpilot/clients/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,kDAAgC"}
@@ -1,3 +1,3 @@
1
- export { getFlowsCollection } from './flows.getter';
1
+ export { getFlowsCollection, findFlowById } from './flows.getter';
2
2
  export type * from './flows.types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/flows/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,mBAAmB,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/flows/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,mBAAmB,eAAe,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFlowsCollection = void 0;
3
+ exports.findFlowById = exports.getFlowsCollection = void 0;
4
4
  var flows_getter_1 = require("./flows.getter");
5
5
  Object.defineProperty(exports, "getFlowsCollection", { enumerable: true, get: function () { return flows_getter_1.getFlowsCollection; } });
6
+ Object.defineProperty(exports, "findFlowById", { enumerable: true, get: function () { return flows_getter_1.findFlowById; } });
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/talkpilot/flows/index.ts"],"names":[],"mappings":";;;AAAA,+CAAoD;AAA3C,kHAAA,kBAAkB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/talkpilot/flows/index.ts"],"names":[],"mappings":";;;AAAA,+CAAkE;AAAzD,kHAAA,kBAAkB,OAAA;AAAE,4GAAA,YAAY,OAAA"}
@@ -1,3 +1,3 @@
1
- export { getResultsCollection } from './results.getter';
1
+ export { getResultsCollection, initializeResultDocument } from './results.getter';
2
2
  export type * from './results.types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/results/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,mBAAmB,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/results/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAClF,mBAAmB,iBAAiB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getResultsCollection = void 0;
3
+ exports.initializeResultDocument = exports.getResultsCollection = void 0;
4
4
  var results_getter_1 = require("./results.getter");
5
5
  Object.defineProperty(exports, "getResultsCollection", { enumerable: true, get: function () { return results_getter_1.getResultsCollection; } });
6
+ Object.defineProperty(exports, "initializeResultDocument", { enumerable: true, get: function () { return results_getter_1.initializeResultDocument; } });
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/talkpilot/results/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwD;AAA/C,sHAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/talkpilot/results/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkF;AAAzE,sHAAA,oBAAoB,OAAA;AAAE,0HAAA,wBAAwB,OAAA"}
@@ -19,4 +19,7 @@ export type Session = {
19
19
  createdAt?: Date;
20
20
  updatedAt?: Date;
21
21
  };
22
+ export type SessionDoc = Session & {
23
+ _id: ObjectId;
24
+ };
22
25
  //# sourceMappingURL=sessions.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.types.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/sessions/sessions.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,CAAC,EAAE,QAAQ,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QAC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,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG;IAAE,GAAG,EAAE,QAAQ,CAAA;CAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkpilot/core-db",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "description": "Core database package for centralized connections and ORM integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,3 +10,5 @@ export type Client = {
10
10
  credits: number;
11
11
  managedBy?: string;
12
12
  };
13
+
14
+ export type ClientDoc = Client & { _id: ObjectId };
@@ -1,2 +1,2 @@
1
1
  export * from './clients.getters';
2
- export type { Client } from './clients.types';
2
+ export * from './clients.types';
@@ -1,2 +1,2 @@
1
- export { getFlowsCollection } from './flows.getter';
1
+ export { getFlowsCollection, findFlowById } from './flows.getter';
2
2
  export type * from './flows.types';
@@ -1,2 +1,2 @@
1
- export { getResultsCollection } from './results.getter';
1
+ export { getResultsCollection, initializeResultDocument } from './results.getter';
2
2
  export type * from './results.types';
@@ -26,3 +26,5 @@ export type Session = {
26
26
  createdAt?: Date;
27
27
  updatedAt?: Date;
28
28
  };
29
+
30
+ export type SessionDoc = Session & { _id: ObjectId };