Skip to content

Commit 42df221

Browse files
authored
Merge pull request #1225 from appwrite/feat-operators
Feat operators
2 parents 9359bef + a38e654 commit 42df221

File tree

104 files changed

+4283
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+4283
-181
lines changed

src/SDK/Language/Android.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ public function getFiles(): array
125125
'destination' => '/library/src/main/java/{{ sdk.namespace | caseSlash }}/Query.kt',
126126
'template' => '/android/library/src/main/java/io/package/Query.kt.twig',
127127
],
128+
[
129+
'scope' => 'default',
130+
'destination' => '/library/src/main/java/{{ sdk.namespace | caseSlash }}/Operator.kt',
131+
'template' => '/android/library/src/main/java/io/package/Operator.kt.twig',
132+
],
128133
[
129134
'scope' => 'default',
130135
'destination' => '/library/src/main/java/{{ sdk.namespace | caseSlash }}/exceptions/{{spec.title | caseUcfirst}}Exception.kt',

src/SDK/Language/Apple.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ public function getFiles(): array
7575
'destination' => '/Sources/{{ spec.title | caseUcfirst}}/Query.swift',
7676
'template' => 'swift/Sources/Query.swift.twig',
7777
],
78+
[
79+
'scope' => 'default',
80+
'destination' => '/Sources/{{ spec.title | caseUcfirst}}/Operator.swift',
81+
'template' => 'swift/Sources/Operator.swift.twig',
82+
],
7883
[
7984
'scope' => 'default',
8085
'destination' => '/Sources/{{ spec.title | caseUcfirst}}/Models/UploadProgress.swift',

src/SDK/Language/Dart.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ public function getFiles(): array
358358
'destination' => '/lib/query.dart',
359359
'template' => 'dart/lib/query.dart.twig',
360360
],
361+
[
362+
'scope' => 'default',
363+
'destination' => '/lib/operator.dart',
364+
'template' => 'dart/lib/operator.dart.twig',
365+
],
361366
[
362367
'scope' => 'default',
363368
'destination' => '/lib/{{ language.params.packageName }}.dart',
@@ -448,6 +453,11 @@ public function getFiles(): array
448453
'destination' => '/test/query_test.dart',
449454
'template' => 'dart/test/query_test.dart.twig',
450455
],
456+
[
457+
'scope' => 'default',
458+
'destination' => '/test/operator_test.dart',
459+
'template' => 'dart/test/operator_test.dart.twig',
460+
],
451461
[
452462
'scope' => 'default',
453463
'destination' => '/test/role_test.dart',

src/SDK/Language/Deno.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,21 @@ public function getFiles(): array
7878
'destination' => 'src/query.ts',
7979
'template' => 'deno/src/query.ts.twig',
8080
],
81+
[
82+
'scope' => 'default',
83+
'destination' => 'src/operator.ts',
84+
'template' => 'deno/src/operator.ts.twig',
85+
],
8186
[
8287
'scope' => 'default',
8388
'destination' => 'test/query.test.ts',
8489
'template' => 'deno/test/query.test.ts.twig',
8590
],
91+
[
92+
'scope' => 'default',
93+
'destination' => 'test/operator.test.ts',
94+
'template' => 'deno/test/operator.test.ts.twig',
95+
],
8696
[
8797
'scope' => 'default',
8898
'destination' => 'src/inputFile.ts',

src/SDK/Language/DotNet.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ public function getFiles(): array
408408
'destination' => '{{ spec.title | caseUcfirst }}/Query.cs',
409409
'template' => 'dotnet/Package/Query.cs.twig',
410410
],
411+
[
412+
'scope' => 'default',
413+
'destination' => '{{ spec.title | caseUcfirst }}/Operator.cs',
414+
'template' => 'dotnet/Package/Operator.cs.twig',
415+
],
411416
[
412417
'scope' => 'default',
413418
'destination' => '{{ spec.title | caseUcfirst }}/Role.cs',

src/SDK/Language/Flutter.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ public function getFiles(): array
8585
'destination' => '/lib/query.dart',
8686
'template' => 'dart/lib/query.dart.twig',
8787
],
88+
[
89+
'scope' => 'default',
90+
'destination' => '/lib/operator.dart',
91+
'template' => 'dart/lib/operator.dart.twig',
92+
],
8893
[
8994
'scope' => 'definition',
9095
'destination' => '/lib/src/models/{{definition.name | caseSnake }}.dart',
@@ -275,6 +280,11 @@ public function getFiles(): array
275280
'destination' => '/test/query_test.dart',
276281
'template' => 'dart/test/query_test.dart.twig',
277282
],
283+
[
284+
'scope' => 'default',
285+
'destination' => '/test/operator_test.dart',
286+
'template' => 'dart/test/operator_test.dart.twig',
287+
],
278288
[
279289
'scope' => 'default',
280290
'destination' => '/test/role_test.dart',

src/SDK/Language/Go.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ public function getFiles(): array
113113
'destination' => 'query/query.go',
114114
'template' => 'go/query.go.twig',
115115
],
116+
[
117+
'scope' => 'default',
118+
'destination' => 'operator/operator.go',
119+
'template' => 'go/operator.go.twig',
120+
],
116121
[
117122
'scope' => 'default',
118123
'destination' => 'permission/permission.go',

src/SDK/Language/Kotlin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ public function getFiles(): array
413413
'destination' => '/src/main/kotlin/{{ sdk.namespace | caseSlash }}/Query.kt',
414414
'template' => '/kotlin/src/main/kotlin/io/appwrite/Query.kt.twig',
415415
],
416+
[
417+
'scope' => 'default',
418+
'destination' => '/src/main/kotlin/{{ sdk.namespace | caseSlash }}/Operator.kt',
419+
'template' => '/kotlin/src/main/kotlin/io/appwrite/Operator.kt.twig',
420+
],
416421
[
417422
'scope' => 'default',
418423
'destination' => '/src/main/kotlin/{{ sdk.namespace | caseSlash }}/coroutines/Callback.kt',

src/SDK/Language/Node.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ public function getFiles(): array
223223
'destination' => 'src/query.ts',
224224
'template' => 'web/src/query.ts.twig',
225225
],
226+
[
227+
'scope' => 'default',
228+
'destination' => 'src/operator.ts',
229+
'template' => 'node/src/operator.ts.twig',
230+
],
226231
[
227232
'scope' => 'default',
228233
'destination' => 'README.md',

src/SDK/Language/PHP.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,16 @@ public function getFiles(): array
227227
'destination' => 'tests/{{ spec.title | caseUcfirst}}/QueryTest.php',
228228
'template' => 'php/tests/QueryTest.php.twig',
229229
],
230+
[
231+
'scope' => 'default',
232+
'destination' => 'src/{{ spec.title | caseUcfirst}}/Operator.php',
233+
'template' => 'php/src/Operator.php.twig',
234+
],
235+
[
236+
'scope' => 'default',
237+
'destination' => 'tests/{{ spec.title | caseUcfirst}}/OperatorTest.php',
238+
'template' => 'php/tests/OperatorTest.php.twig',
239+
],
230240
[
231241
'scope' => 'default',
232242
'destination' => 'src/{{ spec.title | caseUcfirst}}/InputFile.php',

0 commit comments

Comments
 (0)