buildx-sdk 1.8.13 → 1.8.15

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.
@@ -1,5 +1,5 @@
1
1
  import { BaseService } from "./BaseService";
2
- import { Project, ErrorResponse, SuccessResponse } from "../types/index";
2
+ import { Project, ErrorResponse, SuccessResponse, ProjectLocalePayload, ProjectLocaleValidationResponse } from "../types/index";
3
3
  /**
4
4
  * Projects service for Buildx
5
5
  * Handles project management operations
@@ -40,6 +40,21 @@ export declare class Projects {
40
40
  * Update project
41
41
  */
42
42
  update(projectId: string, projectData: Partial<Project>): Promise<Project | ErrorResponse>;
43
+ /**
44
+ * Update project metadata and locale defaults (timezone/language).
45
+ */
46
+ updateMetadata(projectId: string, payload: {
47
+ metadata?: Record<string, any>;
48
+ default_language?: string;
49
+ timezone?: string;
50
+ }): Promise<Project | ErrorResponse>;
51
+ /**
52
+ * Validate locale format for project settings.
53
+ * Format:
54
+ * - default_language: "en" | "en-US"
55
+ * - timezone: "Asia/Bangkok" | "UTC"
56
+ */
57
+ validateLocale(payload: ProjectLocalePayload): Promise<ProjectLocaleValidationResponse | ErrorResponse>;
43
58
  /**
44
59
  * Delete project
45
60
  */
@@ -23,6 +23,14 @@ export interface Project {
23
23
  updated_at: string;
24
24
  [key: string]: any;
25
25
  }
26
+ export interface ProjectLocalePayload {
27
+ default_language: string;
28
+ timezone: string;
29
+ }
30
+ export interface ProjectLocaleValidationResponse {
31
+ success: true;
32
+ data: ProjectLocalePayload;
33
+ }
26
34
  export interface Collection {
27
35
  _id: string;
28
36
  collection_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildx-sdk",
3
- "version": "1.8.13",
3
+ "version": "1.8.15",
4
4
  "description": "Official JavaScript/TypeScript SDK for Buildx low-code platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",