Skip to content

Commit

Permalink
Merge pull request #218 from skedify/develop
Browse files Browse the repository at this point in the history
release/next
  • Loading branch information
DemianD authored Mar 9, 2021
2 parents ea70e36 + b1d9720 commit b8a3ebd
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
36 changes: 36 additions & 0 deletions src/resources/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,42 @@ Object {
"resource": "defined_availability",
"sub_resources": Object {},
},
"emailColors": Object {
"allowed_includes": Array [],
"allowed_methods": Array [
"*",
],
"deprecated": false,
"filters": Array [],
"headers": Object {},
"requires_domain_map": false,
"resource": "email_colors",
"sub_resources": Object {},
},
"emailPartials": Object {
"allowed_includes": Array [],
"allowed_methods": Array [
"*",
],
"deprecated": false,
"filters": Array [],
"headers": Object {},
"requires_domain_map": false,
"resource": "email_partials",
"sub_resources": Object {},
},
"emailTemplates": Object {
"allowed_includes": Array [],
"allowed_methods": Array [
"*",
],
"deprecated": false,
"filters": Array [],
"headers": Object {},
"requires_domain_map": false,
"resource": "email_templates",
"sub_resources": Object {},
},
"employeeActivations": Object {
"allowed_includes": Array [
"employee",
Expand Down
5 changes: 5 additions & 0 deletions src/resources/emailColors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import createResourceDescription from './util/createResourceDescription'

export const emailColors = createResourceDescription('email_colors', {
enable_pagination: false,
})
5 changes: 5 additions & 0 deletions src/resources/emailPartials.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import createResourceDescription from './util/createResourceDescription'

export const emailPartials = createResourceDescription('email_partials', {
enable_pagination: false,
})
5 changes: 5 additions & 0 deletions src/resources/emailTemplates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import createResourceDescription from './util/createResourceDescription'

export const emailTemplates = createResourceDescription('email_templates', {
enable_pagination: false,
})
3 changes: 3 additions & 0 deletions src/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export * from './contacts'
export * from './coverageRegions'
export * from './customers'
export * from './definedAvailability'
export * from './emailPartials'
export * from './emailTemplates'
export * from './emailColors'
export * from './employeeActivations'
export * from './employees'
export * from './enterprises'
Expand Down
2 changes: 1 addition & 1 deletion test/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function mockAdapter(config) {

return reject(
new Error(
'There is no response, did you forget to call `mockResponse`? For more info please go to: https://github.com/skedify/sdk-js#testing'
`There is no response for \`${request.url}\`, did you forget to call \`mockResponse\`? For more info please go to: https://github.com/skedify/sdk-js#testing`
)
)
})
Expand Down

0 comments on commit b8a3ebd

Please sign in to comment.