1
0
Fork 0
mirror of synced 2024-06-23 08:40:58 +12:00

Updated JS SDK

This commit is contained in:
eldadfux 2019-07-05 02:40:46 +03:00
parent 66072f84b5
commit 498ecf8a07
5 changed files with 194 additions and 192 deletions

View file

@ -2,7 +2,7 @@
"name": "appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)",
"version": "v1.0.0",
"version": "v1.0.1",
"license": "BSD-3-Clause",
"main": "src/sdk.js",
"repository": {

View file

@ -132,7 +132,7 @@
globalParams.push({key: key, value: value});
};
addGlobalHeader('x-sdk-version', 'appwrite:javascript:v1.0.0');
addGlobalHeader('x-sdk-version', 'appwrite:javascript:v1.0.1');
addGlobalHeader('content-type', '');
/**
@ -166,7 +166,9 @@
for (let key in globalHeaders) { // Add Global Headers
if (globalHeaders.hasOwnProperty(key)) {
headers[globalHeaders[key].key] = globalHeaders[key].value;
if (!headers[globalHeaders[key].key]) {
headers[globalHeaders[key].key] = globalHeaders[key].value;
}
}
}
@ -298,7 +300,7 @@
let path = '/account';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -315,7 +317,7 @@
let path = '/account';
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -345,7 +347,7 @@
let path = '/account/email';
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'email': email,
'password': password
@ -369,7 +371,7 @@
let path = '/account/name';
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'name': name
});
@ -398,7 +400,7 @@
let path = '/account/password';
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'password': password,
'old-password': oldPassword
@ -417,7 +419,7 @@
let path = '/account/prefs';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -440,7 +442,7 @@
let path = '/account/prefs';
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'prefs': prefs
});
@ -459,7 +461,7 @@
let path = '/account/security';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -477,7 +479,7 @@
let path = '/account/sessions';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
}
@ -522,7 +524,7 @@
let path = '/auth/login';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'email': email,
'password': password,
@ -545,7 +547,7 @@
let path = '/auth/logout';
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -569,7 +571,7 @@
let path = '/auth/logout/{userId}'.replace(new RegExp('{userId}', 'g'), userId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -601,7 +603,7 @@
let path = '/auth/recovery';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'email': email,
'redirect': redirect
@ -648,7 +650,7 @@
let path = '/auth/recovery/reset';
return http
.put(path, {'Content-type': 'application/json'},
.put(path, {'content-type': 'application/json'},
{
'userId': userId,
'token': token,
@ -706,7 +708,7 @@
let path = '/auth/register';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'email': email,
'password': password,
@ -742,7 +744,7 @@
let path = '/auth/register/confirm';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'userId': userId,
'token': token
@ -773,7 +775,7 @@
let path = '/auth/register/confirm/resend';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'redirect': redirect
});
@ -806,7 +808,7 @@
let path = '/oauth/callback/{provider}/{projectId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{provider}', 'g'), provider);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'code': code,
'state': state
@ -831,7 +833,7 @@
let path = '/oauth/{provider}'.replace(new RegExp('{provider}', 'g'), provider);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'success': success,
'failure': failure
@ -864,7 +866,7 @@
let path = '/avatars/browsers/{code}'.replace(new RegExp('{code}', 'g'), code);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'width': width,
'height': height,
@ -895,7 +897,7 @@
let path = '/avatars/credit-cards/{code}'.replace(new RegExp('{code}', 'g'), code);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'width': width,
'height': height,
@ -921,7 +923,7 @@
let path = '/avatars/favicon';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'url': url
});
@ -949,7 +951,7 @@
let path = '/avatars/flags/{code}'.replace(new RegExp('{code}', 'g'), code);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'width': width,
'height': height,
@ -978,7 +980,7 @@
let path = '/avatars/qr';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'text': text,
'size': size,
@ -1009,7 +1011,7 @@
let path = '/database';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'search': search,
'limit': limit,
@ -1038,7 +1040,7 @@
let path = '/database';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'name': name,
'read': read,
@ -1076,7 +1078,7 @@
let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'filters': filters,
'offset': offset,
@ -1117,7 +1119,7 @@
let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId);
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'data': data,
'read': read,
@ -1153,7 +1155,7 @@
let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId);
return http
.put(path, {'Content-type': 'application/json'},
.put(path, {'content-type': 'application/json'},
{
'name': name,
'read': read,
@ -1180,7 +1182,7 @@
let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -1208,7 +1210,7 @@
let path = '/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1241,7 +1243,7 @@
let path = '/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId);
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'data': data,
'read': read,
@ -1273,7 +1275,7 @@
let path = '/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
}
@ -1296,7 +1298,7 @@
let path = '/locale';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1314,7 +1316,7 @@
let path = '/locale/countries';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1332,7 +1334,7 @@
let path = '/locale/countries/eu';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1350,7 +1352,7 @@
let path = '/locale/countries/phones';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
}
@ -1376,7 +1378,7 @@
let path = '/storage/files';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'search': search,
'limit': limit,
@ -1407,7 +1409,7 @@
let path = '/storage/files';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'files': files,
'read': read,
@ -1434,7 +1436,7 @@
let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1457,7 +1459,7 @@
let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -1481,7 +1483,7 @@
let path = '/storage/files/{fileId}/download'.replace(new RegExp('{fileId}', 'g'), fileId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1511,7 +1513,7 @@
let path = '/storage/files/{fileId}/preview'.replace(new RegExp('{fileId}', 'g'), fileId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'width': width,
'height': height,
@ -1540,7 +1542,7 @@
let path = '/storage/files/{fileId}/view'.replace(new RegExp('{fileId}', 'g'), fileId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'as': as
});
@ -1567,7 +1569,7 @@
let path = '/teams';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'search': search,
'limit': limit,
@ -1597,7 +1599,7 @@
let path = '/teams';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'name': name,
'roles': roles
@ -1622,7 +1624,7 @@
let path = '/teams/{teamId}'.replace(new RegExp('{teamId}', 'g'), teamId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1650,7 +1652,7 @@
let path = '/teams/{teamId}'.replace(new RegExp('{teamId}', 'g'), teamId);
return http
.put(path, {'Content-type': 'application/json'},
.put(path, {'content-type': 'application/json'},
{
'name': name
});
@ -1674,7 +1676,7 @@
let path = '/teams/{teamId}'.replace(new RegExp('{teamId}', 'g'), teamId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -1697,7 +1699,7 @@
let path = '/teams/{teamId}/members'.replace(new RegExp('{teamId}', 'g'), teamId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1747,7 +1749,7 @@
let path = '/teams/{teamId}/memberships'.replace(new RegExp('{teamId}', 'g'), teamId);
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'email': email,
'name': name,
@ -1779,7 +1781,7 @@
let path = '/teams/{teamId}/memberships/{inviteId}'.replace(new RegExp('{teamId}', 'g'), teamId).replace(new RegExp('{inviteId}', 'g'), inviteId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -1812,7 +1814,7 @@
let path = '/teams/{teamId}/memberships/{inviteId}/resend'.replace(new RegExp('{teamId}', 'g'), teamId).replace(new RegExp('{inviteId}', 'g'), inviteId);
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'redirect': redirect
});
@ -1866,7 +1868,7 @@
let path = '/teams/{teamId}/memberships/{inviteId}/status'.replace(new RegExp('{teamId}', 'g'), teamId).replace(new RegExp('{inviteId}', 'g'), inviteId);
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'userId': userId,
'secret': secret,
@ -1895,7 +1897,7 @@
let path = '/users';
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
'search': search,
'limit': limit,
@ -1927,7 +1929,7 @@
let path = '/users';
return http
.post(path, {'Content-type': 'application/json'},
.post(path, {'content-type': 'application/json'},
{
'email': email,
'password': password,
@ -1952,7 +1954,7 @@
let path = '/users/{userId}'.replace(new RegExp('{userId}', 'g'), userId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1974,7 +1976,7 @@
let path = '/users/{userId}/logs'.replace(new RegExp('{userId}', 'g'), userId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -1996,7 +1998,7 @@
let path = '/users/{userId}/prefs'.replace(new RegExp('{userId}', 'g'), userId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -2018,7 +2020,7 @@
let path = '/users/{userId}/sessions'.replace(new RegExp('{userId}', 'g'), userId);
return http
.get(path, {'Content-type': 'application/json'},
.get(path, {'content-type': 'application/json'},
{
});
},
@ -2040,7 +2042,7 @@
let path = '/users/{userId}/sessions'.replace(new RegExp('{userId}', 'g'), userId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
});
},
@ -2067,7 +2069,7 @@
let path = '/users/{userId}/sessions/:session'.replace(new RegExp('{userId}', 'g'), userId);
return http
.delete(path, {'Content-type': 'application/json'},
.delete(path, {'content-type': 'application/json'},
{
'sessionId': sessionId
});
@ -2095,7 +2097,7 @@
let path = '/users/{userId}/status'.replace(new RegExp('{userId}', 'g'), userId);
return http
.patch(path, {'Content-type': 'application/json'},
.patch(path, {'content-type': 'application/json'},
{
'status': status
});

View file

@ -1,9 +1,9 @@
(function(window){window.Appwrite=function(){let config={endpoint:'https://appwrite.test/v1',project:'',key:'',locale:'',mode:'',};let setEndpoint=function(endpoint){config.endpoint=endpoint;return this};let setProject=function(value){http.addGlobalHeader('X-Appwrite-Project',value);config.project=value;return this};let setKey=function(value){http.addGlobalHeader('X-Appwrite-Key',value);config.key=value;return this};let setLocale=function(value){http.addGlobalHeader('X-Appwrite-Locale',value);config.locale=value;return this};let setMode=function(value){http.addGlobalHeader('X-Appwrite-Mode',value);config.mode=value;return this};let http=function(document){let globalParams=[],globalHeaders=[];let addParam=function(url,param,value){let a=document.createElement('a'),regex=/(?:\?|&|&)+([^=]+)(?:=([^&]*))*/g;let match,str=[];a.href=url;param=encodeURIComponent(param);while(match=regex.exec(a.search))if(param!==match[1])str.push(match[1]+(match[2]?"="+match[2]:""));str.push(param+(value?"="+encodeURIComponent(value):""));a.search=str.join("&");return a.href};let buildQuery=function(params){let str=[];for(let p in params){if(params.hasOwnProperty(p)){str.push(encodeURIComponent(p)+"="+encodeURIComponent(params[p]))}}
return str.join("&")};let addGlobalHeader=function(key,value){globalHeaders[key]={key:key.toLowerCase(),value:value.toLowerCase()}};let addGlobalParam=function(key,value){globalParams.push({key:key,value:value})};addGlobalHeader('x-sdk-version','appwrite:javascript:v1.0.0');addGlobalHeader('content-type','');let call=function(method,path,headers={},params={},progress=null){let i;path=config.endpoint+path;if(-1===['GET','POST','PUT','DELETE','TRACE','HEAD','OPTIONS','CONNECT','PATCH'].indexOf(method)){throw new Error('var method must contain a valid HTTP method name')}
return str.join("&")};let addGlobalHeader=function(key,value){globalHeaders[key]={key:key.toLowerCase(),value:value.toLowerCase()}};let addGlobalParam=function(key,value){globalParams.push({key:key,value:value})};addGlobalHeader('x-sdk-version','appwrite:javascript:v1.0.1');addGlobalHeader('content-type','');let call=function(method,path,headers={},params={},progress=null){let i;path=config.endpoint+path;if(-1===['GET','POST','PUT','DELETE','TRACE','HEAD','OPTIONS','CONNECT','PATCH'].indexOf(method)){throw new Error('var method must contain a valid HTTP method name')}
if(typeof path!=='string'){throw new Error('var path must be of type string')}
if(typeof headers!=='object'){throw new Error('var headers must be of type object')}
for(i=0;i<globalParams.length;i++){path=addParam(path,globalParams[i].key,globalParams[i].value)}
for(let key in globalHeaders){if(globalHeaders.hasOwnProperty(key)){headers[globalHeaders[key].key]=globalHeaders[key].value}}
for(let key in globalHeaders){if(globalHeaders.hasOwnProperty(key)){if(!headers[globalHeaders[key].key]){headers[globalHeaders[key].key]=globalHeaders[key].value}}}
if(method==='GET'){for(let param in params){if(param.hasOwnProperty(key)){path=addParam(path,key,params[key])}}}
switch(headers['content-type']){case 'application/json':params=JSON.stringify(params);break;case 'multipart/form-data':let formData=new FormData();for(let param in params){if(param.hasOwnProperty(key)){formData.append(key,param[key])}}
params=formData;break}
@ -11,84 +11,84 @@ return new Promise(function(resolve,reject){let request=new XMLHttpRequest(),key
request.onload=function(){if(4===request.readyState&&399>=request.status){let data=request.response;let contentType=this.getResponseHeader('content-type');contentType=contentType.substring(0,contentType.indexOf(';'));switch(contentType){case 'application/json':data=JSON.parse(data);break}
resolve(data)}else{reject(new Error(request.statusText))}};if(progress){request.addEventListener('progress',progress);request.upload.addEventListener('progress',progress,!1)}
request.onerror=function(){reject(new Error("Network Error"))};request.send(params)})};return{'get':function(path,headers={},params={}){return call('GET',path+((params.length>0)?'?'+buildQuery(params):''),headers,{})},'post':function(path,headers={},params={},progress=null){return call('POST',path,headers,params,progress)},'put':function(path,headers={},params={},progress=null){return call('PUT',headers,params,progress)},'patch':function(path,headers={},params={},progress=null){return call('PATCH',path,headers,params,progress)},'delete':function(path,headers={},params={},progress=null){return call('DELETE',path,headers,params,progress)},'addGlobalParam':addGlobalParam,'addGlobalHeader':addGlobalHeader}}(window.document);let iframe=function(method,url,params){let form=document.createElement('form');form.setAttribute('method',method);form.setAttribute('action',url);for(let key in params){if(params.hasOwnProperty(key)){let hiddenField=document.createElement("input");hiddenField.setAttribute("type","hidden");hiddenField.setAttribute("name",key);hiddenField.setAttribute("value",params[key]);form.appendChild(hiddenField)}}
document.body.appendChild(form);return form.submit()};let account={get:function(){let path='/account';return http.get(path,{'Content-type':'application/json'},{})},delete:function(){let path='/account';return http.delete(path,{'Content-type':'application/json'},{})},updateEmail:function(email,password){if(email===undefined){throw new Error('Missing required parameter: "email"')}
document.body.appendChild(form);return form.submit()};let account={get:function(){let path='/account';return http.get(path,{'content-type':'application/json'},{})},delete:function(){let path='/account';return http.delete(path,{'content-type':'application/json'},{})},updateEmail:function(email,password){if(email===undefined){throw new Error('Missing required parameter: "email"')}
if(password===undefined){throw new Error('Missing required parameter: "password"')}
let path='/account/email';return http.patch(path,{'Content-type':'application/json'},{'email':email,'password':password})},updateName:function(name){if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/account/name';return http.patch(path,{'Content-type':'application/json'},{'name':name})},updatePassword:function(password,oldPassword){if(password===undefined){throw new Error('Missing required parameter: "password"')}
let path='/account/email';return http.patch(path,{'content-type':'application/json'},{'email':email,'password':password})},updateName:function(name){if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/account/name';return http.patch(path,{'content-type':'application/json'},{'name':name})},updatePassword:function(password,oldPassword){if(password===undefined){throw new Error('Missing required parameter: "password"')}
if(oldPassword===undefined){throw new Error('Missing required parameter: "oldPassword"')}
let path='/account/password';return http.patch(path,{'Content-type':'application/json'},{'password':password,'old-password':oldPassword})},getPrefs:function(){let path='/account/prefs';return http.get(path,{'Content-type':'application/json'},{})},updatePrefs:function(prefs){if(prefs===undefined){throw new Error('Missing required parameter: "prefs"')}
let path='/account/prefs';return http.patch(path,{'Content-type':'application/json'},{'prefs':prefs})},getSecurity:function(){let path='/account/security';return http.get(path,{'Content-type':'application/json'},{})},getSessions:function(){let path='/account/sessions';return http.get(path,{'Content-type':'application/json'},{})}};let auth={login:function(email,password,success='',failure=''){if(email===undefined){throw new Error('Missing required parameter: "email"')}
let path='/account/password';return http.patch(path,{'content-type':'application/json'},{'password':password,'old-password':oldPassword})},getPrefs:function(){let path='/account/prefs';return http.get(path,{'content-type':'application/json'},{})},updatePrefs:function(prefs){if(prefs===undefined){throw new Error('Missing required parameter: "prefs"')}
let path='/account/prefs';return http.patch(path,{'content-type':'application/json'},{'prefs':prefs})},getSecurity:function(){let path='/account/security';return http.get(path,{'content-type':'application/json'},{})},getSessions:function(){let path='/account/sessions';return http.get(path,{'content-type':'application/json'},{})}};let auth={login:function(email,password,success='',failure=''){if(email===undefined){throw new Error('Missing required parameter: "email"')}
if(password===undefined){throw new Error('Missing required parameter: "password"')}
let path='/auth/login';return http.post(path,{'Content-type':'application/json'},{'email':email,'password':password,'success':success,'failure':failure})},logout:function(){let path='/auth/logout';return http.delete(path,{'Content-type':'application/json'},{})},logoutBySession:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/auth/logout/{userId}'.replace(new RegExp('{userId}','g'),userId);return http.delete(path,{'Content-type':'application/json'},{})},recovery:function(email,redirect){if(email===undefined){throw new Error('Missing required parameter: "email"')}
let path='/auth/login';return http.post(path,{'content-type':'application/json'},{'email':email,'password':password,'success':success,'failure':failure})},logout:function(){let path='/auth/logout';return http.delete(path,{'content-type':'application/json'},{})},logoutBySession:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/auth/logout/{userId}'.replace(new RegExp('{userId}','g'),userId);return http.delete(path,{'content-type':'application/json'},{})},recovery:function(email,redirect){if(email===undefined){throw new Error('Missing required parameter: "email"')}
if(redirect===undefined){throw new Error('Missing required parameter: "redirect"')}
let path='/auth/recovery';return http.post(path,{'Content-type':'application/json'},{'email':email,'redirect':redirect})},recoveryReset:function(userId,token,passwordA,passwordB){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/auth/recovery';return http.post(path,{'content-type':'application/json'},{'email':email,'redirect':redirect})},recoveryReset:function(userId,token,passwordA,passwordB){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
if(token===undefined){throw new Error('Missing required parameter: "token"')}
if(passwordA===undefined){throw new Error('Missing required parameter: "passwordA"')}
if(passwordB===undefined){throw new Error('Missing required parameter: "passwordB"')}
let path='/auth/recovery/reset';return http.put(path,{'Content-type':'application/json'},{'userId':userId,'token':token,'password-a':passwordA,'password-b':passwordB})},register:function(email,password,redirect,name='',success='',failure=''){if(email===undefined){throw new Error('Missing required parameter: "email"')}
let path='/auth/recovery/reset';return http.put(path,{'content-type':'application/json'},{'userId':userId,'token':token,'password-a':passwordA,'password-b':passwordB})},register:function(email,password,redirect,name='',success='',failure=''){if(email===undefined){throw new Error('Missing required parameter: "email"')}
if(password===undefined){throw new Error('Missing required parameter: "password"')}
if(redirect===undefined){throw new Error('Missing required parameter: "redirect"')}
let path='/auth/register';return http.post(path,{'Content-type':'application/json'},{'email':email,'password':password,'name':name,'redirect':redirect,'success':success,'failure':failure})},confirm:function(userId,token){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/auth/register';return http.post(path,{'content-type':'application/json'},{'email':email,'password':password,'name':name,'redirect':redirect,'success':success,'failure':failure})},confirm:function(userId,token){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
if(token===undefined){throw new Error('Missing required parameter: "token"')}
let path='/auth/register/confirm';return http.post(path,{'Content-type':'application/json'},{'userId':userId,'token':token})},confirmResend:function(redirect){if(redirect===undefined){throw new Error('Missing required parameter: "redirect"')}
let path='/auth/register/confirm/resend';return http.post(path,{'Content-type':'application/json'},{'redirect':redirect})},oauthCallback:function(projectId,provider,code,state=''){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
let path='/auth/register/confirm';return http.post(path,{'content-type':'application/json'},{'userId':userId,'token':token})},confirmResend:function(redirect){if(redirect===undefined){throw new Error('Missing required parameter: "redirect"')}
let path='/auth/register/confirm/resend';return http.post(path,{'content-type':'application/json'},{'redirect':redirect})},oauthCallback:function(projectId,provider,code,state=''){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
if(provider===undefined){throw new Error('Missing required parameter: "provider"')}
if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/oauth/callback/{provider}/{projectId}'.replace(new RegExp('{projectId}','g'),projectId).replace(new RegExp('{provider}','g'),provider);return http.get(path,{'Content-type':'application/json'},{'code':code,'state':state})},oauth:function(provider,success='',failure=''){if(provider===undefined){throw new Error('Missing required parameter: "provider"')}
let path='/oauth/{provider}'.replace(new RegExp('{provider}','g'),provider);return http.get(path,{'Content-type':'application/json'},{'success':success,'failure':failure})}};let avatars={getBrowser:function(code,width=100,height=100,quality=100){if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/avatars/browsers/{code}'.replace(new RegExp('{code}','g'),code);return http.get(path,{'Content-type':'application/json'},{'width':width,'height':height,'quality':quality})},getCreditCard:function(code,width=100,height=100,quality=100){if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/avatars/credit-cards/{code}'.replace(new RegExp('{code}','g'),code);return http.get(path,{'Content-type':'application/json'},{'width':width,'height':height,'quality':quality})},getFavicon:function(url){if(url===undefined){throw new Error('Missing required parameter: "url"')}
let path='/avatars/favicon';return http.get(path,{'Content-type':'application/json'},{'url':url})},getFlag:function(code,width=100,height=100,quality=100){if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/avatars/flags/{code}'.replace(new RegExp('{code}','g'),code);return http.get(path,{'Content-type':'application/json'},{'width':width,'height':height,'quality':quality})},getQR:function(text,size=400,margin=1,download=0){if(text===undefined){throw new Error('Missing required parameter: "text"')}
let path='/avatars/qr';return http.get(path,{'Content-type':'application/json'},{'text':text,'size':size,'margin':margin,'download':download})}};let database={listCollections:function(search='',limit=25,offset=0,orderType='ASC'){let path='/database';return http.get(path,{'Content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createCollection:function(name,read=[],write=[],rules=[]){if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/database';return http.post(path,{'Content-type':'application/json'},{'name':name,'read':read,'write':write,'rules':rules})},listDocuments:function(collectionId,filters=[],offset=0,limit=50,orderField='$uid',orderType='ASC',orderCast='string',search='',first=0,last=0){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.get(path,{'Content-type':'application/json'},{'filters':filters,'offset':offset,'limit':limit,'order-field':orderField,'order-type':orderType,'order-cast':orderCast,'search':search,'first':first,'last':last})},createDocument:function(collectionId,data,read=[],write=[],parentDocument='',parentProperty='',parentPropertyType='assign'){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/oauth/callback/{provider}/{projectId}'.replace(new RegExp('{projectId}','g'),projectId).replace(new RegExp('{provider}','g'),provider);return http.get(path,{'content-type':'application/json'},{'code':code,'state':state})},oauth:function(provider,success='',failure=''){if(provider===undefined){throw new Error('Missing required parameter: "provider"')}
let path='/oauth/{provider}'.replace(new RegExp('{provider}','g'),provider);return http.get(path,{'content-type':'application/json'},{'success':success,'failure':failure})}};let avatars={getBrowser:function(code,width=100,height=100,quality=100){if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/avatars/browsers/{code}'.replace(new RegExp('{code}','g'),code);return http.get(path,{'content-type':'application/json'},{'width':width,'height':height,'quality':quality})},getCreditCard:function(code,width=100,height=100,quality=100){if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/avatars/credit-cards/{code}'.replace(new RegExp('{code}','g'),code);return http.get(path,{'content-type':'application/json'},{'width':width,'height':height,'quality':quality})},getFavicon:function(url){if(url===undefined){throw new Error('Missing required parameter: "url"')}
let path='/avatars/favicon';return http.get(path,{'content-type':'application/json'},{'url':url})},getFlag:function(code,width=100,height=100,quality=100){if(code===undefined){throw new Error('Missing required parameter: "code"')}
let path='/avatars/flags/{code}'.replace(new RegExp('{code}','g'),code);return http.get(path,{'content-type':'application/json'},{'width':width,'height':height,'quality':quality})},getQR:function(text,size=400,margin=1,download=0){if(text===undefined){throw new Error('Missing required parameter: "text"')}
let path='/avatars/qr';return http.get(path,{'content-type':'application/json'},{'text':text,'size':size,'margin':margin,'download':download})}};let database={listCollections:function(search='',limit=25,offset=0,orderType='ASC'){let path='/database';return http.get(path,{'content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createCollection:function(name,read=[],write=[],rules=[]){if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/database';return http.post(path,{'content-type':'application/json'},{'name':name,'read':read,'write':write,'rules':rules})},listDocuments:function(collectionId,filters=[],offset=0,limit=50,orderField='$uid',orderType='ASC',orderCast='string',search='',first=0,last=0){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.get(path,{'content-type':'application/json'},{'filters':filters,'offset':offset,'limit':limit,'order-field':orderField,'order-type':orderType,'order-cast':orderCast,'search':search,'first':first,'last':last})},createDocument:function(collectionId,data,read=[],write=[],parentDocument='',parentProperty='',parentPropertyType='assign'){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
if(data===undefined){throw new Error('Missing required parameter: "data"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.post(path,{'Content-type':'application/json'},{'data':data,'read':read,'write':write,'parentDocument':parentDocument,'parentProperty':parentProperty,'parentPropertyType':parentPropertyType})},updateCollection:function(collectionId,name,read=[],write=[],rules=[]){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.post(path,{'content-type':'application/json'},{'data':data,'read':read,'write':write,'parentDocument':parentDocument,'parentProperty':parentProperty,'parentPropertyType':parentPropertyType})},updateCollection:function(collectionId,name,read=[],write=[],rules=[]){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.put(path,{'Content-type':'application/json'},{'name':name,'read':read,'write':write,'rules':rules})},deleteCollection:function(collectionId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.delete(path,{'Content-type':'application/json'},{})},getDocument:function(collectionId,documentId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.put(path,{'content-type':'application/json'},{'name':name,'read':read,'write':write,'rules':rules})},deleteCollection:function(collectionId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}'.replace(new RegExp('{collectionId}','g'),collectionId);return http.delete(path,{'content-type':'application/json'},{})},getDocument:function(collectionId,documentId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
if(documentId===undefined){throw new Error('Missing required parameter: "documentId"')}
let path='/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.get(path,{'Content-type':'application/json'},{})},updateDocument:function(collectionId,documentId,data,read=[],write=[]){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.get(path,{'content-type':'application/json'},{})},updateDocument:function(collectionId,documentId,data,read=[],write=[]){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
if(documentId===undefined){throw new Error('Missing required parameter: "documentId"')}
if(data===undefined){throw new Error('Missing required parameter: "data"')}
let path='/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.patch(path,{'Content-type':'application/json'},{'data':data,'read':read,'write':write})},deleteDocument:function(collectionId,documentId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
let path='/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.patch(path,{'content-type':'application/json'},{'data':data,'read':read,'write':write})},deleteDocument:function(collectionId,documentId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
if(documentId===undefined){throw new Error('Missing required parameter: "documentId"')}
let path='/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.delete(path,{'Content-type':'application/json'},{})}};let locale={getLocale:function(){let path='/locale';return http.get(path,{'Content-type':'application/json'},{})},getCountries:function(){let path='/locale/countries';return http.get(path,{'Content-type':'application/json'},{})},getCountriesEU:function(){let path='/locale/countries/eu';return http.get(path,{'Content-type':'application/json'},{})},getCountriesPhones:function(){let path='/locale/countries/phones';return http.get(path,{'Content-type':'application/json'},{})}};let storage={listFiles:function(search='',limit=25,offset=0,orderType='ASC'){let path='/storage/files';return http.get(path,{'Content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createFile:function(files,read=[],write=[],folderId=''){if(files===undefined){throw new Error('Missing required parameter: "files"')}
let path='/storage/files';return http.post(path,{'Content-type':'application/json'},{'files':files,'read':read,'write':write,'folderId':folderId})},getFile:function(fileId){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'Content-type':'application/json'},{})},deleteFile:function(fileId){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}'.replace(new RegExp('{fileId}','g'),fileId);return http.delete(path,{'Content-type':'application/json'},{})},getFileDownload:function(fileId){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}/download'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'Content-type':'application/json'},{})},getFilePreview:function(fileId,width=0,height=0,quality=100,background='',output=''){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}/preview'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'Content-type':'application/json'},{'width':width,'height':height,'quality':quality,'background':background,'output':output})},getFileView:function(fileId,as=''){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}/view'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'Content-type':'application/json'},{'as':as})}};let teams={listTeams:function(search='',limit=25,offset=0,orderType='ASC'){let path='/teams';return http.get(path,{'Content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createTeam:function(name,roles=["owner"]){if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/teams';return http.post(path,{'Content-type':'application/json'},{'name':name,'roles':roles})},getTeam:function(teamId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}'.replace(new RegExp('{teamId}','g'),teamId);return http.get(path,{'Content-type':'application/json'},{})},updateTeam:function(teamId,name){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/database/{collectionId}/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.delete(path,{'content-type':'application/json'},{})}};let locale={getLocale:function(){let path='/locale';return http.get(path,{'content-type':'application/json'},{})},getCountries:function(){let path='/locale/countries';return http.get(path,{'content-type':'application/json'},{})},getCountriesEU:function(){let path='/locale/countries/eu';return http.get(path,{'content-type':'application/json'},{})},getCountriesPhones:function(){let path='/locale/countries/phones';return http.get(path,{'content-type':'application/json'},{})}};let storage={listFiles:function(search='',limit=25,offset=0,orderType='ASC'){let path='/storage/files';return http.get(path,{'content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createFile:function(files,read=[],write=[],folderId=''){if(files===undefined){throw new Error('Missing required parameter: "files"')}
let path='/storage/files';return http.post(path,{'content-type':'application/json'},{'files':files,'read':read,'write':write,'folderId':folderId})},getFile:function(fileId){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'content-type':'application/json'},{})},deleteFile:function(fileId){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}'.replace(new RegExp('{fileId}','g'),fileId);return http.delete(path,{'content-type':'application/json'},{})},getFileDownload:function(fileId){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}/download'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'content-type':'application/json'},{})},getFilePreview:function(fileId,width=0,height=0,quality=100,background='',output=''){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}/preview'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'content-type':'application/json'},{'width':width,'height':height,'quality':quality,'background':background,'output':output})},getFileView:function(fileId,as=''){if(fileId===undefined){throw new Error('Missing required parameter: "fileId"')}
let path='/storage/files/{fileId}/view'.replace(new RegExp('{fileId}','g'),fileId);return http.get(path,{'content-type':'application/json'},{'as':as})}};let teams={listTeams:function(search='',limit=25,offset=0,orderType='ASC'){let path='/teams';return http.get(path,{'content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createTeam:function(name,roles=["owner"]){if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/teams';return http.post(path,{'content-type':'application/json'},{'name':name,'roles':roles})},getTeam:function(teamId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}'.replace(new RegExp('{teamId}','g'),teamId);return http.get(path,{'content-type':'application/json'},{})},updateTeam:function(teamId,name){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
if(name===undefined){throw new Error('Missing required parameter: "name"')}
let path='/teams/{teamId}'.replace(new RegExp('{teamId}','g'),teamId);return http.put(path,{'Content-type':'application/json'},{'name':name})},deleteTeam:function(teamId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}'.replace(new RegExp('{teamId}','g'),teamId);return http.delete(path,{'Content-type':'application/json'},{})},getTeamMembers:function(teamId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}/members'.replace(new RegExp('{teamId}','g'),teamId);return http.get(path,{'Content-type':'application/json'},{})},createTeamMembership:function(teamId,email,roles,redirect,name=''){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}'.replace(new RegExp('{teamId}','g'),teamId);return http.put(path,{'content-type':'application/json'},{'name':name})},deleteTeam:function(teamId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}'.replace(new RegExp('{teamId}','g'),teamId);return http.delete(path,{'content-type':'application/json'},{})},getTeamMembers:function(teamId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}/members'.replace(new RegExp('{teamId}','g'),teamId);return http.get(path,{'content-type':'application/json'},{})},createTeamMembership:function(teamId,email,roles,redirect,name=''){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
if(email===undefined){throw new Error('Missing required parameter: "email"')}
if(roles===undefined){throw new Error('Missing required parameter: "roles"')}
if(redirect===undefined){throw new Error('Missing required parameter: "redirect"')}
let path='/teams/{teamId}/memberships'.replace(new RegExp('{teamId}','g'),teamId);return http.post(path,{'Content-type':'application/json'},{'email':email,'name':name,'roles':roles,'redirect':redirect})},deleteTeamMembership:function(teamId,inviteId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}/memberships'.replace(new RegExp('{teamId}','g'),teamId);return http.post(path,{'content-type':'application/json'},{'email':email,'name':name,'roles':roles,'redirect':redirect})},deleteTeamMembership:function(teamId,inviteId){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
if(inviteId===undefined){throw new Error('Missing required parameter: "inviteId"')}
let path='/teams/{teamId}/memberships/{inviteId}'.replace(new RegExp('{teamId}','g'),teamId).replace(new RegExp('{inviteId}','g'),inviteId);return http.delete(path,{'Content-type':'application/json'},{})},createTeamMembershipResend:function(teamId,inviteId,redirect){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}/memberships/{inviteId}'.replace(new RegExp('{teamId}','g'),teamId).replace(new RegExp('{inviteId}','g'),inviteId);return http.delete(path,{'content-type':'application/json'},{})},createTeamMembershipResend:function(teamId,inviteId,redirect){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
if(inviteId===undefined){throw new Error('Missing required parameter: "inviteId"')}
if(redirect===undefined){throw new Error('Missing required parameter: "redirect"')}
let path='/teams/{teamId}/memberships/{inviteId}/resend'.replace(new RegExp('{teamId}','g'),teamId).replace(new RegExp('{inviteId}','g'),inviteId);return http.post(path,{'Content-type':'application/json'},{'redirect':redirect})},updateTeamMembershipStatus:function(teamId,inviteId,userId,secret,success='',failure=''){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
let path='/teams/{teamId}/memberships/{inviteId}/resend'.replace(new RegExp('{teamId}','g'),teamId).replace(new RegExp('{inviteId}','g'),inviteId);return http.post(path,{'content-type':'application/json'},{'redirect':redirect})},updateTeamMembershipStatus:function(teamId,inviteId,userId,secret,success='',failure=''){if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
if(inviteId===undefined){throw new Error('Missing required parameter: "inviteId"')}
if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
if(secret===undefined){throw new Error('Missing required parameter: "secret"')}
let path='/teams/{teamId}/memberships/{inviteId}/status'.replace(new RegExp('{teamId}','g'),teamId).replace(new RegExp('{inviteId}','g'),inviteId);return http.patch(path,{'Content-type':'application/json'},{'userId':userId,'secret':secret,'success':success,'failure':failure})}};let users={listUsers:function(search='',limit=25,offset=0,orderType='ASC'){let path='/users';return http.get(path,{'Content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createUser:function(email,password,name=''){if(email===undefined){throw new Error('Missing required parameter: "email"')}
let path='/teams/{teamId}/memberships/{inviteId}/status'.replace(new RegExp('{teamId}','g'),teamId).replace(new RegExp('{inviteId}','g'),inviteId);return http.patch(path,{'content-type':'application/json'},{'userId':userId,'secret':secret,'success':success,'failure':failure})}};let users={listUsers:function(search='',limit=25,offset=0,orderType='ASC'){let path='/users';return http.get(path,{'content-type':'application/json'},{'search':search,'limit':limit,'offset':offset,'orderType':orderType})},createUser:function(email,password,name=''){if(email===undefined){throw new Error('Missing required parameter: "email"')}
if(password===undefined){throw new Error('Missing required parameter: "password"')}
let path='/users';return http.post(path,{'Content-type':'application/json'},{'email':email,'password':password,'name':name})},getUser:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'Content-type':'application/json'},{})},getUserLogs:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/logs'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'Content-type':'application/json'},{})},getUserPrefs:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/prefs'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'Content-type':'application/json'},{})},getUserSessions:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/sessions'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'Content-type':'application/json'},{})},deleteUserSessions:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/sessions'.replace(new RegExp('{userId}','g'),userId);return http.delete(path,{'Content-type':'application/json'},{})},deleteUsersSession:function(userId,sessionId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users';return http.post(path,{'content-type':'application/json'},{'email':email,'password':password,'name':name})},getUser:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'content-type':'application/json'},{})},getUserLogs:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/logs'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'content-type':'application/json'},{})},getUserPrefs:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/prefs'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'content-type':'application/json'},{})},getUserSessions:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/sessions'.replace(new RegExp('{userId}','g'),userId);return http.get(path,{'content-type':'application/json'},{})},deleteUserSessions:function(userId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/sessions'.replace(new RegExp('{userId}','g'),userId);return http.delete(path,{'content-type':'application/json'},{})},deleteUsersSession:function(userId,sessionId){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
if(sessionId===undefined){throw new Error('Missing required parameter: "sessionId"')}
let path='/users/{userId}/sessions/:session'.replace(new RegExp('{userId}','g'),userId);return http.delete(path,{'Content-type':'application/json'},{'sessionId':sessionId})},updateUserStatus:function(userId,status){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
let path='/users/{userId}/sessions/:session'.replace(new RegExp('{userId}','g'),userId);return http.delete(path,{'content-type':'application/json'},{'sessionId':sessionId})},updateUserStatus:function(userId,status){if(userId===undefined){throw new Error('Missing required parameter: "userId"')}
if(status===undefined){throw new Error('Missing required parameter: "status"')}
let path='/users/{userId}/status'.replace(new RegExp('{userId}','g'),userId);return http.patch(path,{'Content-type':'application/json'},{'status':status})}};return{setEndpoint:setEndpoint,setProject:setProject,setKey:setKey,setLocale:setLocale,setMode:setMode,account:account,auth:auth,avatars:avatars,database:database,locale:locale,storage:storage,teams:teams,users:users}}})(window)
let path='/users/{userId}/status'.replace(new RegExp('{userId}','g'),userId);return http.patch(path,{'content-type':'application/json'},{'status':status})}};return{setEndpoint:setEndpoint,setProject:setProject,setKey:setKey,setLocale:setLocale,setMode:setMode,account:account,auth:auth,avatars:avatars,database:database,locale:locale,storage:storage,teams:teams,users:users}}})(window)

