Skip to content

Commit

Permalink
Release candidate for 1.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Feb 5, 2024
1 parent 95a60ca commit 5610f71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/examples/projects/update-service-status.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client, , Projects } from "@appwrite.io/console";
import { Client, APIService, Projects } from "@appwrite.io/console";

const client = new Client();

Expand All @@ -9,7 +9,7 @@ client
.setProject('5df5acd0d48c2') // Your project ID
;

const promise = projects.updateServiceStatus('[PROJECT_ID]', .Account, false);
const promise = projects.updateServiceStatus('[PROJECT_ID]', APIService.Account, false);

promise.then(function (response) {
console.log(response); // Success
Expand Down
2 changes: 1 addition & 1 deletion src/enums/service.ts → src/enums/a-p-i-service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum Service {
export enum APIService {
Account = 'account',
Avatars = 'avatars',
Databases = 'databases',
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export { ProjectUsageRange } from './enums/project-usage-range';
export { Region } from './enums/region';
export { AuthMethod } from './enums/auth-method';
export { PlatformType } from './enums/platform-type';
export { Service } from './enums/service';
export { APIService } from './enums/a-p-i-service';
export { SMTPSecure } from './enums/s-m-t-p-secure';
export { TemplateType } from './enums/template-type';
export { TemplateLocale } from './enums/template-locale';
Expand Down
6 changes: 3 additions & 3 deletions src/services/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Region } from '../enums/region';
import { AuthMethod } from '../enums/auth-method';
import { OAuthProvider } from '../enums/o-auth-provider';
import { PlatformType } from '../enums/platform-type';
import { Service } from '../enums/service';
import { APIService } from '../enums/a-p-i-service';
import { SMTPSecure } from '../enums/s-m-t-p-secure';
import { TemplateType } from '../enums/template-type';
import { TemplateLocale } from '../enums/template-locale';
Expand Down Expand Up @@ -886,12 +886,12 @@ export class Projects extends Service {
*
*
* @param {string} projectId
* @param {Service} service
* @param {APIService} service
* @param {boolean} status
* @throws {AppwriteException}
* @returns {Promise}
*/
async updateServiceStatus(projectId: string, service: Service, status: boolean): Promise<Models.Project> {
async updateServiceStatus(projectId: string, service: APIService, status: boolean): Promise<Models.Project> {
if (typeof projectId === 'undefined') {
throw new AppwriteException('Missing required parameter: "projectId"');
}
Expand Down

0 comments on commit 5610f71

Please sign in to comment.