Skip to content

Commit

Permalink
Merge pull request #187 from skedify/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Depelchin authored Aug 6, 2020
2 parents d5d3e14 + 631aa86 commit 35de587
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 11 deletions.
3 changes: 3 additions & 0 deletions src/__snapshots__/Skedify.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,9 @@ Object {
"availability_settings": Object {
"toString": [Function],
},
"calendars": Object {
"toString": [Function],
},
"completion_outcome_list": Object {
"outcome_outcome_lists": Object {
"toString": [Function],
Expand Down
20 changes: 19 additions & 1 deletion src/resources/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,14 @@ Object {
"key": "location[geolocation]",
"name": "geolocation",
},
Object {
"key": "location[country]",
"name": "country",
},
Object {
"key": "location[postal_code]",
"name": "postal_code",
},
],
"headers": Object {},
"requires_domain_map": false,
Expand Down Expand Up @@ -1395,6 +1403,14 @@ Object {
"key": "location[geolocation]",
"name": "geolocation",
},
Object {
"key": "location[country]",
"name": "country",
},
Object {
"key": "location[postal_code]",
"name": "postal_code",
},
],
"headers": Object {},
"requires_domain_map": false,
Expand Down Expand Up @@ -1515,7 +1531,9 @@ Object {
"sub_resources": Object {},
},
"syncAccounts": Object {
"allowed_includes": Array [],
"allowed_includes": Array [
"calendars",
],
"allowed_methods": Array [
"*",
],
Expand Down
2 changes: 2 additions & 0 deletions src/resources/definedAvailability.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const definedAvailability = createResourceDescription(
'meeting_types',
{ name: 'timezone', key: 'format[timezone]' },
{ name: 'geolocation', key: 'location[geolocation]' },
{ name: 'country', key: 'location[country]' },
{ name: 'postal_code', key: 'location[postal_code]' },
],
enable_pagination: false,
}
Expand Down
2 changes: 2 additions & 0 deletions src/resources/timetable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const timetable = createResourceDescription('timetable', {
'contacts',
{ name: 'timezone', key: 'format[timezone]' },
{ name: 'geolocation', key: 'location[geolocation]' },
{ name: 'country', key: 'location[country]' },
{ name: 'postal_code', key: 'location[postal_code]' },
],
allowed_methods: [HTTP_VERB_GET],
enable_pagination: false,
Expand Down
16 changes: 6 additions & 10 deletions src/resources/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@ import createResourceDescription from './util/createResourceDescription'

export const users = createResourceDescription(
'users',
{ includes: ['employees', 'sync_accounts'] },
{
includes: ['employees', 'sync_accounts'],
},
{
syncAccounts: createResourceDescription('sync_accounts'),
syncAccounts: createResourceDescription('sync_accounts', {
includes: ['calendars'],
}),
events: createResourceDescription('events', {
filters: ['start', 'end', 'split', 'group_by'],
}),
employees: createResourceDescription('employees', {
includes: ['roles'],
}),
employees: createResourceDescription('employees', { includes: ['roles'] }),
calendars: createResourceDescription(
'calendars',
{
includes: ['sync_accounts'],
},
{ includes: ['sync_accounts'] },
{
events: createResourceDescription('events', {
filters: ['start', 'end', 'split', 'group_by'],
Expand Down

0 comments on commit 35de587

Please sign in to comment.