node-appwrite 18.0.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/client.mjs.map +1 -1
- package/dist/enums/credit-card.d.mts +1 -1
- package/dist/enums/credit-card.d.ts +1 -1
- package/dist/enums/credit-card.js +1 -1
- package/dist/enums/credit-card.js.map +1 -1
- package/dist/enums/credit-card.mjs +1 -1
- package/dist/enums/credit-card.mjs.map +1 -1
- package/dist/enums/execution-method.d.mts +2 -1
- package/dist/enums/execution-method.d.ts +2 -1
- package/dist/enums/execution-method.js +1 -0
- package/dist/enums/execution-method.js.map +1 -1
- package/dist/enums/execution-method.mjs +1 -0
- package/dist/enums/execution-method.mjs.map +1 -1
- package/dist/enums/index-type.d.mts +2 -1
- package/dist/enums/index-type.d.ts +2 -1
- package/dist/enums/index-type.js +1 -0
- package/dist/enums/index-type.js.map +1 -1
- package/dist/enums/index-type.mjs +1 -0
- package/dist/enums/index-type.mjs.map +1 -1
- package/dist/models.d.mts +250 -4
- package/dist/models.d.ts +250 -4
- package/dist/query.d.mts +128 -8
- package/dist/query.d.ts +128 -8
- package/dist/query.js +123 -3
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +123 -3
- package/dist/query.mjs.map +1 -1
- package/dist/services/account.d.mts +2 -2
- package/dist/services/account.d.ts +2 -2
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +2 -2
- package/dist/services/avatars.d.ts +2 -2
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +202 -1
- package/dist/services/databases.d.ts +202 -1
- package/dist/services/databases.js +318 -9
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +318 -9
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +2 -2
- package/dist/services/functions.d.ts +2 -2
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +195 -0
- package/dist/services/tables-db.d.ts +195 -0
- package/dist/services/tables-db.js +318 -0
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +318 -0
- package/dist/services/tables-db.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -808,6 +808,201 @@ declare class TablesDB {
|
|
|
808
808
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
809
809
|
*/
|
|
810
810
|
updateIpColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnIp>;
|
|
811
|
+
/**
|
|
812
|
+
* Create a geometric line column.
|
|
813
|
+
*
|
|
814
|
+
* @param {string} params.databaseId - Database ID.
|
|
815
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
816
|
+
* @param {string} params.key - Column Key.
|
|
817
|
+
* @param {boolean} params.required - Is column required?
|
|
818
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
819
|
+
* @throws {AppwriteException}
|
|
820
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
821
|
+
*/
|
|
822
|
+
createLineColumn(params: {
|
|
823
|
+
databaseId: string;
|
|
824
|
+
tableId: string;
|
|
825
|
+
key: string;
|
|
826
|
+
required: boolean;
|
|
827
|
+
xdefault?: any[];
|
|
828
|
+
}): Promise<Models.ColumnLine>;
|
|
829
|
+
/**
|
|
830
|
+
* Create a geometric line column.
|
|
831
|
+
*
|
|
832
|
+
* @param {string} databaseId - Database ID.
|
|
833
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
834
|
+
* @param {string} key - Column Key.
|
|
835
|
+
* @param {boolean} required - Is column required?
|
|
836
|
+
* @param {any[]} xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
837
|
+
* @throws {AppwriteException}
|
|
838
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
839
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
840
|
+
*/
|
|
841
|
+
createLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[]): Promise<Models.ColumnLine>;
|
|
842
|
+
/**
|
|
843
|
+
* Update a line column. Changing the `default` value will not update already existing rows.
|
|
844
|
+
*
|
|
845
|
+
* @param {string} params.databaseId - Database ID.
|
|
846
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
847
|
+
* @param {string} params.key - Column Key.
|
|
848
|
+
* @param {boolean} params.required - Is column required?
|
|
849
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
850
|
+
* @param {string} params.newKey - New Column Key.
|
|
851
|
+
* @throws {AppwriteException}
|
|
852
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
853
|
+
*/
|
|
854
|
+
updateLineColumn(params: {
|
|
855
|
+
databaseId: string;
|
|
856
|
+
tableId: string;
|
|
857
|
+
key: string;
|
|
858
|
+
required: boolean;
|
|
859
|
+
xdefault?: any[];
|
|
860
|
+
newKey?: string;
|
|
861
|
+
}): Promise<Models.ColumnLine>;
|
|
862
|
+
/**
|
|
863
|
+
* Update a line column. Changing the `default` value will not update already existing rows.
|
|
864
|
+
*
|
|
865
|
+
* @param {string} databaseId - Database ID.
|
|
866
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
867
|
+
* @param {string} key - Column Key.
|
|
868
|
+
* @param {boolean} required - Is column required?
|
|
869
|
+
* @param {any[]} xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
870
|
+
* @param {string} newKey - New Column Key.
|
|
871
|
+
* @throws {AppwriteException}
|
|
872
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
873
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
874
|
+
*/
|
|
875
|
+
updateLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[], newKey?: string): Promise<Models.ColumnLine>;
|
|
876
|
+
/**
|
|
877
|
+
* Create a geometric point column.
|
|
878
|
+
*
|
|
879
|
+
* @param {string} params.databaseId - Database ID.
|
|
880
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
881
|
+
* @param {string} params.key - Column Key.
|
|
882
|
+
* @param {boolean} params.required - Is column required?
|
|
883
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
884
|
+
* @throws {AppwriteException}
|
|
885
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
886
|
+
*/
|
|
887
|
+
createPointColumn(params: {
|
|
888
|
+
databaseId: string;
|
|
889
|
+
tableId: string;
|
|
890
|
+
key: string;
|
|
891
|
+
required: boolean;
|
|
892
|
+
xdefault?: any[];
|
|
893
|
+
}): Promise<Models.ColumnPoint>;
|
|
894
|
+
/**
|
|
895
|
+
* Create a geometric point column.
|
|
896
|
+
*
|
|
897
|
+
* @param {string} databaseId - Database ID.
|
|
898
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
899
|
+
* @param {string} key - Column Key.
|
|
900
|
+
* @param {boolean} required - Is column required?
|
|
901
|
+
* @param {any[]} xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
902
|
+
* @throws {AppwriteException}
|
|
903
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
904
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
905
|
+
*/
|
|
906
|
+
createPointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[]): Promise<Models.ColumnPoint>;
|
|
907
|
+
/**
|
|
908
|
+
* Update a point column. Changing the `default` value will not update already existing rows.
|
|
909
|
+
*
|
|
910
|
+
* @param {string} params.databaseId - Database ID.
|
|
911
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
912
|
+
* @param {string} params.key - Column Key.
|
|
913
|
+
* @param {boolean} params.required - Is column required?
|
|
914
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
915
|
+
* @param {string} params.newKey - New Column Key.
|
|
916
|
+
* @throws {AppwriteException}
|
|
917
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
918
|
+
*/
|
|
919
|
+
updatePointColumn(params: {
|
|
920
|
+
databaseId: string;
|
|
921
|
+
tableId: string;
|
|
922
|
+
key: string;
|
|
923
|
+
required: boolean;
|
|
924
|
+
xdefault?: any[];
|
|
925
|
+
newKey?: string;
|
|
926
|
+
}): Promise<Models.ColumnPoint>;
|
|
927
|
+
/**
|
|
928
|
+
* Update a point column. Changing the `default` value will not update already existing rows.
|
|
929
|
+
*
|
|
930
|
+
* @param {string} databaseId - Database ID.
|
|
931
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
932
|
+
* @param {string} key - Column Key.
|
|
933
|
+
* @param {boolean} required - Is column required?
|
|
934
|
+
* @param {any[]} xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
935
|
+
* @param {string} newKey - New Column Key.
|
|
936
|
+
* @throws {AppwriteException}
|
|
937
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
938
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
939
|
+
*/
|
|
940
|
+
updatePointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[], newKey?: string): Promise<Models.ColumnPoint>;
|
|
941
|
+
/**
|
|
942
|
+
* Create a geometric polygon column.
|
|
943
|
+
*
|
|
944
|
+
* @param {string} params.databaseId - Database ID.
|
|
945
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
946
|
+
* @param {string} params.key - Column Key.
|
|
947
|
+
* @param {boolean} params.required - Is column required?
|
|
948
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
949
|
+
* @throws {AppwriteException}
|
|
950
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
951
|
+
*/
|
|
952
|
+
createPolygonColumn(params: {
|
|
953
|
+
databaseId: string;
|
|
954
|
+
tableId: string;
|
|
955
|
+
key: string;
|
|
956
|
+
required: boolean;
|
|
957
|
+
xdefault?: any[];
|
|
958
|
+
}): Promise<Models.ColumnPolygon>;
|
|
959
|
+
/**
|
|
960
|
+
* Create a geometric polygon column.
|
|
961
|
+
*
|
|
962
|
+
* @param {string} databaseId - Database ID.
|
|
963
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
964
|
+
* @param {string} key - Column Key.
|
|
965
|
+
* @param {boolean} required - Is column required?
|
|
966
|
+
* @param {any[]} xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
967
|
+
* @throws {AppwriteException}
|
|
968
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
969
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
970
|
+
*/
|
|
971
|
+
createPolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[]): Promise<Models.ColumnPolygon>;
|
|
972
|
+
/**
|
|
973
|
+
* Update a polygon column. Changing the `default` value will not update already existing rows.
|
|
974
|
+
*
|
|
975
|
+
* @param {string} params.databaseId - Database ID.
|
|
976
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
977
|
+
* @param {string} params.key - Column Key.
|
|
978
|
+
* @param {boolean} params.required - Is column required?
|
|
979
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
980
|
+
* @param {string} params.newKey - New Column Key.
|
|
981
|
+
* @throws {AppwriteException}
|
|
982
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
983
|
+
*/
|
|
984
|
+
updatePolygonColumn(params: {
|
|
985
|
+
databaseId: string;
|
|
986
|
+
tableId: string;
|
|
987
|
+
key: string;
|
|
988
|
+
required: boolean;
|
|
989
|
+
xdefault?: any[];
|
|
990
|
+
newKey?: string;
|
|
991
|
+
}): Promise<Models.ColumnPolygon>;
|
|
992
|
+
/**
|
|
993
|
+
* Update a polygon column. Changing the `default` value will not update already existing rows.
|
|
994
|
+
*
|
|
995
|
+
* @param {string} databaseId - Database ID.
|
|
996
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
997
|
+
* @param {string} key - Column Key.
|
|
998
|
+
* @param {boolean} required - Is column required?
|
|
999
|
+
* @param {any[]} xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
1000
|
+
* @param {string} newKey - New Column Key.
|
|
1001
|
+
* @throws {AppwriteException}
|
|
1002
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
1003
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1004
|
+
*/
|
|
1005
|
+
updatePolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[], newKey?: string): Promise<Models.ColumnPolygon>;
|
|
811
1006
|
/**
|
|
812
1007
|
* Create relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
|
|
813
1008
|
*
|
|
@@ -808,6 +808,201 @@ declare class TablesDB {
|
|
|
808
808
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
809
809
|
*/
|
|
810
810
|
updateIpColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnIp>;
|
|
811
|
+
/**
|
|
812
|
+
* Create a geometric line column.
|
|
813
|
+
*
|
|
814
|
+
* @param {string} params.databaseId - Database ID.
|
|
815
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
816
|
+
* @param {string} params.key - Column Key.
|
|
817
|
+
* @param {boolean} params.required - Is column required?
|
|
818
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
819
|
+
* @throws {AppwriteException}
|
|
820
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
821
|
+
*/
|
|
822
|
+
createLineColumn(params: {
|
|
823
|
+
databaseId: string;
|
|
824
|
+
tableId: string;
|
|
825
|
+
key: string;
|
|
826
|
+
required: boolean;
|
|
827
|
+
xdefault?: any[];
|
|
828
|
+
}): Promise<Models.ColumnLine>;
|
|
829
|
+
/**
|
|
830
|
+
* Create a geometric line column.
|
|
831
|
+
*
|
|
832
|
+
* @param {string} databaseId - Database ID.
|
|
833
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
834
|
+
* @param {string} key - Column Key.
|
|
835
|
+
* @param {boolean} required - Is column required?
|
|
836
|
+
* @param {any[]} xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
837
|
+
* @throws {AppwriteException}
|
|
838
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
839
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
840
|
+
*/
|
|
841
|
+
createLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[]): Promise<Models.ColumnLine>;
|
|
842
|
+
/**
|
|
843
|
+
* Update a line column. Changing the `default` value will not update already existing rows.
|
|
844
|
+
*
|
|
845
|
+
* @param {string} params.databaseId - Database ID.
|
|
846
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
847
|
+
* @param {string} params.key - Column Key.
|
|
848
|
+
* @param {boolean} params.required - Is column required?
|
|
849
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
850
|
+
* @param {string} params.newKey - New Column Key.
|
|
851
|
+
* @throws {AppwriteException}
|
|
852
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
853
|
+
*/
|
|
854
|
+
updateLineColumn(params: {
|
|
855
|
+
databaseId: string;
|
|
856
|
+
tableId: string;
|
|
857
|
+
key: string;
|
|
858
|
+
required: boolean;
|
|
859
|
+
xdefault?: any[];
|
|
860
|
+
newKey?: string;
|
|
861
|
+
}): Promise<Models.ColumnLine>;
|
|
862
|
+
/**
|
|
863
|
+
* Update a line column. Changing the `default` value will not update already existing rows.
|
|
864
|
+
*
|
|
865
|
+
* @param {string} databaseId - Database ID.
|
|
866
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
867
|
+
* @param {string} key - Column Key.
|
|
868
|
+
* @param {boolean} required - Is column required?
|
|
869
|
+
* @param {any[]} xdefault - Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
870
|
+
* @param {string} newKey - New Column Key.
|
|
871
|
+
* @throws {AppwriteException}
|
|
872
|
+
* @returns {Promise<Models.ColumnLine>}
|
|
873
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
874
|
+
*/
|
|
875
|
+
updateLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[], newKey?: string): Promise<Models.ColumnLine>;
|
|
876
|
+
/**
|
|
877
|
+
* Create a geometric point column.
|
|
878
|
+
*
|
|
879
|
+
* @param {string} params.databaseId - Database ID.
|
|
880
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
881
|
+
* @param {string} params.key - Column Key.
|
|
882
|
+
* @param {boolean} params.required - Is column required?
|
|
883
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
884
|
+
* @throws {AppwriteException}
|
|
885
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
886
|
+
*/
|
|
887
|
+
createPointColumn(params: {
|
|
888
|
+
databaseId: string;
|
|
889
|
+
tableId: string;
|
|
890
|
+
key: string;
|
|
891
|
+
required: boolean;
|
|
892
|
+
xdefault?: any[];
|
|
893
|
+
}): Promise<Models.ColumnPoint>;
|
|
894
|
+
/**
|
|
895
|
+
* Create a geometric point column.
|
|
896
|
+
*
|
|
897
|
+
* @param {string} databaseId - Database ID.
|
|
898
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
899
|
+
* @param {string} key - Column Key.
|
|
900
|
+
* @param {boolean} required - Is column required?
|
|
901
|
+
* @param {any[]} xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
902
|
+
* @throws {AppwriteException}
|
|
903
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
904
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
905
|
+
*/
|
|
906
|
+
createPointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[]): Promise<Models.ColumnPoint>;
|
|
907
|
+
/**
|
|
908
|
+
* Update a point column. Changing the `default` value will not update already existing rows.
|
|
909
|
+
*
|
|
910
|
+
* @param {string} params.databaseId - Database ID.
|
|
911
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
912
|
+
* @param {string} params.key - Column Key.
|
|
913
|
+
* @param {boolean} params.required - Is column required?
|
|
914
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
915
|
+
* @param {string} params.newKey - New Column Key.
|
|
916
|
+
* @throws {AppwriteException}
|
|
917
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
918
|
+
*/
|
|
919
|
+
updatePointColumn(params: {
|
|
920
|
+
databaseId: string;
|
|
921
|
+
tableId: string;
|
|
922
|
+
key: string;
|
|
923
|
+
required: boolean;
|
|
924
|
+
xdefault?: any[];
|
|
925
|
+
newKey?: string;
|
|
926
|
+
}): Promise<Models.ColumnPoint>;
|
|
927
|
+
/**
|
|
928
|
+
* Update a point column. Changing the `default` value will not update already existing rows.
|
|
929
|
+
*
|
|
930
|
+
* @param {string} databaseId - Database ID.
|
|
931
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
932
|
+
* @param {string} key - Column Key.
|
|
933
|
+
* @param {boolean} required - Is column required?
|
|
934
|
+
* @param {any[]} xdefault - Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
935
|
+
* @param {string} newKey - New Column Key.
|
|
936
|
+
* @throws {AppwriteException}
|
|
937
|
+
* @returns {Promise<Models.ColumnPoint>}
|
|
938
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
939
|
+
*/
|
|
940
|
+
updatePointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[], newKey?: string): Promise<Models.ColumnPoint>;
|
|
941
|
+
/**
|
|
942
|
+
* Create a geometric polygon column.
|
|
943
|
+
*
|
|
944
|
+
* @param {string} params.databaseId - Database ID.
|
|
945
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
946
|
+
* @param {string} params.key - Column Key.
|
|
947
|
+
* @param {boolean} params.required - Is column required?
|
|
948
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
949
|
+
* @throws {AppwriteException}
|
|
950
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
951
|
+
*/
|
|
952
|
+
createPolygonColumn(params: {
|
|
953
|
+
databaseId: string;
|
|
954
|
+
tableId: string;
|
|
955
|
+
key: string;
|
|
956
|
+
required: boolean;
|
|
957
|
+
xdefault?: any[];
|
|
958
|
+
}): Promise<Models.ColumnPolygon>;
|
|
959
|
+
/**
|
|
960
|
+
* Create a geometric polygon column.
|
|
961
|
+
*
|
|
962
|
+
* @param {string} databaseId - Database ID.
|
|
963
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
964
|
+
* @param {string} key - Column Key.
|
|
965
|
+
* @param {boolean} required - Is column required?
|
|
966
|
+
* @param {any[]} xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
967
|
+
* @throws {AppwriteException}
|
|
968
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
969
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
970
|
+
*/
|
|
971
|
+
createPolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[]): Promise<Models.ColumnPolygon>;
|
|
972
|
+
/**
|
|
973
|
+
* Update a polygon column. Changing the `default` value will not update already existing rows.
|
|
974
|
+
*
|
|
975
|
+
* @param {string} params.databaseId - Database ID.
|
|
976
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
977
|
+
* @param {string} params.key - Column Key.
|
|
978
|
+
* @param {boolean} params.required - Is column required?
|
|
979
|
+
* @param {any[]} params.xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
980
|
+
* @param {string} params.newKey - New Column Key.
|
|
981
|
+
* @throws {AppwriteException}
|
|
982
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
983
|
+
*/
|
|
984
|
+
updatePolygonColumn(params: {
|
|
985
|
+
databaseId: string;
|
|
986
|
+
tableId: string;
|
|
987
|
+
key: string;
|
|
988
|
+
required: boolean;
|
|
989
|
+
xdefault?: any[];
|
|
990
|
+
newKey?: string;
|
|
991
|
+
}): Promise<Models.ColumnPolygon>;
|
|
992
|
+
/**
|
|
993
|
+
* Update a polygon column. Changing the `default` value will not update already existing rows.
|
|
994
|
+
*
|
|
995
|
+
* @param {string} databaseId - Database ID.
|
|
996
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
|
|
997
|
+
* @param {string} key - Column Key.
|
|
998
|
+
* @param {boolean} required - Is column required?
|
|
999
|
+
* @param {any[]} xdefault - Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
1000
|
+
* @param {string} newKey - New Column Key.
|
|
1001
|
+
* @throws {AppwriteException}
|
|
1002
|
+
* @returns {Promise<Models.ColumnPolygon>}
|
|
1003
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1004
|
+
*/
|
|
1005
|
+
updatePolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[], newKey?: string): Promise<Models.ColumnPolygon>;
|
|
811
1006
|
/**
|
|
812
1007
|
* Create relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
|
|
813
1008
|
*
|