Skip to content

Commit

Permalink
Merge pull request #171 from skedify/feature/SKED-3425
Browse files Browse the repository at this point in the history
feature/SKED-3425: Allow enterprises to manage their own cancellation reasons
  • Loading branch information
gevalo1 authored Jun 5, 2020
2 parents dcea281 + e0ed816 commit 5cd2463
Show file tree
Hide file tree
Showing 9 changed files with 3,247 additions and 731 deletions.
3,945 changes: 3,227 additions & 718 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@
"semantic-release": "semantic-release"
},
"devDependencies": {
"@babel/preset-env": "^7.9.6",
"@babel/preset-env": "^7.10.2",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"babel-eslint": "^10.1.0",
"babel-plugin-transform-polyfills": "^2.3.0",
"codecov": "^3.6.5",
"codecov": "^3.7.0",
"commitizen": "^4.1.2",
"core-js": "^3.6.5",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^6.8.0",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-better": "^0.1.5",
"eslint-plugin-filenames": "^1.3.2",
Expand All @@ -65,18 +65,18 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"rollup": "^2.8.2",
"rollup": "^2.13.1",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-buble": "^0.19.8",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-inject": "^3.0.2",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-terser": "^6.1.0",
"rollup-watch": "^4.3.1",
"semantic-release": "^17.0.7",
"serve": "^11.3.0"
"semantic-release": "^17.0.8",
"serve": "^11.3.1"
},
"config": {
"commitizen": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import replace from 'rollup-plugin-replace'

import { createUMDConfig } from './rollup.config.common'

const createBaseConfig = common => specific => {
const createBaseConfig = (common) => (specific) => {
const base = Object.assign({}, common, specific)

return Object.assign({}, base, {
Expand Down
5 changes: 2 additions & 3 deletions rollup.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { terser } from 'rollup-plugin-terser'

import { createUMDConfig } from './rollup.config.common'

const createBaseConfig = common => specific => {
const createBaseConfig = (common) => (specific) => {
const base = Object.assign({}, common, specific)
const sourcemap = false

Expand All @@ -17,9 +17,8 @@ const createBaseConfig = common => specific => {
'process.env.NODE_ENV': JSON.stringify('production'),
}),
terser({
sourcemap,
output: {
comments: function(node, comment) {
comments: function (node, comment) {
return (
comment.type === 'comment2' && /Copyright/i.test(comment.value)
)
Expand Down
3 changes: 3 additions & 0 deletions src/__snapshots__/Skedify.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,9 @@ Object {
"outcome_lists": Object {
"toString": [Function],
},
"outcome_outcome_lists": Object {
"toString": [Function],
},
"outcomes": Object {
"toString": [Function],
},
Expand Down
4 changes: 4 additions & 0 deletions src/resources/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Object {
],
"deprecated": false,
"filters": Array [
"appointment_id",
"outcome_id",
"page",
"per_page",
],
Expand Down Expand Up @@ -1137,6 +1139,7 @@ Object {
},
"outcomeLists": Object {
"allowed_includes": Array [
"outcome_outcome_lists",
"outcomes",
],
"allowed_methods": Array [
Expand Down Expand Up @@ -1174,6 +1177,7 @@ Object {
"allowed_includes": Array [
"appointments",
"outcome_lists",
"outcome_outcome_lists",
],
"allowed_methods": Array [
"*",
Expand Down
1 change: 1 addition & 0 deletions src/resources/appointmentOutcomes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export const appointmentOutcomes = createResourceDescription(
'appointment_outcomes',
{
includes: ['appointment', 'outcome'],
filters: ['appointment_id', 'outcome_id'],
}
)
2 changes: 1 addition & 1 deletion src/resources/outcomeLists.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createResourceDescription from './util/createResourceDescription'

export const outcomeLists = createResourceDescription('outcome_lists', {
includes: ['outcomes'],
includes: ['outcome_outcome_lists', 'outcomes'],
})
2 changes: 1 addition & 1 deletion src/resources/outcomes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createResourceDescription from './util/createResourceDescription'

export const outcomes = createResourceDescription('outcomes', {
includes: ['appointments', 'outcome_lists'],
includes: ['appointments', 'outcome_lists', 'outcome_outcome_lists'],
})

0 comments on commit 5cd2463

Please sign in to comment.