@talkpilot/core-db 1.1.6 → 1.1.8
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/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +24 -21
- package/dist/connection.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/municipal/cities/cities.getters.d.ts +2 -2
- package/dist/municipal/cities/cities.getters.d.ts.map +1 -1
- package/dist/municipal/cities/cities.getters.js +4 -8
- package/dist/municipal/cities/cities.getters.js.map +1 -1
- package/dist/municipal/cities/cities.types.d.ts +1 -1
- package/dist/municipal/cities/index.d.ts +2 -2
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.d.ts +3 -3
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.d.ts.map +1 -1
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.js +22 -30
- package/dist/municipal/departmentsSubjects/departmentsSubjects.getters.js.map +1 -1
- package/dist/municipal/departmentsSubjects/departmentsSubjects.types.d.ts +4 -4
- package/dist/municipal/departmentsSubjects/departmentsSubjects.types.d.ts.map +1 -1
- package/dist/municipal/departmentsSubjects/index.d.ts +2 -2
- package/dist/municipal/index.d.ts +8 -8
- package/dist/municipal/index.d.ts.map +1 -1
- package/dist/municipal/index.js +1 -1
- package/dist/municipal/mongodb-client.d.ts +1 -1
- package/dist/municipal/mongodb-client.d.ts.map +1 -1
- package/dist/municipal/mongodb-client.js +25 -13
- package/dist/municipal/mongodb-client.js.map +1 -1
- package/dist/municipal/streets/index.d.ts +2 -2
- package/dist/municipal/streets/streets.getters.d.ts +3 -3
- package/dist/municipal/streets/streets.getters.d.ts.map +1 -1
- package/dist/municipal/streets/streets.getters.js +9 -19
- package/dist/municipal/streets/streets.getters.js.map +1 -1
- package/dist/municipal/streets/streets.types.d.ts +1 -1
- package/dist/municipal/systemInstructions/index.d.ts +3 -3
- package/dist/municipal/systemInstructions/index.d.ts.map +1 -1
- package/dist/municipal/systemInstructions/instructions.getters.d.ts +3 -3
- package/dist/municipal/systemInstructions/instructions.getters.d.ts.map +1 -1
- package/dist/municipal/systemInstructions/instructions.getters.js +4 -10
- package/dist/municipal/systemInstructions/instructions.getters.js.map +1 -1
- package/dist/municipal/systemInstructions/instructions.setters.d.ts +2 -2
- package/dist/municipal/systemInstructions/instructions.setters.d.ts.map +1 -1
- package/dist/municipal/systemInstructions/instructions.setters.js +8 -13
- package/dist/municipal/systemInstructions/instructions.setters.js.map +1 -1
- package/dist/municipal/systemInstructions/instructions.types.d.ts +3 -3
- package/dist/municipal/systemInstructions/instructions.types.d.ts.map +1 -1
- package/dist/municipal/systemInstructions/instructions.types.js +6 -6
- package/dist/municipal/tickets/index.d.ts +2 -2
- package/dist/municipal/tickets/tickets.getters.d.ts +3 -3
- package/dist/municipal/tickets/tickets.getters.d.ts.map +1 -1
- package/dist/municipal/tickets/tickets.getters.js +29 -50
- 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 +1 -1
- package/dist/municipal/utils/types.d.ts.map +1 -1
- package/dist/talkpilot/agents/agents.getters.d.ts +1 -1
- package/dist/talkpilot/agents/agents.getters.js +2 -2
- package/dist/talkpilot/agents/agents.types.d.ts +2 -2
- package/dist/talkpilot/agents/index.d.ts +2 -2
- package/dist/talkpilot/backgroundToolResults/backgroundToolResults.getters.d.ts +2 -2
- package/dist/talkpilot/backgroundToolResults/backgroundToolResults.getters.d.ts.map +1 -1
- package/dist/talkpilot/backgroundToolResults/backgroundToolResults.getters.js +1 -1
- package/dist/talkpilot/backgroundToolResults/backgroundToolResults.getters.js.map +1 -1
- package/dist/talkpilot/backgroundToolResults/backgroundToolResults.types.d.ts +2 -2
- package/dist/talkpilot/backgroundToolResults/index.d.ts +2 -2
- package/dist/talkpilot/calls/calls.getters.d.ts +3 -3
- package/dist/talkpilot/calls/calls.getters.d.ts.map +1 -1
- package/dist/talkpilot/calls/calls.getters.js +15 -19
- package/dist/talkpilot/calls/calls.getters.js.map +1 -1
- package/dist/talkpilot/calls/calls.types.d.ts +3 -3
- package/dist/talkpilot/calls/calls.types.d.ts.map +1 -1
- package/dist/talkpilot/calls/calls.types.js +2 -2
- package/dist/talkpilot/calls/index.d.ts +2 -2
- package/dist/talkpilot/clientAudioBuffers/clientAudioBuffer.getters.d.ts +2 -2
- package/dist/talkpilot/clientAudioBuffers/clientAudioBuffer.getters.d.ts.map +1 -1
- package/dist/talkpilot/clientAudioBuffers/clientAudioBuffer.getters.js +2 -2
- package/dist/talkpilot/clientAudioBuffers/clientAudioBuffer.getters.js.map +1 -1
- package/dist/talkpilot/clientAudioBuffers/clientsAudioBuffers.types.d.ts +2 -2
- package/dist/talkpilot/clientAudioBuffers/index.d.ts +2 -2
- package/dist/talkpilot/clients/clients.getters.d.ts +2 -2
- package/dist/talkpilot/clients/clients.getters.d.ts.map +1 -1
- package/dist/talkpilot/clients/clients.getters.js +2 -5
- package/dist/talkpilot/clients/clients.getters.js.map +1 -1
- package/dist/talkpilot/clients/clients.types.d.ts +1 -1
- package/dist/talkpilot/clients/index.d.ts +2 -2
- package/dist/talkpilot/clientsConfig/clientsConfig.getters.d.ts +2 -2
- package/dist/talkpilot/clientsConfig/clientsConfig.getters.d.ts.map +1 -1
- package/dist/talkpilot/clientsConfig/clientsConfig.getters.js +1 -1
- package/dist/talkpilot/clientsConfig/clientsConfig.getters.js.map +1 -1
- package/dist/talkpilot/clientsConfig/clientsConfig.types.d.ts +3 -3
- package/dist/talkpilot/clientsConfig/clientsConfig.types.d.ts.map +1 -1
- package/dist/talkpilot/clientsConfig/index.d.ts +2 -2
- package/dist/talkpilot/flows/flows.getter.d.ts +2 -2
- package/dist/talkpilot/flows/flows.getter.d.ts.map +1 -1
- package/dist/talkpilot/flows/flows.getter.js +1 -1
- package/dist/talkpilot/flows/flows.getter.js.map +1 -1
- 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 +80 -87
- package/dist/talkpilot/flows/flows.schema.js.map +1 -1
- package/dist/talkpilot/flows/flows.types.d.ts +17 -16
- package/dist/talkpilot/flows/flows.types.d.ts.map +1 -1
- package/dist/talkpilot/flows/index.d.ts +2 -2
- package/dist/talkpilot/groups/groups.getters.d.ts +2 -2
- package/dist/talkpilot/groups/groups.getters.d.ts.map +1 -1
- package/dist/talkpilot/groups/groups.getters.js +2 -2
- package/dist/talkpilot/groups/groups.getters.js.map +1 -1
- package/dist/talkpilot/groups/groups.types.d.ts +1 -1
- package/dist/talkpilot/groups/index.d.ts +3 -3
- package/dist/talkpilot/groups/phone.utils.d.ts +1 -1
- package/dist/talkpilot/groups/phone.utils.d.ts.map +1 -1
- package/dist/talkpilot/groups/phone.utils.js +2 -2
- package/dist/talkpilot/groups/phone.utils.js.map +1 -1
- package/dist/talkpilot/index.d.ts +16 -16
- package/dist/talkpilot/index.js +1 -1
- package/dist/talkpilot/leads/index.d.ts +2 -2
- package/dist/talkpilot/leads/leads.getter.d.ts +2 -2
- package/dist/talkpilot/leads/leads.getter.d.ts.map +1 -1
- package/dist/talkpilot/leads/leads.getter.js +1 -1
- package/dist/talkpilot/leads/leads.getter.js.map +1 -1
- package/dist/talkpilot/leads/leads.schema.js +16 -16
- package/dist/talkpilot/leads/leads.types.d.ts +1 -1
- package/dist/talkpilot/mongodb-client.d.ts +1 -1
- package/dist/talkpilot/mongodb-client.d.ts.map +1 -1
- package/dist/talkpilot/mongodb-client.js +29 -16
- package/dist/talkpilot/mongodb-client.js.map +1 -1
- package/dist/talkpilot/phone_numbers/index.d.ts +2 -2
- package/dist/talkpilot/phone_numbers/phone_numbers.getter.d.ts +3 -3
- package/dist/talkpilot/phone_numbers/phone_numbers.getter.d.ts.map +1 -1
- package/dist/talkpilot/phone_numbers/phone_numbers.getter.js +13 -28
- package/dist/talkpilot/phone_numbers/phone_numbers.getter.js.map +1 -1
- package/dist/talkpilot/phone_numbers/phone_numbers.schema.js +9 -9
- package/dist/talkpilot/phone_numbers/phone_numbers.types.d.ts +1 -1
- package/dist/talkpilot/phone_numbers/phone_numbers.types.d.ts.map +1 -1
- package/dist/talkpilot/plans/index.d.ts +2 -2
- package/dist/talkpilot/plans/plans.getters.d.ts +2 -2
- package/dist/talkpilot/plans/plans.getters.d.ts.map +1 -1
- package/dist/talkpilot/plans/plans.getters.js +3 -3
- package/dist/talkpilot/plans/plans.getters.js.map +1 -1
- package/dist/talkpilot/plans/plans.types.d.ts +4 -4
- package/dist/talkpilot/plans/plans.types.d.ts.map +1 -1
- package/dist/talkpilot/plans/plans.types.js +19 -19
- package/dist/talkpilot/results/index.d.ts +2 -2
- package/dist/talkpilot/results/index.d.ts.map +1 -1
- package/dist/talkpilot/results/index.js.map +1 -1
- package/dist/talkpilot/results/results.getter.d.ts +3 -3
- package/dist/talkpilot/results/results.getter.d.ts.map +1 -1
- package/dist/talkpilot/results/results.getter.js +4 -4
- package/dist/talkpilot/results/results.getter.js.map +1 -1
- package/dist/talkpilot/results/results.schema.js +18 -18
- package/dist/talkpilot/results/results.types.d.ts +1 -1
- package/dist/talkpilot/sessions/index.d.ts +2 -2
- package/dist/talkpilot/sessions/sessions.getter.d.ts +3 -3
- package/dist/talkpilot/sessions/sessions.getter.d.ts.map +1 -1
- package/dist/talkpilot/sessions/sessions.getter.js +10 -13
- package/dist/talkpilot/sessions/sessions.getter.js.map +1 -1
- package/dist/talkpilot/sessions/sessions.schema.js +17 -17
- package/dist/talkpilot/sessions/sessions.types.d.ts +2 -2
- package/dist/talkpilot/subscriptions/index.d.ts +3 -3
- package/dist/talkpilot/subscriptions/subscriptions.getters.d.ts +2 -2
- package/dist/talkpilot/subscriptions/subscriptions.getters.d.ts.map +1 -1
- package/dist/talkpilot/subscriptions/subscriptions.getters.js +11 -11
- package/dist/talkpilot/subscriptions/subscriptions.getters.js.map +1 -1
- package/dist/talkpilot/subscriptions/subscriptions.getters.utils.d.ts +2 -2
- package/dist/talkpilot/subscriptions/subscriptions.getters.utils.d.ts.map +1 -1
- package/dist/talkpilot/subscriptions/subscriptions.getters.utils.js.map +1 -1
- package/dist/talkpilot/subscriptions/subscriptions.types.d.ts +2 -2
- package/dist/talkpilot/subscriptions/subscriptions.types.d.ts.map +1 -1
- package/dist/talkpilot/subscriptions/subscriptions.types.js +7 -7
- package/dist/talkpilot/utils/query.utils.d.ts +1 -1
- package/dist/test-utils/db-utils.d.ts +1 -1
- package/dist/test-utils/db-utils.js +2 -2
- package/dist/test-utils/factories/index.d.ts +12 -12
- package/dist/test-utils/factories/municipal/cities.d.ts +2 -2
- package/dist/test-utils/factories/municipal/cities.d.ts.map +1 -1
- package/dist/test-utils/factories/municipal/cities.js +1 -1
- package/dist/test-utils/factories/municipal/departmentsSubjects.d.ts +2 -2
- package/dist/test-utils/factories/municipal/departmentsSubjects.d.ts.map +1 -1
- package/dist/test-utils/factories/municipal/departmentsSubjects.js +1 -7
- package/dist/test-utils/factories/municipal/departmentsSubjects.js.map +1 -1
- package/dist/test-utils/factories/municipal/streets.d.ts +2 -2
- package/dist/test-utils/factories/municipal/streets.d.ts.map +1 -1
- package/dist/test-utils/factories/municipal/streets.js +1 -6
- package/dist/test-utils/factories/municipal/streets.js.map +1 -1
- package/dist/test-utils/factories/municipal/tickets.d.ts +2 -2
- package/dist/test-utils/factories/municipal/tickets.d.ts.map +1 -1
- package/dist/test-utils/factories/municipal/tickets.js +1 -7
- package/dist/test-utils/factories/municipal/tickets.js.map +1 -1
- package/dist/test-utils/factories/talkpilot/agents.d.ts +2 -2
- package/dist/test-utils/factories/talkpilot/agents.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/agents.js +4 -4
- package/dist/test-utils/factories/talkpilot/calls.d.ts +2 -2
- package/dist/test-utils/factories/talkpilot/calls.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/calls.js +1 -1
- package/dist/test-utils/factories/talkpilot/clientAudioBuffers.d.ts +2 -2
- package/dist/test-utils/factories/talkpilot/clientAudioBuffers.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/clientAudioBuffers.js +1 -1
- package/dist/test-utils/factories/talkpilot/clientAudioBuffers.js.map +1 -1
- package/dist/test-utils/factories/talkpilot/clientsConfig.d.ts +2 -2
- package/dist/test-utils/factories/talkpilot/clientsConfig.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/clientsConfig.js.map +1 -1
- package/dist/test-utils/factories/talkpilot/flows.d.ts +3 -3
- package/dist/test-utils/factories/talkpilot/flows.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/flows.js.map +1 -1
- package/dist/test-utils/factories/talkpilot/groups.d.ts +2 -2
- package/dist/test-utils/factories/talkpilot/groups.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/groups.js +9 -9
- package/dist/test-utils/factories/talkpilot/groups.js.map +1 -1
- package/dist/test-utils/factories/talkpilot/phone_numbers.d.ts +3 -3
- package/dist/test-utils/factories/talkpilot/phone_numbers.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/phone_numbers.js.map +1 -1
- package/dist/test-utils/factories/talkpilot/sessions.d.ts +2 -2
- package/dist/test-utils/factories/talkpilot/sessions.d.ts.map +1 -1
- package/dist/test-utils/factories/talkpilot/sessions.js +1 -1
- package/dist/utils/validation.js +2 -2
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -3
- package/src/__tests__/setup.ts +3 -3
- package/src/connection.ts +25 -27
- package/src/index.ts +9 -9
- package/src/municipal/__tests__/validation.spec.ts +23 -35
- package/src/municipal/cities/cities.getters.ts +10 -16
- package/src/municipal/cities/cities.types.ts +1 -1
- package/src/municipal/cities/index.ts +2 -2
- package/src/municipal/departmentsSubjects/departmentsSubjects.getters.ts +44 -53
- package/src/municipal/departmentsSubjects/departmentsSubjects.types.ts +5 -5
- package/src/municipal/departmentsSubjects/index.ts +3 -2
- package/src/municipal/index.ts +10 -10
- package/src/municipal/mongodb-client.ts +26 -19
- package/src/municipal/streets/index.ts +2 -2
- package/src/municipal/streets/streets.getters.ts +23 -43
- package/src/municipal/streets/streets.types.ts +1 -1
- package/src/municipal/systemInstructions/__tests__/getters.spec.ts +52 -67
- package/src/municipal/systemInstructions/__tests__/setters.spec.ts +238 -271
- package/src/municipal/systemInstructions/index.ts +3 -7
- package/src/municipal/systemInstructions/instructions.getters.ts +18 -30
- package/src/municipal/systemInstructions/instructions.setters.ts +19 -43
- package/src/municipal/systemInstructions/instructions.types.ts +10 -10
- package/src/municipal/tickets/__tests__/tickets.getters.spec.ts +12 -12
- package/src/municipal/tickets/index.ts +2 -2
- package/src/municipal/tickets/tickets.getters.ts +42 -69
- package/src/municipal/tickets/tickets.types.ts +2 -2
- package/src/municipal/utils/types.ts +3 -8
- package/src/talkpilot/__tests__/db.spec.ts +12 -12
- package/src/talkpilot/__tests__/mongodb-client.spec.ts +8 -7
- package/src/talkpilot/__tests__/validation.spec.ts +24 -30
- package/src/talkpilot/agents/__tests__/agents.getters.spec.ts +10 -10
- package/src/talkpilot/agents/agents.getters.ts +3 -3
- package/src/talkpilot/agents/agents.types.ts +2 -2
- package/src/talkpilot/agents/index.ts +2 -2
- package/src/talkpilot/backgroundToolResults/__tests__/backgroundToolResults.getters.spec.ts +31 -42
- package/src/talkpilot/backgroundToolResults/backgroundToolResults.getters.ts +11 -11
- package/src/talkpilot/backgroundToolResults/backgroundToolResults.types.ts +3 -2
- package/src/talkpilot/backgroundToolResults/index.ts +2 -2
- package/src/talkpilot/calls/__tests__/callStats.utils.spec.ts +27 -27
- package/src/talkpilot/calls/__tests__/calls.spec.ts +39 -79
- package/src/talkpilot/calls/calls.getters.ts +28 -48
- package/src/talkpilot/calls/calls.types.ts +16 -16
- package/src/talkpilot/calls/index.ts +2 -2
- package/src/talkpilot/clientAudioBuffers/__tests__/clientAudioBuffer.getters.spec.ts +39 -73
- package/src/talkpilot/clientAudioBuffers/clientAudioBuffer.getters.ts +11 -18
- package/src/talkpilot/clientAudioBuffers/clientsAudioBuffers.types.ts +2 -2
- package/src/talkpilot/clientAudioBuffers/index.ts +2 -2
- package/src/talkpilot/clients/clients.getters.ts +5 -10
- package/src/talkpilot/clients/clients.types.ts +1 -1
- package/src/talkpilot/clients/index.ts +2 -2
- package/src/talkpilot/clientsConfig/__tests__/clientsConfig.spec.ts +18 -21
- package/src/talkpilot/clientsConfig/clientsConfig.getters.ts +4 -6
- package/src/talkpilot/clientsConfig/clientsConfig.types.ts +8 -10
- package/src/talkpilot/clientsConfig/index.ts +2 -2
- package/src/talkpilot/flows/__tests__/flows.schema.spec.ts +37 -38
- package/src/talkpilot/flows/flows.getter.ts +5 -8
- package/src/talkpilot/flows/flows.schema.ts +80 -87
- package/src/talkpilot/flows/flows.types.ts +24 -23
- package/src/talkpilot/flows/index.ts +2 -2
- package/src/talkpilot/groups/__tests__/groups.spec.ts +27 -34
- package/src/talkpilot/groups/__tests__/phone.utils.spec.ts +20 -20
- package/src/talkpilot/groups/groups.getters.ts +5 -8
- package/src/talkpilot/groups/groups.types.ts +1 -1
- package/src/talkpilot/groups/index.ts +3 -3
- package/src/talkpilot/groups/phone.utils.ts +6 -12
- package/src/talkpilot/index.ts +17 -17
- package/src/talkpilot/leads/index.ts +2 -2
- package/src/talkpilot/leads/leads.getter.ts +4 -5
- package/src/talkpilot/leads/leads.schema.ts +16 -16
- package/src/talkpilot/leads/leads.types.ts +1 -1
- package/src/talkpilot/mongodb-client.ts +33 -23
- package/src/talkpilot/phone_numbers/__tests__/phone_numbers.spec.ts +44 -84
- package/src/talkpilot/phone_numbers/index.ts +2 -2
- package/src/talkpilot/phone_numbers/phone_numbers.getter.ts +22 -44
- package/src/talkpilot/phone_numbers/phone_numbers.schema.ts +9 -9
- package/src/talkpilot/phone_numbers/phone_numbers.types.ts +1 -1
- package/src/talkpilot/plans/__tests__/plans.spec.ts +26 -30
- package/src/talkpilot/plans/index.ts +2 -2
- package/src/talkpilot/plans/plans.getters.ts +18 -25
- package/src/talkpilot/plans/plans.types.ts +23 -27
- package/src/talkpilot/results/index.ts +2 -5
- package/src/talkpilot/results/results.getter.ts +8 -9
- package/src/talkpilot/results/results.schema.ts +18 -18
- package/src/talkpilot/results/results.types.ts +1 -1
- package/src/talkpilot/sessions/__tests__/sessions.spec.ts +41 -65
- package/src/talkpilot/sessions/index.ts +2 -2
- package/src/talkpilot/sessions/sessions.getter.ts +16 -21
- package/src/talkpilot/sessions/sessions.schema.ts +17 -17
- package/src/talkpilot/sessions/sessions.types.ts +2 -2
- package/src/talkpilot/subscriptions/__tests__/subscriptions.getters.utils.spec.ts +15 -18
- package/src/talkpilot/subscriptions/index.ts +3 -3
- package/src/talkpilot/subscriptions/subscriptions.getters.ts +33 -36
- package/src/talkpilot/subscriptions/subscriptions.getters.utils.ts +3 -10
- package/src/talkpilot/subscriptions/subscriptions.types.ts +9 -9
- package/src/talkpilot/utils/__tests__/query.utils.spec.ts +8 -8
- package/src/talkpilot/utils/query.utils.ts +2 -2
- package/src/test-utils/db-utils.ts +5 -5
- package/src/test-utils/factories/index.ts +12 -12
- package/src/test-utils/factories/municipal/cities.ts +5 -5
- package/src/test-utils/factories/municipal/departmentsSubjects.ts +25 -32
- package/src/test-utils/factories/municipal/streets.ts +5 -10
- package/src/test-utils/factories/municipal/tickets.ts +6 -12
- package/src/test-utils/factories/talkpilot/agents.ts +8 -8
- package/src/test-utils/factories/talkpilot/calls.ts +5 -5
- package/src/test-utils/factories/talkpilot/clientAudioBuffers.ts +12 -14
- package/src/test-utils/factories/talkpilot/clientsConfig.ts +8 -7
- package/src/test-utils/factories/talkpilot/flows.ts +5 -7
- package/src/test-utils/factories/talkpilot/groups.ts +13 -13
- package/src/test-utils/factories/talkpilot/phone_numbers.ts +6 -8
- package/src/test-utils/factories/talkpilot/sessions.ts +5 -5
- package/src/utils/validation.ts +4 -4
- 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
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { MongoMemoryServer } from
|
|
2
|
-
import { MongoClient, Db } from
|
|
3
|
-
import { setDb, setMunicipalDataDb } from
|
|
1
|
+
import { MongoMemoryServer } from 'mongodb-memory-server';
|
|
2
|
+
import { MongoClient, Db } from 'mongodb';
|
|
3
|
+
import { setDb, setMunicipalDataDb } from '../index';
|
|
4
4
|
|
|
5
5
|
let mongoServer: MongoMemoryServer;
|
|
6
6
|
let client: MongoClient;
|
|
7
7
|
|
|
8
8
|
export async function initTestDb(): Promise<Db> {
|
|
9
9
|
mongoServer = await MongoMemoryServer.create({
|
|
10
|
-
instance: { ip:
|
|
10
|
+
instance: { ip: '127.0.0.1' },
|
|
11
11
|
});
|
|
12
12
|
client = new MongoClient(mongoServer.getUri());
|
|
13
13
|
await client.connect();
|
|
14
14
|
const talkpilotDb = client.db();
|
|
15
|
-
const municipalDb = client.db(
|
|
15
|
+
const municipalDb = client.db('municipal-data');
|
|
16
16
|
setDb(talkpilotDb);
|
|
17
17
|
setMunicipalDataDb(municipalDb);
|
|
18
18
|
return talkpilotDb;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
1
|
+
export * from './talkpilot/agents';
|
|
2
|
+
export * from './talkpilot/calls';
|
|
3
|
+
export * from './talkpilot/clientAudioBuffers';
|
|
4
|
+
export * from './talkpilot/clientsConfig';
|
|
5
|
+
export * from './talkpilot/flows';
|
|
6
|
+
export * from './talkpilot/groups';
|
|
7
|
+
export * from './talkpilot/phone_numbers';
|
|
8
|
+
export * from './talkpilot/sessions';
|
|
9
|
+
export * from './municipal/cities';
|
|
10
|
+
export * from './municipal/departmentsSubjects';
|
|
11
|
+
export * from './municipal/streets';
|
|
12
|
+
export * from './municipal/tickets';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { City } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { City } from '../../../municipal/cities/cities.types';
|
|
5
5
|
|
|
6
6
|
export const cityFactory = Factory.define<City>(() => ({
|
|
7
7
|
_id: new ObjectId(),
|
|
8
|
-
name: faker.location.city().toLowerCase().replace(/\s/g,
|
|
8
|
+
name: faker.location.city().toLowerCase().replace(/\s/g, '_'),
|
|
9
9
|
displayName: faker.location.city(),
|
|
10
10
|
createdAt: new Date(),
|
|
11
11
|
updatedAt: new Date(),
|
|
@@ -1,37 +1,30 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type {
|
|
5
|
-
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type {
|
|
5
|
+
DepartmentSubject,
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"maltar",
|
|
10
|
-
"billit",
|
|
11
|
-
"hashkelon",
|
|
12
|
-
"tests",
|
|
13
|
-
];
|
|
7
|
+
} from '../../../municipal/departmentsSubjects/departmentsSubjects.types';
|
|
8
|
+
import {CityName} from "../../../municipal";
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
() => ({
|
|
17
|
-
_id: new ObjectId(),
|
|
18
|
-
createdAt: new Date(),
|
|
19
|
-
updatedAt: new Date(),
|
|
20
|
-
subjectName: faker.lorem.words(2),
|
|
21
|
-
subject_id: faker.string.numeric(4),
|
|
22
|
-
sub_subject_name: faker.lorem.word(),
|
|
23
|
-
sub_subject_id: faker.string.numeric(4),
|
|
24
|
-
descriptions: [faker.lorem.sentence()],
|
|
25
|
-
cityName: faker.helpers.arrayElement(VALID_CITIES),
|
|
26
|
-
guidelines: null,
|
|
27
|
-
instructions: [],
|
|
28
|
-
communications: [],
|
|
29
|
-
sla: faker.number.int({ min: 24, max: 720 }),
|
|
30
|
-
}),
|
|
31
|
-
);
|
|
10
|
+
const VALID_CITIES: CityName[] = ['ashdod', 'maltar', 'billit', 'hashkelon', 'tests'];
|
|
32
11
|
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
12
|
+
export const departmentSubjectFactory = Factory.define<DepartmentSubject>(() => ({
|
|
13
|
+
_id: new ObjectId(),
|
|
14
|
+
createdAt: new Date(),
|
|
15
|
+
updatedAt: new Date(),
|
|
16
|
+
subjectName: faker.lorem.words(2),
|
|
17
|
+
subject_id: faker.string.numeric(4),
|
|
18
|
+
sub_subject_name: faker.lorem.word(),
|
|
19
|
+
sub_subject_id: faker.string.numeric(4),
|
|
20
|
+
descriptions: [faker.lorem.sentence()],
|
|
21
|
+
cityName: faker.helpers.arrayElement(VALID_CITIES),
|
|
22
|
+
guidelines: null,
|
|
23
|
+
instructions: [],
|
|
24
|
+
communications: [],
|
|
25
|
+
sla: faker.number.int({ min: 24, max: 720 }),
|
|
26
|
+
}));
|
|
27
|
+
|
|
28
|
+
export function createDepartmentSubject(overrides?: Partial<DepartmentSubject>): DepartmentSubject {
|
|
36
29
|
return departmentSubjectFactory.build(overrides);
|
|
37
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Street } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Street } from '../../../municipal/streets/streets.types';
|
|
5
5
|
|
|
6
6
|
export const streetFactory = Factory.define<Street>(() => ({
|
|
7
7
|
_id: new ObjectId(),
|
|
@@ -9,12 +9,7 @@ export const streetFactory = Factory.define<Street>(() => ({
|
|
|
9
9
|
updatedAt: new Date(),
|
|
10
10
|
id: faker.string.uuid(),
|
|
11
11
|
name: faker.location.street(),
|
|
12
|
-
cityName: faker.helpers.arrayElement([
|
|
13
|
-
"ashdod",
|
|
14
|
-
"maltar",
|
|
15
|
-
"billit",
|
|
16
|
-
"hashkelon",
|
|
17
|
-
]),
|
|
12
|
+
cityName: faker.helpers.arrayElement(['ashdod', 'maltar', 'billit', 'hashkelon']),
|
|
18
13
|
}));
|
|
19
14
|
|
|
20
15
|
export function createStreet(overrides?: Partial<Street>): Street {
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Ticket } from
|
|
5
|
-
import {
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Ticket } from '../../../municipal/tickets/tickets.types';
|
|
5
|
+
import {CityName} from "../../../municipal";
|
|
6
6
|
|
|
7
|
-
const VALID_CITIES: CityName[] = [
|
|
8
|
-
"ashdod",
|
|
9
|
-
"maltar",
|
|
10
|
-
"billit",
|
|
11
|
-
"hashkelon",
|
|
12
|
-
"tests",
|
|
13
|
-
];
|
|
7
|
+
const VALID_CITIES: CityName[] = ['ashdod', 'maltar', 'billit', 'hashkelon', 'tests'];
|
|
14
8
|
|
|
15
9
|
export const ticketFactory = Factory.define<Ticket>(() => ({
|
|
16
10
|
_id: new ObjectId(),
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Agent } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Agent } from '../../../talkpilot/agents/agents.types';
|
|
5
5
|
|
|
6
6
|
export const agentFactory = Factory.define<Agent>(() => ({
|
|
7
7
|
name: faker.person.fullName(),
|
|
8
|
-
language:
|
|
9
|
-
voice:
|
|
8
|
+
language: 'en',
|
|
9
|
+
voice: 'alloy',
|
|
10
10
|
instructions: faker.lorem.paragraph(),
|
|
11
11
|
labels: [],
|
|
12
12
|
clientId: new ObjectId().toString(),
|
|
13
|
-
role:
|
|
14
|
-
gender: faker.helpers.arrayElement([
|
|
13
|
+
role: 'assistant',
|
|
14
|
+
gender: faker.helpers.arrayElement(['male', 'female']),
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
export function createAgent(overrides?: Partial<Agent>): Agent {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Call } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Call } from '../../../talkpilot/calls/calls.types';
|
|
5
5
|
|
|
6
6
|
export const callFactory = Factory.define<Call>(() => ({
|
|
7
7
|
callSid: faker.string.uuid(),
|
|
@@ -14,7 +14,7 @@ export const callFactory = Factory.define<Call>(() => ({
|
|
|
14
14
|
isIncomingCall: false,
|
|
15
15
|
isOutgoingCall: true,
|
|
16
16
|
callLength: faker.number.int({ min: 0, max: 3600 }),
|
|
17
|
-
env:
|
|
17
|
+
env: 'test',
|
|
18
18
|
updatedAt: new Date(),
|
|
19
19
|
createdAt: new Date(),
|
|
20
20
|
}));
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { faker } from
|
|
3
|
-
import { CreateAudioBufferInput } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { faker } from '@faker-js/faker';
|
|
3
|
+
import { CreateAudioBufferInput } from '../../../talkpilot/clientAudioBuffers/clientsAudioBuffers.types';
|
|
4
4
|
|
|
5
|
-
export const audioBufferInputFactory = Factory.define<CreateAudioBufferInput>(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}),
|
|
14
|
-
);
|
|
5
|
+
export const audioBufferInputFactory = Factory.define<CreateAudioBufferInput>(() => ({
|
|
6
|
+
callSid: 'CA1234567890abcdef1234567890abcdef',
|
|
7
|
+
clientId: faker.string.uuid(),
|
|
8
|
+
bucketStartMs: faker.number.int({ min: 0, max: 1000000 }),
|
|
9
|
+
bucketDurationMs: faker.helpers.arrayElement([500, 1000]),
|
|
10
|
+
data: Buffer.from(faker.string.alphanumeric({ length: 100 })),
|
|
11
|
+
ttlMs: faker.number.int({ min: 1000, max: 3600000 }),
|
|
12
|
+
}));
|
|
15
13
|
|
|
16
14
|
export function createAudioBufferInput(
|
|
17
|
-
overrides?: Partial<CreateAudioBufferInput
|
|
15
|
+
overrides?: Partial<CreateAudioBufferInput>
|
|
18
16
|
): CreateAudioBufferInput {
|
|
19
17
|
return audioBufferInputFactory.build(overrides ?? {});
|
|
20
18
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type {
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type {
|
|
5
|
+
ClientConfig,
|
|
6
|
+
ClientConfigDoc,
|
|
7
|
+
} from '../../../talkpilot/clientsConfig/clientsConfig.types';
|
|
5
8
|
|
|
6
9
|
export const clientConfigFactory = Factory.define<ClientConfigDoc>(() => ({
|
|
7
10
|
_id: new ObjectId(),
|
|
@@ -9,9 +12,7 @@ export const clientConfigFactory = Factory.define<ClientConfigDoc>(() => ({
|
|
|
9
12
|
products: {},
|
|
10
13
|
}));
|
|
11
14
|
|
|
12
|
-
export function createClientConfig(
|
|
13
|
-
overrides?: Partial<ClientConfig>,
|
|
14
|
-
): ClientConfigDoc {
|
|
15
|
+
export function createClientConfig(overrides?: Partial<ClientConfig>): ClientConfigDoc {
|
|
15
16
|
return clientConfigFactory.build({
|
|
16
17
|
...overrides,
|
|
17
18
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Flow } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Flow } from '../../../talkpilot/flows/flows.types';
|
|
5
5
|
|
|
6
6
|
export const flowFactory = Factory.define<Flow & { _id: ObjectId }>(() => {
|
|
7
7
|
const now = new Date();
|
|
@@ -18,9 +18,7 @@ export const flowFactory = Factory.define<Flow & { _id: ObjectId }>(() => {
|
|
|
18
18
|
};
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export function createFlow(
|
|
22
|
-
overrides?: Partial<Flow>,
|
|
23
|
-
): Flow & { _id: ObjectId } {
|
|
21
|
+
export function createFlow(overrides?: Partial<Flow>): Flow & { _id: ObjectId } {
|
|
24
22
|
const now = new Date();
|
|
25
23
|
const base = flowFactory.build();
|
|
26
24
|
return {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Group, GroupContact, GroupDoc } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Group, GroupContact, GroupDoc } from '../../../talkpilot/groups/groups.types';
|
|
5
5
|
|
|
6
6
|
export const groupContactFactory = Factory.define<GroupContact>(() => ({
|
|
7
7
|
name: faker.person.firstName(),
|
|
8
8
|
phone: {
|
|
9
|
-
national:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
e164:
|
|
14
|
-
region:
|
|
15
|
-
countryCallingCode:
|
|
16
|
-
formatted:
|
|
9
|
+
national: '500000000',
|
|
10
|
+
національний: '500000000',
|
|
11
|
+
nacionales: '500000000',
|
|
12
|
+
национальные: '500000000',
|
|
13
|
+
e164: '+972500000000' as const,
|
|
14
|
+
region: 'IL',
|
|
15
|
+
countryCallingCode: '972',
|
|
16
|
+
formatted: '+972 50-000-0000',
|
|
17
17
|
},
|
|
18
|
-
gender: faker.helpers.arrayElement([
|
|
18
|
+
gender: faker.helpers.arrayElement(['male', 'female']),
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
21
|
export const groupFactory = Factory.define<GroupDoc>(() => ({
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { PhoneNumber } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { PhoneNumber } from '../../../talkpilot/phone_numbers/phone_numbers.types';
|
|
5
5
|
|
|
6
|
-
export const phoneNumberFactory = Factory.define<
|
|
7
|
-
PhoneNumber & { _id?: ObjectId }
|
|
8
|
-
>(() => ({
|
|
6
|
+
export const phoneNumberFactory = Factory.define<PhoneNumber & { _id?: ObjectId }>(() => ({
|
|
9
7
|
_id: new ObjectId(),
|
|
10
8
|
client_id: faker.string.uuid(),
|
|
11
9
|
flow_id: new ObjectId(),
|
|
@@ -16,7 +14,7 @@ export const phoneNumberFactory = Factory.define<
|
|
|
16
14
|
}));
|
|
17
15
|
|
|
18
16
|
export function createPhoneNumber(
|
|
19
|
-
overrides?: Partial<PhoneNumber> & { flow_id?: ObjectId }
|
|
17
|
+
overrides?: Partial<PhoneNumber> & { flow_id?: ObjectId }
|
|
20
18
|
): PhoneNumber & { _id?: ObjectId } {
|
|
21
19
|
return phoneNumberFactory.build(overrides);
|
|
22
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Factory } from
|
|
2
|
-
import { ObjectId } from
|
|
3
|
-
import { faker } from
|
|
4
|
-
import type { Session } from
|
|
1
|
+
import { Factory } from 'fishery';
|
|
2
|
+
import { ObjectId } from 'mongodb';
|
|
3
|
+
import { faker } from '@faker-js/faker';
|
|
4
|
+
import type { Session } from '../../../talkpilot/sessions/sessions.types';
|
|
5
5
|
|
|
6
6
|
export const sessionFactory = Factory.define<Session>(() => ({
|
|
7
7
|
_id: new ObjectId(),
|
|
@@ -12,7 +12,7 @@ export const sessionFactory = Factory.define<Session>(() => ({
|
|
|
12
12
|
{
|
|
13
13
|
name: faker.person.firstName(),
|
|
14
14
|
phoneNumber: faker.phone.number(),
|
|
15
|
-
gender:
|
|
15
|
+
gender: 'male' as const,
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
json: null,
|
package/src/utils/validation.ts
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export const validateConfig = (configName: string, value?: string): string => {
|
|
7
|
-
if (!value || value.trim() ===
|
|
7
|
+
if (!value || value.trim() === '') {
|
|
8
8
|
throw new Error(
|
|
9
9
|
`[core-db] Configuration Error: '${configName}' is missing. ` +
|
|
10
|
-
|
|
10
|
+
`Please provide it via parameters or set the corresponding environment variable.`
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
return value;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export const validateMongoUri = (uri: string): void => {
|
|
17
|
-
if (!uri.startsWith(
|
|
17
|
+
if (!uri.startsWith('mongodb://') && !uri.startsWith('mongodb+srv://')) {
|
|
18
18
|
throw new Error(
|
|
19
19
|
`[core-db] Connection Error: The provided MongoDB URI is invalid. ` +
|
|
20
|
-
|
|
20
|
+
`It must start with 'mongodb://' or 'mongodb+srv://'. Received: '${uri}'`
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -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"}
|