@boltic/sdk 0.0.8 → 0.0.9

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.
@@ -205,9 +205,13 @@ export declare class BolticClient {
205
205
  validation?: boolean;
206
206
  }) => Promise<RecordBulkInsertResponse | BolticErrorResponse>;
207
207
  findAll: (tableName: string, options?: RecordQueryOptions) => Promise<BolticErrorResponse | BolticListResponse<RecordWithId>>;
208
- findOne: (tableName: string, recordId: string) => Promise<BolticErrorResponse | BolticSuccessResponse<RecordWithId>>;
208
+ findOne: (tableName: string, recordId: string, options?: {
209
+ show_decrypted?: boolean;
210
+ }) => Promise<BolticErrorResponse | BolticSuccessResponse<RecordWithId>>;
209
211
  update: (tableName: string, options: RecordUpdateOptions) => Promise<BolticErrorResponse | BolticListResponse<RecordWithId>>;
210
- updateById: (tableName: string, recordId: string, data: RecordData) => Promise<BolticErrorResponse | BolticSuccessResponse<RecordWithId>>;
212
+ updateById: (tableName: string, recordId: string, data: RecordData, options?: {
213
+ show_decrypted?: boolean;
214
+ }) => Promise<BolticErrorResponse | BolticSuccessResponse<RecordWithId>>;
211
215
  delete: (tableName: string, options: RecordDeleteOptions) => Promise<BolticErrorResponse | BolticSuccessResponse<{
212
216
  message: string;
213
217
  }>>;
@@ -351,6 +355,8 @@ declare interface ColumnDetails {
351
355
  multiple_selections?: boolean;
352
356
  phone_format?: string;
353
357
  vector_dimension?: number;
358
+ show_decrypted?: boolean;
359
+ is_deterministic?: boolean;
354
360
  }
355
361
 
