@tellescope/react-components 1.242.0 → 1.242.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/react-components",
3
- "version": "1.242.0",
3
+ "version": "1.242.2",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -47,13 +47,13 @@
47
47
  "@reduxjs/toolkit": "1.9.0",
48
48
  "@stripe/react-stripe-js": "2.9.0",
49
49
  "@stripe/stripe-js": "1.52.1",
50
- "@tellescope/constants": "1.242.0",
51
- "@tellescope/sdk": "1.242.0",
52
- "@tellescope/types-client": "1.242.0",
53
- "@tellescope/types-models": "1.242.0",
54
- "@tellescope/types-utilities": "1.242.0",
55
- "@tellescope/utilities": "1.242.0",
56
- "@tellescope/validation": "1.242.0",
50
+ "@tellescope/constants": "1.242.2",
51
+ "@tellescope/sdk": "1.242.2",
52
+ "@tellescope/types-client": "1.242.2",
53
+ "@tellescope/types-models": "1.242.2",
54
+ "@tellescope/types-utilities": "1.242.2",
55
+ "@tellescope/utilities": "1.242.2",
56
+ "@tellescope/validation": "1.242.2",
57
57
  "@typescript-eslint/eslint-plugin": "4.33.0",
58
58
  "@typescript-eslint/parser": "4.33.0",
59
59
  "css-to-react-native": "3.0.0",
@@ -84,7 +84,7 @@
84
84
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
85
85
  "react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
86
86
  },
87
- "gitHead": "f2880f8663e523e8c99ded28e67c071f94921265",
87
+ "gitHead": "44c4455ccbdd1bd6cd6dc2f9fda99bec43a5cc44",
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  }
package/src/state.tsx CHANGED
@@ -98,6 +98,7 @@ import {
98
98
  DiagnosisCode,
99
99
  AllergyCode,
100
100
  IntegrationLog,
101
+ OrganizationPayment,
101
102
  EnduserEligibilityResult,
102
103
  AgentRecord,
103
104
  Waitlist,
@@ -368,6 +369,7 @@ const suggestedContactsSlice = createSliceForList<SuggestedContact, 'suggested_c
368
369
  const diagnosisCodesSlice = createSliceForList<DiagnosisCode, 'diagnosis_codes'>('diagnosis_codes')
369
370
  const allergyCodesSlice = createSliceForList<AllergyCode, 'allergy_codes'>('allergy_codes')
370
371
  const integrationLogsSlice = createSliceForList<IntegrationLog, 'integration_logs'>('integration_logs')
372
+ const organizationPaymentsSlice = createSliceForList<OrganizationPayment, 'organization_payments'>('organization_payments')
371
373
  const enduserEligibilityResultsSlice = createSliceForList<EnduserEligibilityResult, 'enduser_eligibility_results'>('enduser_eligibility_results')
372
374
  const agentRecordsSlice = createSliceForList<AgentRecord, 'agent_records'>('agent_records')
373
375
  const waitlistsSlice = createSliceForList<Waitlist, 'waitlists'>('waitlists')
@@ -384,6 +386,7 @@ export const sharedConfig = {
384
386
  agent_records: agentRecordsSlice.reducer,
385
387
  enduser_eligibility_results: enduserEligibilityResultsSlice.reducer,
386
388
  integration_logs: integrationLogsSlice.reducer,
389
+ organization_payments: organizationPaymentsSlice.reducer,
387
390
  ticket_queues: ticketQueuesSlice.reducer,
388
391
  ticket_templates: ticketTemplatesSlice.reducer,
389
392
  automation_triggers: automationTriggersSlice.reducer,
@@ -1551,8 +1554,8 @@ export const useEnduserOrders = (options={} as HookOptions<EnduserOrder>) => {
1551
1554
  export const useIntegrationLogs = (options={} as HookOptions<IntegrationLog>) => {
1552
1555
  const session = useSession()
1553
1556
  return useListStateHook(
1554
- 'integration_logs', useTypedSelector(s => s.integration_logs), session, integrationLogsSlice,
1555
- {
1557
+ 'integration_logs', useTypedSelector(s => s.integration_logs), session, integrationLogsSlice,
1558
+ {
1556
1559
  loadQuery: session.api.integration_logs.getSome,
1557
1560
  findOne: session.api.integration_logs.getOne,
1558
1561
  findByIds: session.api.integration_logs.getByIds,
@@ -1560,7 +1563,20 @@ export const useIntegrationLogs = (options={} as HookOptions<IntegrationLog>) =>
1560
1563
  addSome: session.api.integration_logs.createSome,
1561
1564
  deleteOne: session.api.integration_logs.deleteOne,
1562
1565
  updateOne: session.api.integration_logs.updateOne,
1563
- },
1566
+ },
1567
+ {...options}
1568
+ )
1569
+ }
1570
+ export const useOrganizationPayments = (options={} as HookOptions<OrganizationPayment>) => {
1571
+ const session = useSession()
1572
+ return useListStateHook(
1573
+ 'organization_payments', useTypedSelector(s => s.organization_payments), session, organizationPaymentsSlice,
1574
+ {
1575
+ loadQuery: session.api.organization_payments.getSome,
1576
+ findOne: session.api.organization_payments.getOne,
1577
+ findByIds: session.api.organization_payments.getByIds,
1578
+ // Read-only collection - no create, update, delete
1579
+ },
1564
1580
  {...options}
1565
1581
  )
1566
1582
  }