@happyvertical/smrt-projects 0.55.5 → 0.55.7

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.
@@ -2,8 +2,123 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-projects",
5
- "packageVersion": "0.55.5",
5
+ "packageVersion": "0.55.7",
6
6
  "objects": {
7
+ "@happyvertical/smrt-projects:CommentCollection": {
8
+ "name": "commentcollection",
9
+ "className": "CommentCollection",
10
+ "qualifiedName": "@happyvertical/smrt-projects:CommentCollection",
11
+ "collection": "comments",
12
+ "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Comments.ts",
13
+ "packageName": "@happyvertical/smrt-projects",
14
+ "fields": {},
15
+ "methods": {},
16
+ "decoratorConfig": {},
17
+ "extends": "SmrtCollection",
18
+ "extendsTypeArg": "Comment",
19
+ "exportName": "CommentCollection",
20
+ "collectionExportName": "CommentCollectionCollection",
21
+ "schema": {
22
+ "tableName": "comments",
23
+ "ddl": "CREATE TABLE IF NOT EXISTS \"comments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"issue_id\" UUID,\n \"comment_id\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"author\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT ''\n);",
24
+ "columns": {
25
+ "id": {
26
+ "type": "UUID",
27
+ "primaryKey": true,
28
+ "referenceKind": "id",
29
+ "notNull": true
30
+ },
31
+ "slug": {
32
+ "type": "TEXT",
33
+ "notNull": true
34
+ },
35
+ "context": {
36
+ "type": "TEXT",
37
+ "notNull": true,
38
+ "default": ""
39
+ },
40
+ "created_at": {
41
+ "type": "TIMESTAMP",
42
+ "notNull": true,
43
+ "default": "current_timestamp"
44
+ },
45
+ "updated_at": {
46
+ "type": "TIMESTAMP",
47
+ "notNull": true,
48
+ "default": "current_timestamp"
49
+ },
50
+ "tenant_id": {
51
+ "type": "UUID",
52
+ "referenceKind": "tenantId",
53
+ "notNull": false,
54
+ "unique": false
55
+ },
56
+ "issue_id": {
57
+ "type": "UUID",
58
+ "referenceKind": "foreignKey",
59
+ "notNull": false,
60
+ "unique": false,
61
+ "foreignKey": {
62
+ "table": "issues",
63
+ "column": "id",
64
+ "onDelete": "NO ACTION",
65
+ "onUpdate": "CASCADE"
66
+ }
67
+ },
68
+ "comment_id": {
69
+ "type": "TEXT",
70
+ "notNull": false,
71
+ "unique": false,
72
+ "default": ""
73
+ },
74
+ "body": {
75
+ "type": "TEXT",
76
+ "notNull": false,
77
+ "unique": false,
78
+ "default": ""
79
+ },
80
+ "author": {
81
+ "type": "TEXT",
82
+ "notNull": false,
83
+ "unique": false,
84
+ "default": ""
85
+ },
86
+ "url": {
87
+ "type": "TEXT",
88
+ "notNull": false,
89
+ "unique": false,
90
+ "default": ""
91
+ }
92
+ },
93
+ "indexes": [
94
+ {
95
+ "name": "comments_slug_context_idx",
96
+ "columns": [
97
+ "tenant_id",
98
+ "slug",
99
+ "context"
100
+ ],
101
+ "unique": true,
102
+ "nullsNotDistinct": true
103
+ },
104
+ {
105
+ "name": "comments_tenant_id_created_at_idx",
106
+ "columns": [
107
+ "tenant_id",
108
+ "created_at"
109
+ ]
110
+ },
111
+ {
112
+ "name": "comments_issue_id_idx",
113
+ "columns": [
114
+ "issue_id"
115
+ ]
116
+ }
117
+ ],
118
+ "version": "ffcc1937"
119
+ },
120
+ "importPath": "@happyvertical/smrt-projects"
121
+ },
7
122
  "@happyvertical/smrt-projects:DevelopmentRequestHistoryCollection": {
8
123
  "name": "developmentrequesthistorycollection",
9
124
  "className": "DevelopmentRequestHistoryCollection",
@@ -411,6 +526,20 @@
411
526
  "isStatic": false,
412
527
  "isPublic": true
413
528
  },
