From c759b99ca2b1ddb0113c8e995b2a82ba3778905f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Oct 2024 12:20:50 +0000 Subject: [PATCH 1/2] Fix new version names --- README.md | 2 +- package.json | 2 +- src/client.ts | 3 +- src/enums/runtime.ts | 4 +- src/enums/s-m-t-p-secure.ts | 1 - src/models.ts | 88 ------------------------------------- 6 files changed, 5 insertions(+), 95 deletions(-) diff --git a/README.md b/README.md index 0c4bb75..3c1d43f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console"; To install with a CDN (content delivery network) add the following scripts to the bottom of your tag, but before you use any Appwrite services: ```html - + ``` diff --git a/package.json b/package.json index 9537bda..01aa4a0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@appwrite.io/console", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API", - "version": "1.2.1", + "version": "1.2.2", "license": "BSD-3-Clause", "main": "dist/cjs/sdk.js", "exports": { diff --git a/src/client.ts b/src/client.ts index 0304c87..9893d9f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -304,7 +304,7 @@ class Client { 'x-sdk-name': 'Console', 'x-sdk-platform': 'console', 'x-sdk-language': 'web', - 'x-sdk-version': '1.2.1', + 'x-sdk-version': '1.2.2', 'X-Appwrite-Response-Format': '1.6.0', }; @@ -602,7 +602,6 @@ class Client { let options: RequestInit = { method, headers, - credentials: 'include', }; if (method === 'GET') { diff --git a/src/enums/runtime.ts b/src/enums/runtime.ts index 6b33982..f000c00 100644 --- a/src/enums/runtime.ts +++ b/src/enums/runtime.ts @@ -5,7 +5,7 @@ export enum Runtime { Node190 = 'node-19.0', Node200 = 'node-20.0', Node210 = 'node-21.0', - Node220 = 'node-22.0', + Node22 = 'node-22', Php80 = 'php-8.0', Php81 = 'php-8.1', Php82 = 'php-8.2', @@ -42,7 +42,7 @@ export enum Runtime { Java170 = 'java-17.0', Java180 = 'java-18.0', Java210 = 'java-21.0', - Java220 = 'java-22.0', + Java22 = 'java-22', Swift55 = 'swift-5.5', Swift58 = 'swift-5.8', Swift59 = 'swift-5.9', diff --git a/src/enums/s-m-t-p-secure.ts b/src/enums/s-m-t-p-secure.ts index 26e1863..f069ba7 100644 --- a/src/enums/s-m-t-p-secure.ts +++ b/src/enums/s-m-t-p-secure.ts @@ -1,4 +1,3 @@ export enum SMTPSecure { Tls = 'tls', - Ssl = 'ssl', } \ No newline at end of file diff --git a/src/models.ts b/src/models.ts index 72b1289..412d15d 100644 --- a/src/models.ts +++ b/src/models.ts @@ -646,14 +646,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * Attribute size. */ @@ -691,14 +683,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * Minimum value to enforce for new documents. */ @@ -740,14 +724,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * Minimum value to enforce for new documents. */ @@ -789,14 +765,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * Default value for attribute when not provided. Cannot be set when attribute is required. */ @@ -830,14 +798,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * String format. */ @@ -875,14 +835,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * Array of elements in enumerated type. */ @@ -924,14 +876,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * String format. */ @@ -969,14 +913,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * String format. */ @@ -1014,14 +950,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * ISO 8601 format. */ @@ -1059,14 +987,6 @@ export namespace Models { * Is attribute an array? */ array?: boolean; - /** - * Attribute creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Attribute update date in ISO 8601 format. - */ - $updatedAt: string; /** * The ID of the related collection. */ @@ -1120,14 +1040,6 @@ export namespace Models { * Index orders. */ orders?: string[]; - /** - * Index creation date in ISO 8601 format. - */ - $createdAt: string; - /** - * Index update date in ISO 8601 format. - */ - $updatedAt: string; } /** * Document From 5881984dc3ec9579f5f1feae39314596efdcd366 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Oct 2024 12:26:58 +0000 Subject: [PATCH 2/2] revert unwanted changes --- src/client.ts | 1 + src/enums/s-m-t-p-secure.ts | 1 + src/models.ts | 96 +++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) diff --git a/src/client.ts b/src/client.ts index 9893d9f..05a6aca 100644 --- a/src/client.ts +++ b/src/client.ts @@ -602,6 +602,7 @@ class Client { let options: RequestInit = { method, headers, + credentials: 'include', }; if (method === 'GET') { diff --git a/src/enums/s-m-t-p-secure.ts b/src/enums/s-m-t-p-secure.ts index f069ba7..26e1863 100644 --- a/src/enums/s-m-t-p-secure.ts +++ b/src/enums/s-m-t-p-secure.ts @@ -1,3 +1,4 @@ export enum SMTPSecure { Tls = 'tls', + Ssl = 'ssl', } \ No newline at end of file diff --git a/src/models.ts b/src/models.ts index 412d15d..46bb345 100644 --- a/src/models.ts +++ b/src/models.ts @@ -646,6 +646,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * Attribute size. */ @@ -683,6 +691,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * Minimum value to enforce for new documents. */ @@ -724,6 +740,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * Minimum value to enforce for new documents. */ @@ -765,6 +789,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * Default value for attribute when not provided. Cannot be set when attribute is required. */ @@ -798,6 +830,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * String format. */ @@ -835,6 +875,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * Array of elements in enumerated type. */ @@ -876,6 +924,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * String format. */ @@ -913,6 +969,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * String format. */ @@ -950,6 +1014,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * ISO 8601 format. */ @@ -987,6 +1059,14 @@ export namespace Models { * Is attribute an array? */ array?: boolean; + /** + * Attribute creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Attribute update date in ISO 8601 format. + */ + $updatedAt: string; /** * The ID of the related collection. */ @@ -1040,6 +1120,14 @@ export namespace Models { * Index orders. */ orders?: string[]; + /** + * Index creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Index update date in ISO 8601 format. + */ + $updatedAt: string; } /** * Document @@ -2505,6 +2593,14 @@ export namespace Models { * SMTP server secure protocol */ smtpSecure: string; + /** + * Number of times the ping was received for this project. + */ + pingCount: number; + /** + * Last ping datetime in ISO 8601 format. + */ + pingedAt: string; /** * Email/Password auth method status */