@constructive-io/sdk 0.7.7 → 0.8.0

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.
@@ -230,15 +230,15 @@ export interface UUIDListFilter {
230
230
  anyGreaterThanOrEqualTo?: string;
231
231
  }
232
232
  export interface GetAllRecord {
233
- path?: string | null;
233
+ path?: string[] | null;
234
234
  data?: Record<string, unknown> | null;
235
235
  }
236
236
  export interface Object {
237
237
  hashUuid?: string | null;
238
238
  id: string;
239
239
  databaseId?: string | null;
240
- kids?: string | null;
241
- ktree?: string | null;
240
+ kids?: string[] | null;
241
+ ktree?: string[] | null;
242
242
  data?: Record<string, unknown> | null;
243
243
  frzn?: boolean | null;
244
244
  createdAt?: string | null;
@@ -283,7 +283,7 @@ export interface Commit {
283
283
  databaseId?: string | null;
284
284
  storeId?: string | null;
285
285
  /** Parent commits */
286
- parentIds?: string | null;
286
+ parentIds?: string[] | null;
287
287
  /** The author of the commit */
288
288
  authorId?: string | null;
289
289
  /** The committer of the commit */
@@ -368,7 +368,7 @@ export type CommitSelect = {
368
368
  searchScore?: boolean;
369
369
  };
370
370
  export interface GetAllRecordFilter {
371
- path?: StringFilter;
371
+ path?: StringListFilter;
372
372
  data?: JSONFilter;
373
373
  and?: GetAllRecordFilter[];
374
374
  or?: GetAllRecordFilter[];
@@ -378,8 +378,8 @@ export interface ObjectFilter {
378
378
  hashUuid?: UUIDFilter;
379
379
  id?: UUIDFilter;
380
380
  databaseId?: UUIDFilter;
381
- kids?: UUIDFilter;
382
- ktree?: StringFilter;
381
+ kids?: UUIDListFilter;
382
+ ktree?: StringListFilter;
383
383
  data?: JSONFilter;
384
384
  frzn?: BooleanFilter;
385
385
  createdAt?: DatetimeFilter;
@@ -416,7 +416,7 @@ export interface CommitFilter {
416
416
  message?: StringFilter;
417
417
  databaseId?: UUIDFilter;
418
418
  storeId?: UUIDFilter;
419
- parentIds?: UUIDFilter;
419
+ parentIds?: UUIDListFilter;
420
420
  authorId?: UUIDFilter;
421
421
  committerId?: UUIDFilter;
422
422
  treeId?: UUIDFilter;
@@ -428,19 +428,19 @@ export interface CommitFilter {
428
428
  not?: CommitFilter;
429
429
  }
430
430
  export type GetAllRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'PATH_ASC' | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC';
431
- export type ObjectOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'HASH_UUID_ASC' | 'HASH_UUID_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' | 'KTREE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'FRZN_ASC' | 'FRZN_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
432
- export type RefOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' | 'NAME_TRGM_SIMILARITY_ASC' | 'NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
433
- export type StoreOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'NAME_TRGM_SIMILARITY_ASC' | 'NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
434
- export type CommitOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' | 'PARENT_IDS_DESC' | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' | 'COMMITTER_ID_ASC' | 'COMMITTER_ID_DESC' | 'TREE_ID_ASC' | 'TREE_ID_DESC' | 'DATE_ASC' | 'DATE_DESC' | 'MESSAGE_TRGM_SIMILARITY_ASC' | 'MESSAGE_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
431
+ export type ObjectOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'FRZN_ASC' | 'FRZN_DESC';
432
+ export type RefOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'NAME_TRGM_SIMILARITY_ASC' | 'NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
433
+ export type StoreOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_TRGM_SIMILARITY_ASC' | 'NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
434
+ export type CommitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'MESSAGE_TRGM_SIMILARITY_ASC' | 'MESSAGE_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
435
435
  export interface CreateGetAllRecordInput {
436
436
  clientMutationId?: string;
437
437
  getAllRecord: {
438
- path?: string;
438
+ path?: string[];
439
439
  data?: Record<string, unknown>;
440
440
  };
441
441
  }
442
442
  export interface GetAllRecordPatch {
443
- path?: string | null;
443
+ path?: string[] | null;
444
444
  data?: Record<string, unknown> | null;
445
445
  }
446
446
  export interface UpdateGetAllRecordInput {
@@ -463,10 +463,9 @@ export interface CreateObjectInput {
463
463
  };
464
464
  }
465
465
  export interface ObjectPatch {
466
- hashUuid?: string | null;
467
466
  databaseId?: string | null;
468
- kids?: string | null;
469
- ktree?: string | null;
467
+ kids?: string[] | null;
468
+ ktree?: string[] | null;
470
469
  data?: Record<string, unknown> | null;
471
470
  frzn?: boolean | null;
472
471
  }
@@ -493,8 +492,6 @@ export interface RefPatch {
493
492
  databaseId?: string | null;
494
493
  storeId?: string | null;
495
494
  commitId?: string | null;
496
- nameTrgmSimilarity?: number | null;
497
- searchScore?: number | null;
498
495
  }
499
496
  export interface UpdateRefInput {
500
497
  clientMutationId?: string;
@@ -517,8 +514,6 @@ export interface StorePatch {
517
514
  name?: string | null;
518
515
  databaseId?: string | null;
519
516
  hash?: string | null;
520
- nameTrgmSimilarity?: number | null;
521
- searchScore?: number | null;
522
517
  }
523
518
  export interface UpdateStoreInput {
524
519
  clientMutationId?: string;
@@ -546,13 +541,11 @@ export interface CommitPatch {
546
541
  message?: string | null;
547
542
  databaseId?: string | null;
548
543
  storeId?: string | null;
549
- parentIds?: string | null;
544
+ parentIds?: string[] | null;
550
545
  authorId?: string | null;
551
546
  committerId?: string | null;
552
547
  treeId?: string | null;
553
548
  date?: string | null;
554
- messageTrgmSimilarity?: number | null;
555
- searchScore?: number | null;
556
549
  }
557
550
  export interface UpdateCommitInput {
558
551
  clientMutationId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/sdk",
3
- "version": "0.7.7",
3
+ "version": "0.8.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
6
6
  "main": "index.js",
@@ -24,7 +24,10 @@
24
24
  "prepack": "npm run build",
25
25
  "build": "makage build",
26
26
  "build:dev": "makage build --dev",
27
- "generate": "tsx scripts/generate-sdk.ts",
27
+ "pregenerate": "rimraf src/admin src/auth src/objects src/public src/index.ts",
28
+ "generate": "pnpm run pregenerate && tsx scripts/generate-sdk.ts",
29
+ "pregenerate:migrate-client": "rimraf ../migrate-client/src/migrate ../migrate-client/src/index.ts",
30
+ "generate:migrate-client": "pnpm run pregenerate:migrate-client && tsx scripts/generate-migrate-client.ts",
28
31
  "lint": "eslint . --fix",
29
32
  "test": "jest --passWithNoTests",
30
33
  "test:watch": "jest --watch"
@@ -44,11 +47,11 @@
44
47
  "graphql": "16.13.0"
45
48
  },
46
49
  "devDependencies": {
47
- "@constructive-io/graphql-codegen": "^4.15.1",
50
+ "@constructive-io/graphql-codegen": "^4.15.2",
48
51
  "@types/node": "^22.19.11",
49
52
  "makage": "^0.1.12",
50
53
  "tsx": "^4.19.0",
51
54
  "typescript": "^5.9.3"
52
55
  },
53
- "gitHead": "9c322f47ca08b5b853fcb395fe2bfc224f8c4c27"
56
+ "gitHead": "9f3837555601b15e693ae0b750124fb0a8df3176"
54
57
  }