529
+ "findByProject": {
530
+ "name": "findByProject",
531
+ "async": true,
532
+ "parameters": [
533
+ {
534
+ "name": "projectId",
535
+ "type": "string",
536
+ "optional": false
537
+ }
538
+ ],
539
+ "returnType": "Promise<Issue[]>",
540
+ "isStatic": false,
541
+ "isPublic": true
542
+ },
414
543
  "findByRepository": {
415
544
  "name": "findByRepository",
416
545
  "async": true,
@@ -590,7 +719,7 @@
590
719
  "collectionExportName": "IssueCollectionCollection",
591
720
  "schema": {
592
721
  "tableName": "issues",
593
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
722
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
594
723
  "columns": {
595
724
  "id": {
596
725
  "type": "UUID",
@@ -641,6 +770,17 @@
641
770
  "onUpdate": "CASCADE"
642
771
  }
643
772
  },
773
+ "project_id": {
774
+ "type": "UUID",
775
+ "referenceKind": "foreignKey",
776
+ "notNull": false,
777
+ "foreignKey": {
778
+ "table": "projects",
779
+ "column": "id",
780
+ "onDelete": "NO ACTION",
781
+ "onUpdate": "CASCADE"
782
+ }
783
+ },
644
784
  "number": {
645
785
  "type": "INTEGER",
646
786
  "notNull": false,
@@ -775,9 +915,15 @@
775
915
  "columns": [
776
916
  "repository_id"
777
917
  ]
918
+ },
919
+ {
920
+ "name": "issues_project_id_idx",
921
+ "columns": [
922
+ "project_id"
923
+ ]
778
924
  }
779
925
  ],
780
- "version": "c3d5425b"
926
+ "version": "83fb5e05"
781
927
  },
782
928
  "importPath": "@happyvertical/smrt-projects"
783
929
  },
@@ -1670,7 +1816,7 @@
1670
1816
  "collectionExportName": "PullRequestCollectionCollection",
1671
1817
  "schema": {
1672
1818
  "tableName": "issues",
1673
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
1819
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
1674
1820
  "columns": {
1675
1821
  "id": {
1676
1822
  "type": "UUID",
@@ -1721,6 +1867,17 @@
1721
1867
  "onUpdate": "CASCADE"
1722
1868
  }
1723
1869
  },
1870
+ "project_id": {
1871
+ "type": "UUID",
1872
+ "referenceKind": "foreignKey",
1873
+ "notNull": false,
1874
+ "foreignKey": {
1875
+ "table": "projects",
1876
+ "column": "id",
1877
+ "onDelete": "NO ACTION",
1878
+ "onUpdate": "CASCADE"
1879
+ }
1880
+ },
1724
1881
  "number": {
1725
1882
  "type": "INTEGER",
1726
1883
  "notNull": false,
@@ -1855,9 +2012,15 @@
1855
2012
  "columns": [
1856
2013
  "repository_id"
1857
2014
  ]
2015
+ },
2016
+ {
2017
+ "name": "issues_project_id_idx",
2018
+ "columns": [
2019
+ "project_id"
2020
+ ]
1858
2021
  }
1859
2022
  ],
1860
- "version": "3f16e583"
2023
+ "version": "0ebf6fbd"
1861
2024
  },
1862
2025
  "importPath": "@happyvertical/smrt-projects"
1863
2026
  },
@@ -2908,11 +3071,13 @@
2908
3071
  },
2909
3072
  "repositoryId": {
2910
3073
  "type": "foreignKey",
2911
- "required": true,
2912
- "related": "Repository",
2913
- "_meta": {
2914
- "required": true
2915
- }
3074
+ "required": false,
3075
+ "related": "Repository"
3076
+ },
3077
+ "projectId": {
3078
+ "type": "foreignKey",
3079
+ "required": false,
3080
+ "related": "Project"
2916
3081
  },
2917
3082
  "number": {
2918
3083
  "type": "integer",
@@ -2979,6 +3144,14 @@
2979
3144
  }
2980
3145
  },