View file

@ -46,7 +46,7 @@ $cli
'gitUserName' => 'appwrite',
],
'js' => [
'version' => 'v1.0.0',
'version' => 'v1.0.1',
'result' => __DIR__ . '/../sdks/js/',
'gitURL' => 'https://github.com/appwrite/sdk-for-js.git',
'gitRepo' => 'git@github.com:appwrite/sdk-for-js.git',

146
composer.lock generated
View file

@ -57,12 +57,12 @@
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "40a69ef4a10b8d80c98d30622778a89ab809f866"
"reference": "e733a59a95dee3c41c608e8844ed77c2bb475deb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/40a69ef4a10b8d80c98d30622778a89ab809f866",
"reference": "40a69ef4a10b8d80c98d30622778a89ab809f866",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/e733a59a95dee3c41c608e8844ed77c2bb475deb",
"reference": "e733a59a95dee3c41c608e8844ed77c2bb475deb",
"shasum": ""
},
"require": {
@ -94,7 +94,7 @@
}
],
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"time": "2019-06-22 18:53:17"
"time": "2019-07-04 23:09:04"
},
{
"name": "bacon/bacon-qr-code",
@ -690,12 +690,12 @@
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
"reference": "e6d006f1ced100d81755966f09625d71ce6a7dca"
"reference": "17d36ed176c998839582c739ce0753381598edf0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/e6d006f1ced100d81755966f09625d71ce6a7dca",
"reference": "e6d006f1ced100d81755966f09625d71ce6a7dca",
"url": "https://api.github.com/repos/guzzle/promises/zipball/17d36ed176c998839582c739ce0753381598edf0",
"reference": "17d36ed176c998839582c739ce0753381598edf0",
"shasum": ""
},
"require": {
@ -733,20 +733,20 @@
"keywords": [
"promise"
],
"time": "2019-06-11 17:44:31"
"time": "2019-07-02 14:54:06"
},
{
"name": "guzzlehttp/psr7",
"version": "dev-master",
"version": "1.x-dev",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "e113254d23b24c548f0b4d8f671828c4eeb876d2"
"reference": "239400de7a173fe9901b9ac7c06497751f00727a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/e113254d23b24c548f0b4d8f671828c4eeb876d2",
"reference": "e113254d23b24c548f0b4d8f671828c4eeb876d2",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a",
"reference": "239400de7a173fe9901b9ac7c06497751f00727a",
"shasum": ""
},
"require": {
@ -804,7 +804,7 @@
"uri",
"url"
],
"time": "2019-06-17 23:10:01"
"time": "2019-07-01 23:21:34"
},
{
"name": "influxdb/influxdb-php",
@ -1502,12 +1502,12 @@
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "fb5a1f43e653ba4af08333e8ba3f6330b1017d34"
"reference": "e74d477c54a0d3f17764a6f17ea1536170227773"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/fb5a1f43e653ba4af08333e8ba3f6330b1017d34",
"reference": "fb5a1f43e653ba4af08333e8ba3f6330b1017d34",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/e74d477c54a0d3f17764a6f17ea1536170227773",
"reference": "e74d477c54a0d3f17764a6f17ea1536170227773",
"shasum": ""
},
"require": {
@ -1561,7 +1561,7 @@
"keywords": [
"templating"
],
"time": "2019-06-20 11:56:08"
"time": "2019-07-03 18:24:58"
},
{
"name": "utopia-php/abuse",
@ -1850,12 +1850,12 @@
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "fb21dea73761426178f8665f6b567c58fee488ff"
"reference": "7c71fc2932158d00f24f10635bf3b3b8b6ee5b68"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/fb21dea73761426178f8665f6b567c58fee488ff",
"reference": "fb21dea73761426178f8665f6b567c58fee488ff",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/7c71fc2932158d00f24f10635bf3b3b8b6ee5b68",
"reference": "7c71fc2932158d00f24f10635bf3b3b8b6ee5b68",
"shasum": ""
},
"require": {
@ -1898,7 +1898,7 @@
"constructor",
"instantiate"
],
"time": "2019-05-24T18:15:18+00:00"
"time": "2019-07-02T13:37:32+00:00"
},
{
"name": "myclabs/deep-copy",
@ -2334,12 +2334,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
"reference": "80ca798a9fb7b60c6a2169d8c6cad9f00eb3a06a"
"reference": "7f0f29702170e2786b2df813af970135765de6fc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/80ca798a9fb7b60c6a2169d8c6cad9f00eb3a06a",
"reference": "80ca798a9fb7b60c6a2169d8c6cad9f00eb3a06a",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/7f0f29702170e2786b2df813af970135765de6fc",
"reference": "7f0f29702170e2786b2df813af970135765de6fc",
"shasum": ""
},
"require": {
@ -2376,7 +2376,7 @@
"filesystem",
"iterator"
],
"time": "2019-05-24T06:36:01+00:00"
"time": "2019-07-02T07:44:20+00:00"
},
{
"name": "phpunit/php-text-template",
@ -2425,12 +2425,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git",
"reference": "29995fbf33aabda1b53b65ada13737d42ccaf53a"
"reference": "37d2894f3650acccb6e57207e63eb9699c1a82a6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/29995fbf33aabda1b53b65ada13737d42ccaf53a",
"reference": "29995fbf33aabda1b53b65ada13737d42ccaf53a",
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/37d2894f3650acccb6e57207e63eb9699c1a82a6",
"reference": "37d2894f3650acccb6e57207e63eb9699c1a82a6",
"shasum": ""
},
"require": {
@ -2466,7 +2466,7 @@
"keywords": [
"timer"
],
"time": "2019-06-10T14:27:16+00:00"
"time": "2019-07-02T07:42:03+00:00"
},
{
"name": "phpunit/php-token-stream",
@ -2474,12 +2474,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
"reference": "2d574d6767341959316726121431ecb9c4a61037"
"reference": "98831941cc60e07e7e94d4ff000440015f60da67"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/2d574d6767341959316726121431ecb9c4a61037",
"reference": "2d574d6767341959316726121431ecb9c4a61037",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/98831941cc60e07e7e94d4ff000440015f60da67",
"reference": "98831941cc60e07e7e94d4ff000440015f60da67",
"shasum": ""
},
"require": {
@ -2515,7 +2515,7 @@
"keywords": [
"tokenizer"
],
"time": "2019-05-24T06:39:22+00:00"
"time": "2019-07-02T07:43:15+00:00"
},
{
"name": "phpunit/phpunit",
@ -2523,12 +2523,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "1477fe424dc8ba0b252b1262f91f40139e0f889b"
"reference": "08d5f6c49381a45ff22bd0509f3c4f4b004349aa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1477fe424dc8ba0b252b1262f91f40139e0f889b",
"reference": "1477fe424dc8ba0b252b1262f91f40139e0f889b",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/08d5f6c49381a45ff22bd0509f3c4f4b004349aa",
"reference": "08d5f6c49381a45ff22bd0509f3c4f4b004349aa",
"shasum": ""
},
"require": {
@ -2599,7 +2599,7 @@
"testing",
"xunit"
],
"time": "2019-06-20T14:04:28+00:00"
"time": "2019-07-03T16:38:29+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@ -2607,12 +2607,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
"reference": "aa169192fe98c7270af0ec5c57e631094ad930df"
"reference": "5e860800beea5ea4c8590df866338c09c20d3a48"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/aa169192fe98c7270af0ec5c57e631094ad930df",
"reference": "aa169192fe98c7270af0ec5c57e631094ad930df",
"url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e860800beea5ea4c8590df866338c09c20d3a48",
"reference": "5e860800beea5ea4c8590df866338c09c20d3a48",
"shasum": ""
},
"require": {
@ -2644,7 +2644,7 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
"time": "2019-05-24T06:36:34+00:00"
"time": "2019-07-02T07:44:03+00:00"
},
{
"name": "sebastian/comparator",
@ -2652,12 +2652,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
"reference": "6ddb43a0106887320958344fc6e55aa033154b9d"
"reference": "9a1267ac19ecd74163989bcb3e01c5c9587f9e3b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/6ddb43a0106887320958344fc6e55aa033154b9d",
"reference": "6ddb43a0106887320958344fc6e55aa033154b9d",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/9a1267ac19ecd74163989bcb3e01c5c9587f9e3b",
"reference": "9a1267ac19ecd74163989bcb3e01c5c9587f9e3b",
"shasum": ""
},
"require": {
@ -2708,7 +2708,7 @@
"compare",
"equality"
],
"time": "2019-05-24T06:32:56+00:00"
"time": "2019-07-02T07:45:15+00:00"
},
{
"name": "sebastian/diff",
@ -2716,12 +2716,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
"reference": "1d90f91424a056ebd763d7046ee5957d160c1c24"
"reference": "d7e7810940c78f3343420f76adf92dc437b7a557"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/1d90f91424a056ebd763d7046ee5957d160c1c24",
"reference": "1d90f91424a056ebd763d7046ee5957d160c1c24",
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/d7e7810940c78f3343420f76adf92dc437b7a557",
"reference": "d7e7810940c78f3343420f76adf92dc437b7a557",
"shasum": ""
},
"require": {
@ -2764,7 +2764,7 @@
"unidiff",
"unified diff"
],
"time": "2019-05-24T06:38:22+00:00"
"time": "2019-07-02T07:43:30+00:00"
},
{
"name": "sebastian/environment",
@ -2772,12 +2772,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
"reference": "48c9235dc43ce325b15d950f53996da748f2d571"
"reference": "1c91ab3fb351373cf86ead6006ea9daa8e4ce027"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/48c9235dc43ce325b15d950f53996da748f2d571",
"reference": "48c9235dc43ce325b15d950f53996da748f2d571",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1c91ab3fb351373cf86ead6006ea9daa8e4ce027",
"reference": "1c91ab3fb351373cf86ead6006ea9daa8e4ce027",
"shasum": ""
},
"require": {
@ -2817,7 +2817,7 @@
"environment",
"hhvm"
],
"time": "2019-05-24T06:34:26+00:00"
"time": "2019-07-02T07:44:59+00:00"
},
{
"name": "sebastian/exporter",
@ -2825,12 +2825,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
"reference": "cf3a70cdc3af7b80ad571adae1ab718eb578be2b"
"reference": "97cc7aeb5bbc21a59df4e4e9e976831fa1b41fbe"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/cf3a70cdc3af7b80ad571adae1ab718eb578be2b",
"reference": "cf3a70cdc3af7b80ad571adae1ab718eb578be2b",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/97cc7aeb5bbc21a59df4e4e9e976831fa1b41fbe",
"reference": "97cc7aeb5bbc21a59df4e4e9e976831fa1b41fbe",
"shasum": ""
},
"require": {
@ -2884,7 +2884,7 @@
"export",
"exporter"
],
"time": "2019-05-24T06:35:43+00:00"
"time": "2019-07-02T07:44:27+00:00"
},
{
"name": "sebastian/global-state",
@ -2943,12 +2943,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
"reference": "eb45b4b8fd5f845d36851767a6fe00ee15cb8952"
"reference": "63e5a3e0881ebf28c9fbb2a2e12b77d373850c12"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/eb45b4b8fd5f845d36851767a6fe00ee15cb8952",
"reference": "eb45b4b8fd5f845d36851767a6fe00ee15cb8952",
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/63e5a3e0881ebf28c9fbb2a2e12b77d373850c12",
"reference": "63e5a3e0881ebf28c9fbb2a2e12b77d373850c12",
"shasum": ""
},
"require": {
@ -2982,7 +2982,7 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
"time": "2019-05-24T06:37:20+00:00"
"time": "2019-07-02T07:43:46+00:00"
},
{
"name": "sebastian/object-reflector",
@ -2990,12 +2990,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-reflector.git",
"reference": "a2539861984780016bb3d75420452d95f798e25d"
"reference": "3053ae3e6286fdf98769f18ec10894dbc6260a34"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/a2539861984780016bb3d75420452d95f798e25d",
"reference": "a2539861984780016bb3d75420452d95f798e25d",
"url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/3053ae3e6286fdf98769f18ec10894dbc6260a34",
"reference": "3053ae3e6286fdf98769f18ec10894dbc6260a34",
"shasum": ""
},
"require": {
@ -3027,7 +3027,7 @@
],
"description": "Allows reflection of object attributes, including inherited and non-public ones",
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
"time": "2019-05-24T06:35:22+00:00"
"time": "2019-07-02T07:44:36+00:00"
},
{
"name": "sebastian/recursion-context",
@ -3035,12 +3035,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
"reference": "b6a7e76741fee33ec10ccb55772e65d817a8f2fd"
"reference": "a58220ae18565f6004bbe15321efc4470bfe02fd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b6a7e76741fee33ec10ccb55772e65d817a8f2fd",
"reference": "b6a7e76741fee33ec10ccb55772e65d817a8f2fd",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/a58220ae18565f6004bbe15321efc4470bfe02fd",
"reference": "a58220ae18565f6004bbe15321efc4470bfe02fd",
"shasum": ""
},
"require": {
@ -3080,7 +3080,7 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"time": "2019-05-24T06:37:03+00:00"
"time": "2019-07-02T07:43:54+00:00"
},
{
"name": "sebastian/resource-operations",
@ -3088,12 +3088,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/resource-operations.git",
"reference": "366bbb128ea2fd570ab9986e6d79a7167fd5c041"
"reference": "d67fc89d3107c396d161411b620619f3e7a7c270"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/366bbb128ea2fd570ab9986e6d79a7167fd5c041",
"reference": "366bbb128ea2fd570ab9986e6d79a7167fd5c041",
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/d67fc89d3107c396d161411b620619f3e7a7c270",
"reference": "d67fc89d3107c396d161411b620619f3e7a7c270",
"shasum": ""
},
"require": {
@ -3122,7 +3122,7 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
"time": "2019-05-24T06:40:48+00:00"
"time": "2019-07-02T07:42:50+00:00"
},
{
"name": "sebastian/version",