@talkpilot/core-db 1.0.14 → 1.0.15

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.
Files changed (71) hide show
  1. package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.d.ts +2 -2
  2. package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.d.ts.map +1 -1
  3. package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.js.map +1 -1
  4. package/dist/municipal/departmentsSubjects/departmentsSubjects.types.d.ts +1 -4
  5. package/dist/municipal/departmentsSubjects/departmentsSubjects.types.d.ts.map +1 -1
  6. package/dist/municipal/departmentsSubjects/index.d.ts +1 -1
  7. package/dist/municipal/departmentsSubjects/index.d.ts.map +1 -1
  8. package/dist/municipal/index.d.ts +2 -0
  9. package/dist/municipal/index.d.ts.map +1 -1
  10. package/dist/municipal/index.js +1 -0
  11. package/dist/municipal/index.js.map +1 -1
  12. package/dist/municipal/streets/streets.getters.d.ts.map +1 -1
  13. package/dist/municipal/streets/streets.getters.js.map +1 -1
  14. package/dist/municipal/systemInstructions/index.d.ts +4 -0
  15. package/dist/municipal/systemInstructions/index.d.ts.map +1 -0
  16. package/dist/municipal/systemInstructions/index.js +19 -0
  17. package/dist/municipal/systemInstructions/index.js.map +1 -0
  18. package/dist/municipal/systemInstructions/instructions.getters.d.ts +30 -0
  19. package/dist/municipal/systemInstructions/instructions.getters.d.ts.map +1 -0
  20. package/dist/municipal/systemInstructions/instructions.getters.js +46 -0
  21. package/dist/municipal/systemInstructions/instructions.getters.js.map +1 -0
  22. package/dist/municipal/systemInstructions/instructions.setters.d.ts +36 -0
  23. package/dist/municipal/systemInstructions/instructions.setters.d.ts.map +1 -0
  24. package/dist/municipal/systemInstructions/instructions.setters.js +64 -0
  25. package/dist/municipal/systemInstructions/instructions.setters.js.map +1 -0
  26. package/dist/municipal/systemInstructions/instructions.types.d.ts +14 -0
  27. package/dist/municipal/systemInstructions/instructions.types.d.ts.map +1 -0
  28. package/dist/municipal/systemInstructions/instructions.types.js +3 -0
  29. package/dist/municipal/systemInstructions/instructions.types.js.map +1 -0
  30. package/dist/municipal/tickets/tickets.getters.d.ts.map +1 -1
  31. package/dist/municipal/tickets/tickets.getters.js.map +1 -1
  32. package/dist/municipal/tickets/tickets.types.d.ts +1 -1
  33. package/dist/municipal/tickets/tickets.types.d.ts.map +1 -1
  34. package/dist/municipal/utils/types.d.ts +5 -0
  35. package/dist/municipal/utils/types.d.ts.map +1 -0
  36. package/dist/municipal/utils/types.js +3 -0
  37. package/dist/municipal/utils/types.js.map +1 -0
  38. package/dist/talkpilot/flows/flows.schema.d.ts +3 -0
  39. package/dist/talkpilot/flows/flows.schema.d.ts.map +1 -1
  40. package/dist/talkpilot/flows/flows.schema.js +1 -0
  41. package/dist/talkpilot/flows/flows.schema.js.map +1 -1
  42. package/dist/talkpilot/flows/flows.types.d.ts +1 -0
  43. package/dist/talkpilot/flows/flows.types.d.ts.map +1 -1
  44. package/dist/test-utils/factories/municipal/departmentsSubjects.d.ts.map +1 -1
  45. package/dist/test-utils/factories/municipal/departmentsSubjects.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/municipal/departmentsSubjects/departmentsSubjects.getters.ts +2 -2
  48. package/src/municipal/departmentsSubjects/departmentsSubjects.types.ts +4 -8
  49. package/src/municipal/departmentsSubjects/index.ts +0 -1
  50. package/src/municipal/index.ts +3 -1
  51. package/src/municipal/streets/streets.getters.ts +1 -1
  52. package/src/municipal/systemInstructions/__tests__/getters.spec.ts +106 -0
  53. package/src/municipal/systemInstructions/__tests__/setters.spec.ts +201 -0
  54. package/src/municipal/systemInstructions/index.ts +3 -0
  55. package/src/municipal/systemInstructions/instructions.getters.ts +45 -0
  56. package/src/municipal/systemInstructions/instructions.setters.ts +79 -0
  57. package/src/municipal/systemInstructions/instructions.types.ts +15 -0
  58. package/src/municipal/tickets/tickets.getters.ts +1 -1
  59. package/src/municipal/tickets/tickets.types.ts +2 -1
  60. package/src/municipal/utils/types.ts +6 -0
  61. package/src/talkpilot/flows/__tests__/flows.schema.spec.ts +13 -0
  62. package/src/talkpilot/flows/flows.schema.ts +1 -0
  63. package/src/talkpilot/flows/flows.types.ts +1 -0
  64. package/src/talkpilot/phone_numbers/__tests__/phone_numbers.spec.ts +2 -1
  65. package/src/talkpilot/sessions/__tests__/sessions.spec.ts +1 -1
  66. package/src/test-utils/factories/municipal/departmentsSubjects.ts +2 -1
  67. package/src/test-utils/factories/municipal/tickets.ts +1 -1
  68. package/dist/talkpilot/subscriptions/subscriptions.utils.d.ts +0 -4
  69. package/dist/talkpilot/subscriptions/subscriptions.utils.d.ts.map +0 -1
  70. package/dist/talkpilot/subscriptions/subscriptions.utils.js +0 -20
  71. package/dist/talkpilot/subscriptions/subscriptions.utils.js.map +0 -1
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildSimpleQuery = void 0;
4
- const mongodb_1 = require("mongodb");
5
- const index_1 = require("../index");
6
- const buildSimpleQuery = (filter) => {
7
- const query = {};
8
- if (filter._id) {
9
- query._id = new mongodb_1.ObjectId(filter._id);
10
- }
11
- index_1.simpleFields.forEach((field) => {
12
- const val = filter[field];
13
- if (val !== undefined) {
14
- query[field] = val;
15
- }
16
- });
17
- return query;
18
- };
19
- exports.buildSimpleQuery = buildSimpleQuery;
20
- //# sourceMappingURL=subscriptions.utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriptions.utils.js","sourceRoot":"","sources":["../../../src/talkpilot/subscriptions/subscriptions.utils.ts"],"names":[],"mappings":";;;AAAA,qCAA2C;AAC3C,oCAA6F;AAEtF,MAAM,gBAAgB,GAAG,CAAC,MAAgC,EAAwB,EAAE;IACzF,MAAM,KAAK,GAAyB,EAAE,CAAC;IAEvC,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;QACf,KAAK,CAAC,GAAG,GAAG,IAAI,kBAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,oBAAY,CAAC,OAAO,CAAC,CAAC,KAAkB,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,KAAK,CAAC,KAAK,CAAC,GAAG,GAAU,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAfW,QAAA,gBAAgB,oBAe3B"}