2981
3146
  "methods": {
3147
+ "hasRepository": {
3148
+ "name": "hasRepository",
3149
+ "async": false,
3150
+ "parameters": [],
3151
+ "returnType": "boolean",
3152
+ "isStatic": false,
3153
+ "isPublic": true
3154
+ },
2982
3155
  "getRepository": {
2983
3156
  "name": "getRepository",
2984
3157
  "async": true,
@@ -3200,16 +3373,9 @@
3200
3373
  "exportName": "Issue",
3201
3374
  "collectionExportName": "IssueCollection",
3202
3375
  "displayLabelField": "title",
3203
- "validationRules": [
3204
- {
3205
- "field": "repositoryId",
3206
- "rule": "required",
3207
- "fieldType": "foreignKey"
3208
- }
3209
- ],
3210
3376
  "schema": {
3211
3377
  "tableName": "issues",
3212
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
3378
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
3213
3379
  "columns": {
3214
3380
  "id": {
3215
3381
  "type": "UUID",
@@ -3260,6 +3426,17 @@
3260
3426
  "onUpdate": "CASCADE"
3261
3427
  }
3262
3428
  },
3429
+ "project_id": {
3430
+ "type": "UUID",
3431
+ "referenceKind": "foreignKey",
3432
+ "notNull": false,
3433
+ "foreignKey": {
3434
+ "table": "projects",
3435
+ "column": "id",
3436
+ "onDelete": "NO ACTION",
3437
+ "onUpdate": "CASCADE"
3438
+ }
3439
+ },
3263
3440
  "number": {
3264
3441
  "type": "INTEGER",
3265
3442
  "notNull": false,
@@ -3394,9 +3571,15 @@
3394
3571
  "columns": [
3395
3572
  "repository_id"
3396
3573
  ]
3574
+ },
3575
+ {
3576
+ "name": "issues_project_id_idx",
3577
+ "columns": [
3578
+ "project_id"
3579
+ ]
3397
3580
  }
3398
3581
  ],
3399
- "version": "c3d5425b"
3582
+ "version": "83fb5e05"
3400
3583
  },
3401
3584
  "importPath": "@happyvertical/smrt-projects"
3402
3585
  },
@@ -3413,6 +3596,11 @@
3413
3596
  "required": false,
3414
3597
  "related": "Repository"
3415
3598
  },
3599
+ "projectId": {
3600
+ "type": "foreignKey",
3601
+ "required": false,
3602
+ "related": "Project"
3603
+ },
3416
3604
  "name": {
3417
3605
  "type": "text",
3418
3606
  "required": false,
@@ -3528,7 +3716,7 @@
3528
3716
  "displayLabelField": "name",
3529
3717
  "schema": {
3530
3718
  "tableName": "labels",
3531
- "ddl": "CREATE TABLE IF NOT EXISTS \"labels\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"repository_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"color\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT ''\n);",
3719
+ "ddl": "CREATE TABLE IF NOT EXISTS \"labels\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"color\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT ''\n);",
3532
3720
  "columns": {
3533
3721
  "id": {
3534
3722
  "type": "UUID",
@@ -3567,6 +3755,18 @@
3567
3755
  "onUpdate": "CASCADE"
3568
3756
  }
3569
3757
  },
3758
+ "project_id": {
3759
+ "type": "UUID",
3760
+ "referenceKind": "foreignKey",
3761
+ "notNull": false,
3762
+ "unique": false,
3763
+ "foreignKey": {
3764
+ "table": "projects",
3765
+ "column": "id",
3766
+ "onDelete": "NO ACTION",
3767
+ "onUpdate": "CASCADE"
3768
+ }
3769
+ },
3570
3770
  "name": {
3571
3771
  "type": "TEXT",
3572
3772
  "notNull": false,
@@ -3606,9 +3806,15 @@
3606
3806
  "columns": [
3607
3807
  "repository_id"
3608
3808
  ]
3809
+ },
3810
+ {
3811
+ "name": "labels_project_id_idx",
3812
+ "columns": [
3813
+ "project_id"
3814
+ ]
3609
3815
  }
3610
3816
  ],
3611
- "version": "d1e8d236"
3817
+ "version": "664f110a"
3612
3818
  },
3613
3819
  "importPath": "@happyvertical/smrt-projects"
3614
3820
  },
@@ -4528,11 +4734,13 @@
4528
4734
  },
4529
4735
  "repositoryId": {
4530
4736
  "type": "foreignKey",
4531
- "required": true,
4532
- "related": "Repository",
4533
- "_meta": {
4534
- "required": true
4535
- }
4737
+ "required": false,
4738
+ "related": "Repository"
4739
+ },
4740
+ "projectId": {
4741
+ "type": "foreignKey",
4742
+ "required": false,
4743
+ "related": "Project"
4536
4744
  },
