@@ -1130,6 +1130,28 @@ WOQLClient.prototype.createOrganization = function(orgId, orgDoc) {
1130
1130
)
1131
1131
}
1132
1132
1133
+
1134
+ /**
1135
+ * Create a new organization for the registered user
1136
+ * @param {string } orgId - the organization id
1137
+ * @param {object } orgDoc - An object that describe the organization's details
1138
+ * @returns {Promise } A promise that returns the call response object, or an Error if rejected.
1139
+ */
1140
+
1141
+ WOQLClient . prototype . setOrganizationRoles = function ( payload , orgDoc ) {
1142
+ //if (orgId) {
1143
+ return this . dispatch (
1144
+ CONST . CREATE_ORGANIZATION ,
1145
+ this . connectionConfig . updateOrganizationRoleURL ( ) ,
1146
+ payload ,
1147
+ )
1148
+ //}
1149
+ //let errmsg = `Create organization parameter error - you must specify a valid organization id`
1150
+ /* return Promise.reject(
1151
+ new Error(ErrorMessage.getInvalidParameterMessage(CONST.CREATE_ORGANIZATION, errmsg)),
1152
+ )*/
1153
+ }
1154
+
1133
1155
/**
1134
1156
* Gets all the information about the given organization
1135
1157
* @param {string } orgId - the organization id
@@ -1206,7 +1228,7 @@ WOQLClient.prototype.getRoles = function(userId, orgId, dbId) {
1206
1228
}
1207
1229
1208
1230
/**
1209
- * Change the user role for existing users in your organisation , including your own
1231
+ * Change the user role for existing users in your organization , including your own
1210
1232
* @param {typedef.RolesObj } newRolesObj
1211
1233
* @returns {Promise } A promise that returns the call response object, or an Error if rejected.
1212
1234
*/
0 commit comments