Updated SDKs
This commit is contained in:
parent
621f1543d8
commit
790d0e1cb5
|
@ -21,7 +21,7 @@ return [
|
|||
[
|
||||
'key' => 'javascript',
|
||||
'name' => 'JavaScript',
|
||||
'version' => '1.0.28',
|
||||
'version' => '1.0.29',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-js',
|
||||
'enabled' => true,
|
||||
'beta' => false,
|
||||
|
@ -130,7 +130,7 @@ return [
|
|||
[
|
||||
'key' => 'dart',
|
||||
'name' => 'Dart',
|
||||
'version' => '0.0.6',
|
||||
'version' => '0.0.7',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||
'enabled' => true,
|
||||
'beta' => true,
|
||||
|
@ -177,7 +177,7 @@ return [
|
|||
[
|
||||
'key' => 'nodejs',
|
||||
'name' => 'Node.js',
|
||||
'version' => '1.0.31',
|
||||
'version' => '1.0.32',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-node',
|
||||
'enabled' => true,
|
||||
'beta' => false,
|
||||
|
@ -191,7 +191,7 @@ return [
|
|||
[
|
||||
'key' => 'php',
|
||||
'name' => 'PHP',
|
||||
'version' => '1.0.16',
|
||||
'version' => '1.0.17',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-php',
|
||||
'enabled' => true,
|
||||
'beta' => false,
|
||||
|
@ -205,7 +205,7 @@ return [
|
|||
[
|
||||
'key' => 'python',
|
||||
'name' => 'Python',
|
||||
'version' => '0.0.3',
|
||||
'version' => '0.0.4',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-python',
|
||||
'enabled' => true,
|
||||
'beta' => true,
|
||||
|
@ -219,7 +219,7 @@ return [
|
|||
[
|
||||
'key' => 'ruby',
|
||||
'name' => 'Ruby',
|
||||
'version' => '1.0.8',
|
||||
'version' => '1.0.9',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
||||
'enabled' => true,
|
||||
'beta' => true,
|
||||
|
@ -233,7 +233,7 @@ return [
|
|||
[
|
||||
'key' => 'go',
|
||||
'name' => 'Go',
|
||||
'version' => '0.0.5',
|
||||
'version' => '0.0.6',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-go',
|
||||
'enabled' => true,
|
||||
'beta' => true,
|
||||
|
|
|
@ -17,7 +17,7 @@ Add this to your package's pubspec.yaml file:
|
|||
|
||||
```yml
|
||||
dependencies:
|
||||
appwrite: ^0.0.6
|
||||
appwrite: ^0.0.7
|
||||
```
|
||||
|
||||
You can install packages from the command line:
|
||||
|
|
|
@ -12,7 +12,7 @@ class Client {
|
|||
this.endPoint = 'https://appwrite.io/v1';
|
||||
this.headers = {
|
||||
'content-type': 'application/json',
|
||||
'x-sdk-version': 'appwrite:dart:0.0.6',
|
||||
'x-sdk-version': 'appwrite:dart:0.0.7',
|
||||
};
|
||||
this.selfSigned = false;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: appwrite
|
||||
version: 0.0.6
|
||||
version: 0.0.7
|
||||
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)
|
||||
author: Appwrite Team <team@localhost.test>
|
||||
author: Appwrite Team <team@appwrite.io>
|
||||
homepage: https://github.com/appwrite/sdk-for-dart
|
||||
environment:
|
||||
sdk: '>=2.2.2 <3.0.0'
|
||||
|
|
|
@ -7,7 +7,7 @@ class Client {
|
|||
this.endpoint = 'https://appwrite.io/v1';
|
||||
this.headers = {
|
||||
'content-type': '',
|
||||
'x-sdk-version': 'appwrite:nodejs:1.0.31',
|
||||
'x-sdk-version': 'appwrite:nodejs:1.0.32',
|
||||
};
|
||||
this.selfSigned = false;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "node-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": "1.0.31",
|
||||
"version": "1.0.32",
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"license": "BSD-3-Clause",
|
||||
"support": {
|
||||
"url": "https://appwrite.io/support",
|
||||
"email": "team@localhost.test"
|
||||
"email": "team@appwrite.io"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
|
|
@ -116,7 +116,7 @@ POST https://appwrite.io/v1/database/collections/{collectionId}/documents
|
|||
| Field Name | Type | Description | Default |
|
||||
| --- | --- | --- | --- |
|
||||
| collectionId | string | **Required** Collection unique ID. You can create a new collection with validation rules using the Database service [server integration](/docs/database?platform=server#createCollection). | |
|
||||
| data | object | Document data as JSON string. | |
|
||||
| data | object | Document data as JSON object. | |
|
||||
| read | array | An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
|
||||
| write | array | An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
|
||||
| parentDocument | string | Parent document unique ID. Use when you want your new document to be a child of a parent document. | |
|
||||
|
@ -150,7 +150,7 @@ PATCH https://appwrite.io/v1/database/collections/{collectionId}/documents/{docu
|
|||
| --- | --- | --- | --- |
|
||||
| collectionId | string | **Required** Collection unique ID. You can create a new collection with validation rules using the Database service [server integration](/docs/database?platform=server#createCollection). | |
|
||||
| documentId | string | **Required** Document unique ID. | |
|
||||
| data | object | Document data as JSON string. | |
|
||||
| data | object | Document data as JSON object. | |
|
||||
| read | array | An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
|
||||
| write | array | An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. | |
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ class Client
|
|||
*/
|
||||
protected $headers = [
|
||||
'content-type' => '',
|
||||
'x-sdk-version' => 'appwrite:php:1.0.16',
|
||||
'x-sdk-version' => 'appwrite:php:1.0.17',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,7 @@ class Client:
|
|||
self._endpoint = 'https://appwrite.io/v1'
|
||||
self._global_headers = {
|
||||
'content-type': '',
|
||||
'x-sdk-version': 'appwrite:python:0.0.3',
|
||||
'x-sdk-version': 'appwrite:python:0.0.4',
|
||||
}
|
||||
|
||||
def set_self_signed(self, status=True):
|
||||
|
|
|
@ -3,15 +3,15 @@ import setuptools
|
|||
setuptools.setup(
|
||||
name = 'appwrite',
|
||||
packages = ['appwrite', 'appwrite/services'],
|
||||
version = '0.0.3',
|
||||
version = '0.0.4',
|
||||
license='BSD-3-Clause',
|
||||
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)',
|
||||
author = 'Appwrite Team',
|
||||
author_email = 'team@localhost.test',
|
||||
author_email = 'team@appwrite.io',
|
||||
maintainer = 'Appwrite Team',
|
||||
maintainer_email = 'team@localhost.test',
|
||||
maintainer_email = 'team@appwrite.io',
|
||||
url = 'https://appwrite.io/support',
|
||||
download_url='https://github.com/appwrite/sdk-for-python/archive/0.0.3.tar.gz',
|
||||
download_url='https://github.com/appwrite/sdk-for-python/archive/0.0.4.tar.gz',
|
||||
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
|
||||
install_requires=[
|
||||
'requests',
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
Gem::Specification.new do |s|
|
||||
|
||||
s.name = 'appwrite'
|
||||
s.version = '1.0.8'
|
||||
s.version = '1.0.9'
|
||||
s.summary = "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)"
|
||||
s.author = 'Appwrite Team'
|
||||
s.homepage = 'https://appwrite.io/support'
|
||||
s.email = 'team@localhost.test'
|
||||
s.email = 'team@appwrite.io'
|
||||
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
||||
|
||||
end
|
|
@ -20,7 +20,7 @@ module Appwrite
|
|||
@headers = {
|
||||
'content-type' => '',
|
||||
'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
|
||||
'x-sdk-version' => 'appwrite:ruby:1.0.8'
|
||||
'x-sdk-version' => 'appwrite:ruby:1.0.9'
|
||||
}
|
||||
@endpoint = 'https://appwrite.io/v1';
|
||||
end
|
||||
|
|
|
@ -28,7 +28,7 @@ import * as Appwrite from "appwrite";
|
|||
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
|
||||
|
||||
```html
|
||||
<script src="https://cdn.jsdelivr.net/npm/appwrite@1.0.28"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/appwrite@1.0.29"></script>
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -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": "1.0.28",
|
||||
"version": "1.0.29",
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "src/sdk.js",
|
||||
"repository": {
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
globalParams.push({key: key, value: value});
|
||||
};
|
||||
|
||||
addGlobalHeader('x-sdk-version', 'appwrite:javascript:1.0.28');
|
||||
addGlobalHeader('x-sdk-version', 'appwrite:javascript:1.0.29');
|
||||
addGlobalHeader('content-type', '');
|
||||
|
||||
/**
|
||||
|
|
2
app/sdks/web-javascript/src/sdk.min.js
vendored
2
app/sdks/web-javascript/src/sdk.min.js
vendored
|
@ -1,5 +1,5 @@
|
|||
(function(window){'use strict';window.Appwrite=function(){let config={endpoint:'https://appwrite.io/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(Array.isArray(params[p])){for(let index=0;index<params[p].length;index++){let param=params[p][index];str.push(encodeURIComponent(p+'[]')+"="+encodeURIComponent(param))}}else{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:1.0.28');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:1.0.29');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)}
|
||||
|
|
|
@ -51,7 +51,7 @@ $cli
|
|||
Console::info('Fetching API Spec for '.$language['name'].' for '.$platform['name']);
|
||||
|
||||
//$spec = getSSLPage('http://localhost/v1/open-api-2.json?extensions=1&platform='.$language['family']);
|
||||
$spec = getSSLPage('http://stage.appwrite.io/v1/open-api-2.json?extensions=1&platform='.$language['family']);
|
||||
$spec = getSSLPage('https://stage.appwrite.io/v1/open-api-2.json?extensions=1&platform='.$language['family']);
|
||||
|
||||
$result = realpath(__DIR__.'/..').'/sdks/'.$key.'-'.$language['key'];
|
||||
$target = realpath(__DIR__.'/..').'/sdks/git/'.$language['key'].'/';
|
||||
|
|
Loading…
Reference in a new issue