4537
4745
  "number": {
4538
4746
  "type": "integer",
@@ -4643,6 +4851,14 @@
4643
4851
  }
4644
4852
  },
4645
4853
  "methods": {
4854
+ "hasRepository": {
4855
+ "name": "hasRepository",
4856
+ "async": false,
4857
+ "parameters": [],
4858
+ "returnType": "boolean",
4859
+ "isStatic": false,
4860
+ "isPublic": true
4861
+ },
4646
4862
  "getRepository": {
4647
4863
  "name": "getRepository",
4648
4864
  "async": true,
@@ -4946,16 +5162,9 @@
4946
5162
  "exportName": "PullRequest",
4947
5163
  "collectionExportName": "PullRequestCollection",
4948
5164
  "displayLabelField": "title",
4949
- "validationRules": [
4950
- {
4951
- "field": "repositoryId",
4952
- "rule": "required",
4953
- "fieldType": "foreignKey"
4954
- }
4955
- ],
4956
5165
  "schema": {
4957
5166
  "tableName": "issues",
4958
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
5167
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
4959
5168
  "columns": {
4960
5169
  "id": {
4961
5170
  "type": "UUID",
@@ -5006,6 +5215,17 @@
5006
5215
  "onUpdate": "CASCADE"
5007
5216
  }
5008
5217
  },
5218
+ "project_id": {
5219
+ "type": "UUID",
5220
+ "referenceKind": "foreignKey",
5221
+ "notNull": false,
5222
+ "foreignKey": {
5223
+ "table": "projects",
5224
+ "column": "id",
5225
+ "onDelete": "NO ACTION",
5226
+ "onUpdate": "CASCADE"
5227
+ }
5228
+ },
5009
5229
  "number": {
5010
5230
  "type": "INTEGER",
5011
5231
  "notNull": false,
@@ -5140,9 +5360,15 @@
5140
5360
  "columns": [
5141
5361
  "repository_id"
5142
5362
  ]
5363
+ },
5364
+ {
5365
+ "name": "issues_project_id_idx",
5366
+ "columns": [
5367
+ "project_id"
5368
+ ]
5143
5369
  }
5144
5370
  ],
5145
- "version": "3f16e583"
5371
+ "version": "0ebf6fbd"
5146
5372
  },
5147
5373
  "importPath": "@happyvertical/smrt-projects"
5148
5374
  },
@@ -5523,6 +5749,7 @@
5523
5749
  "className": "DevelopmentRequestWorkLink",
5524
5750
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequestWorkLink",
5525
5751
  "collection": "developmentrequestworklinks",
5752
+ "description": "Provider-neutral connection from a Development Request to canonical work.",
5526
5753
  "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
5527
5754
  "packageName": "@happyvertical/smrt-projects",
