1
0
Fork 0
mirror of synced 2024-05-17 11:12:41 +12:00

Merge pull request #7857 from appwrite/chore-sdk-release

Update SDKs to fix incorrect MSG91 param
This commit is contained in:
Steven Nguyen 2024-03-22 17:37:06 -07:00 committed by GitHub
commit 92cb3ddcc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 55 additions and 51 deletions

View file

@ -185,7 +185,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
'version' => '0.6.0',
'version' => '0.6.1',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
@ -203,7 +203,7 @@ return [
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '5.0.1',
'version' => '5.0.2',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,
@ -231,7 +231,7 @@ return [
[
'key' => 'nodejs',
'name' => 'Node.js',
'version' => '12.0.0',
'version' => '12.0.1',
'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true,
@ -249,7 +249,7 @@ return [
[
'key' => 'deno',
'name' => 'Deno',
'version' => '10.0.0',
'version' => '10.0.1',
'url' => 'https://github.com/appwrite/sdk-for-deno',
'package' => 'https://deno.land/x/appwrite',
'enabled' => true,
@ -267,7 +267,7 @@ return [
[
'key' => 'php',
'name' => 'PHP',
'version' => '11.0.0',
'version' => '11.0.1',
'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true,
@ -285,7 +285,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
'version' => '5.0.1',
'version' => '5.0.2',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
@ -303,7 +303,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '11.0.0',
'version' => '11.0.1',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true,
@ -339,7 +339,7 @@ return [
[
'key' => 'java',
'name' => 'Java',
'version' => '4.0.0',
'version' => '4.0.1',
'url' => 'https://github.com/appwrite/sdk-for-java',
'package' => '',
'enabled' => false,
@ -357,7 +357,7 @@ return [
[
'key' => 'dotnet',
'name' => '.NET',
'version' => '0.8.0',
'version' => '0.8.1',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => true,
@ -375,7 +375,7 @@ return [
[
'key' => 'dart',
'name' => 'Dart',
'version' => '11.0.1',
'version' => '11.0.2',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true,
@ -393,7 +393,7 @@ return [
[
'key' => 'kotlin',
'name' => 'Kotlin',
'version' => '5.0.0',
'version' => '5.0.1',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
@ -415,7 +415,7 @@ return [
[
'key' => 'swift',
'name' => 'Swift',
'version' => '5.0.0',
'version' => '5.0.1',
'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true,

View file

@ -9,7 +9,7 @@ const messaging = new Messaging(client);
const result = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'+12065550100', // from (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)

View file

@ -10,9 +10,9 @@ const result = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
'<AUTH_KEY>' // authKey (optional)
);
console.log(response);

View file

@ -10,7 +10,7 @@ Messaging messaging = Messaging(client);
Provider result = await messaging.createMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>',
from: '+12065550100', // (optional)
templateId: '<TEMPLATE_ID>', // (optional)
senderId: '<SENDER_ID>', // (optional)
authKey: '<AUTH_KEY>', // (optional)
enabled: false, // (optional)

View file

@ -11,7 +11,7 @@ Provider result = await messaging.updateMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>', // (optional)
enabled: false, // (optional)
templateId: '<TEMPLATE_ID>', // (optional)
senderId: '<SENDER_ID>', // (optional)
authKey: '<AUTH_KEY>', // (optional)
from: '<FROM>', // (optional)
);

View file

@ -10,7 +10,7 @@ const messaging = new Messaging(client);
const response = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'+12065550100', // from (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)

View file

@ -11,7 +11,7 @@ const response = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
'<AUTH_KEY>' // authKey (optional)
);

View file

@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
Provider result = await messaging.CreateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
from: "+12065550100", // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
enabled: false // optional

View file

@ -13,7 +13,7 @@ Provider result = await messaging.UpdateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>", // optional
enabled: false, // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
from: "<FROM>" // optional
authKey: "<AUTH_KEY>" // optional
);

View file

@ -2,7 +2,7 @@ mutation {
messagingCreateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
from: "+12065550100",
templateId: "<TEMPLATE_ID>",
senderId: "<SENDER_ID>",
authKey: "<AUTH_KEY>",
enabled: false

View file

@ -3,9 +3,9 @@ mutation {
providerId: "<PROVIDER_ID>",
name: "<NAME>",
enabled: false,
templateId: "<TEMPLATE_ID>",
senderId: "<SENDER_ID>",
authKey: "<AUTH_KEY>",
from: "<FROM>"
authKey: "<AUTH_KEY>"
) {
_id
_createdAt

View file

@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
messaging.createMsg91Provider(
"<PROVIDER_ID>", // providerId
"<NAME>", // name
"+12065550100", // from (optional)
"<TEMPLATE_ID>", // templateId (optional)
"<SENDER_ID>", // senderId (optional)
"<AUTH_KEY>", // authKey (optional)
false, // enabled (optional)

View file

@ -13,9 +13,9 @@ messaging.updateMsg91Provider(
"<PROVIDER_ID>", // providerId
"<NAME>", // name (optional)
false, // enabled (optional)
"<TEMPLATE_ID>", // templateId (optional)
"<SENDER_ID>", // senderId (optional)
"<AUTH_KEY>", // authKey (optional)
"<FROM>", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -12,7 +12,7 @@ val messaging = Messaging(client)
val response = messaging.createMsg91Provider(
providerId = "<PROVIDER_ID>",
name = "<NAME>",
from = "+12065550100", // optional
templateId = "<TEMPLATE_ID>", // optional
senderId = "<SENDER_ID>", // optional
authKey = "<AUTH_KEY>", // optional
enabled = false // optional

View file

@ -13,7 +13,7 @@ val response = messaging.updateMsg91Provider(
providerId = "<PROVIDER_ID>",
name = "<NAME>", // optional
enabled = false, // optional
templateId = "<TEMPLATE_ID>", // optional
senderId = "<SENDER_ID>", // optional
authKey = "<AUTH_KEY>", // optional
from = "<FROM>" // optional
authKey = "<AUTH_KEY>" // optional
)

View file

@ -10,7 +10,7 @@ const messaging = new sdk.Messaging(client);
const result = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'+12065550100', // from (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)

View file

@ -11,7 +11,7 @@ const result = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
'<AUTH_KEY>' // authKey (optional)
);

View file

@ -13,7 +13,7 @@ $messaging = new Messaging($client);
$result = $messaging->createMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>',
from: '+12065550100', // optional
templateId: '<TEMPLATE_ID>', // optional
senderId: '<SENDER_ID>', // optional
authKey: '<AUTH_KEY>', // optional
enabled: false // optional

View file

@ -14,7 +14,7 @@ $result = $messaging->updateMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>', // optional
enabled: false, // optional
templateId: '<TEMPLATE_ID>', // optional
senderId: '<SENDER_ID>', // optional
authKey: '<AUTH_KEY>', // optional
from: '<FROM>' // optional
authKey: '<AUTH_KEY>' // optional
);

View file

@ -10,7 +10,7 @@ messaging = Messaging(client)
result = messaging.create_msg91_provider(
provider_id = '<PROVIDER_ID>',
name = '<NAME>',
from = '+12065550100', # optional
template_id = '<TEMPLATE_ID>', # optional
sender_id = '<SENDER_ID>', # optional
auth_key = '<AUTH_KEY>', # optional
enabled = False # optional

View file

@ -11,7 +11,7 @@ result = messaging.update_msg91_provider(
provider_id = '<PROVIDER_ID>',
name = '<NAME>', # optional
enabled = False, # optional
template_id = '<TEMPLATE_ID>', # optional
sender_id = '<SENDER_ID>', # optional
auth_key = '<AUTH_KEY>', # optional
from = '<FROM>' # optional
auth_key = '<AUTH_KEY>' # optional
)

View file

@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"providerId": "<PROVIDER_ID>",
"name": "<NAME>",
"from": "+12065550100",
"templateId": "<TEMPLATE_ID>",
"senderId": "<SENDER_ID>",
"authKey": "<AUTH_KEY>",
"enabled": false

View file

@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"name": "<NAME>",
"enabled": false,
"templateId": "<TEMPLATE_ID>",
"senderId": "<SENDER_ID>",
"authKey": "<AUTH_KEY>",
"from": "<FROM>"
"authKey": "<AUTH_KEY>"
}

View file

@ -12,7 +12,7 @@ messaging = Messaging.new(client)
result = messaging.create_msg91_provider(
provider_id: '<PROVIDER_ID>',
name: '<NAME>',
from: '+12065550100', # optional
template_id: '<TEMPLATE_ID>', # optional
sender_id: '<SENDER_ID>', # optional
auth_key: '<AUTH_KEY>', # optional
enabled: false # optional

View file

@ -13,7 +13,7 @@ result = messaging.update_msg91_provider(
provider_id: '<PROVIDER_ID>',
name: '<NAME>', # optional
enabled: false, # optional
template_id: '<TEMPLATE_ID>', # optional
sender_id: '<SENDER_ID>', # optional
auth_key: '<AUTH_KEY>', # optional
from: '<FROM>' # optional
auth_key: '<AUTH_KEY>' # optional
)

View file

@ -10,7 +10,7 @@ let messaging = Messaging(client)
let provider = try await messaging.createMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
from: "+12065550100", // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
enabled: false // optional

View file

@ -11,8 +11,8 @@ let provider = try await messaging.updateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>", // optional
enabled: false, // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
from: "<FROM>" // optional
authKey: "<AUTH_KEY>" // optional
)

View file

@ -1,3 +1,7 @@
## 11.0.2
* Fixed MSG91 missing template ID
## 11.0.1
* Fixed parameters using enum types

View file

@ -50,7 +50,7 @@ class SDKs extends Action
$message = ($git) ? Console::confirm('Please enter your commit message:') : '';
if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', 'latest'])) {
throw new Exception('Unknown version given');
throw new \Exception('Unknown version given');
}
foreach ($platforms as $key => $platform) {
@ -196,7 +196,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
$config = new REST();
break;
default:
throw new Exception('Language "' . $language['key'] . '" not supported');
throw new \Exception('Language "' . $language['key'] . '" not supported');
}
Console::info("Generating {$language['name']} SDK...");