Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@canvas-medical/embed-common

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canvas-medical/embed-common - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

src/api/construct-body/index.ts

20

package.json
{
"name": "@canvas-medical/embed-common",
"version": "0.0.7",
"version": "0.0.8",
"private": false,

@@ -9,3 +9,4 @@ "main": "src/index.ts",

"start": "echo 'No Start Provided'",
"test": "jest ./tests"
"test": "TZ=UTC jest ./tests",
"test:update": "yarn test --updateSnapshot"
},

@@ -41,8 +42,11 @@ "babel": {

"global": {
"branches": 35,
"functions": 25,
"lines": 45,
"statements": 45
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
}
},
"setupFilesAfterEnv": [
"./tests/setup.ts"
]
},

@@ -70,2 +74,3 @@ "prettier": {

"@types/color": "^3.0.3",
"@types/jest": "^27.4.0",
"@types/styled-components": "^5.1.22",

@@ -82,2 +87,3 @@ "babel-plugin-styled-components": "^2.0.2",

"prettier": "^2.5.1",
"regenerator-runtime": "^0.13.9",
"ts-loader": "^9.2.6",

@@ -84,0 +90,0 @@ "typescript": "^4.5.5",

export * from './get-appointment'
export * from './get-appointments-list'
export * from './get-time-slots'
export * from './post-appointment'
export * from './put-appointment'
export * from './get-slots'

@@ -31,8 +31,2 @@ import styled from 'styled-components'

}
$:disabled {
path {
stroke: ${colors.font.grey25};
}
}
`

@@ -39,0 +33,0 @@

@@ -14,1 +14,5 @@ export function formatTime(datetime: string | Date) {

}
export const toISOString = (datestring: string) => {
return new Date(datestring).toISOString()
}

@@ -0,1 +1,3 @@

import { toISOString } from './format'
// Takes two Date objects and determines if they are the same day.

@@ -8,1 +10,5 @@ export const isSameDay = (queryDate: Date, currentDate: Date) => {

}
export const checkDateTimeMatch = (a: string, b: string) => {
return toISOString(a) === toISOString(b)
}
import { appointmentTypes, defaultAppointmentType } from '../constants'
export const getAppointmentType = (code: string) => {
return (
appointmentTypes.find(item => item.code === code) || defaultAppointmentType
)
export const getAppointmentType = (code: string | null) => {
if (code) {
return (
appointmentTypes.find(item => item.code === code)?.type ||
defaultAppointmentType.type
)
} else {
return defaultAppointmentType.type
}
}

@@ -7,3 +7,3 @@ import { determineFontColor, generateHoverColor } from './functions'

destructive: '#D02121',
brand: '#2185d0',
brand: '#2185D0',
}

@@ -10,0 +10,0 @@

@@ -0,3 +1,5 @@

export * from './application'
export type ProvidersType = {
name: string
name?: string
id: string

@@ -12,3 +14,3 @@ }

export type ParsedSlotsType = {
provider: ProvidersType
providerId: string
providerSlots: SlotType[]

@@ -30,7 +32,14 @@ }

id: string
type: string
reason: string
code: string
display: string
locationId?: string
providerId: string
start: string
end: string
provider: ProvidersType
}
export type AppointmentCodingType = {
system?: string
code?: string
display?: string
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc