@talkpilot/core-db 1.0.13 → 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.
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.d.ts +2 -2
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.d.ts.map +1 -1
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.js.map +1 -1
- package/dist/municipal/departmentsSubjects/departmentsSubjects.types.d.ts +1 -4
- package/dist/municipal/departmentsSubjects/departmentsSubjects.types.d.ts.map +1 -1
- package/dist/municipal/departmentsSubjects/index.d.ts +1 -1
- package/dist/municipal/departmentsSubjects/index.d.ts.map +1 -1
- package/dist/municipal/index.d.ts +2 -0
- package/dist/municipal/index.d.ts.map +1 -1
- package/dist/municipal/index.js +1 -0
- package/dist/municipal/index.js.map +1 -1
- package/dist/municipal/streets/streets.getters.d.ts.map +1 -1
- package/dist/municipal/streets/streets.getters.js.map +1 -1
- package/dist/municipal/systemInstructions/index.d.ts +4 -0
- package/dist/municipal/systemInstructions/index.d.ts.map +1 -0
- package/dist/municipal/systemInstructions/index.js +19 -0
- package/dist/municipal/systemInstructions/index.js.map +1 -0
- package/dist/municipal/systemInstructions/instructions.getters.d.ts +30 -0
- package/dist/municipal/systemInstructions/instructions.getters.d.ts.map +1 -0
- package/dist/municipal/systemInstructions/instructions.getters.js +46 -0
- package/dist/municipal/systemInstructions/instructions.getters.js.map +1 -0
- package/dist/municipal/systemInstructions/instructions.setters.d.ts +36 -0
- package/dist/municipal/systemInstructions/instructions.setters.d.ts.map +1 -0
- package/dist/municipal/systemInstructions/instructions.setters.js +64 -0
- package/dist/municipal/systemInstructions/instructions.setters.js.map +1 -0
- package/dist/municipal/systemInstructions/instructions.types.d.ts +14 -0
- package/dist/municipal/systemInstructions/instructions.types.d.ts.map +1 -0
- package/dist/municipal/systemInstructions/instructions.types.js +3 -0
- package/dist/municipal/systemInstructions/instructions.types.js.map +1 -0
- package/dist/municipal/tickets/tickets.getters.d.ts.map +1 -1
- package/dist/municipal/tickets/tickets.getters.js.map +1 -1
- package/dist/municipal/tickets/tickets.types.d.ts +1 -1
- package/dist/municipal/tickets/tickets.types.d.ts.map +1 -1
- package/dist/municipal/utils/types.d.ts +5 -0
- package/dist/municipal/utils/types.d.ts.map +1 -0
- package/dist/municipal/utils/types.js +3 -0
- package/dist/municipal/utils/types.js.map +1 -0
- package/dist/talkpilot/flows/flows.schema.d.ts +3 -0
- package/dist/talkpilot/flows/flows.schema.d.ts.map +1 -1
- package/dist/talkpilot/flows/flows.schema.js +1 -0
- package/dist/talkpilot/flows/flows.schema.js.map +1 -1
- package/dist/talkpilot/flows/flows.types.d.ts +1 -0
- package/dist/talkpilot/flows/flows.types.d.ts.map +1 -1
- package/dist/talkpilot/flows/index.d.ts +1 -1
- package/dist/talkpilot/flows/index.d.ts.map +1 -1
- package/dist/talkpilot/flows/index.js +2 -1
- package/dist/talkpilot/flows/index.js.map +1 -1
- package/dist/test-utils/factories/municipal/departmentsSubjects.d.ts.map +1 -1
- package/dist/test-utils/factories/municipal/departmentsSubjects.js.map +1 -1
- package/package.json +1 -1
- package/src/municipal/departmentsSubjects/departmentsSubjects.getters.ts +2 -2
- package/src/municipal/departmentsSubjects/departmentsSubjects.types.ts +4 -8
- package/src/municipal/departmentsSubjects/index.ts +0 -1
- package/src/municipal/index.ts +3 -1
- package/src/municipal/streets/streets.getters.ts +1 -1
- package/src/municipal/systemInstructions/__tests__/getters.spec.ts +106 -0
- package/src/municipal/systemInstructions/__tests__/setters.spec.ts +201 -0
- package/src/municipal/systemInstructions/index.ts +3 -0
- package/src/municipal/systemInstructions/instructions.getters.ts +45 -0
- package/src/municipal/systemInstructions/instructions.setters.ts +79 -0
- package/src/municipal/systemInstructions/instructions.types.ts +15 -0
- package/src/municipal/tickets/tickets.getters.ts +1 -1
- package/src/municipal/tickets/tickets.types.ts +2 -1
- package/src/municipal/utils/types.ts +6 -0
- package/src/talkpilot/flows/__tests__/flows.schema.spec.ts +13 -0
- package/src/talkpilot/flows/flows.schema.ts +1 -0
- package/src/talkpilot/flows/flows.types.ts +1 -0
- package/src/talkpilot/flows/index.ts +1 -1
- package/src/talkpilot/phone_numbers/__tests__/phone_numbers.spec.ts +2 -1
- package/src/talkpilot/sessions/__tests__/sessions.spec.ts +1 -1
- package/src/test-utils/factories/municipal/departmentsSubjects.ts +2 -1
- package/src/test-utils/factories/municipal/tickets.ts +1 -1
- package/dist/talkpilot/subscriptions/subscriptions.utils.d.ts +0 -4
- package/dist/talkpilot/subscriptions/subscriptions.utils.d.ts.map +0 -1
- package/dist/talkpilot/subscriptions/subscriptions.utils.js +0 -20
- package/dist/talkpilot/subscriptions/subscriptions.utils.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { Factory } from 'fishery';
|
|
|
2
2
|
import { ObjectId } from 'mongodb';
|
|
3
3
|
import { faker } from '@faker-js/faker';
|
|
4
4
|
import type { Ticket } from '../../../municipal/tickets/tickets.types';
|
|
5
|
-
import
|
|
5
|
+
import {CityName} from "../../../municipal";
|
|
6
6
|
|
|
7
7
|
const VALID_CITIES: CityName[] = ['ashdod', 'maltar', 'billit', 'hashkelon', 'tests'];
|
|
8
8
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.utils.d.ts","sourceRoot":"","sources":["../../../src/talkpilot/subscriptions/subscriptions.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAA6B,MAAM,UAAU,CAAC;AAE7F,eAAO,MAAM,gBAAgB,GAAI,QAAQ,wBAAwB,KAAG,MAAM,CAAC,YAAY,CAetF,CAAC"}
|
|
@@ -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"}
|