@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,4 +1,4 @@
|
|
|
1
|
-
import type { Collection } from
|
|
1
|
+
import type { Collection } from 'mongodb';
|
|
2
2
|
import {
|
|
3
3
|
Client,
|
|
4
4
|
getClientsCollection,
|
|
@@ -6,50 +6,33 @@ import {
|
|
|
6
6
|
getFlowsCollection,
|
|
7
7
|
ObjectId,
|
|
8
8
|
findSubscriptions,
|
|
9
|
-
} from
|
|
10
|
-
import { PhoneNumber, PhoneNumberWithFlow } from
|
|
9
|
+
} from '../index';
|
|
10
|
+
import { PhoneNumber, PhoneNumberWithFlow } from './phone_numbers.types';
|
|
11
11
|
|
|
12
12
|
export const getPhoneNumbersCollection = (): Collection<PhoneNumber> =>
|
|
13
|
-
getDb().collection<PhoneNumber>(
|
|
13
|
+
getDb().collection<PhoneNumber>('phone_numbers');
|
|
14
14
|
|
|
15
15
|
export const getPhoneDataByPhoneNumber = async (
|
|
16
|
-
phoneNumber: string
|
|
16
|
+
phoneNumber: string
|
|
17
17
|
): Promise<PhoneNumberWithFlow | null> => {
|
|
18
|
-
const phoneCallData = await getPhoneNumbersCollection().findOne({
|
|
19
|
-
phone_number: phoneNumber,
|
|
20
|
-
});
|
|
18
|
+
const phoneCallData = await getPhoneNumbersCollection().findOne({ phone_number: phoneNumber });
|
|
21
19
|
if (!phoneCallData) {
|
|
22
|
-
throw new Error(
|
|
20
|
+
throw new Error('PhoneNumber not found');
|
|
23
21
|
}
|
|
24
|
-
const flow = await getFlowsCollection().findOne({
|
|
25
|
-
_id: new ObjectId(phoneCallData.flow_id),
|
|
26
|
-
});
|
|
22
|
+
const flow = await getFlowsCollection().findOne({ _id: new ObjectId(phoneCallData.flow_id) });
|
|
27
23
|
if (!flow) {
|
|
28
|
-
throw new Error(
|
|
24
|
+
throw new Error('Flow not found');
|
|
29
25
|
}
|
|
30
26
|
const [subscription] =
|
|
31
|
-
(await findSubscriptions({
|
|
32
|
-
clientId: phoneCallData.client_id,
|
|
33
|
-
isActive: true,
|
|
34
|
-
})) || [];
|
|
27
|
+
(await findSubscriptions({ clientId: phoneCallData.client_id, isActive: true })) || [];
|
|
35
28
|
|
|
36
|
-
return {
|
|
37
|
-
...phoneCallData,
|
|
38
|
-
flow,
|
|
39
|
-
subscriptionId: subscription?._id?.toString() ?? undefined,
|
|
40
|
-
};
|
|
29
|
+
return { ...phoneCallData, flow, subscriptionId: subscription?._id?.toString() ?? undefined };
|
|
41
30
|
};
|
|
42
31
|
|
|
43
|
-
export const getClientPrimaryPhoneNumber = async (
|
|
44
|
-
clientId: string,
|
|
45
|
-
): Promise<string | null> => {
|
|
32
|
+
export const getClientPrimaryPhoneNumber = async (clientId: string): Promise<string | null> => {
|
|
46
33
|
return (
|
|
47
|
-
(
|
|
48
|
-
|
|
49
|
-
client_id: clientId,
|
|
50
|
-
is_primary: true,
|
|
51
|
-
})
|
|
52
|
-
)?.phone_number ?? null
|
|
34
|
+
(await getPhoneNumbersCollection().findOne({ client_id: clientId, is_primary: true }))
|
|
35
|
+
?.phone_number ?? null
|
|
53
36
|
);
|
|
54
37
|
};
|
|
55
38
|
|
|
@@ -57,18 +40,17 @@ export const getClientPhoneNumber = getClientPrimaryPhoneNumber;
|
|
|
57
40
|
|
|
58
41
|
export const getClientPhoneData = async (
|
|
59
42
|
clientId: string,
|
|
60
|
-
isPrimary?: boolean
|
|
43
|
+
isPrimary?: boolean
|
|
61
44
|
): Promise<PhoneNumber | null> => {
|
|
62
45
|
const filter = { client_id: clientId, is_primary: isPrimary !== false };
|
|
63
|
-
const options =
|
|
64
|
-
isPrimary === false ? { sort: { createdAt: -1 } as const } : {};
|
|
46
|
+
const options = isPrimary === false ? { sort: { createdAt: -1 } as const } : {};
|
|
65
47
|
return getPhoneNumbersCollection().findOne(filter, options);
|
|
66
48
|
};
|
|
67
49
|
|
|
68
50
|
export const createPhoneNumberEntity = async (
|
|
69
51
|
phoneNumber: string,
|
|
70
52
|
flowId: string,
|
|
71
|
-
clientId: string
|
|
53
|
+
clientId: string
|
|
72
54
|
): Promise<PhoneNumber> => {
|
|
73
55
|
const existing = await getClientPhoneData(clientId);
|
|
74
56
|
const isPrimary = !existing;
|
|
@@ -82,19 +64,15 @@ export const createPhoneNumberEntity = async (
|
|
|
82
64
|
updatedAt: new Date(),
|
|
83
65
|
});
|
|
84
66
|
const phoneNumberData = await getClientPhoneData(clientId, isPrimary);
|
|
85
|
-
if (!phoneNumberData) throw new Error(
|
|
67
|
+
if (!phoneNumberData) throw new Error('Failed to create phoneNumber');
|
|
86
68
|
return phoneNumberData;
|
|
87
69
|
};
|
|
88
70
|
|
|
89
|
-
export const findClientByPhoneNumber = async (
|
|
90
|
-
|
|
91
|
-
)
|
|
92
|
-
const phoneData = await getPhoneNumbersCollection().findOne({
|
|
93
|
-
phone_number: phoneNumber,
|
|
94
|
-
});
|
|
95
|
-
if (!phoneData) throw new Error("Failed to get phone data");
|
|
71
|
+
export const findClientByPhoneNumber = async (phoneNumber: string): Promise<Client> => {
|
|
72
|
+
const phoneData = await getPhoneNumbersCollection().findOne({ phone_number: phoneNumber });
|
|
73
|
+
if (!phoneData) throw new Error('Failed to get phone data');
|
|
96
74
|
const clientId = phoneData.client_id;
|
|
97
75
|
const client = await getClientsCollection().findOne({ clientId });
|
|
98
|
-
if (!client) throw new Error(
|
|
76
|
+
if (!client) throw new Error('Failed to get client');
|
|
99
77
|
return client;
|
|
100
78
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export const phoneNumbersMongoSchema = {
|
|
2
|
-
bsonType:
|
|
3
|
-
required: [
|
|
2
|
+
bsonType: 'object',
|
|
3
|
+
required: ['client_id', 'flow_id', 'phone_number'],
|
|
4
4
|
properties: {
|
|
5
|
-
_id: { bsonType:
|
|
6
|
-
client_id: { bsonType:
|
|
7
|
-
flow_id: { bsonType:
|
|
8
|
-
phone_number: { bsonType:
|
|
9
|
-
is_primary: { bsonType:
|
|
10
|
-
createdAt: { bsonType:
|
|
11
|
-
updatedAt: { bsonType:
|
|
5
|
+
_id: { bsonType: 'objectId' },
|
|
6
|
+
client_id: { bsonType: 'string' },
|
|
7
|
+
flow_id: { bsonType: 'string' },
|
|
8
|
+
phone_number: { bsonType: 'string' },
|
|
9
|
+
is_primary: { bsonType: 'bool' },
|
|
10
|
+
createdAt: { bsonType: 'date' },
|
|
11
|
+
updatedAt: { bsonType: 'date' },
|
|
12
12
|
},
|
|
13
13
|
additionalProperties: false,
|
|
14
14
|
} as const;
|
|
@@ -5,65 +5,61 @@ import {
|
|
|
5
5
|
countPlans,
|
|
6
6
|
updatePlanDoc,
|
|
7
7
|
getPlansCollection,
|
|
8
|
-
} from
|
|
9
|
-
import {
|
|
8
|
+
} from '../plans.getters';
|
|
9
|
+
import { ObjectId } from 'mongodb';
|
|
10
|
+
import { Plan } from '../plans.types';
|
|
10
11
|
|
|
11
|
-
describe(
|
|
12
|
-
const createTestPlan = (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
productKey: "basic-500",
|
|
16
|
-
name: "Basic 500",
|
|
12
|
+
describe('db.plans', () => {
|
|
13
|
+
const createTestPlan = (overrides?: Partial<Plan>): Omit<Plan, 'createdAt' | 'updatedAt'> => ({
|
|
14
|
+
productKey: 'basic-500',
|
|
15
|
+
name: 'Basic 500',
|
|
17
16
|
monthlyCallQuota: 500,
|
|
18
|
-
currency:
|
|
17
|
+
currency: 'ILS',
|
|
19
18
|
priceMonthlyMinor: 10000,
|
|
20
19
|
isActive: true,
|
|
21
20
|
...overrides,
|
|
22
21
|
});
|
|
23
22
|
|
|
24
|
-
it(
|
|
25
|
-
const planData = createTestPlan({ name:
|
|
23
|
+
it('should create and find a plan', async () => {
|
|
24
|
+
const planData = createTestPlan({ name: 'CreateTest' });
|
|
26
25
|
const created = await createPlanDoc(planData);
|
|
27
|
-
|
|
26
|
+
|
|
28
27
|
expect(created._id).toBeDefined();
|
|
29
|
-
expect(created.name).toBe(
|
|
28
|
+
expect(created.name).toBe('CreateTest');
|
|
30
29
|
|
|
31
30
|
const found = await findPlans({ _id: created._id });
|
|
32
31
|
expect(found.length).toBe(1);
|
|
33
|
-
expect(found[0].name).toBe(
|
|
32
|
+
expect(found[0].name).toBe('CreateTest');
|
|
34
33
|
});
|
|
35
34
|
|
|
36
|
-
it(
|
|
35
|
+
it('should find plans by query with limit', async () => {
|
|
37
36
|
await getPlansCollection().deleteMany({});
|
|
38
|
-
await createPlanDoc(createTestPlan({ productKey:
|
|
39
|
-
await createPlanDoc(createTestPlan({ productKey:
|
|
40
|
-
await createPlanDoc(createTestPlan({ productKey:
|
|
37
|
+
await createPlanDoc(createTestPlan({ productKey: 'p1', isActive: true }));
|
|
38
|
+
await createPlanDoc(createTestPlan({ productKey: 'p2', isActive: true }));
|
|
39
|
+
await createPlanDoc(createTestPlan({ productKey: 'p3', isActive: false }));
|
|
41
40
|
|
|
42
|
-
const activePlans = await findPlansByQuery(
|
|
43
|
-
{ isActive: true },
|
|
44
|
-
{ limit: 1 },
|
|
45
|
-
);
|
|
41
|
+
const activePlans = await findPlansByQuery({ isActive: true }, { limit: 1 });
|
|
46
42
|
expect(activePlans.length).toBe(1);
|
|
47
43
|
expect(activePlans[0].isActive).toBe(true);
|
|
48
44
|
});
|
|
49
45
|
|
|
50
|
-
it(
|
|
46
|
+
it('should count plans matching query', async () => {
|
|
51
47
|
await getPlansCollection().deleteMany({});
|
|
52
|
-
await createPlanDoc(createTestPlan({ currency:
|
|
53
|
-
await createPlanDoc(createTestPlan({ currency:
|
|
54
|
-
await createPlanDoc(createTestPlan({ currency:
|
|
48
|
+
await createPlanDoc(createTestPlan({ currency: 'USD' }));
|
|
49
|
+
await createPlanDoc(createTestPlan({ currency: 'USD' }));
|
|
50
|
+
await createPlanDoc(createTestPlan({ currency: 'ILS' }));
|
|
55
51
|
|
|
56
|
-
const count = await countPlans({ currency:
|
|
52
|
+
const count = await countPlans({ currency: 'USD' });
|
|
57
53
|
expect(count).toBe(2);
|
|
58
54
|
});
|
|
59
55
|
|
|
60
|
-
it(
|
|
56
|
+
it('should update a plan', async () => {
|
|
61
57
|
const plan = await createPlanDoc(createTestPlan({ isActive: true }));
|
|
62
58
|
const updated = await updatePlanDoc(plan._id, { isActive: false });
|
|
63
|
-
|
|
59
|
+
|
|
64
60
|
expect(updated).not.toBeNull();
|
|
65
61
|
expect(updated?.isActive).toBe(false);
|
|
66
|
-
|
|
62
|
+
|
|
67
63
|
const found = await findPlans({ _id: plan._id });
|
|
68
64
|
expect(found[0].isActive).toBe(false);
|
|
69
65
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './plans.types';
|
|
2
|
+
export * from './plans.getters';
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
PlanDoc,
|
|
5
|
-
PlanFilter,
|
|
6
|
-
PlanQueryOptions,
|
|
7
|
-
SimplePlanFilter,
|
|
8
|
-
} from "../index";
|
|
9
|
-
import { Filter, ObjectId } from "mongodb";
|
|
10
|
-
import { applyQueryOptions } from "../utils/query.utils";
|
|
1
|
+
import {getDb, Plan, PlanDoc, PlanFilter, PlanQueryOptions, SimplePlanFilter} from '../index';
|
|
2
|
+
import {Filter, ObjectId} from 'mongodb';
|
|
3
|
+
import {applyQueryOptions} from '../utils/query.utils';
|
|
11
4
|
|
|
12
5
|
export const getPlansCollection = () => {
|
|
13
|
-
return getDb().collection<Plan>(
|
|
6
|
+
return getDb().collection<Plan>('plans');
|
|
14
7
|
};
|
|
15
8
|
|
|
16
9
|
/**
|
|
@@ -49,7 +42,7 @@ const buildSimpleQuery = (filter: SimplePlanFilter): Filter<Plan> => {
|
|
|
49
42
|
*/
|
|
50
43
|
export const findPlans = async (
|
|
51
44
|
filter?: PlanFilter,
|
|
52
|
-
options?: PlanQueryOptions
|
|
45
|
+
options?: PlanQueryOptions
|
|
53
46
|
): Promise<PlanDoc[]> => {
|
|
54
47
|
let query: Filter<Plan> = {};
|
|
55
48
|
|
|
@@ -88,7 +81,7 @@ export const findPlans = async (
|
|
|
88
81
|
|
|
89
82
|
export const findPlansByQuery = async (
|
|
90
83
|
query: Filter<Plan>,
|
|
91
|
-
options?: PlanQueryOptions
|
|
84
|
+
options?: PlanQueryOptions
|
|
92
85
|
): Promise<PlanDoc[]> => {
|
|
93
86
|
const cursor = getPlansCollection().find(query);
|
|
94
87
|
return await applyQueryOptions(cursor, options).toArray();
|
|
@@ -99,7 +92,7 @@ export const countPlans = async (query: Filter<Plan>): Promise<number> => {
|
|
|
99
92
|
};
|
|
100
93
|
|
|
101
94
|
export const createPlanDoc = async (
|
|
102
|
-
planData: Omit<Plan,
|
|
95
|
+
planData: Omit<Plan, 'createdAt' | 'updatedAt'>
|
|
103
96
|
): Promise<PlanDoc> => {
|
|
104
97
|
const now = new Date();
|
|
105
98
|
const result = await getPlansCollection().insertOne({
|
|
@@ -109,24 +102,24 @@ export const createPlanDoc = async (
|
|
|
109
102
|
});
|
|
110
103
|
|
|
111
104
|
const plans = await findPlans({ _id: result.insertedId });
|
|
112
|
-
if (!plans[0]) throw new Error(
|
|
105
|
+
if (!plans[0]) throw new Error('Failed to retrieve created plan');
|
|
113
106
|
return plans[0];
|
|
114
107
|
};
|
|
115
108
|
|
|
116
109
|
export const updatePlanDoc = async (
|
|
117
110
|
planId: ObjectId,
|
|
118
|
-
updates: Partial<Omit<Plan,
|
|
111
|
+
updates: Partial<Omit<Plan, 'createdAt' | 'updatedAt'>>
|
|
119
112
|
): Promise<PlanDoc | null> => {
|
|
120
113
|
return await getPlansCollection().findOneAndUpdate(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
{_id: planId},
|
|
115
|
+
{
|
|
116
|
+
$set: {
|
|
117
|
+
...updates,
|
|
118
|
+
updatedAt: new Date(),
|
|
119
|
+
},
|
|
126
120
|
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
},
|
|
121
|
+
{
|
|
122
|
+
returnDocument: 'after',
|
|
123
|
+
}
|
|
131
124
|
);
|
|
132
125
|
};
|
|
@@ -1,44 +1,40 @@
|
|
|
1
|
-
import { Sort, ObjectId, WithId } from
|
|
1
|
+
import { Sort, ObjectId, WithId } from 'mongodb';
|
|
2
2
|
|
|
3
|
-
export const CURRENCY_CODES = [
|
|
3
|
+
export const CURRENCY_CODES = ['ILS', 'USD', 'EUR'] as const;
|
|
4
4
|
export type CurrencyCode = (typeof CURRENCY_CODES)[number];
|
|
5
5
|
|
|
6
6
|
/** Required fields for creating a new plan */
|
|
7
7
|
export const PLAN_REQUIRED_FIELDS = [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
'productKey',
|
|
9
|
+
'name',
|
|
10
|
+
'monthlyCallQuota',
|
|
11
|
+
'currency',
|
|
12
|
+
'priceMonthlyMinor',
|
|
13
|
+
'isActive',
|
|
14
14
|
];
|
|
15
15
|
|
|
16
16
|
/** All allowed fields that can be set/updated on a plan (excluding system fields) */
|
|
17
17
|
export const PLAN_ALLOWED_FIELDS = [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
'productKey',
|
|
19
|
+
'name',
|
|
20
|
+
'monthlyCallQuota',
|
|
21
|
+
'currency',
|
|
22
|
+
'priceMonthlyMinor',
|
|
23
|
+
'region',
|
|
24
|
+
'countryCode',
|
|
25
|
+
'isActive',
|
|
26
|
+
'originalPlanId',
|
|
27
|
+
'tax',
|
|
28
|
+
'metadata',
|
|
29
|
+
'updatedAt',
|
|
30
30
|
];
|
|
31
31
|
|
|
32
32
|
/** Logical product family, like "basic-500". Multiple regional variants can share it. */
|
|
33
|
-
export type ProductKey =
|
|
34
|
-
| "basic-500"
|
|
35
|
-
| "pro-1100"
|
|
36
|
-
| "scale-6000"
|
|
37
|
-
| (string & {});
|
|
33
|
+
export type ProductKey = 'basic-500' | 'pro-1100' | 'scale-6000' | (string & {});
|
|
38
34
|
|
|
39
35
|
/** Optional targeting to keep variants explicit */
|
|
40
|
-
export type RegionCode =
|
|
41
|
-
export type CountryCode =
|
|
36
|
+
export type RegionCode = 'IL' | 'EU' | 'US' | (string & {});
|
|
37
|
+
export type CountryCode = 'IL' | 'DE' | 'FR' | 'ES' | 'GB' | (string & {});
|
|
42
38
|
|
|
43
39
|
export type Tax = {
|
|
44
40
|
vatIncluded: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { Collection } from
|
|
2
|
-
import { getDb, ObjectId, Session } from
|
|
3
|
-
import type { Result } from
|
|
1
|
+
import type { Collection } from 'mongodb';
|
|
2
|
+
import { getDb, ObjectId, Session } from '../index';
|
|
3
|
+
import type { Result } from './results.types';
|
|
4
4
|
|
|
5
|
-
export const getResultsCollection = (): Collection<Result> =>
|
|
6
|
-
getDb().collection<Result>("results");
|
|
5
|
+
export const getResultsCollection = (): Collection<Result> => getDb().collection<Result>('results');
|
|
7
6
|
|
|
8
7
|
export const createRunId = (): string => {
|
|
9
8
|
return `run_${new ObjectId().toString()}`;
|
|
@@ -11,17 +10,17 @@ export const createRunId = (): string => {
|
|
|
11
10
|
|
|
12
11
|
export const initializeResultDocument = async (
|
|
13
12
|
clientId: string,
|
|
14
|
-
session?: Session
|
|
13
|
+
session?: Session
|
|
15
14
|
): Promise<Result> => {
|
|
16
15
|
const { insertedId } = await getResultsCollection().insertOne({
|
|
17
16
|
runId: createRunId(),
|
|
18
17
|
date: new Date(),
|
|
19
18
|
calls: [],
|
|
20
|
-
sessionId: session ? session._id!.toString() :
|
|
21
|
-
sessionName: session ? session.session_name :
|
|
19
|
+
sessionId: session ? session._id!.toString() : 'incomingCall',
|
|
20
|
+
sessionName: session ? session.session_name : 'incomingCall',
|
|
22
21
|
clientId,
|
|
23
22
|
});
|
|
24
23
|
const result = await getResultsCollection().findOne({ _id: insertedId });
|
|
25
|
-
if (!result) throw new Error(
|
|
24
|
+
if (!result) throw new Error('Failed to initialized result');
|
|
26
25
|
return result;
|
|
27
26
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export const resultMongoSchema = {
|
|
2
|
-
bsonType:
|
|
2
|
+
bsonType: 'object',
|
|
3
3
|
required: [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
'_id',
|
|
5
|
+
'sessionId',
|
|
6
|
+
'status',
|
|
7
|
+
'callLength',
|
|
8
|
+
'date',
|
|
9
|
+
'userAnswer',
|
|
10
|
+
'systemSessionId',
|
|
11
|
+
'clientId',
|
|
12
12
|
],
|
|
13
13
|
properties: {
|
|
14
|
-
_id: { bsonType:
|
|
15
|
-
sessionId: { bsonType:
|
|
16
|
-
status: { bsonType:
|
|
17
|
-
callLength: { bsonType:
|
|
18
|
-
date: { bsonType:
|
|
19
|
-
userAnswer: { bsonType:
|
|
20
|
-
recordingUrl: { bsonType: [
|
|
21
|
-
systemSessionId: { bsonType:
|
|
22
|
-
clientId: { bsonType:
|
|
14
|
+
_id: { bsonType: 'objectId' },
|
|
15
|
+
sessionId: { bsonType: 'string' },
|
|
16
|
+
status: { bsonType: 'string' },
|
|
17
|
+
callLength: { bsonType: 'string' },
|
|
18
|
+
date: { bsonType: 'date' },
|
|
19
|
+
userAnswer: { bsonType: 'string' },
|
|
20
|
+
recordingUrl: { bsonType: ['string', 'null'] },
|
|
21
|
+
systemSessionId: { bsonType: 'string' },
|
|
22
|
+
clientId: { bsonType: 'string' },
|
|
23
23
|
},
|
|
24
24
|
additionalProperties: false,
|
|
25
25
|
} as const;
|