Skip to content

Commit

Permalink
Merge pull request #213 from skedify/develop
Browse files Browse the repository at this point in the history
release/next
  • Loading branch information
timothy-suy authored Nov 25, 2020
2 parents 2dd03f6 + 8b1cb5e commit 68034f9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/__snapshots__/Skedify.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,9 @@ Object {
"initiated_by": Object {
"toString": [Function],
},
"language": Object {
"toString": [Function],
},
"languages": Object {
"toString": [Function],
"translations": Object {
Expand Down
18 changes: 18 additions & 0 deletions src/resources/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Object {
"end",
"contact",
"office",
"order_by_start",
"page",
"per_page",
],
Expand Down Expand Up @@ -156,6 +157,23 @@ Object {
},
},
},
"calendarEventTemplates": Object {
"allowed_includes": Array [
"language",
],
"allowed_methods": Array [
"*",
],
"deprecated": false,
"filters": Array [
"page",
"per_page",
],
"headers": Object {},
"requires_domain_map": false,
"resource": "calendar_event_templates",
"sub_resources": Object {},
},
"calendars": Object {
"allowed_includes": Array [
"sync_account",
Expand Down
10 changes: 9 additions & 1 deletion src/resources/appointments.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ export const appointments = createResourceDescription(
'outcomes',
'appointment_outcomes',
],
filters: ['uuid', 'state', 'start', 'end', 'contact', 'office'],
filters: [
'uuid',
'state',
'start',
'end',
'contact',
'office',
'order_by_start',
],
headers: {
[HTTP_VERB_POST]: {
recaptcha: (value) => {
Expand Down
8 changes: 8 additions & 0 deletions src/resources/calendarEventTemplates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import createResourceDescription from './util/createResourceDescription'

export const calendarEventTemplates = createResourceDescription(
'calendar_event_templates',
{
includes: ['language'],
}
)
1 change: 1 addition & 0 deletions src/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export * from './employees'
export * from './enterprises'
export * from './enterpriseSettings'
export * from './events'
export * from './calendarEventTemplates'
export * from './featureFlags'
export * from './identity'
export * from './insights'
Expand Down

0 comments on commit 68034f9

Please sign in to comment.