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.
- package/README.md +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/BaseService.d.ts +1 -1
- package/dist/services/Projects.d.ts +16 -1
- package/dist/types/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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;
|