Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## 0.30.1

* Fixed: Removed `Advisor` service and `Insight`, `InsightCTA`, `InsightList`, `Report`, `ReportList` models (admin-only endpoints, not intended for client SDKs)
* Added: `sizeActual` field to `File` model

## 0.30.0

* Added: Realtime `presences` channel and `RealtimePresence` types for presence subscriptions
Expand Down
16 changes: 0 additions & 16 deletions docs/examples/advisor/get-insight.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/examples/advisor/get-report.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/examples/advisor/list-insights.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/examples/advisor/list-reports.md

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-native-appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
"version": "0.30.0",
"version": "0.30.1",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Client {
'x-sdk-name': 'React Native',
'x-sdk-platform': 'client',
'x-sdk-language': 'reactnative',
'x-sdk-version': '0.30.0',
'x-sdk-version': '0.30.1',
'X-Appwrite-Response-Format': '1.9.5',
};

Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export { Graphql } from './services/graphql';
export { Locale } from './services/locale';
export { Messaging } from './services/messaging';
export { Presences } from './services/presences';
export { Advisor } from './services/advisor';
export { Storage } from './services/storage';
export { TablesDB } from './services/tables-db';
export { Teams } from './services/teams';
Expand Down
182 changes: 4 additions & 178 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,34 +243,6 @@ export namespace Models {
transactions: Transaction[];
}

/**
* Insights List
*/
export type InsightList = {
/**
* Total number of insights that matched your query.
*/
total: number;
/**
* List of insights.
*/
insights: Insight[];
}

/**
* Reports List
*/
export type ReportList = {
/**
* Total number of reports that matched your query.
*/
total: number;
/**
* List of reports.
*/
reports: Report[];
}

/**
* Row
*/
Expand Down Expand Up @@ -993,6 +965,10 @@ export namespace Models {
* File original size in bytes.
*/
sizeOriginal: number;
/**
* File actual stored size in bytes after compression and/or encryption.
*/
sizeActual: number;
/**
* Total number of chunks available
*/
Expand Down Expand Up @@ -1474,154 +1450,4 @@ export namespace Models {
*/
expired: boolean;
}

/**
* Insight
*/
export type Insight = {
/**
* Insight ID.
*/
$id: string;
/**
* Insight creation date in ISO 8601 format.
*/
$createdAt: string;
/**
* Insight update date in ISO 8601 format.
*/
$updatedAt: string;
/**
* Parent report ID. Insights always belong to a report.
*/
reportId: string;
/**
* Insight type. One of databaseIndex (legacy), tablesDBIndex, documentsDBIndex, vectorsDBIndex, databasePerformance, sitePerformance, siteAccessibility, siteSeo, functionPerformance. The index types are engine-specific so each CTA can pair the right service+method (databases.createIndex, tablesDB.createIndex, documentsDB.createIndex, or vectorsDB.createIndex).
*/
type: string;
/**
* Insight severity. One of info, warning, critical.
*/
severity: string;
/**
* Insight status. One of active, dismissed.
*/
status: string;
/**
* Type of the resource the insight is about. Plural noun, e.g. databases, sites, functions.
*/
resourceType: string;
/**
* ID of the resource the insight is about.
*/
resourceId: string;
/**
* Plural noun for the parent resource that contains the insight's resource, e.g. an insight about a column index on a table → resourceType=indexes, parentResourceType=tables. Empty when the resource has no parent.
*/
parentResourceType: string;
/**
* ID of the parent resource. Empty when the resource has no parent.
*/
parentResourceId: string;
/**
* Insight title.
*/
title: string;
/**
* Short markdown summary describing the insight.
*/
summary: string;
/**
* List of call-to-action buttons attached to this insight.
*/
ctas: InsightCTA[];
/**
* Time the insight was analyzed in ISO 8601 format.
*/
analyzedAt?: string;
/**
* Time the insight was dismissed in ISO 8601 format. Empty when not dismissed.
*/
dismissedAt?: string;
/**
* User ID that dismissed the insight. Empty when not dismissed.
*/
dismissedBy?: string;
}

/**
* InsightCTA
*/
export type InsightCTA = {
/**
* Human-readable label for the CTA, used in UI.
*/
label: string;
/**
* Public API service (SDK namespace) the client should invoke. Must match the engine that owns the resource — for index suggestions: databases (legacy), tablesDB, documentsDB, or vectorsDB.
*/
service: string;
/**
* Public API method on the chosen service the client should invoke when this CTA is triggered.
*/
method: string;
/**
* Parameter map the client should pass to the service method when this CTA is triggered. Keys match the target API's parameter names (e.g. databaseId/tableId/columns for tablesDB, databaseId/collectionId/attributes for the legacy Databases API).
*/
params: object;
}

/**
* Report
*/
export type Report = {
/**
* Report ID.
*/
$id: string;
/**
* Report creation date in ISO 8601 format.
*/
$createdAt: string;
/**
* Report update date in ISO 8601 format.
*/
$updatedAt: string;
/**
* ID of the third-party app that submitted the report.
*/
appId: string;
/**
* Analyzer that produced this report. e.g. lighthouse, audit, databaseAnalyzer.
*/
type: string;
/**
* Short, human-readable title for the report.
*/
title: string;
/**
* Markdown summary describing the report.
*/
summary: string;
/**
* Plural noun describing what the report analyzes, e.g. databases, sites, urls.
*/
targetType: string;
/**
* Free-form target identifier (URL for lighthouse, resource ID for db).
*/
target: string;
/**
* Categories covered by the report, e.g. performance, accessibility.
*/
categories: string[];
/**
* Insights nested under this report.
*/
insights: Insight[];
/**
* Time the report was analyzed in ISO 8601 format.
*/
analyzedAt?: string;
}
}
Loading