mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Move to row-level scope for txn
This commit is contained in:
@@ -33,7 +33,7 @@ class Create extends Action
|
||||
->setHttpPath('/v1/databases/transactions')
|
||||
->desc('Create transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'documents.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'databases',
|
||||
|
||||
@@ -32,7 +32,7 @@ class Delete extends Action
|
||||
->setHttpPath('/v1/databases/transactions/:transactionId')
|
||||
->desc('Delete transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'documents.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'databases',
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ class Create extends Action
|
||||
->setHttpPath('/v1/databases/transactions/:transactionId/operations')
|
||||
->desc('Create operations scoped to a transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'documents.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'databases',
|
||||
|
||||
@@ -44,7 +44,7 @@ class Update extends Action
|
||||
->setHttpPath('/v1/databases/transactions/:transactionId')
|
||||
->desc('Update transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'documents.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'databases',
|
||||
|
||||
@@ -30,7 +30,7 @@ class Create extends TransactionsCreate
|
||||
->setHttpPath('/v1/tablesdb/transactions')
|
||||
->desc('Create transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'rows.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
||||
@@ -30,7 +30,7 @@ class Delete extends TransactionsDelete
|
||||
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
|
||||
->desc('Delete transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'rows.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
||||
@@ -30,7 +30,7 @@ class Get extends TransactionsGet
|
||||
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
|
||||
->desc('Get transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.read')
|
||||
->label('scope', 'rows.read')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ class Create extends OperationsCreate
|
||||
->setHttpPath('/v1/tablesdb/transactions/:transactionId/operations')
|
||||
->desc('Create operations scoped to a transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'rows.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
||||
@@ -31,7 +31,7 @@ class Update extends TransactionsUpdate
|
||||
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
|
||||
->desc('Update transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.write')
|
||||
->label('scope', 'rows.write')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
||||
@@ -30,7 +30,7 @@ class XList extends TransactionsList
|
||||
->setHttpPath('/v1/tablesdb/transactions')
|
||||
->desc('List transactions')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'transactions.read')
|
||||
->label('scope', 'rows.read')
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
||||
Reference in New Issue
Block a user