diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 77b8b42436..27471cc69d 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -5387,7 +5387,7 @@ "weight": 346, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-attributes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, @@ -5398,6 +5398,7 @@ "server" ], "packaging": false, + "replaceWith": "listColumns", "auth": { "Project": [] } @@ -5471,7 +5472,7 @@ "weight": 347, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-attribute.md", "rate-limit": 0, @@ -5482,6 +5483,7 @@ "server" ], "packaging": false, + "replaceWith": "createBooleanColumn", "auth": { "Project": [] } @@ -5577,7 +5579,7 @@ "weight": 348, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-attribute.md", "rate-limit": 0, @@ -5588,6 +5590,7 @@ "server" ], "packaging": false, + "replaceWith": "updateBooleanColumn", "auth": { "Project": [] } @@ -5688,7 +5691,7 @@ "weight": 349, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-attribute.md", "rate-limit": 0, @@ -5699,6 +5702,7 @@ "server" ], "packaging": false, + "replaceWith": "createDatetimeColumn", "auth": { "Project": [] } @@ -5794,7 +5798,7 @@ "weight": 350, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-attribute.md", "rate-limit": 0, @@ -5805,6 +5809,7 @@ "server" ], "packaging": false, + "replaceWith": "updateDatetimeColumn", "auth": { "Project": [] } @@ -5905,7 +5910,7 @@ "weight": 351, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-attribute.md", "rate-limit": 0, @@ -5916,6 +5921,7 @@ "server" ], "packaging": false, + "replaceWith": "createEmailColumn", "auth": { "Project": [] } @@ -6011,7 +6017,7 @@ "weight": 352, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-attribute.md", "rate-limit": 0, @@ -6022,6 +6028,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEmailColumn", "auth": { "Project": [] } @@ -6122,7 +6129,7 @@ "weight": 353, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-attribute.md", "rate-limit": 0, @@ -6133,6 +6140,7 @@ "server" ], "packaging": false, + "replaceWith": "createEnumColumn", "auth": { "Project": [] } @@ -6237,7 +6245,7 @@ "weight": 354, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-attribute.md", "rate-limit": 0, @@ -6248,6 +6256,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEnumColumn", "auth": { "Project": [] } @@ -6357,7 +6366,7 @@ "weight": 355, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-attribute.md", "rate-limit": 0, @@ -6368,6 +6377,7 @@ "server" ], "packaging": false, + "replaceWith": "createFloatColumn", "auth": { "Project": [] } @@ -6473,7 +6483,7 @@ "weight": 356, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-attribute.md", "rate-limit": 0, @@ -6484,6 +6494,7 @@ "server" ], "packaging": false, + "replaceWith": "updateFloatColumn", "auth": { "Project": [] } @@ -6594,7 +6605,7 @@ "weight": 357, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-attribute.md", "rate-limit": 0, @@ -6605,6 +6616,7 @@ "server" ], "packaging": false, + "replaceWith": "createIntegerColumn", "auth": { "Project": [] } @@ -6710,7 +6722,7 @@ "weight": 358, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-attribute.md", "rate-limit": 0, @@ -6721,6 +6733,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIntegerColumn", "auth": { "Project": [] } @@ -6831,7 +6844,7 @@ "weight": 359, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-attribute.md", "rate-limit": 0, @@ -6842,6 +6855,7 @@ "server" ], "packaging": false, + "replaceWith": "createIpColumn", "auth": { "Project": [] } @@ -6937,7 +6951,7 @@ "weight": 360, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-attribute.md", "rate-limit": 0, @@ -6948,6 +6962,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIpColumn", "auth": { "Project": [] } @@ -7048,7 +7063,7 @@ "weight": 361, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-attribute.md", "rate-limit": 0, @@ -7059,6 +7074,7 @@ "server" ], "packaging": false, + "replaceWith": "createRelationshipColumn", "auth": { "Project": [] } @@ -7179,7 +7195,7 @@ "weight": 363, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-attribute.md", "rate-limit": 0, @@ -7190,6 +7206,7 @@ "server" ], "packaging": false, + "replaceWith": "createStringColumn", "auth": { "Project": [] } @@ -7296,7 +7313,7 @@ "weight": 364, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-attribute.md", "rate-limit": 0, @@ -7307,6 +7324,7 @@ "server" ], "packaging": false, + "replaceWith": "updateStringColumn", "auth": { "Project": [] } @@ -7412,7 +7430,7 @@ "weight": 365, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-attribute.md", "rate-limit": 0, @@ -7423,6 +7441,7 @@ "server" ], "packaging": false, + "replaceWith": "createUrlColumn", "auth": { "Project": [] } @@ -7518,7 +7537,7 @@ "weight": 366, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-attribute.md", "rate-limit": 0, @@ -7529,6 +7548,7 @@ "server" ], "packaging": false, + "replaceWith": "updateUrlColumn", "auth": { "Project": [] } @@ -7660,7 +7680,7 @@ "weight": 344, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-attribute.md", "rate-limit": 0, @@ -7671,6 +7691,7 @@ "server" ], "packaging": false, + "replaceWith": "getColumn", "auth": { "Project": [] } @@ -7731,7 +7752,7 @@ "weight": 345, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-attribute.md", "rate-limit": 0, @@ -7742,6 +7763,7 @@ "server" ], "packaging": false, + "replaceWith": "deleteColumn", "auth": { "Project": [] } @@ -7811,7 +7833,7 @@ "weight": 362, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-attribute.md", "rate-limit": 0, @@ -7822,6 +7844,7 @@ "server" ], "packaging": false, + "replaceWith": "updateRelationshipColumn", "auth": { "Project": [] } diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index a4e905fda7..22c4142e74 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4847,7 +4847,7 @@ "weight": 346, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-attributes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, @@ -4858,6 +4858,7 @@ "server" ], "packaging": false, + "replaceWith": "listColumns", "auth": { "Project": [], "Key": [] @@ -4932,7 +4933,7 @@ "weight": 347, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-attribute.md", "rate-limit": 0, @@ -4943,6 +4944,7 @@ "server" ], "packaging": false, + "replaceWith": "createBooleanColumn", "auth": { "Project": [], "Key": [] @@ -5039,7 +5041,7 @@ "weight": 348, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-attribute.md", "rate-limit": 0, @@ -5050,6 +5052,7 @@ "server" ], "packaging": false, + "replaceWith": "updateBooleanColumn", "auth": { "Project": [], "Key": [] @@ -5151,7 +5154,7 @@ "weight": 349, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-attribute.md", "rate-limit": 0, @@ -5162,6 +5165,7 @@ "server" ], "packaging": false, + "replaceWith": "createDatetimeColumn", "auth": { "Project": [], "Key": [] @@ -5258,7 +5262,7 @@ "weight": 350, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-attribute.md", "rate-limit": 0, @@ -5269,6 +5273,7 @@ "server" ], "packaging": false, + "replaceWith": "updateDatetimeColumn", "auth": { "Project": [], "Key": [] @@ -5370,7 +5375,7 @@ "weight": 351, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-attribute.md", "rate-limit": 0, @@ -5381,6 +5386,7 @@ "server" ], "packaging": false, + "replaceWith": "createEmailColumn", "auth": { "Project": [], "Key": [] @@ -5477,7 +5483,7 @@ "weight": 352, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-attribute.md", "rate-limit": 0, @@ -5488,6 +5494,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEmailColumn", "auth": { "Project": [], "Key": [] @@ -5589,7 +5596,7 @@ "weight": 353, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-attribute.md", "rate-limit": 0, @@ -5600,6 +5607,7 @@ "server" ], "packaging": false, + "replaceWith": "createEnumColumn", "auth": { "Project": [], "Key": [] @@ -5705,7 +5713,7 @@ "weight": 354, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-attribute.md", "rate-limit": 0, @@ -5716,6 +5724,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEnumColumn", "auth": { "Project": [], "Key": [] @@ -5826,7 +5835,7 @@ "weight": 355, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-attribute.md", "rate-limit": 0, @@ -5837,6 +5846,7 @@ "server" ], "packaging": false, + "replaceWith": "createFloatColumn", "auth": { "Project": [], "Key": [] @@ -5943,7 +5953,7 @@ "weight": 356, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-attribute.md", "rate-limit": 0, @@ -5954,6 +5964,7 @@ "server" ], "packaging": false, + "replaceWith": "updateFloatColumn", "auth": { "Project": [], "Key": [] @@ -6065,7 +6076,7 @@ "weight": 357, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-attribute.md", "rate-limit": 0, @@ -6076,6 +6087,7 @@ "server" ], "packaging": false, + "replaceWith": "createIntegerColumn", "auth": { "Project": [], "Key": [] @@ -6182,7 +6194,7 @@ "weight": 358, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-attribute.md", "rate-limit": 0, @@ -6193,6 +6205,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIntegerColumn", "auth": { "Project": [], "Key": [] @@ -6304,7 +6317,7 @@ "weight": 359, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-attribute.md", "rate-limit": 0, @@ -6315,6 +6328,7 @@ "server" ], "packaging": false, + "replaceWith": "createIpColumn", "auth": { "Project": [], "Key": [] @@ -6411,7 +6425,7 @@ "weight": 360, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-attribute.md", "rate-limit": 0, @@ -6422,6 +6436,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIpColumn", "auth": { "Project": [], "Key": [] @@ -6523,7 +6538,7 @@ "weight": 361, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-attribute.md", "rate-limit": 0, @@ -6534,6 +6549,7 @@ "server" ], "packaging": false, + "replaceWith": "createRelationshipColumn", "auth": { "Project": [], "Key": [] @@ -6655,7 +6671,7 @@ "weight": 363, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-attribute.md", "rate-limit": 0, @@ -6666,6 +6682,7 @@ "server" ], "packaging": false, + "replaceWith": "createStringColumn", "auth": { "Project": [], "Key": [] @@ -6773,7 +6790,7 @@ "weight": 364, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-attribute.md", "rate-limit": 0, @@ -6784,6 +6801,7 @@ "server" ], "packaging": false, + "replaceWith": "updateStringColumn", "auth": { "Project": [], "Key": [] @@ -6890,7 +6908,7 @@ "weight": 365, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-attribute.md", "rate-limit": 0, @@ -6901,6 +6919,7 @@ "server" ], "packaging": false, + "replaceWith": "createUrlColumn", "auth": { "Project": [], "Key": [] @@ -6997,7 +7016,7 @@ "weight": 366, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-attribute.md", "rate-limit": 0, @@ -7008,6 +7027,7 @@ "server" ], "packaging": false, + "replaceWith": "updateUrlColumn", "auth": { "Project": [], "Key": [] @@ -7140,7 +7160,7 @@ "weight": 344, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-attribute.md", "rate-limit": 0, @@ -7151,6 +7171,7 @@ "server" ], "packaging": false, + "replaceWith": "getColumn", "auth": { "Project": [], "Key": [] @@ -7212,7 +7233,7 @@ "weight": 345, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-attribute.md", "rate-limit": 0, @@ -7223,6 +7244,7 @@ "server" ], "packaging": false, + "replaceWith": "deleteColumn", "auth": { "Project": [], "Key": [] @@ -7293,7 +7315,7 @@ "weight": 362, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-attribute.md", "rate-limit": 0, @@ -7304,6 +7326,7 @@ "server" ], "packaging": false, + "replaceWith": "updateRelationshipColumn", "auth": { "Project": [], "Key": [] diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 4ac2c7b317..c7c873ae3f 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -5548,7 +5548,7 @@ "weight": 346, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-attributes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, @@ -5559,6 +5559,7 @@ "server" ], "packaging": false, + "replaceWith": "listColumns", "auth": { "Project": [] } @@ -5629,7 +5630,7 @@ "weight": 347, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-attribute.md", "rate-limit": 0, @@ -5640,6 +5641,7 @@ "server" ], "packaging": false, + "replaceWith": "createBooleanColumn", "auth": { "Project": [] } @@ -5735,7 +5737,7 @@ "weight": 348, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-attribute.md", "rate-limit": 0, @@ -5746,6 +5748,7 @@ "server" ], "packaging": false, + "replaceWith": "updateBooleanColumn", "auth": { "Project": [] } @@ -5843,7 +5846,7 @@ "weight": 349, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-attribute.md", "rate-limit": 0, @@ -5854,6 +5857,7 @@ "server" ], "packaging": false, + "replaceWith": "createDatetimeColumn", "auth": { "Project": [] } @@ -5949,7 +5953,7 @@ "weight": 350, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-attribute.md", "rate-limit": 0, @@ -5960,6 +5964,7 @@ "server" ], "packaging": false, + "replaceWith": "updateDatetimeColumn", "auth": { "Project": [] } @@ -6057,7 +6062,7 @@ "weight": 351, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-attribute.md", "rate-limit": 0, @@ -6068,6 +6073,7 @@ "server" ], "packaging": false, + "replaceWith": "createEmailColumn", "auth": { "Project": [] } @@ -6163,7 +6169,7 @@ "weight": 352, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-attribute.md", "rate-limit": 0, @@ -6174,6 +6180,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEmailColumn", "auth": { "Project": [] } @@ -6271,7 +6278,7 @@ "weight": 353, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-attribute.md", "rate-limit": 0, @@ -6282,6 +6289,7 @@ "server" ], "packaging": false, + "replaceWith": "createEnumColumn", "auth": { "Project": [] } @@ -6387,7 +6395,7 @@ "weight": 354, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-attribute.md", "rate-limit": 0, @@ -6398,6 +6406,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEnumColumn", "auth": { "Project": [] } @@ -6505,7 +6514,7 @@ "weight": 355, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-attribute.md", "rate-limit": 0, @@ -6516,6 +6525,7 @@ "server" ], "packaging": false, + "replaceWith": "createFloatColumn", "auth": { "Project": [] } @@ -6623,7 +6633,7 @@ "weight": 356, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-attribute.md", "rate-limit": 0, @@ -6634,6 +6644,7 @@ "server" ], "packaging": false, + "replaceWith": "updateFloatColumn", "auth": { "Project": [] } @@ -6743,7 +6754,7 @@ "weight": 357, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-attribute.md", "rate-limit": 0, @@ -6754,6 +6765,7 @@ "server" ], "packaging": false, + "replaceWith": "createIntegerColumn", "auth": { "Project": [] } @@ -6861,7 +6873,7 @@ "weight": 358, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-attribute.md", "rate-limit": 0, @@ -6872,6 +6884,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIntegerColumn", "auth": { "Project": [] } @@ -6981,7 +6994,7 @@ "weight": 359, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-attribute.md", "rate-limit": 0, @@ -6992,6 +7005,7 @@ "server" ], "packaging": false, + "replaceWith": "createIpColumn", "auth": { "Project": [] } @@ -7087,7 +7101,7 @@ "weight": 360, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-attribute.md", "rate-limit": 0, @@ -7098,6 +7112,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIpColumn", "auth": { "Project": [] } @@ -7195,7 +7210,7 @@ "weight": 361, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-attribute.md", "rate-limit": 0, @@ -7206,6 +7221,7 @@ "server" ], "packaging": false, + "replaceWith": "createRelationshipColumn", "auth": { "Project": [] } @@ -7328,7 +7344,7 @@ "weight": 363, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-attribute.md", "rate-limit": 0, @@ -7339,6 +7355,7 @@ "server" ], "packaging": false, + "replaceWith": "createStringColumn", "auth": { "Project": [] } @@ -7447,7 +7464,7 @@ "weight": 364, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-attribute.md", "rate-limit": 0, @@ -7458,6 +7475,7 @@ "server" ], "packaging": false, + "replaceWith": "updateStringColumn", "auth": { "Project": [] } @@ -7561,7 +7579,7 @@ "weight": 365, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-attribute.md", "rate-limit": 0, @@ -7572,6 +7590,7 @@ "server" ], "packaging": false, + "replaceWith": "createUrlColumn", "auth": { "Project": [] } @@ -7667,7 +7686,7 @@ "weight": 366, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-attribute.md", "rate-limit": 0, @@ -7678,6 +7697,7 @@ "server" ], "packaging": false, + "replaceWith": "updateUrlColumn", "auth": { "Project": [] } @@ -7804,7 +7824,7 @@ "weight": 344, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-attribute.md", "rate-limit": 0, @@ -7815,6 +7835,7 @@ "server" ], "packaging": false, + "replaceWith": "getColumn", "auth": { "Project": [] } @@ -7873,7 +7894,7 @@ "weight": 345, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-attribute.md", "rate-limit": 0, @@ -7884,6 +7905,7 @@ "server" ], "packaging": false, + "replaceWith": "deleteColumn", "auth": { "Project": [] } @@ -7949,7 +7971,7 @@ "weight": 362, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-attribute.md", "rate-limit": 0, @@ -7960,6 +7982,7 @@ "server" ], "packaging": false, + "replaceWith": "updateRelationshipColumn", "auth": { "Project": [] } diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 215735cdb9..2028f2a9cd 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4998,7 +4998,7 @@ "weight": 346, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/list-attributes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, @@ -5009,6 +5009,7 @@ "server" ], "packaging": false, + "replaceWith": "listColumns", "auth": { "Project": [], "Key": [] @@ -5080,7 +5081,7 @@ "weight": 347, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-attribute.md", "rate-limit": 0, @@ -5091,6 +5092,7 @@ "server" ], "packaging": false, + "replaceWith": "createBooleanColumn", "auth": { "Project": [], "Key": [] @@ -5187,7 +5189,7 @@ "weight": 348, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-boolean-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-attribute.md", "rate-limit": 0, @@ -5198,6 +5200,7 @@ "server" ], "packaging": false, + "replaceWith": "updateBooleanColumn", "auth": { "Project": [], "Key": [] @@ -5296,7 +5299,7 @@ "weight": 349, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-attribute.md", "rate-limit": 0, @@ -5307,6 +5310,7 @@ "server" ], "packaging": false, + "replaceWith": "createDatetimeColumn", "auth": { "Project": [], "Key": [] @@ -5403,7 +5407,7 @@ "weight": 350, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-datetime-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-attribute.md", "rate-limit": 0, @@ -5414,6 +5418,7 @@ "server" ], "packaging": false, + "replaceWith": "updateDatetimeColumn", "auth": { "Project": [], "Key": [] @@ -5512,7 +5517,7 @@ "weight": 351, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-attribute.md", "rate-limit": 0, @@ -5523,6 +5528,7 @@ "server" ], "packaging": false, + "replaceWith": "createEmailColumn", "auth": { "Project": [], "Key": [] @@ -5619,7 +5625,7 @@ "weight": 352, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-email-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-attribute.md", "rate-limit": 0, @@ -5630,6 +5636,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEmailColumn", "auth": { "Project": [], "Key": [] @@ -5728,7 +5735,7 @@ "weight": 353, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-attribute.md", "rate-limit": 0, @@ -5739,6 +5746,7 @@ "server" ], "packaging": false, + "replaceWith": "createEnumColumn", "auth": { "Project": [], "Key": [] @@ -5845,7 +5853,7 @@ "weight": 354, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-enum-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-attribute.md", "rate-limit": 0, @@ -5856,6 +5864,7 @@ "server" ], "packaging": false, + "replaceWith": "updateEnumColumn", "auth": { "Project": [], "Key": [] @@ -5964,7 +5973,7 @@ "weight": 355, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-attribute.md", "rate-limit": 0, @@ -5975,6 +5984,7 @@ "server" ], "packaging": false, + "replaceWith": "createFloatColumn", "auth": { "Project": [], "Key": [] @@ -6083,7 +6093,7 @@ "weight": 356, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-float-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-attribute.md", "rate-limit": 0, @@ -6094,6 +6104,7 @@ "server" ], "packaging": false, + "replaceWith": "updateFloatColumn", "auth": { "Project": [], "Key": [] @@ -6204,7 +6215,7 @@ "weight": 357, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-attribute.md", "rate-limit": 0, @@ -6215,6 +6226,7 @@ "server" ], "packaging": false, + "replaceWith": "createIntegerColumn", "auth": { "Project": [], "Key": [] @@ -6323,7 +6335,7 @@ "weight": 358, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-integer-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-attribute.md", "rate-limit": 0, @@ -6334,6 +6346,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIntegerColumn", "auth": { "Project": [], "Key": [] @@ -6444,7 +6457,7 @@ "weight": 359, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-attribute.md", "rate-limit": 0, @@ -6455,6 +6468,7 @@ "server" ], "packaging": false, + "replaceWith": "createIpColumn", "auth": { "Project": [], "Key": [] @@ -6551,7 +6565,7 @@ "weight": 360, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-ip-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-attribute.md", "rate-limit": 0, @@ -6562,6 +6576,7 @@ "server" ], "packaging": false, + "replaceWith": "updateIpColumn", "auth": { "Project": [], "Key": [] @@ -6660,7 +6675,7 @@ "weight": 361, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-attribute.md", "rate-limit": 0, @@ -6671,6 +6686,7 @@ "server" ], "packaging": false, + "replaceWith": "createRelationshipColumn", "auth": { "Project": [], "Key": [] @@ -6794,7 +6810,7 @@ "weight": 363, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-attribute.md", "rate-limit": 0, @@ -6805,6 +6821,7 @@ "server" ], "packaging": false, + "replaceWith": "createStringColumn", "auth": { "Project": [], "Key": [] @@ -6914,7 +6931,7 @@ "weight": 364, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-string-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-attribute.md", "rate-limit": 0, @@ -6925,6 +6942,7 @@ "server" ], "packaging": false, + "replaceWith": "updateStringColumn", "auth": { "Project": [], "Key": [] @@ -7029,7 +7047,7 @@ "weight": 365, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/create-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-attribute.md", "rate-limit": 0, @@ -7040,6 +7058,7 @@ "server" ], "packaging": false, + "replaceWith": "createUrlColumn", "auth": { "Project": [], "Key": [] @@ -7136,7 +7155,7 @@ "weight": 366, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-url-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-attribute.md", "rate-limit": 0, @@ -7147,6 +7166,7 @@ "server" ], "packaging": false, + "replaceWith": "updateUrlColumn", "auth": { "Project": [], "Key": [] @@ -7274,7 +7294,7 @@ "weight": 344, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/get-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-attribute.md", "rate-limit": 0, @@ -7285,6 +7305,7 @@ "server" ], "packaging": false, + "replaceWith": "getColumn", "auth": { "Project": [], "Key": [] @@ -7344,7 +7365,7 @@ "weight": 345, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/delete-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-attribute.md", "rate-limit": 0, @@ -7355,6 +7376,7 @@ "server" ], "packaging": false, + "replaceWith": "deleteColumn", "auth": { "Project": [], "Key": [] @@ -7421,7 +7443,7 @@ "weight": 362, "cookies": false, "type": "", - "deprecated": false, + "deprecated": true, "demo": "databases\/update-relationship-attribute.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-attribute.md", "rate-limit": 0, @@ -7432,6 +7454,7 @@ "server" ], "packaging": false, + "replaceWith": "updateRelationshipColumn", "auth": { "Project": [], "Key": [] diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 2bb009cf61..2a200f404c 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2323,7 +2323,7 @@ App::put('/v1/account/sessions/magic-url') ) ], contentType: ContentType::JSON, - deprecated: true, + deprecated: [], )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') @@ -2361,7 +2361,7 @@ App::put('/v1/account/sessions/phone') ) ], contentType: ContentType::JSON, - deprecated: true, + deprecated: [], )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php index c38ef8d703..a33668fc50 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php @@ -51,7 +51,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createBooleanColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php index 9bb606edf5..ec2c7d0181 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php @@ -52,7 +52,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateBooleanColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php index ff8054abe4..5672deefe1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php @@ -52,7 +52,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel() ) - ] + ], + deprecated: [ + 'replaceWith' => 'createDatetimeColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php index 5f8909a294..16c48abf17 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php @@ -53,7 +53,10 @@ class Update extends Action model: $this->getResponseModel() ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateDatetimeColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php index 5816de31a2..5db2bd4b51 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php @@ -53,7 +53,10 @@ class Delete extends Action model: UtopiaResponse::MODEL_NONE, ) ], - contentType: ContentType::NONE + contentType: ContentType::NONE, + deprecated: [ + 'replaceWith' => 'deleteColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php index 3c703f23a7..04b3b44285 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php @@ -52,7 +52,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createEmailColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php index c8a34cf55c..13fec34f5f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php @@ -53,7 +53,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateEmailColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php index 76478a505f..84a2325a36 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php @@ -54,7 +54,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createEnumColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php index 8624bde78d..59c1099687 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php @@ -54,7 +54,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateEnumColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php index 520366f689..a945006612 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php @@ -54,7 +54,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createFloatColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php index 18a966d91d..34fbfd1cd3 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php @@ -53,7 +53,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateFloatColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php index 579f7883e0..db24b93e80 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php @@ -56,7 +56,10 @@ class Get extends Action code: SwooleResponse::STATUS_CODE_OK, model: $this->getResponseModel() ) - ] + ], + deprecated: [ + 'replaceWith' => 'getColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php index e46e508bc6..fc656a91cc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php @@ -52,7 +52,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createIpColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php index e9d9404c17..d9368de7a4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php @@ -53,7 +53,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateIpColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php index e348e9a2a6..b698ef8f9b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php @@ -54,7 +54,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createIntegerColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php index bbbf045115..a72c99774a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php @@ -53,7 +53,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateIntegerColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php index 795ea445c8..249ba1ea46 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php @@ -54,7 +54,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel() ) - ] + ], + deprecated: [ + 'replaceWith' => 'createRelationshipColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php index 7202a3e4e6..a18a14a096 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php @@ -51,7 +51,10 @@ class Update extends Action model: $this->getResponseModel() ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateRelationshipColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php index 8ce8626f3a..c0543700b8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php @@ -55,7 +55,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel() ) - ] + ], + deprecated: [ + 'replaceWith' => 'createStringColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php index b359b83eaa..10fc0c1ec8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php @@ -55,7 +55,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateStringColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php index 27bc2d38c1..60ed2c6ca4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php @@ -52,7 +52,10 @@ class Create extends Action code: SwooleResponse::STATUS_CODE_ACCEPTED, model: $this->getResponseModel(), ) - ] + ], + deprecated: [ + 'replaceWith' => 'createUrlColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php index ae48c43653..b03c73533b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php @@ -53,7 +53,10 @@ class Update extends Action model: $this->getResponseModel(), ) ], - contentType: ContentType::JSON + contentType: ContentType::JSON, + deprecated: [ + 'replaceWith' => 'updateUrlColumn', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php index e09420d7ce..3aec06eb5e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php @@ -50,7 +50,10 @@ class XList extends Action code: SwooleResponse::STATUS_CODE_OK, model: $this->getResponseModel() ) - ] + ], + deprecated: [ + 'replaceWith' => 'listColumns', + ], )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php index d0b08f154e..c1481f2d5f 100644 --- a/src/Appwrite/SDK/Method.php +++ b/src/Appwrite/SDK/Method.php @@ -23,7 +23,7 @@ class Method * @param array $responses * @param ContentType $contentType * @param MethodType|null $type - * @param bool $deprecated + * @param ?array $deprecated * @param array|bool $hide * @param bool $packaging * @param ContentType $requestType @@ -39,7 +39,7 @@ class Method protected array $responses, protected ContentType $contentType = ContentType::JSON, protected ?MethodType $type = null, - protected bool $deprecated = false, + protected ?array $deprecated = null, protected array|bool $hide = false, protected bool $packaging = false, protected ContentType $requestType = ContentType::JSON, @@ -177,7 +177,34 @@ class Method public function isDeprecated(): bool { - return $this->deprecated; + return $this->deprecated !== null; + } + + /** + * Get the deprecation info array + * @return array + */ + public function getDeprecationInfo(): array + { + return $this->deprecated ?? []; + } + + /** + * Get the deprecation message if set + * @return string|null + */ + public function getDeprecationMessage(): ?string + { + return $this->deprecated['message'] ?? ''; + } + + /** + * Get the replacement method if set + * @return string|null + */ + public function getDeprecationReplacement(): ?string + { + return $this->deprecated['replaceWith'] ?? ''; } public function isHidden(): bool|array @@ -258,7 +285,12 @@ class Method return $this; } - public function setDeprecated(bool $deprecated): self + /** + * Set the deprecation info array + * @param array $deprecated + * @return self + */ + public function setDeprecated(array $deprecated): self { $this->deprecated = $deprecated; return $this; diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index a9e24a2e44..b087fd406f 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -170,6 +170,13 @@ class OpenAPI3 extends Format ], ]; + if (!empty($sdk->getDeprecationReplacement())) { + $temp['x-appwrite']['replaceWith'] = $sdk->getDeprecationReplacement(); + } + + if (!empty($sdk->getDeprecationMessage())) { + $temp['x-appwrite']['deprecatedMessage'] = $sdk->getDeprecationMessage(); + } if (!empty($additionalMethods)) { $temp['x-appwrite']['methods'] = []; diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 4c4016e7e7..d2a0776f93 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -172,6 +172,14 @@ class Swagger2 extends Format ], ]; + if (!empty($sdk->getDeprecationReplacement())) { + $temp['x-appwrite']['replaceWith'] = $sdk->getDeprecationReplacement(); + } + + if (!empty($sdk->getDeprecationMessage())) { + $temp['x-appwrite']['deprecatedMessage'] = $sdk->getDeprecationMessage(); + } + if ($produces) { $temp['produces'][] = $produces; }