356
362
  declare interface ColumnQueryOptions {
@@ -401,6 +407,8 @@ declare interface ColumnUpdateRequest {
401
407
  time_format?: keyof typeof TimeFormatEnum;
402
408
  timezone?: string;
403
409
  vector_dimension?: number;
410
+ show_decrypted?: boolean;
411
+ is_deterministic?: boolean;
404
412
  }
405
413
 
406
414
  export declare function createClient(apiKey: string, options?: ClientOptions): BolticClient;
@@ -567,10 +575,8 @@ declare interface EnvironmentConfig {
567
575
  declare type ErrorInterceptor = (error: unknown) => unknown | Promise<unknown>;
568
576
 
569
577
  declare interface ExecuteSQLApiResponse {
570
- data: [
571
- Record<string, unknown>[],
572
- unknown
573
- ];
578
+ data: Record<string, unknown>[];
579
+ count?: number;
574
580
  pagination?: {
575
581
  total_count: number;
576
582
  total_pages: number;
@@ -609,9 +615,11 @@ export declare interface FieldDefinition {
609
615
  multiple_selections?: boolean;
610
616
  phone_format?: string;
611
617
  vector_dimension?: number;
618
+ show_decrypted?: boolean;
619
+ is_deterministic?: boolean;
612
620
  }
613
621
 
614
- export declare type FieldType = 'text' | 'long-text' | 'number' | 'currency' | 'checkbox' | 'dropdown' | 'email' | 'phone-number' | 'link' | 'json' | 'date-time' | 'vector' | 'halfvec' | 'sparsevec';
622
+ export declare type FieldType = 'text' | 'long-text' | 'number' | 'currency' | 'checkbox' | 'dropdown' | 'email' | 'phone-number' | 'link' | 'json' | 'date-time' | 'vector' | 'halfvec' | 'sparsevec' | 'encrypted';
615
623
 
616
624
  /**
617
625
  * Filter parameters
@@ -902,7 +910,10 @@ declare class RecordResource {
902
910
  /**
903
911
  * Get a single record by ID
904
912
  */
905
- get(tableName: string, recordId: string, dbId?: string): Promise<BolticSuccessResponse<RecordWithId> | BolticErrorResponse>;
913
+ get(tableName: string, recordId: string, optionsOrDbId?: {
914
+ show_decrypted?: boolean;
915
+ dbId?: string;
916
+ } | string, dbId?: string): Promise<BolticSuccessResponse<RecordWithId> | BolticErrorResponse>;
906
917
  /**
907
918
  * List records with filtering and pagination
908
919
  */
@@ -914,7 +925,10 @@ declare class RecordResource {
914
925
  /**
915
926
  * Update a single record by ID
916
927
  */
917
- updateById(tableName: string, recordId: string, data: RecordData, dbId?: string): Promise<BolticSuccessResponse<RecordWithId> | BolticErrorResponse>;
928
+ updateById(tableName: string, recordId: string, data: RecordData, optionsOrDbId?: {
929
+ show_decrypted?: boolean;
930
+ dbId?: string;
931
+ } | string, dbId?: string): Promise<BolticSuccessResponse<RecordWithId> | BolticErrorResponse>;
918
932
  /**
919
933
  * Unified delete method that supports both record IDs and filters
920
934
  */
@@ -942,6 +956,7 @@ declare interface RecordUpdateOptions {
942
956
  set: RecordData;
943
957
  filters: ApiFilter[] | Record<string, unknown>[];
944
958
  fields?: string[];
959
+ show_decrypted?: boolean;
945
960
  }
946
961
 
947
962
  export declare interface RecordWithId extends RecordData {
package/package.json CHANGED
@@ -1,85 +1,85 @@
1
1
  {
2
- "name": "@boltic/sdk",
3
- "version": "0.0.8",
4
- "description": "TypeScript SDK for Boltic databases infrastructure",
5
- "main": "dist/sdk.js",
6
- "module": "dist/sdk.mjs",
7
- "types": "dist/types/index.d.ts",
8
- "license": "MIT",
9
- "engines": {
10
- "node": ">=18.0.0",
11
- "npm": ">=8.0.0"
12
- },
13
- "exports": {
14
- ".": {
15
- "types": "./dist/types/index.d.ts",
16
- "import": "./dist/sdk.mjs",
17
- "require": "./dist/sdk.js"
18
- }
19
- },
20
- "files": [
21
- "dist/",
22
- "README.md",
23
- "LICENSE"
24
- ],
25
- "sideEffects": false,
26
- "keywords": [
27
- "boltic",
28
- "sdk",
29
- "typescript",
30
- "api",
31
- "database",
32
- "auth"
33
- ],
34
- "repository": {
35
- "type": "git",
36
- "url": "https://github.com/bolticio/boltic-sdk.git"
37
- },
38
- "scripts": {
39
- "build": "vite build && node scripts/build.js",
40
- "dev": "vite build --watch",
41
- "test": "vitest",
42
- "test:ui": "vitest --ui",
43
- "test:coverage": "vitest --coverage",
44
- "test:module": "node scripts/test-module-imports.js",
45
- "type-check": "tsc --noEmit",
46
- "lint": "eslint \"src/**/*.{ts,tsx}\"",
47
- "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
48
- "format": "prettier --write src tests examples docs",
49
- "docs:generate": "typedoc src/index.ts",
50
- "docs:serve": "npx serve docs/api",
51
- "publish:branch": "npm run build && npm publish --tag $(git branch --show-current | sed 's/[^a-zA-Z0-9]/-/g')",
52
- "publish:latest": "npm run build && npm publish",
53
- "release": "npm run build && npm run test && npm publish",
54
- "prepublishOnly": "npm run build"
55
- },
56
- "devDependencies": {
57
- "@types/node": "^20.0.0",
58
- "@typescript-eslint/eslint-plugin": "^6.21.0",
59
- "@typescript-eslint/parser": "^6.0.0",
60
- "@vitest/ui": "^4.0.16",
61
- "eslint": "^8.0.0",
62
- "eslint-config-prettier": "^9.0.0",
63
- "eslint-plugin-prettier": "^5.0.0",
64
- "jsdom": "^26.1.0",
65
- "lint-staged": "^15.0.0",
66
- "prettier": "^3.0.0",
67
- "terser": "^5.0.0",
68
- "typedoc": "^0.25.0",
69
- "typescript": "^5.0.0",
70
- "vite": "^7.3.0",
71
- "vite-plugin-dts": "^4.5.4",
72
- "vitest": "^4.0.16"
73
- },
74
- "peerDependencies": {
75
- "axios": "^1.0.0"
76
- },
77
- "peerDependenciesMeta": {
78
- "axios": {
79
- "optional": true
80
- }
81
- },
82
- "dependencies": {
83
- "dotenv": "^17.2.3"
2
+ "name": "@boltic/sdk",
3
+ "version": "0.0.9",
4
+ "description": "TypeScript SDK for Boltic databases infrastructure",
5
+ "main": "dist/sdk.js",
6
+ "module": "dist/sdk.mjs",
7
+ "types": "dist/types/index.d.ts",
8
+ "license": "MIT",
9
+ "engines": {
10
+ "node": ">=18.0.0",
11
+ "npm": ">=8.0.0"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/types/index.d.ts",
16
+ "import": "./dist/sdk.mjs",
17
+ "require": "./dist/sdk.js"
84
18
  }
19
+ },
20
+ "files": [
21
+ "dist/",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "sideEffects": false,
26
+ "keywords": [
27
+ "boltic",
28
+ "sdk",
29
+ "typescript",
30
+ "api",
31
+ "database",
32
+ "auth"
33
+ ],
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/bolticio/boltic-sdk.git"
37
+ },
38
+ "scripts": {
39
+ "build": "vite build && node scripts/build.js",
40
+ "dev": "vite build --watch",
41
+ "test": "vitest",
42
+ "test:ui": "vitest --ui",
43
+ "test:coverage": "vitest --coverage",
44
+ "test:module": "node scripts/test-module-imports.js",
45
+ "type-check": "tsc --noEmit",
46
+ "lint": "eslint \"src/**/*.{ts,tsx}\"",
47
+ "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
48
+ "format": "prettier --write src tests examples docs",
49
+ "docs:generate": "typedoc src/index.ts",
50
+ "docs:serve": "npx serve docs/api",
51
+ "publish:branch": "npm run build && npm publish --tag $(git branch --show-current | sed 's/[^a-zA-Z0-9]/-/g')",
52
+ "publish:latest": "npm run build && npm publish",
53
+ "release": "npm run build && npm run test && npm publish",
54
+ "prepublishOnly": "npm run build"
55
+ },
56
+ "devDependencies": {
57
+ "@types/node": "^20.0.0",
58
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
59
+ "@typescript-eslint/parser": "^6.0.0",
60
+ "@vitest/ui": "^4.0.16",
61
+ "eslint": "^8.0.0",
62
+ "eslint-config-prettier": "^9.0.0",
63
+ "eslint-plugin-prettier": "^5.0.0",
64
+ "jsdom": "^26.1.0",
65
+ "lint-staged": "^15.0.0",
66
+ "prettier": "^3.0.0",
67
+ "terser": "^5.0.0",
68
+ "typedoc": "^0.25.0",
69
+ "typescript": "^5.0.0",
70
+ "vite": "^7.3.0",
71
+ "vite-plugin-dts": "^4.5.4",
72
+ "vitest": "^4.0.16"
73
+ },
74
+ "peerDependencies": {
75
+ "axios": "^1.0.0"
76
+ },
77
+ "peerDependenciesMeta": {
78
+ "axios": {
79
+ "optional": true
80
+ }
81
+ },
82
+ "dependencies": {
83
+ "dotenv": "^17.2.3"
84
+ }
85
85
  }