@oneblink/sdk
Advanced tools
Comparing version 9.2.0 to 10.0.0-beta.1
{ | ||
"name": "@oneblink/sdk", | ||
"description": "OneBlink SDK to serve as an entry point for all OneBlink Services in NodeJS", | ||
"version": "9.2.0", | ||
"version": "10.0.0-beta.1", | ||
"author": "OneBlink <developers@oneblink.io> (https://oneblink.io)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -82,3 +82,3 @@ import { FormsAppsTypes } from '@oneblink/types'; | ||
*/ | ||
createFormsApp(formsApp: Omit<FormsAppsTypes.NewFormsApp, 'styles'>): Promise<FormsAppsTypes.FormsApp>; | ||
createFormsApp(formsApp: FormsAppsTypes.NewFormsApp): Promise<FormsAppsTypes.FormsApp>; | ||
/** | ||
@@ -118,20 +118,2 @@ * Update a Forms App | ||
/** | ||
* Update styles for Forms App | ||
* | ||
* **Minimum Role Permission** | ||
* | ||
* App Customisation: _Manager_ | ||
* | ||
* @example | ||
* formsAppsSDK.updateStyles(formsAppId, styles).then(() => { | ||
* // Styles have been updated... | ||
* }) | ||
* | ||
* @param formsAppId The exact identifier of the Forms App you wish to update | ||
* the styles | ||
* @param styles Forms App styles properties | ||
* @returns | ||
*/ | ||
updateStyles(formsAppId: number, styles: FormsAppsTypes.BaseFormsAppStyles | FormsAppsTypes.FormsListStyles): Promise<FormsAppsTypes.FormsListStyles>; | ||
/** | ||
* Create a Forms App User | ||
@@ -138,0 +120,0 @@ * |
@@ -157,25 +157,2 @@ "use strict"; | ||
/** | ||
* Update styles for Forms App | ||
* | ||
* **Minimum Role Permission** | ||
* | ||
* App Customisation: _Manager_ | ||
* | ||
* @example | ||
* formsAppsSDK.updateStyles(formsAppId, styles).then(() => { | ||
* // Styles have been updated... | ||
* }) | ||
* | ||
* @param formsAppId The exact identifier of the Forms App you wish to update | ||
* the styles | ||
* @param styles Forms App styles properties | ||
* @returns | ||
*/ | ||
async updateStyles(formsAppId, styles) { | ||
if (typeof formsAppId !== 'number') { | ||
return Promise.reject(new TypeError('Must supply "formsAppId" as a number')); | ||
} | ||
return super.putRequest(`${basePath}/${formsAppId}/styles`, styles); | ||
} | ||
/** | ||
* Create a Forms App User | ||
@@ -182,0 +159,0 @@ * |
@@ -168,3 +168,3 @@ "use strict"; | ||
}); | ||
exports.schedulingEventTypes = ['SCHEDULING']; | ||
exports.schedulingEventTypes = ['SCHEDULING', 'NYLAS']; | ||
exports.SchedulingEventSchema = joi_1.default.object({ | ||
@@ -186,2 +186,13 @@ type: joi_1.default.string() | ||
}), | ||
}) | ||
.when('type', { | ||
is: 'NYLAS', | ||
then: joi_1.default.object().keys({ | ||
nylasGrantId: joi_1.default.string().required(), | ||
nylasConfigurationId: joi_1.default.string().required(), | ||
nameElementId: joi_1.default.string().guid(), | ||
emailElementId: joi_1.default.string().guid(), | ||
emailDescription: joi_1.default.string(), | ||
...pdfSubmissionEventConfiguration, | ||
}), | ||
}), | ||
@@ -188,0 +199,0 @@ ...formEventBaseSchema, |
@@ -32,3 +32,4 @@ "use strict"; | ||
} | ||
case 'SCHEDULING': { | ||
case 'SCHEDULING': | ||
case 'NYLAS': { | ||
const nameElementId = formEvent.configuration.nameElementId; | ||
@@ -35,0 +36,0 @@ if (nameElementId) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
446294
8579
1