@tellescope/react-components 1.155.0 → 1.156.0
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/lib/cjs/Forms/inputs.js +1 -1
- package/lib/cjs/Forms/inputs.js.map +1 -1
- package/lib/cjs/state.d.ts +36 -0
- package/lib/cjs/state.d.ts.map +1 -1
- package/lib/cjs/state.js +19 -3
- package/lib/cjs/state.js.map +1 -1
- package/lib/esm/Forms/inputs.js +1 -1
- package/lib/esm/Forms/inputs.js.map +1 -1
- package/lib/esm/state.d.ts +36 -0
- package/lib/esm/state.d.ts.map +1 -1
- package/lib/esm/state.js +15 -0
- package/lib/esm/state.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/Forms/inputs.tsx +1 -1
- package/src/state.tsx +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.156.0",
|
|
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.6.2",
|
|
48
48
|
"@stripe/react-stripe-js": "^2.9.0",
|
|
49
49
|
"@stripe/stripe-js": "^1.52.1",
|
|
50
|
-
"@tellescope/constants": "^1.
|
|
51
|
-
"@tellescope/sdk": "^1.
|
|
52
|
-
"@tellescope/types-client": "^1.
|
|
53
|
-
"@tellescope/types-models": "^1.
|
|
54
|
-
"@tellescope/types-utilities": "^1.
|
|
55
|
-
"@tellescope/utilities": "^1.
|
|
56
|
-
"@tellescope/validation": "^1.
|
|
50
|
+
"@tellescope/constants": "^1.156.0",
|
|
51
|
+
"@tellescope/sdk": "^1.156.0",
|
|
52
|
+
"@tellescope/types-client": "^1.156.0",
|
|
53
|
+
"@tellescope/types-models": "^1.156.0",
|
|
54
|
+
"@tellescope/types-utilities": "^1.156.0",
|
|
55
|
+
"@tellescope/utilities": "^1.156.0",
|
|
56
|
+
"@tellescope/validation": "^1.156.0",
|
|
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",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
81
81
|
"react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "b3935c9a52ebc569391bbb1cda5027670473cc5d",
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
}
|
package/src/Forms/inputs.tsx
CHANGED
|
@@ -1459,12 +1459,12 @@ export const StripeInput = ({ field, value, onChange, setCustomerId }: FormInput
|
|
|
1459
1459
|
|
|
1460
1460
|
session.api.form_responses.stripe_details({ fieldId: field.id })
|
|
1461
1461
|
.then(({ clientSecret, publishableKey, stripeAccount, businessName, customerId, isCheckout, answerText }) => {
|
|
1462
|
+
setAnswertext(answerText || '')
|
|
1462
1463
|
setIsCheckout(!!isCheckout)
|
|
1463
1464
|
setClientSecret(clientSecret)
|
|
1464
1465
|
setStripePromise(loadStripe(publishableKey, { stripeAccount }))
|
|
1465
1466
|
setBusinessName(businessName)
|
|
1466
1467
|
setCustomerId(customerId)
|
|
1467
|
-
setAnswertext(answerText || '')
|
|
1468
1468
|
})
|
|
1469
1469
|
.catch(console.error)
|
|
1470
1470
|
}, [session, value, field.id])
|
package/src/state.tsx
CHANGED
|
@@ -95,6 +95,7 @@ import {
|
|
|
95
95
|
SuggestedContact,
|
|
96
96
|
DiagnosisCode,
|
|
97
97
|
AllergyCode,
|
|
98
|
+
IntegrationLog,
|
|
98
99
|
} from "@tellescope/types-client"
|
|
99
100
|
|
|
100
101
|
import {
|
|
@@ -357,6 +358,7 @@ const faxLogsSlice = createSliceForList<FaxLog, 'fax_logs'>('fax_logs')
|
|
|
357
358
|
const suggestedContactsSlice = createSliceForList<SuggestedContact, 'suggested_contacts'>('suggested_contacts')
|
|
358
359
|
const diagnosisCodesSlice = createSliceForList<DiagnosisCode, 'diagnosis_codes'>('diagnosis_codes')
|
|
359
360
|
const allergyCodesSlice = createSliceForList<AllergyCode, 'allergy_codes'>('allergy_codes')
|
|
361
|
+
const integrationLogsSlice = createSliceForList<IntegrationLog, 'integration_logs'>('integration_logs')
|
|
360
362
|
|
|
361
363
|
const roleBasedAccessPermissionsSlice = createSliceForList<RoleBasedAccessPermission, 'role_based_access_permissions'>('role_based_access_permissions')
|
|
362
364
|
|
|
@@ -365,6 +367,7 @@ const userLogsSlice = createSliceForList<UserLog, 'user_logs'>('user_logs')
|
|
|
365
367
|
|
|
366
368
|
export const sharedConfig = {
|
|
367
369
|
reducer: {
|
|
370
|
+
integration_logs: integrationLogsSlice.reducer,
|
|
368
371
|
ticket_queues: ticketQueuesSlice.reducer,
|
|
369
372
|
automation_triggers: automationTriggersSlice.reducer,
|
|
370
373
|
automated_actions: automatedActionsSlice.reducer,
|
|
@@ -1350,6 +1353,22 @@ export const useEnduserOrders = (options={} as HookOptions<EnduserOrder>) => {
|
|
|
1350
1353
|
{...options}
|
|
1351
1354
|
)
|
|
1352
1355
|
}
|
|
1356
|
+
export const useIntegrationLogs = (options={} as HookOptions<IntegrationLog>) => {
|
|
1357
|
+
const session = useSession()
|
|
1358
|
+
return useListStateHook(
|
|
1359
|
+
'integration_logs', useTypedSelector(s => s.integration_logs), session, integrationLogsSlice,
|
|
1360
|
+
{
|
|
1361
|
+
loadQuery: session.api.integration_logs.getSome,
|
|
1362
|
+
findOne: session.api.integration_logs.getOne,
|
|
1363
|
+
findByIds: session.api.integration_logs.getByIds,
|
|
1364
|
+
addOne: session.api.integration_logs.createOne,
|
|
1365
|
+
addSome: session.api.integration_logs.createSome,
|
|
1366
|
+
deleteOne: session.api.integration_logs.deleteOne,
|
|
1367
|
+
updateOne: session.api.integration_logs.updateOne,
|
|
1368
|
+
},
|
|
1369
|
+
{...options}
|
|
1370
|
+
)
|
|
1371
|
+
}
|
|
1353
1372
|
export const useWebhookLogs = (options={} as HookOptions<WebhookLog>) => {
|
|
1354
1373
|
const session = useSession()
|
|
1355
1374
|
return useListStateHook(
|