5528
5755
  "fields": {
@@ -5719,6 +5946,7 @@
5719
5946
  "className": "ProjectDeliveryEvent",
5720
5947
  "qualifiedName": "@happyvertical/smrt-projects:ProjectDeliveryEvent",
5721
5948
  "collection": "projectdeliveryevents",
5949
+ "description": "Ordered, idempotent delivery update emitted by the control plane.",
5722
5950
  "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
5723
5951
  "packageName": "@happyvertical/smrt-projects",
5724
5952
  "fields": {
@@ -5976,6 +6204,7 @@
5976
6204
  "className": "PreviewApproval",
5977
6205
  "qualifiedName": "@happyvertical/smrt-projects:PreviewApproval",
5978
6206
  "collection": "previewapprovals",
6207
+ "description": "Client decision state for one preview produced during delivery.",
5979
6208
  "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
5980
6209
  "packageName": "@happyvertical/smrt-projects",
5981
6210
  "fields": {
@@ -6189,6 +6418,7 @@
6189
6418
  "className": "AssistanceRequest",
6190
6419
  "qualifiedName": "@happyvertical/smrt-projects:AssistanceRequest",
6191
6420
  "collection": "assistancerequests",
6421
+ "description": "Lossless conversational intake before support/development classification.",
6192
6422
  "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
6193
6423
  "packageName": "@happyvertical/smrt-projects",
6194
6424
  "fields": {
@@ -6423,6 +6653,7 @@
6423
6653
  "className": "AssistanceRequestEvent",
6424
6654
  "qualifiedName": "@happyvertical/smrt-projects:AssistanceRequestEvent",
6425
6655
  "collection": "assistancerequestevents",
6656
+ "description": "Append-only explanation of Assistance Request routing decisions.",
6426
6657
  "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
6427
6658
  "packageName": "@happyvertical/smrt-projects",
6428
6659
  "fields": {
@@ -21,6 +21,7 @@ export type IssueLabelVocabularyResolver = (issue: Issue) => readonly IssueLabel
21
21
  export type IssueLabelVocabulary = readonly IssueLabelVocabularyEntry[] | IssueLabelVocabularyResolver;
22
22
  export interface IssueOptions extends SmrtObjectOptions {
23
23
  repositoryId?: string;
24
+ projectId?: string;
24
25
  number?: number;
25
26
  nodeId?: string;
26
27
  title?: string;
@@ -41,9 +42,15 @@ export declare class Issue extends SmrtObject {
41
42
  */
42
43
  tenantId: string | null;
43
44
  /**
44
- * Repository this issue belongs to
45
+ * Repository this issue is mirrored from. Optional: a native issue that
46
+ * lives only in a {@link Project} has no repository and no provider sync.
45
47
  */
46
48
  repositoryId?: string;
49
+ /**
50
+ * Project this issue belongs to. Optional and additive; repository-backed
51
+ * issues may leave it unset.
52
+ */
53
+ projectId?: string;
47
54
  /**
48
55
  * Issue number (provider-specific)
49
56
  */
@@ -102,8 +109,15 @@ export declare class Issue extends SmrtObject {
102
109
  */
103
110
  protected _client?: IRepository;
104
111
  constructor(options?: IssueOptions);
112
+ /**
113
+ * Whether this issue is mirrored from a repository. Repository-less
114
+ * (project-native) issues skip every provider call and change local state only.
115
+ */
116
+ hasRepository(): boolean;
105
117
  /**
106
118
  * Get the repository this issue belongs to
119
+ *
120
+ * @throws if the issue is not repository-backed (check {@link hasRepository})
107
121
  */
108
122
  getRepository(): Promise<Repository>;
109
123
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Issue.d.ts","sourceRoot":"","sources":["../../src/models/Issue.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAGvB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,WAAW,EAEX,WAAW,EACZ,MAAM,aAAU,CAAC;AAClB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAW,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAc,CAAC;AAuB/C,sEAAsE;AACtE,MAAM,WAAW,yBAAyB;IACxC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,iEAAiE;AACjE,MAAM,MAAM,4BAA4B,GAAG,CACzC,KAAK,EAAE,KAAK,KAEV,SAAS,yBAAyB,EAAE,GACpC,SAAS,GACT,OAAO,CAAC,SAAS,yBAAyB,EAAE,GAAG,SAAS,CAAC,CAAC;AAE9D,uDAAuD;AACvD,MAAM,MAAM,oBAAoB,GAC5B,SAAS,yBAAyB,EAAE,GACpC,4BAA4B,CAAC;AAkDjC,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IAC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G;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACH,MAAM,IAAI,MAAM;CAOjB"}
@@ -6,15 +6,21 @@
6
6
  import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
7
7
  export interface LabelOptions extends SmrtObjectOptions {
8
8
  repositoryId?: string;
9
+ projectId?: string;
9
10
  name?: string;
10
11
  color?: string;
11
12
  description?: string;
12
13
  }
13
14
  export declare class Label extends SmrtObject {
14
15
  /**
15
- * Repository this label belongs to
16
+ * Repository this label belongs to (optional; unset for project-scoped labels)
16
17
  */
17
18
  repositoryId?: string;
19
+ /**
20
+ * Project this label is scoped to (optional; a label may be scoped to a
21
+ * repository, a project, or neither)
22
+ */
23
+ projectId?: string;
18
24
  /**
19
25
  * Label name
20
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/models/Label.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAKa,KAAM,SAAQ,UAAU;IACnC;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAM;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAM;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAM;gBAEb,OAAO,GAAE,YAAiB;IAUtC;;OAEG;IACH,WAAW,IAAI,OAAO;IAatB;;OAEG;IACH,eAAe,IAAI,OAAO;IAY1B;;OAEG;IACH,aAAa,IAAI,OA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