@happyvertical/smrt-projects 0.61.3 → 0.61.4

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,14 +2,14 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-projects",
5
- "packageVersion": "0.61.3",
5
+ "packageVersion": "0.61.4",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-projects:CommentCollection": {
8
8
  "name": "commentcollection",
9
9
  "className": "CommentCollection",
10
10
  "qualifiedName": "@happyvertical/smrt-projects:CommentCollection",
11
11
  "collection": "comments",
12
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Comments.ts",
12
+ "filePath": "src/collections/Comments.ts",
13
13
  "packageName": "@happyvertical/smrt-projects",
14
14
  "fields": {},
15
15
  "methods": {},
@@ -155,7 +155,7 @@
155
155
  "className": "DevelopmentRequestHistoryCollection",
156
156
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequestHistoryCollection",
157
157
  "collection": "developmentrequesthistories",
158
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/DevelopmentRequestHistories.ts",
158
+ "filePath": "src/collections/DevelopmentRequestHistories.ts",
159
159
  "packageName": "@happyvertical/smrt-projects",
160
160
  "fields": {},
161
161
  "methods": {
@@ -311,7 +311,7 @@
311
311
  "className": "DevelopmentRequestCollection",
312
312
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequestCollection",
313
313
  "collection": "developmentrequests",
314
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/DevelopmentRequests.ts",
314
+ "filePath": "src/collections/DevelopmentRequests.ts",
315
315
  "packageName": "@happyvertical/smrt-projects",
316
316
  "fields": {},
317
317
  "methods": {
@@ -559,7 +559,7 @@
559
559
  "className": "IssueCollection",
560
560
  "qualifiedName": "@happyvertical/smrt-projects:IssueCollection",
561
561
  "collection": "issues",
562
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Issues.ts",
562
+ "filePath": "src/collections/Issues.ts",
563
563
  "packageName": "@happyvertical/smrt-projects",
564
564
  "fields": {},
565
565
  "methods": {
@@ -1021,7 +1021,7 @@
1021
1021
  "className": "ProjectDecisionCollection",
1022
1022
  "qualifiedName": "@happyvertical/smrt-projects:ProjectDecisionCollection",
1023
1023
  "collection": "projectdecisions",
1024
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectDecisions.ts",
1024
+ "filePath": "src/collections/ProjectDecisions.ts",
1025
1025
  "packageName": "@happyvertical/smrt-projects",
1026
1026
  "fields": {},
1027
1027
  "methods": {
@@ -1087,7 +1087,7 @@
1087
1087
  ],
1088
1088
  "schema": {
1089
1089
  "tableName": "project_decisions",
1090
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT NOT NULL,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
1090
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
1091
1091
  "columns": {
1092
1092
  "_sync_origin_device_id": {
1093
1093
  "type": "TEXT"
@@ -1149,7 +1149,7 @@
1149
1149
  },
1150
1150
  "question": {
1151
1151
  "type": "TEXT",
1152
- "notNull": true,
1152
+ "notNull": false,
1153
1153
  "unique": false
1154
1154
  },
1155
1155
  "decision_options": {
@@ -1251,7 +1251,7 @@
1251
1251
  ]
1252
1252
  }
1253
1253
  ],
1254
- "version": "9b079873"
1254
+ "version": "1a806d20"
1255
1255
  },
1256
1256
  "importPath": "@happyvertical/smrt-projects"
1257
1257
  },
@@ -1260,7 +1260,7 @@
1260
1260
  "className": "ProjectGovernanceEventCollection",
1261
1261
  "qualifiedName": "@happyvertical/smrt-projects:ProjectGovernanceEventCollection",
1262
1262
  "collection": "projectgovernanceevents",
1263
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectGovernanceEvents.ts",
1263
+ "filePath": "src/collections/ProjectGovernanceEvents.ts",
1264
1264
  "packageName": "@happyvertical/smrt-projects",
1265
1265
  "fields": {},
1266
1266
  "methods": {
@@ -1486,7 +1486,7 @@
1486
1486
  "className": "ProjectIntegrationAuditCollection",
1487
1487
  "qualifiedName": "@happyvertical/smrt-projects:ProjectIntegrationAuditCollection",
1488
1488
  "collection": "projectintegrationaudits",
1489
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectIntegrationAudits.ts",
1489
+ "filePath": "src/collections/ProjectIntegrationAudits.ts",
1490
1490
  "packageName": "@happyvertical/smrt-projects",
1491
1491
  "fields": {},
1492
1492
  "methods": {
@@ -1624,7 +1624,7 @@
1624
1624
  "className": "ProjectIntegrationCollection",
1625
1625
  "qualifiedName": "@happyvertical/smrt-projects:ProjectIntegrationCollection",
1626
1626
  "collection": "projectintegrations",
1627
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectIntegrations.ts",
1627
+ "filePath": "src/collections/ProjectIntegrations.ts",
1628
1628
  "packageName": "@happyvertical/smrt-projects",
1629
1629
  "fields": {},
1630
1630
  "methods": {
@@ -1880,7 +1880,7 @@
1880
1880
  "className": "ProjectQuestionCollection",
1881
1881
  "qualifiedName": "@happyvertical/smrt-projects:ProjectQuestionCollection",
1882
1882
  "collection": "projectquestions",
1883
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectQuestions.ts",
1883
+ "filePath": "src/collections/ProjectQuestions.ts",
1884
1884
  "packageName": "@happyvertical/smrt-projects",
1885
1885
  "fields": {},
1886
1886
  "methods": {
@@ -1946,7 +1946,7 @@
1946
1946
  ],
1947
1947
  "schema": {
1948
1948
  "tableName": "project_questions",
1949
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT NOT NULL,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
1949
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
1950
1950
  "columns": {
1951
1951
  "_sync_origin_device_id": {
1952
1952
  "type": "TEXT"
@@ -2008,7 +2008,7 @@
2008
2008
  },
2009
2009
  "prompt": {
2010
2010
  "type": "TEXT",
2011
- "notNull": true,
2011
+ "notNull": false,
2012
2012
  "unique": false
2013
2013
  },
2014
2014
  "answer": {
@@ -2112,7 +2112,7 @@
2112
2112
  ]
2113
2113
  }
2114
2114
  ],
2115
- "version": "1bdc2c36"
2115
+ "version": "4ec56a39"
2116
2116
  },
2117
2117
  "importPath": "@happyvertical/smrt-projects"
2118
2118
  },
@@ -2121,7 +2121,7 @@
2121
2121
  "className": "ProjectRepositoryCollection",
2122
2122
  "qualifiedName": "@happyvertical/smrt-projects:ProjectRepositoryCollection",
2123
2123
  "collection": "projectrepositories",
2124
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectRepositories.ts",
2124
+ "filePath": "src/collections/ProjectRepositories.ts",
2125
2125
  "packageName": "@happyvertical/smrt-projects",
2126
2126
  "fields": {},
2127
2127
  "methods": {
@@ -2466,7 +2466,7 @@
2466
2466
  "className": "ProjectSpecificationCollection",
2467
2467
  "qualifiedName": "@happyvertical/smrt-projects:ProjectSpecificationCollection",
2468
2468
  "collection": "projectspecifications",
2469
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectSpecifications.ts",
2469
+ "filePath": "src/collections/ProjectSpecifications.ts",
2470
2470
  "packageName": "@happyvertical/smrt-projects",
2471
2471
  "fields": {},
2472
2472
  "methods": {
@@ -2503,7 +2503,7 @@
2503
2503
  ],
2504
2504
  "schema": {
2505
2505
  "tableName": "project_specifications",
2506
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT NOT NULL,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
2506
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
2507
2507
  "columns": {
2508
2508
  "_sync_origin_device_id": {
2509
2509
  "type": "TEXT"
@@ -2565,7 +2565,7 @@
2565
2565
  },
2566
2566
  "title": {
2567
2567
  "type": "TEXT",
2568
- "notNull": true,
2568
+ "notNull": false,
2569
2569
  "unique": false
2570
2570
  },
2571
2571
  "summary": {
@@ -2627,7 +2627,7 @@
2627
2627
  ]
2628
2628
  }
2629
2629
  ],
2630
- "version": "52645f69"
2630
+ "version": "24ecd310"
2631
2631
  },
2632
2632
  "importPath": "@happyvertical/smrt-projects"
2633
2633
  },
@@ -2636,7 +2636,7 @@
2636
2636
  "className": "ProjectCollection",
2637
2637
  "qualifiedName": "@happyvertical/smrt-projects:ProjectCollection",
2638
2638
  "collection": "projects",
2639
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Projects.ts",
2639
+ "filePath": "src/collections/Projects.ts",
2640
2640
  "packageName": "@happyvertical/smrt-projects",
2641
2641
  "fields": {},
2642
2642
  "methods": {
@@ -2973,7 +2973,7 @@
2973
2973
  "className": "PullRequestCollection",
2974
2974
  "qualifiedName": "@happyvertical/smrt-projects:PullRequestCollection",
2975
2975
  "collection": "issues",
2976
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/PullRequests.ts",
2976
+ "filePath": "src/collections/PullRequests.ts",
2977
2977
  "packageName": "@happyvertical/smrt-projects",
2978
2978
  "fields": {},
2979
2979
  "methods": {
@@ -3453,7 +3453,7 @@
3453
3453
  "className": "RepositoryCollection",
3454
3454
  "qualifiedName": "@happyvertical/smrt-projects:RepositoryCollection",
3455
3455
  "collection": "repositories",
3456
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Repositories.ts",
3456
+ "filePath": "src/collections/Repositories.ts",
3457
3457
  "packageName": "@happyvertical/smrt-projects",
3458
3458
  "fields": {},
3459
3459
  "methods": {
@@ -3855,15 +3855,12 @@
3855
3855
  "className": "Comment",
3856
3856
  "qualifiedName": "@happyvertical/smrt-projects:Comment",
3857
3857
  "collection": "comments",
3858
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/Comment.ts",
3858
+ "filePath": "src/models/Comment.ts",
3859
3859
  "packageName": "@happyvertical/smrt-projects",
3860
3860
  "fields": {
3861
3861
  "tenantId": {
3862
3862
  "type": "text",
3863
- "required": false,
3864
3863
  "_meta": {
3865
- "sqlType": "UUID",
3866
- "nullable": true,
3867
3864
  "__tenancy": {
3868
3865
  "isTenantIdField": true,
3869
3866
  "autoFilter": true,
@@ -3873,51 +3870,89 @@
3873
3870
  "mode": "optional",
3874
3871
  "field": "tenantId",
3875
3872
  "allowSuperAdminBypass": false
3876
- }
3877
- }
3873
+ },
3874
+ "__statedOptions": [
3875
+ "sqlType",
3876
+ "nullable",
3877
+ "__tenancy",
3878
+ "required"
3879
+ ],
3880
+ "sqlType": "UUID",
3881
+ "nullable": true,
3882
+ "required": false
3883
+ },
3884
+ "required": false
3878
3885
  },
3879
3886
  "issueId": {
3880
3887
  "type": "foreignKey",
3881
- "required": false,
3882
- "related": "Issue",
3883
- "description": "The issue this comment is on.",
3884
3888
  "_meta": {
3889
+ "__statedOptions": [
3890
+ "description",
3891
+ "related"
3892
+ ],
3885
3893
  "description": "The issue this comment is on."
3886
- }
3894
+ },
3895
+ "required": false,
3896
+ "related": "Issue",
3897
+ "description": "The issue this comment is on."
3887
3898
  },
3888
3899
  "commentId": {
3889
3900
  "type": "text",
3901
+ "_meta": {
3902
+ "__statedOptions": [
3903
+ "default"
3904
+ ]
3905
+ },
3890
3906
  "required": false,
3891
3907
  "default": ""
3892
3908
  },
3893
3909
  "body": {
3894
3910
  "type": "text",
3895
- "required": false,
3896
- "default": "",
3897
- "description": "The comment text.",
3898
3911
  "_meta": {
3912
+ "__statedOptions": [
3913
+ "description",
3914
+ "default"
3915
+ ],
3899
3916
  "description": "The comment text."
3900
- }
3917
+ },
3918
+ "required": false,
3919
+ "default": "",
3920
+ "description": "The comment text."
3901
3921
  },
3902
3922
  "author": {
3903
3923
  "type": "text",
3904
- "required": false,
3905
- "default": "",
3906
- "description": "Who wrote it.",
3907
3924
  "_meta": {
3925
+ "__statedOptions": [
3926
+ "description",
3927
+ "default"
3928
+ ],
3908
3929
  "description": "Who wrote it."
3909
- }
3930
+ },
3931
+ "required": false,
3932
+ "default": "",
3933
+ "description": "Who wrote it."
3910
3934
  },
3911
3935
  "createdAt": {
3912
3936
  "type": "datetime",
3937
+ "_meta": {
3938
+ "__statedOptions": []
3939
+ },
3913
3940
  "required": false
3914
3941
  },
3915
3942
  "updatedAt": {
3916
3943
  "type": "datetime",
3944
+ "_meta": {
3945
+ "__statedOptions": []
3946
+ },
3917
3947
  "required": false
3918
3948
  },
3919
3949
  "url": {
3920
3950
  "type": "text",
3951
+ "_meta": {
3952
+ "__statedOptions": [
3953
+ "default"
3954
+ ]
3955
+ },
3921
3956
  "required": false,
3922
3957
  "default": ""
3923
3958
  }
@@ -4115,14 +4150,12 @@
4115
4150
  "className": "DevelopmentRequest",
4116
4151
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequest",
4117
4152
  "collection": "developmentrequests",
4118
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/DevelopmentRequest.ts",
4153
+ "filePath": "src/models/DevelopmentRequest.ts",
4119
4154
  "packageName": "@happyvertical/smrt-projects",
4120
4155
  "fields": {
4121
4156
  "tenantId": {
4122
4157
  "type": "text",
4123
- "required": true,
4124
4158
  "_meta": {
4125
- "sqlType": "UUID",
4126
4159
  "__tenancy": {
4127
4160
  "isTenantIdField": true,
4128
4161
  "autoFilter": true,
@@ -4132,46 +4165,95 @@
4132
4165
  "mode": "required",
4133
4166
  "field": "tenantId",
4134
4167
  "allowSuperAdminBypass": false
4135
- }
4136
- }
4168
+ },
4169
+ "__statedOptions": [
4170
+ "sqlType",
4171
+ "requiredFor",
4172
+ "__tenancy"
4173
+ ],
4174
+ "sqlType": "UUID",
4175
+ "requiredFor": "tenant-scope"
4176
+ },
4177
+ "required": true
4137
4178
  },
4138
4179
  "projectId": {
4139
4180
  "type": "text",
4181
+ "_meta": {
4182
+ "__statedOptions": [
4183
+ "default"
4184
+ ]
4185
+ },
4140
4186
  "required": false,
4141
4187
  "default": ""
4142
4188
  },
4143
4189
  "integrationId": {
4144
4190
  "type": "foreignKey",
4191
+ "_meta": {
4192
+ "__statedOptions": [
4193
+ "related"
4194
+ ]
4195
+ },
4145
4196
  "required": false,
4146
4197
  "related": "ProjectIntegration"
4147
4198
  },
4148
4199
  "requesterId": {
4149
4200
  "type": "text",
4201
+ "_meta": {
4202
+ "__statedOptions": [
4203
+ "default"
4204
+ ]
4205
+ },
4150
4206
  "required": false,
4151
4207
  "default": ""
4152
4208
  },
4153
4209
  "participantId": {
4154
4210
  "type": "text",
4211
+ "_meta": {
4212
+ "__statedOptions": [
4213
+ "default"
4214
+ ]
4215
+ },
4155
4216
  "required": false,
4156
4217
  "default": ""
4157
4218
  },
4158
4219
  "type": {
4159
4220
  "type": "text",
4221
+ "_meta": {
4222
+ "__statedOptions": [
4223
+ "default"
4224
+ ]
4225
+ },
4160
4226
  "required": false,
4161
4227
  "default": "feature"
4162
4228
  },
4163
4229
  "description": {
4164
4230
  "type": "text",
4231
+ "_meta": {
4232
+ "__statedOptions": [
4233
+ "default"
4234
+ ]
4235
+ },
4165
4236
  "required": false,
4166
4237
  "default": ""
4167
4238
  },
4168
4239
  "evidence": {
4169
4240
  "type": "text",
4241
+ "_meta": {
4242
+ "__statedOptions": [
4243
+ "default"
4244
+ ]
4245
+ },
4170
4246
  "required": false,
4171
4247
  "default": "[]"
4172
4248
  },
4173
4249
  "visibility": {
4174
4250
  "type": "text",
4251
+ "_meta": {
4252
+ "__statedOptions": [
4253
+ "default",
4254
+ "enum"
4255
+ ]
4256
+ },
4175
4257
  "required": false,
4176
4258
  "default": "requester",
4177
4259
  "enum": [
@@ -4184,16 +4266,32 @@
4184
4266
  },
4185
4267
  "origin": {
4186
4268
  "type": "text",
4269
+ "_meta": {
4270
+ "__statedOptions": [
4271
+ "default"
4272
+ ]
4273
+ },
4187
4274
  "required": false,
4188
4275
  "default": "managed-app"
4189
4276
  },
4190
4277
  "discussion": {
4191
4278
  "type": "text",
4279
+ "_meta": {
4280
+ "__statedOptions": [
4281
+ "default"
4282
+ ]
4283
+ },
4192
4284
  "required": false,
4193
4285
  "default": ""
4194
4286
  },
4195
4287
  "status": {
4196
4288
  "type": "text",
4289
+ "_meta": {
4290
+ "__statedOptions": [
4291
+ "default",
4292
+ "enum"
4293
+ ]
4294
+ },
4197
4295
  "required": false,
4198
4296
  "default": "submitted",
4199
4297
  "enum": [
@@ -4411,14 +4509,12 @@
4411
4509
  "className": "DevelopmentRequestHistory",
4412
4510
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequestHistory",
4413
4511
  "collection": "developmentrequesthistories",
4414
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/DevelopmentRequestHistory.ts",
4512
+ "filePath": "src/models/DevelopmentRequestHistory.ts",
4415
4513
  "packageName": "@happyvertical/smrt-projects",
4416
4514
  "fields": {
4417
4515
  "tenantId": {
4418
4516
  "type": "text",
4419
- "required": true,
4420
4517
  "_meta": {
4421
- "sqlType": "UUID",
4422
4518
  "__tenancy": {
4423
4519
  "isTenantIdField": true,
4424
4520
  "autoFilter": true,
@@ -4428,24 +4524,49 @@
4428
4524
  "mode": "required",
4429
4525
  "field": "tenantId",
4430
4526
  "allowSuperAdminBypass": false
4431
- }
4432
- }
4527
+ },
4528
+ "__statedOptions": [
4529
+ "sqlType",
4530
+ "requiredFor",
4531
+ "__tenancy"
4532
+ ],
4533
+ "sqlType": "UUID",
4534
+ "requiredFor": "tenant-scope"
4535
+ },
4536
+ "required": true
4433
4537
  },
4434
4538
  "requestId": {
4435
4539
  "type": "foreignKey",
4436
- "required": true,
4437
- "related": "DevelopmentRequest",
4438
4540
  "_meta": {
4439
- "required": true
4440
- }
4541
+ "__statedOptions": [
4542
+ "required",
4543
+ "requiredFor",
4544
+ "related"
4545
+ ],
4546
+ "required": true,
4547
+ "requiredFor": "identity"
4548
+ },
4549
+ "required": true,
4550
+ "related": "DevelopmentRequest"
4441
4551
  },
4442
4552
  "fromStatus": {
4443
4553
  "type": "text",
4554
+ "_meta": {
4555
+ "__statedOptions": [
4556
+ "default"
4557
+ ]
4558
+ },
4444
4559
  "required": false,
4445
4560
  "default": ""
4446
4561
  },
4447
4562
  "toStatus": {
4448
4563
  "type": "text",
4564
+ "_meta": {
4565
+ "__statedOptions": [
4566
+ "default",
4567
+ "enum"
4568
+ ]
4569
+ },
4449
4570
  "required": false,
4450
4571
  "default": "submitted",
4451
4572
  "enum": [
@@ -4459,6 +4580,12 @@
4459
4580
  },
4460
4581
  "actorType": {
4461
4582
  "type": "text",
4583
+ "_meta": {
4584
+ "__statedOptions": [
4585
+ "default",
4586
+ "enum"
4587
+ ]
4588
+ },
4462
4589
  "required": false,
4463
4590
  "default": "system",
4464
4591
  "enum": [
@@ -4469,11 +4596,19 @@
4469
4596
  },
4470
4597
  "actorId": {
4471
4598
  "type": "text",
4599
+ "_meta": {
4600
+ "__statedOptions": [
4601
+ "default"
4602
+ ]
4603
+ },
4472
4604
  "required": false,
4473
4605
  "default": ""
4474
4606
  },
4475
4607
  "note": {
4476
4608
  "type": "text",
4609
+ "_meta": {
4610
+ "__statedOptions": []
4611
+ },
4477
4612
  "required": false
4478
4613
  }
4479
4614
  },
@@ -4618,23 +4753,26 @@
4618
4753
  "className": "Issue",
4619
4754
  "qualifiedName": "@happyvertical/smrt-projects:Issue",
4620
4755
  "collection": "issues",
4621
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/Issue.ts",
4756
+ "filePath": "src/models/Issue.ts",
4622
4757
  "packageName": "@happyvertical/smrt-projects",
4623
4758
  "fields": {
4624
4759
  "created_at": {
4625
4760
  "type": "datetime",
4761
+ "_meta": {
4762
+ "__statedOptions": []
4763
+ },
4626
4764
  "required": false
4627
4765
  },
4628
4766
  "updated_at": {
4629
4767
  "type": "datetime",
4768
+ "_meta": {
4769
+ "__statedOptions": []
4770
+ },
4630
4771
  "required": false
4631
4772
  },
4632
4773
  "tenantId": {
4633
4774
  "type": "text",
4634
- "required": false,
4635
4775
  "_meta": {
4636
- "sqlType": "UUID",
4637
- "nullable": true,
4638
4776
  "__tenancy": {
4639
4777
  "isTenantIdField": true,
4640
4778
  "autoFilter": true,
@@ -4644,59 +4782,101 @@
4644
4782
  "mode": "optional",
4645
4783
  "field": "tenantId",
4646
4784
  "allowSuperAdminBypass": false
4647
- }
4648
- }
4785
+ },
4786
+ "__statedOptions": [
4787
+ "sqlType",
4788
+ "nullable",
4789
+ "__tenancy",
4790
+ "required"
4791
+ ],
4792
+ "sqlType": "UUID",
4793
+ "nullable": true,
4794
+ "required": false
4795
+ },
4796
+ "required": false
4649
4797
  },
4650
4798
  "repositoryId": {
4651
4799
  "type": "foreignKey",
4800
+ "_meta": {
4801
+ "__statedOptions": [
4802
+ "related"
4803
+ ]
4804
+ },
4652
4805
  "required": false,
4653
4806
  "related": "Repository"
4654
4807
  },
4655
4808
  "projectId": {
4656
4809
  "type": "foreignKey",
4657
- "required": false,
4658
- "related": "Project",
4659
- "description": "The project this issue belongs to.",
4660
4810
  "_meta": {
4811
+ "__statedOptions": [
4812
+ "description",
4813
+ "related"
4814
+ ],
4661
4815
  "description": "The project this issue belongs to."
4662
- }
4816
+ },
4817
+ "required": false,
4818
+ "related": "Project",
4819
+ "description": "The project this issue belongs to."
4663
4820
  },
4664
4821
  "number": {
4665
4822
  "type": "integer",
4823
+ "_meta": {
4824
+ "__statedOptions": [
4825
+ "default"
4826
+ ]
4827
+ },
4666
4828
  "required": false,
4667
4829
  "default": 0
4668
4830
  },
4669
4831
  "nodeId": {
4670
4832
  "type": "text",
4833
+ "_meta": {
4834
+ "__statedOptions": [
4835
+ "default"
4836
+ ]
4837
+ },
4671
4838
  "required": false,
4672
4839
  "default": ""
4673
4840
  },
4674
4841
  "title": {
4675
4842
  "type": "text",
4676
- "required": false,
4677
- "default": "",
4678
- "description": "A short summary of the issue.",
4679
4843
  "_meta": {
4844
+ "__statedOptions": [
4845
+ "description",
4846
+ "default"
4847
+ ],
4680
4848
  "description": "A short summary of the issue."
4681
- }
4849
+ },
4850
+ "required": false,
4851
+ "default": "",
4852
+ "description": "A short summary of the issue."
4682
4853
  },
4683
4854
  "body": {
4684
4855
  "type": "text",
4685
- "required": false,
4686
- "default": "",
4687
- "description": "The full description.",
4688
4856
  "_meta": {
4857
+ "__statedOptions": [
4858
+ "description",
4859
+ "default"
4860
+ ],
4689
4861
  "description": "The full description."
4690
- }
4862
+ },
4863
+ "required": false,
4864
+ "default": "",
4865
+ "description": "The full description."
4691
4866
  },
4692
4867
  "state": {
4693
4868
  "type": "text",
4694
- "required": false,
4695
- "default": "open",
4696
- "description": "open or closed.",
4697
4869
  "_meta": {
4870
+ "__statedOptions": [
4871
+ "description",
4872
+ "default",
4873
+ "enum"
4874
+ ],
4698
4875
  "description": "open or closed."
4699
4876
  },
4877
+ "required": false,
4878
+ "default": "open",
4879
+ "description": "open or closed.",
4700
4880
  "enum": [
4701
4881
  "open",
4702
4882
  "closed"
@@ -4704,47 +4884,77 @@
4704
4884
  },
4705
4885
  "author": {
4706
4886
  "type": "text",
4707
- "required": false,
4708
- "default": "",
4709
- "description": "Who raised the issue.",
4710
4887
  "_meta": {
4888
+ "__statedOptions": [
4889
+ "description",
4890
+ "default"
4891
+ ],
4711
4892
  "description": "Who raised the issue."
4712
- }
4893
+ },
4894
+ "required": false,
4895
+ "default": "",
4896
+ "description": "Who raised the issue."
4713
4897
  },
4714
4898
  "labels": {
4715
4899
  "type": "json",
4716
- "required": false,
4717
- "default": [],
4718
- "description": "The labels attached to the issue.",
4719
4900
  "_meta": {
4901
+ "__statedOptions": [
4902
+ "description",
4903
+ "default"
4904
+ ],
4720
4905
  "description": "The labels attached to the issue."
4721
- }
4906
+ },
4907
+ "required": false,
4908
+ "default": [],
4909
+ "description": "The labels attached to the issue."
4722
4910
  },
4723
4911
  "assignees": {
4724
4912
  "type": "json",
4725
- "required": false,
4726
- "default": [],
4727
- "description": "The people working on it.",
4728
4913
  "_meta": {
4914
+ "__statedOptions": [
4915
+ "description",
4916
+ "default"
4917
+ ],
4729
4918
  "description": "The people working on it."
4730
- }
4919
+ },
4920
+ "required": false,
4921
+ "default": [],
4922
+ "description": "The people working on it."
4731
4923
  },
4732
4924
  "commentsCount": {
4733
4925
  "type": "integer",
4926
+ "_meta": {
4927
+ "__statedOptions": [
4928
+ "default"
4929
+ ]
4930
+ },
4734
4931
  "required": false,
4735
4932
  "default": 0
4736
4933
  },
4737
4934
  "lastSyncedAt": {
4738
4935
  "type": "datetime",
4936
+ "_meta": {
4937
+ "__statedOptions": []
4938
+ },
4739
4939
  "required": false
4740
4940
  },
4741
4941
  "originalBody": {
4742
4942
  "type": "text",
4943
+ "_meta": {
4944
+ "__statedOptions": [
4945
+ "default"
4946
+ ]
4947
+ },
4743
4948
  "required": false,
4744
4949
  "default": ""
4745
4950
  },
4746
4951
  "synthesisCount": {
4747
4952
  "type": "integer",
4953
+ "_meta": {
4954
+ "__statedOptions": [
4955
+ "default"
4956
+ ]
4957
+ },
4748
4958
  "required": false,
4749
4959
  "default": 0
4750
4960
  }
@@ -5200,49 +5410,70 @@
5200
5410
  "className": "Label",
5201
5411
  "qualifiedName": "@happyvertical/smrt-projects:Label",
5202
5412
  "collection": "labels",
5203
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/Label.ts",
5413
+ "filePath": "src/models/Label.ts",
5204
5414
  "packageName": "@happyvertical/smrt-projects",
5205
5415
  "fields": {
5206
5416
  "repositoryId": {
5207
5417
  "type": "foreignKey",
5418
+ "_meta": {
5419
+ "__statedOptions": [
5420
+ "related"
5421
+ ]
5422
+ },
5208
5423
  "required": false,
5209
5424
  "related": "Repository"
5210
5425
  },
5211
5426
  "projectId": {
5212
5427
  "type": "foreignKey",
5213
- "required": false,
5214
- "related": "Project",
5215
- "description": "The project this label belongs to.",
5216
5428
  "_meta": {
5429
+ "__statedOptions": [
5430
+ "description",
5431
+ "related"
5432
+ ],
5217
5433
  "description": "The project this label belongs to."
5218
- }
5434
+ },
5435
+ "required": false,
5436
+ "related": "Project",
5437
+ "description": "The project this label belongs to."
5219
5438
  },
5220
5439
  "name": {
5221
5440
  "type": "text",
5222
- "required": false,
5223
- "default": "",
5224
- "description": "The label's name, for example bug.",
5225
5441
  "_meta": {
5442
+ "__statedOptions": [
5443
+ "description",
5444
+ "default"
5445
+ ],
5226
5446
  "description": "The label's name, for example bug."
5227
- }
5447
+ },
5448
+ "required": false,
5449
+ "default": "",
5450
+ "description": "The label's name, for example bug."
5228
5451
  },
5229
5452
  "color": {
5230
5453
  "type": "text",
5231
- "required": false,
5232
- "default": "",
5233
- "description": "The label's colour.",
5234
5454
  "_meta": {
5455
+ "__statedOptions": [
5456
+ "description",
5457
+ "default"
5458
+ ],
5235
5459
  "description": "The label's colour."
5236
- }
5460
+ },
5461
+ "required": false,
5462
+ "default": "",
5463
+ "description": "The label's colour."
5237
5464
  },
5238
5465
  "description": {
5239
5466
  "type": "text",
5240
- "required": false,
5241
- "default": "",
5242
- "description": "What the label means.",
5243
5467
  "_meta": {
5468
+ "__statedOptions": [
5469
+ "description",
5470
+ "default"
5471
+ ],
5244
5472
  "description": "What the label means."
5245
- }
5473
+ },
5474
+ "required": false,
5475
+ "default": "",
5476
+ "description": "What the label means."
5246
5477
  }
5247
5478
  },
5248
5479
  "methods": {
@@ -5457,15 +5688,12 @@
5457
5688
  "className": "Project",
5458
5689
  "qualifiedName": "@happyvertical/smrt-projects:Project",
5459
5690
  "collection": "projects",
5460
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/Project.ts",
5691
+ "filePath": "src/models/Project.ts",
5461
5692
  "packageName": "@happyvertical/smrt-projects",
5462
5693
  "fields": {
5463
5694
  "tenantId": {
5464
5695
  "type": "text",
5465
- "required": false,
5466
5696
  "_meta": {
5467
- "sqlType": "UUID",
5468
- "nullable": true,
5469
5697
  "__tenancy": {
5470
5698
  "isTenantIdField": true,
5471
5699
  "autoFilter": true,
@@ -5475,65 +5703,110 @@
5475
5703
  "mode": "optional",
5476
5704
  "field": "tenantId",
5477
5705
  "allowSuperAdminBypass": false
5478
- }
5479
- }
5706
+ },
5707
+ "__statedOptions": [
5708
+ "sqlType",
5709
+ "nullable",
5710
+ "__tenancy",
5711
+ "required"
5712
+ ],
5713
+ "sqlType": "UUID",
5714
+ "nullable": true,
5715
+ "required": false
5716
+ },
5717
+ "required": false
5480
5718
  },
5481
5719
  "projectId": {
5482
5720
  "type": "text",
5721
+ "_meta": {
5722
+ "__statedOptions": [
5723
+ "default"
5724
+ ]
5725
+ },
5483
5726
  "required": false,
5484
5727
  "default": ""
5485
5728
  },
5486
5729
  "projectNumber": {
5487
5730
  "type": "integer",
5731
+ "_meta": {
5732
+ "__statedOptions": [
5733
+ "default"
5734
+ ]
5735
+ },
5488
5736
  "required": false,
5489
5737
  "default": 0
5490
5738
  },
5491
5739
  "title": {
5492
5740
  "type": "text",
5493
- "required": false,
5494
- "default": "",
5495
- "description": "The project's name.",
5496
5741
  "_meta": {
5742
+ "__statedOptions": [
5743
+ "description",
5744
+ "default"
5745
+ ],
5497
5746
  "description": "The project's name."
5498
- }
5747
+ },
5748
+ "required": false,
5749
+ "default": "",
5750
+ "description": "The project's name."
5499
5751
  },
5500
5752
  "description": {
5501
5753
  "type": "text",
5502
- "required": false,
5503
- "default": "",
5504
- "description": "What the project is about.",
5505
5754
  "_meta": {
5755
+ "__statedOptions": [
5756
+ "description",
5757
+ "default"
5758
+ ],
5506
5759
  "description": "What the project is about."
5507
- }
5760
+ },
5761
+ "required": false,
5762
+ "default": "",
5763
+ "description": "What the project is about."
5508
5764
  },
5509
5765
  "owner": {
5510
5766
  "type": "text",
5511
- "required": false,
5512
- "default": "",
5513
- "description": "Who owns or runs the project.",
5514
5767
  "_meta": {
5768
+ "__statedOptions": [
5769
+ "description",
5770
+ "default"
5771
+ ],
5515
5772
  "description": "Who owns or runs the project."
5516
- }
5773
+ },
5774
+ "required": false,
5775
+ "default": "",
5776
+ "description": "Who owns or runs the project."
5517
5777
  },
5518
5778
  "url": {
5519
5779
  "type": "text",
5520
- "required": false,
5521
- "default": "",
5522
- "description": "A link to the project elsewhere.",
5523
5780
  "_meta": {
5781
+ "__statedOptions": [
5782
+ "description",
5783
+ "default"
5784
+ ],
5524
5785
  "description": "A link to the project elsewhere."
5525
- }
5786
+ },
5787
+ "required": false,
5788
+ "default": "",
5789
+ "description": "A link to the project elsewhere."
5526
5790
  },
5527
5791
  "kind": {
5528
5792
  "type": "text",
5529
- "required": false,
5530
- "description": "Whether this is client, product, or internal work.",
5531
5793
  "_meta": {
5794
+ "__statedOptions": [
5795
+ "description"
5796
+ ],
5532
5797
  "description": "Whether this is client, product, or internal work."
5533
- }
5798
+ },
5799
+ "required": false,
5800
+ "description": "Whether this is client, product, or internal work."
5534
5801
  },
5535
5802
  "providerType": {
5536
5803
  "type": "text",
5804
+ "_meta": {
5805
+ "__statedOptions": [
5806
+ "default",
5807
+ "enum"
5808
+ ]
5809
+ },
5537
5810
  "required": false,
5538
5811
  "default": "github",
5539
5812
  "enum": [
@@ -5545,31 +5818,59 @@
5545
5818
  },
5546
5819
  "tokenConfigKey": {
5547
5820
  "type": "text",
5821
+ "_meta": {
5822
+ "__statedOptions": [
5823
+ "default"
5824
+ ]
5825
+ },
5548
5826
  "required": false,
5549
5827
  "default": "GITHUB_TOKEN"
5550
5828
  },
5551
5829
  "statuses": {
5552
5830
  "type": "json",
5831
+ "_meta": {
5832
+ "__statedOptions": [
5833
+ "default"
5834
+ ]
5835
+ },
5553
5836
  "required": false,
5554
5837
  "default": []
5555
5838
  },
5556
5839
  "fields": {
5557
5840
  "type": "json",
5841
+ "_meta": {
5842
+ "__statedOptions": [
5843
+ "default"
5844
+ ]
5845
+ },
5558
5846
  "required": false,
5559
5847
  "default": []
5560
5848
  },
5561
5849
  "statusFieldId": {
5562
5850
  "type": "text",
5851
+ "_meta": {
5852
+ "__statedOptions": [
5853
+ "default"
5854
+ ]
5855
+ },
5563
5856
  "required": false,
5564
5857
  "default": ""
5565
5858
  },
5566
5859
  "statusOptions": {
5567
5860
  "type": "json",
5861
+ "_meta": {
5862
+ "__statedOptions": [
5863
+ "default"
5864
+ ]
5865
+ },
5568
5866
  "required": false,
5569
5867
  "default": {}
5570
5868
  },
5571
5869
  "lastSyncedAt": {
5572
5870
  "type": "datetime",
5871
+ "_meta": {
5872
+ "__statedOptions": []
5873
+ },
5573
5874
  "required": false
5574
5875
  }
5575
5876
  },
@@ -5990,40 +6291,56 @@
5990
6291
  "className": "ProjectDecision",
5991
6292
  "qualifiedName": "@happyvertical/smrt-projects:ProjectDecision",
5992
6293
  "collection": "projectdecisions",
5993
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectDecision.ts",
6294
+ "filePath": "src/models/ProjectDecision.ts",
5994
6295
  "packageName": "@happyvertical/smrt-projects",
5995
6296
  "fields": {
5996
6297
  "metaType": {
5997
6298
  "type": "text",
5998
- "required": true,
5999
6299
  "_meta": {
6000
- "required": true
6001
- }
6300
+ "__statedOptions": [
6301
+ "required",
6302
+ "requiredFor"
6303
+ ],
6304
+ "required": true,
6305
+ "requiredFor": "identity"
6306
+ },
6307
+ "required": true
6002
6308
  },
6003
6309
  "metaId": {
6004
6310
  "type": "text",
6005
- "required": true,
6006
6311
  "_meta": {
6007
- "required": true
6008
- }
6312
+ "__statedOptions": [
6313
+ "required",
6314
+ "requiredFor"
6315
+ ],
6316
+ "required": true,
6317
+ "requiredFor": "identity"
6318
+ },
6319
+ "required": true
6009
6320
  },
6010
6321
  "role": {
6011
6322
  "type": "text",
6012
- "required": true,
6013
6323
  "_meta": {
6324
+ "__statedOptions": [
6325
+ "required"
6326
+ ],
6014
6327
  "required": true
6015
- }
6328
+ },
6329
+ "required": true
6016
6330
  },
6017
6331
  "sortOrder": {
6018
6332
  "type": "integer",
6333
+ "_meta": {
6334
+ "__statedOptions": [
6335
+ "default"
6336
+ ]
6337
+ },
6019
6338
  "required": false,
6020
6339
  "default": 0
6021
6340
  },
6022
6341
  "tenantId": {
6023
6342
  "type": "text",
6024
- "required": true,
6025
6343
  "_meta": {
6026
- "sqlType": "UUID",
6027
6344
  "__tenancy": {
6028
6345
  "isTenantIdField": true,
6029
6346
  "autoFilter": true,
@@ -6033,35 +6350,57 @@
6033
6350
  "mode": "required",
6034
6351
  "field": "tenantId",
6035
6352
  "allowSuperAdminBypass": false
6036
- }
6037
- }
6353
+ },
6354
+ "__statedOptions": [
6355
+ "sqlType",
6356
+ "requiredFor",
6357
+ "__tenancy"
6358
+ ],
6359
+ "sqlType": "UUID",
6360
+ "requiredFor": "tenant-scope"
6361
+ },
6362
+ "required": true
6038
6363
  },
6039
6364
  "question": {
6040
6365
  "type": "text",
6041
- "required": true,
6042
6366
  "_meta": {
6043
- "required": true
6044
- }
6367
+ "__statedOptions": []
6368
+ },
6369
+ "required": false
6045
6370
  },
6046
6371
  "decisionOptions": {
6047
6372
  "type": "text",
6373
+ "_meta": {
6374
+ "__statedOptions": []
6375
+ },
6048
6376
  "required": false
6049
6377
  },
6050
6378
  "outcome": {
6051
6379
  "type": "text",
6380
+ "_meta": {
6381
+ "__statedOptions": []
6382
+ },
6052
6383
  "required": false
6053
6384
  },
6054
6385
  "rationale": {
6055
6386
  "type": "text",
6387
+ "_meta": {
6388
+ "__statedOptions": []
6389
+ },
6056
6390
  "required": false
6057
6391
  },
6058
6392
  "status": {
6059
6393
  "type": "text",
6060
- "required": true,
6061
- "default": "open",
6062
6394
  "_meta": {
6395
+ "__statedOptions": [
6396
+ "required",
6397
+ "default",
6398
+ "enum"
6399
+ ],
6063
6400
  "required": true
6064
6401
  },
6402
+ "required": true,
6403
+ "default": "open",
6065
6404
  "enum": [
6066
6405
  "open",
6067
6406
  "decided",
@@ -6071,6 +6410,12 @@
6071
6410
  },
6072
6411
  "ownerType": {
6073
6412
  "type": "text",
6413
+ "_meta": {
6414
+ "__statedOptions": [
6415
+ "default",
6416
+ "enum"
6417
+ ]
6418
+ },
6074
6419
  "required": false,
6075
6420
  "default": "",
6076
6421
  "enum": [
@@ -6082,10 +6427,19 @@
6082
6427
  },
6083
6428
  "ownerId": {
6084
6429
  "type": "text",
6430
+ "_meta": {
6431
+ "__statedOptions": []
6432
+ },
6085
6433
  "required": false
6086
6434
  },
6087
6435
  "visibility": {
6088
6436
  "type": "text",
6437
+ "_meta": {
6438
+ "__statedOptions": [
6439
+ "default",
6440
+ "enum"
6441
+ ]
6442
+ },
6089
6443
  "required": false,
6090
6444
  "default": "internal",
6091
6445
  "enum": [
@@ -6095,19 +6449,32 @@
6095
6449
  },
6096
6450
  "contextReferences": {
6097
6451
  "type": "text",
6452
+ "_meta": {
6453
+ "__statedOptions": []
6454
+ },
6098
6455
  "required": false
6099
6456
  },
6100
6457
  "revision": {
6101
6458
  "type": "integer",
6459
+ "_meta": {
6460
+ "__statedOptions": [
6461
+ "default"
6462
+ ]
6463
+ },
6102
6464
  "required": true,
6103
6465
  "default": 1
6104
6466
  },
6105
6467
  "decidedAt": {
6106
6468
  "type": "datetime",
6107
- "required": false,
6108
6469
  "_meta": {
6109
- "nullable": true
6110
- }
6470
+ "__statedOptions": [
6471
+ "nullable",
6472
+ "required"
6473
+ ],
6474
+ "nullable": true,
6475
+ "required": false
6476
+ },
6477
+ "required": false
6111
6478
  }
6112
6479
  },
6113
6480
  "methods": {
@@ -6218,11 +6585,6 @@
6218
6585
  "rule": "required",
6219
6586
  "fieldType": "text"
6220
6587
  },
6221
- {
6222
- "field": "question",
6223
- "rule": "required",
6224
- "fieldType": "text"
6225
- },
6226
6588
  {
6227
6589
  "field": "status",
6228
6590
  "rule": "required",
@@ -6236,7 +6598,7 @@
6236
6598
  ],
6237
6599
  "schema": {
6238
6600
  "tableName": "project_decisions",
6239
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT NOT NULL,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
6601
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
6240
6602
  "columns": {
6241
6603
  "_sync_origin_device_id": {
6242
6604
  "type": "TEXT"
@@ -6298,7 +6660,7 @@
6298
6660
  },
6299
6661
  "question": {
6300
6662
  "type": "TEXT",
6301
- "notNull": true,
6663
+ "notNull": false,
6302
6664
  "unique": false
6303
6665
  },
6304
6666
  "decision_options": {
@@ -6400,7 +6762,7 @@
6400
6762
  ]
6401
6763
  }
6402
6764
  ],
6403
- "version": "9b079873"
6765
+ "version": "1a806d20"
6404
6766
  },
6405
6767
  "importPath": "@happyvertical/smrt-projects"
6406
6768
  },
@@ -6409,40 +6771,56 @@
6409
6771
  "className": "ProjectGovernanceEvent",
6410
6772
  "qualifiedName": "@happyvertical/smrt-projects:ProjectGovernanceEvent",
6411
6773
  "collection": "projectgovernanceevents",
6412
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectGovernanceEvent.ts",
6774
+ "filePath": "src/models/ProjectGovernanceEvent.ts",
6413
6775
  "packageName": "@happyvertical/smrt-projects",
6414
6776
  "fields": {
6415
6777
  "metaType": {
6416
6778
  "type": "text",
6417
- "required": true,
6418
6779
  "_meta": {
6419
- "required": true
6420
- }
6780
+ "__statedOptions": [
6781
+ "required",
6782
+ "requiredFor"
6783
+ ],
6784
+ "required": true,
6785
+ "requiredFor": "identity"
6786
+ },
6787
+ "required": true
6421
6788
  },
6422
6789
  "metaId": {
6423
6790
  "type": "text",
6424
- "required": true,
6425
6791
  "_meta": {
6426
- "required": true
6427
- }
6792
+ "__statedOptions": [
6793
+ "required",
6794
+ "requiredFor"
6795
+ ],
6796
+ "required": true,
6797
+ "requiredFor": "identity"
6798
+ },
6799
+ "required": true
6428
6800
  },
6429
6801
  "role": {
6430
6802
  "type": "text",
6431
- "required": true,
6432
6803
  "_meta": {
6804
+ "__statedOptions": [
6805
+ "required"
6806
+ ],
6433
6807
  "required": true
6434
- }
6808
+ },
6809
+ "required": true
6435
6810
  },
6436
6811
  "sortOrder": {
6437
6812
  "type": "integer",
6813
+ "_meta": {
6814
+ "__statedOptions": [
6815
+ "default"
6816
+ ]
6817
+ },
6438
6818
  "required": false,
6439
6819
  "default": 0
6440
6820
  },
6441
6821
  "tenantId": {
6442
6822
  "type": "text",
6443
- "required": true,
6444
6823
  "_meta": {
6445
- "sqlType": "UUID",
6446
6824
  "__tenancy": {
6447
6825
  "isTenantIdField": true,
6448
6826
  "autoFilter": true,
@@ -6452,16 +6830,29 @@
6452
6830
  "mode": "required",
6453
6831
  "field": "tenantId",
6454
6832
  "allowSuperAdminBypass": false
6455
- }
6456
- }
6833
+ },
6834
+ "__statedOptions": [
6835
+ "sqlType",
6836
+ "requiredFor",
6837
+ "__tenancy"
6838
+ ],
6839
+ "sqlType": "UUID",
6840
+ "requiredFor": "tenant-scope"
6841
+ },
6842
+ "required": true
6457
6843
  },
6458
6844
  "recordKind": {
6459
6845
  "type": "text",
6460
- "required": true,
6461
- "default": "question",
6462
6846
  "_meta": {
6847
+ "__statedOptions": [
6848
+ "required",
6849
+ "default",
6850
+ "enum"
6851
+ ],
6463
6852
  "required": true
6464
6853
  },
6854
+ "required": true,
6855
+ "default": "question",
6465
6856
  "enum": [
6466
6857
  "question",
6467
6858
  "decision"
@@ -6469,11 +6860,16 @@
6469
6860
  },
6470
6861
  "action": {
6471
6862
  "type": "text",
6472
- "required": true,
6473
- "default": "created",
6474
6863
  "_meta": {
6864
+ "__statedOptions": [
6865
+ "required",
6866
+ "default",
6867
+ "enum"
6868
+ ],
6475
6869
  "required": true
6476
6870
  },
6871
+ "required": true,
6872
+ "default": "created",
6477
6873
  "enum": [
6478
6874
  "created",
6479
6875
  "assigned",
@@ -6486,11 +6882,16 @@
6486
6882
  },
6487
6883
  "actorType": {
6488
6884
  "type": "text",
6489
- "required": true,
6490
- "default": "system",
6491
6885
  "_meta": {
6886
+ "__statedOptions": [
6887
+ "required",
6888
+ "default",
6889
+ "enum"
6890
+ ],
6492
6891
  "required": true
6493
6892
  },
6893
+ "required": true,
6894
+ "default": "system",
6494
6895
  "enum": [
6495
6896
  "user",
6496
6897
  "agent",
@@ -6499,49 +6900,83 @@
6499
6900
  },
6500
6901
  "actorId": {
6501
6902
  "type": "text",
6502
- "required": true,
6503
6903
  "_meta": {
6504
- "required": true
6505
- }
6904
+ "__statedOptions": [
6905
+ "required",
6906
+ "requiredFor"
6907
+ ],
6908
+ "required": true,
6909
+ "requiredFor": "idempotency"
6910
+ },
6911
+ "required": true
6506
6912
  },
6507
6913
  "fromStatus": {
6508
6914
  "type": "text",
6915
+ "_meta": {
6916
+ "__statedOptions": []
6917
+ },
6509
6918
  "required": false
6510
6919
  },
6511
6920
  "toStatus": {
6512
6921
  "type": "text",
6513
- "required": true,
6514
6922
  "_meta": {
6923
+ "__statedOptions": [
6924
+ "required"
6925
+ ],
6515
6926
  "required": true
6516
- }
6927
+ },
6928
+ "required": true
6517
6929
  },
6518
6930
  "note": {
6519
6931
  "type": "text",
6932
+ "_meta": {
6933
+ "__statedOptions": []
6934
+ },
6520
6935
  "required": false
6521
6936
  },
6522
6937
  "value": {
6523
6938
  "type": "text",
6939
+ "_meta": {
6940
+ "__statedOptions": []
6941
+ },
6524
6942
  "required": false
6525
6943
  },
6526
6944
  "rationale": {
6527
6945
  "type": "text",
6946
+ "_meta": {
6947
+ "__statedOptions": []
6948
+ },
6528
6949
  "required": false
6529
6950
  },
6530
6951
  "answerSelection": {
6531
6952
  "type": "text",
6532
- "required": false,
6533
- "default": "",
6534
6953
  "_meta": {
6954
+ "__statedOptions": [
6955
+ "default"
6956
+ ],
6535
6957
  "default": ""
6536
- }
6958
+ },
6959
+ "required": false,
6960
+ "default": ""
6537
6961
  },
6538
6962
  "revision": {
6539
6963
  "type": "integer",
6964
+ "_meta": {
6965
+ "__statedOptions": [
6966
+ "default"
6967
+ ]
6968
+ },
6540
6969
  "required": true,
6541
6970
  "default": 1
6542
6971
  },
6543
6972
  "fromOwnerType": {
6544
6973
  "type": "text",
6974
+ "_meta": {
6975
+ "__statedOptions": [
6976
+ "default",
6977
+ "enum"
6978
+ ]
6979
+ },
6545
6980
  "required": false,
6546
6981
  "default": "",
6547
6982
  "enum": [
@@ -6553,10 +6988,19 @@
6553
6988
  },
6554
6989
  "fromOwnerId": {
6555
6990
  "type": "text",
6991
+ "_meta": {
6992
+ "__statedOptions": []
6993
+ },
6556
6994
  "required": false
6557
6995
  },
6558
6996
  "toOwnerType": {
6559
6997
  "type": "text",
6998
+ "_meta": {
6999
+ "__statedOptions": [
7000
+ "default",
7001
+ "enum"
7002
+ ]
7003
+ },
6560
7004
  "required": false,
6561
7005
  "default": "",
6562
7006
  "enum": [
@@ -6568,6 +7012,9 @@
6568
7012
  },
6569
7013
  "toOwnerId": {
6570
7014
  "type": "text",
7015
+ "_meta": {
7016
+ "__statedOptions": []
7017
+ },
6571
7018
  "required": false
6572
7019
  }
6573
7020
  },
@@ -6863,14 +7310,12 @@
6863
7310
  "className": "ProjectIntegration",
6864
7311
  "qualifiedName": "@happyvertical/smrt-projects:ProjectIntegration",
6865
7312
  "collection": "projectintegrations",
6866
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectIntegration.ts",
7313
+ "filePath": "src/models/ProjectIntegration.ts",
6867
7314
  "packageName": "@happyvertical/smrt-projects",
6868
7315
  "fields": {
6869
7316
  "tenantId": {
6870
7317
  "type": "text",
6871
- "required": true,
6872
7318
  "_meta": {
6873
- "sqlType": "UUID",
6874
7319
  "__tenancy": {
6875
7320
  "isTenantIdField": true,
6876
7321
  "autoFilter": true,
@@ -6880,35 +7325,68 @@
6880
7325
  "mode": "required",
6881
7326
  "field": "tenantId",
6882
7327
  "allowSuperAdminBypass": false
6883
- }
6884
- }
7328
+ },
7329
+ "__statedOptions": [
7330
+ "sqlType",
7331
+ "requiredFor",
7332
+ "__tenancy"
7333
+ ],
7334
+ "sqlType": "UUID",
7335
+ "requiredFor": "tenant-scope"
7336
+ },
7337
+ "required": true
6885
7338
  },
6886
7339
  "projectId": {
6887
7340
  "type": "text",
7341
+ "_meta": {
7342
+ "__statedOptions": [
7343
+ "default"
7344
+ ]
7345
+ },
6888
7346
  "required": false,
6889
7347
  "default": ""
6890
7348
  },
6891
7349
  "name": {
6892
7350
  "type": "text",
7351
+ "_meta": {
7352
+ "__statedOptions": [
7353
+ "default"
7354
+ ]
7355
+ },
6893
7356
  "required": false,
6894
7357
  "default": ""
6895
7358
  },
6896
7359
  "credentialHash": {
6897
7360
  "type": "text",
6898
- "required": false,
6899
- "default": "",
6900
7361
  "_meta": {
7362
+ "__statedOptions": [
7363
+ "sensitive",
7364
+ "default"
7365
+ ],
6901
7366
  "sensitive": true
6902
7367
  },
7368
+ "required": false,
7369
+ "default": "",
6903
7370
  "sensitive": true
6904
7371
  },
6905
7372
  "capabilities": {
6906
7373
  "type": "json",
7374
+ "_meta": {
7375
+ "__statedOptions": [
7376
+ "default"
7377
+ ]
7378
+ },
6907
7379
  "required": false,
6908
7380
  "default": []
6909
7381
  },
6910
7382
  "status": {
6911
7383
  "type": "text",
7384
+ "_meta": {
7385
+ "__statedOptions": [
7386
+ "default",
7387
+ "enum"
7388
+ ]
7389
+ },
6912
7390
  "required": false,
6913
7391
  "default": "active",
6914
7392
  "enum": [
@@ -6918,6 +7396,9 @@
6918
7396
  },
6919
7397
  "revokedAt": {
6920
7398
  "type": "datetime",
7399
+ "_meta": {
7400
+ "__statedOptions": []
7401
+ },
6921
7402
  "required": false
6922
7403
  }
6923
7404
  },
@@ -7091,14 +7572,12 @@
7091
7572
  "className": "ProjectIntegrationAudit",
7092
7573
  "qualifiedName": "@happyvertical/smrt-projects:ProjectIntegrationAudit",
7093
7574
  "collection": "projectintegrationaudits",
7094
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectIntegrationAudit.ts",
7575
+ "filePath": "src/models/ProjectIntegrationAudit.ts",
7095
7576
  "packageName": "@happyvertical/smrt-projects",
7096
7577
  "fields": {
7097
7578
  "tenantId": {
7098
7579
  "type": "text",
7099
- "required": true,
7100
7580
  "_meta": {
7101
- "sqlType": "UUID",
7102
7581
  "__tenancy": {
7103
7582
  "isTenantIdField": true,
7104
7583
  "autoFilter": true,
@@ -7108,19 +7587,39 @@
7108
7587
  "mode": "required",
7109
7588
  "field": "tenantId",
7110
7589
  "allowSuperAdminBypass": false
7111
- }
7112
- }
7590
+ },
7591
+ "__statedOptions": [
7592
+ "sqlType",
7593
+ "requiredFor",
7594
+ "__tenancy"
7595
+ ],
7596
+ "sqlType": "UUID",
7597
+ "requiredFor": "tenant-scope"
7598
+ },
7599
+ "required": true
7113
7600
  },
7114
7601
  "integrationId": {
7115
7602
  "type": "foreignKey",
7116
- "required": true,
7117
- "related": "ProjectIntegration",
7118
7603
  "_meta": {
7119
- "required": true
7120
- }
7604
+ "__statedOptions": [
7605
+ "required",
7606
+ "requiredFor",
7607
+ "related"
7608
+ ],
7609
+ "required": true,
7610
+ "requiredFor": "identity"
7611
+ },
7612
+ "required": true,
7613
+ "related": "ProjectIntegration"
7121
7614
  },
7122
7615
  "action": {
7123
7616
  "type": "text",
7617
+ "_meta": {
7618
+ "__statedOptions": [
7619
+ "default",
7620
+ "enum"
7621
+ ]
7622
+ },
7124
7623
  "required": false,
7125
7624
  "default": "created",
7126
7625
  "enum": [
@@ -7131,6 +7630,9 @@
7131
7630
  },
7132
7631
  "note": {
7133
7632
  "type": "text",
7633
+ "_meta": {
7634
+ "__statedOptions": []
7635
+ },
7134
7636
  "required": false
7135
7637
  }
7136
7638
  },
@@ -7257,40 +7759,56 @@
7257
7759
  "className": "ProjectQuestion",
7258
7760
  "qualifiedName": "@happyvertical/smrt-projects:ProjectQuestion",
7259
7761
  "collection": "projectquestions",
7260
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectQuestion.ts",
7762
+ "filePath": "src/models/ProjectQuestion.ts",
7261
7763
  "packageName": "@happyvertical/smrt-projects",
7262
7764
  "fields": {
7263
7765
  "metaType": {
7264
7766
  "type": "text",
7265
- "required": true,
7266
7767
  "_meta": {
7267
- "required": true
7268
- }
7768
+ "__statedOptions": [
7769
+ "required",
7770
+ "requiredFor"
7771
+ ],
7772
+ "required": true,
7773
+ "requiredFor": "identity"
7774
+ },
7775
+ "required": true
7269
7776
  },
7270
7777
  "metaId": {
7271
7778
  "type": "text",
7272
- "required": true,
7273
7779
  "_meta": {
7274
- "required": true
7275
- }
7780
+ "__statedOptions": [
7781
+ "required",
7782
+ "requiredFor"
7783
+ ],
7784
+ "required": true,
7785
+ "requiredFor": "identity"
7786
+ },
7787
+ "required": true
7276
7788
  },
7277
7789
  "role": {
7278
7790
  "type": "text",
7279
- "required": true,
7280
7791
  "_meta": {
7792
+ "__statedOptions": [
7793
+ "required"
7794
+ ],
7281
7795
  "required": true
7282
- }
7796
+ },
7797
+ "required": true
7283
7798
  },
7284
7799
  "sortOrder": {
7285
7800
  "type": "integer",
7801
+ "_meta": {
7802
+ "__statedOptions": [
7803
+ "default"
7804
+ ]
7805
+ },
7286
7806
  "required": false,
7287
7807
  "default": 0
7288
7808
  },
7289
7809
  "tenantId": {
7290
7810
  "type": "text",
7291
- "required": true,
7292
7811
  "_meta": {
7293
- "sqlType": "UUID",
7294
7812
  "__tenancy": {
7295
7813
  "isTenantIdField": true,
7296
7814
  "autoFilter": true,
@@ -7300,43 +7818,65 @@
7300
7818
  "mode": "required",
7301
7819
  "field": "tenantId",
7302
7820
  "allowSuperAdminBypass": false
7303
- }
7304
- }
7821
+ },
7822
+ "__statedOptions": [
7823
+ "sqlType",
7824
+ "requiredFor",
7825
+ "__tenancy"
7826
+ ],
7827
+ "sqlType": "UUID",
7828
+ "requiredFor": "tenant-scope"
7829
+ },
7830
+ "required": true
7305
7831
  },
7306
7832
  "prompt": {
7307
7833
  "type": "text",
7308
- "required": true,
7309
7834
  "_meta": {
7310
- "required": true
7311
- }
7835
+ "__statedOptions": []
7836
+ },
7837
+ "required": false
7312
7838
  },
7313
7839
  "answer": {
7314
7840
  "type": "text",
7841
+ "_meta": {
7842
+ "__statedOptions": []
7843
+ },
7315
7844
  "required": false
7316
7845
  },
7317
7846
  "questionOptions": {
7318
7847
  "type": "text",
7319
- "required": false,
7320
- "default": "[]",
7321
7848
  "_meta": {
7849
+ "__statedOptions": [
7850
+ "default"
7851
+ ],
7322
7852
  "default": "[]"
7323
- }
7853
+ },
7854
+ "required": false,
7855
+ "default": "[]"
7324
7856
  },
7325
7857
  "selectedOptionId": {
7326
7858
  "type": "text",
7327
- "required": false,
7328
- "default": "",
7329
7859
  "_meta": {
7860
+ "__statedOptions": [
7861
+ "default"
7862
+ ],
7330
7863
  "default": ""
7331
- }
7864
+ },
7865
+ "required": false,
7866
+ "default": ""
7332
7867
  },
7333
7868
  "status": {
7334
7869
  "type": "text",
7335
- "required": true,
7336
- "default": "open",
7337
7870
  "_meta": {
7871
+ "__statedOptions": [
7872
+ "required",
7873
+ "default",
7874
+ "enum"
7875
+ ],
7338
7876
  "required": true
7339
7877
  },
7878
+ "required": true,
7879
+ "default": "open",
7340
7880
  "enum": [
7341
7881
  "open",
7342
7882
  "answered",
@@ -7346,6 +7886,12 @@
7346
7886
  },
7347
7887
  "ownerType": {
7348
7888
  "type": "text",
7889
+ "_meta": {
7890
+ "__statedOptions": [
7891
+ "default",
7892
+ "enum"
7893
+ ]
7894
+ },
7349
7895
  "required": false,
7350
7896
  "default": "",
7351
7897
  "enum": [
@@ -7357,10 +7903,19 @@
7357
7903
  },
7358
7904
  "ownerId": {
7359
7905
  "type": "text",
7906
+ "_meta": {
7907
+ "__statedOptions": []
7908
+ },
7360
7909
  "required": false
7361
7910
  },
7362
7911
  "visibility": {
7363
7912
  "type": "text",
7913
+ "_meta": {
7914
+ "__statedOptions": [
7915
+ "default",
7916
+ "enum"
7917
+ ]
7918
+ },
7364
7919
  "required": false,
7365
7920
  "default": "internal",
7366
7921
  "enum": [
@@ -7370,19 +7925,32 @@
7370
7925
  },
7371
7926
  "contextReferences": {
7372
7927
  "type": "text",
7928
+ "_meta": {
7929
+ "__statedOptions": []
7930
+ },
7373
7931
  "required": false
7374
7932
  },
7375
7933
  "revision": {
7376
7934
  "type": "integer",
7935
+ "_meta": {
7936
+ "__statedOptions": [
7937
+ "default"
7938
+ ]
7939
+ },
7377
7940
  "required": true,
7378
7941
  "default": 1
7379
7942
  },
7380
7943
  "answeredAt": {
7381
7944
  "type": "datetime",
7382
- "required": false,
7383
7945
  "_meta": {
7384
- "nullable": true
7385
- }
7946
+ "__statedOptions": [
7947
+ "nullable",
7948
+ "required"
7949
+ ],
7950
+ "nullable": true,
7951
+ "required": false
7952
+ },
7953
+ "required": false
7386
7954
  }
7387
7955
  },
7388
7956
  "methods": {
@@ -7493,11 +8061,6 @@
7493
8061
  "rule": "required",
7494
8062
  "fieldType": "text"
7495
8063
  },
7496
- {
7497
- "field": "prompt",
7498
- "rule": "required",
7499
- "fieldType": "text"
7500
- },
7501
8064
  {
7502
8065
  "field": "status",
7503
8066
  "rule": "required",
@@ -7511,7 +8074,7 @@
7511
8074
  ],
7512
8075
  "schema": {
7513
8076
  "tableName": "project_questions",
7514
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT NOT NULL,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
8077
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
7515
8078
  "columns": {
7516
8079
  "_sync_origin_device_id": {
7517
8080
  "type": "TEXT"
@@ -7573,7 +8136,7 @@
7573
8136
  },
7574
8137
  "prompt": {
7575
8138
  "type": "TEXT",
7576
- "notNull": true,
8139
+ "notNull": false,
7577
8140
  "unique": false
7578
8141
  },
7579
8142
  "answer": {
@@ -7677,7 +8240,7 @@
7677
8240
  ]
7678
8241
  }
7679
8242
  ],
7680
- "version": "1bdc2c36"
8243
+ "version": "4ec56a39"
7681
8244
  },
7682
8245
  "importPath": "@happyvertical/smrt-projects"
7683
8246
  },
@@ -7686,15 +8249,12 @@
7686
8249
  "className": "ProjectRepository",
7687
8250
  "qualifiedName": "@happyvertical/smrt-projects:ProjectRepository",
7688
8251
  "collection": "projectrepositories",
7689
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectRepository.ts",
8252
+ "filePath": "src/models/ProjectRepository.ts",
7690
8253
  "packageName": "@happyvertical/smrt-projects",
7691
8254
  "fields": {
7692
8255
  "tenantId": {
7693
8256
  "type": "text",
7694
- "required": false,
7695
8257
  "_meta": {
7696
- "sqlType": "UUID",
7697
- "nullable": true,
7698
8258
  "__tenancy": {
7699
8259
  "isTenantIdField": true,
7700
8260
  "autoFilter": true,
@@ -7704,27 +8264,54 @@
7704
8264
  "mode": "optional",
7705
8265
  "field": "tenantId",
7706
8266
  "allowSuperAdminBypass": false
7707
- }
7708
- }
8267
+ },
8268
+ "__statedOptions": [
8269
+ "sqlType",
8270
+ "nullable",
8271
+ "__tenancy",
8272
+ "required"
8273
+ ],
8274
+ "sqlType": "UUID",
8275
+ "nullable": true,
8276
+ "required": false
8277
+ },
8278
+ "required": false
7709
8279
  },
7710
8280
  "projectId": {
7711
8281
  "type": "foreignKey",
7712
- "required": true,
7713
- "related": "Project",
7714
8282
  "_meta": {
7715
- "required": true
7716
- }
8283
+ "__statedOptions": [
8284
+ "required",
8285
+ "requiredFor",
8286
+ "related"
8287
+ ],
8288
+ "required": true,
8289
+ "requiredFor": "identity"
8290
+ },
8291
+ "required": true,
8292
+ "related": "Project"
7717
8293
  },
7718
8294
  "repositoryId": {
7719
8295
  "type": "foreignKey",
7720
- "required": true,
7721
- "related": "Repository",
7722
8296
  "_meta": {
7723
- "required": true
7724
- }
8297
+ "__statedOptions": [
8298
+ "required",
8299
+ "requiredFor",
8300
+ "related"
8301
+ ],
8302
+ "required": true,
8303
+ "requiredFor": "identity"
8304
+ },
8305
+ "required": true,
8306
+ "related": "Repository"
7725
8307
  },
7726
8308
  "role": {
7727
8309
  "type": "text",
8310
+ "_meta": {
8311
+ "__statedOptions": [
8312
+ "default"
8313
+ ]
8314
+ },
7728
8315
  "required": false,
7729
8316
  "default": "primary"
7730
8317
  }
@@ -7870,40 +8457,56 @@
7870
8457
  "qualifiedName": "@happyvertical/smrt-projects:ProjectSpecification",
7871
8458
  "collection": "projectspecifications",
7872
8459
  "description": "Canonical project requirements and their portable application cookbook.",
7873
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/ProjectSpecification.ts",
8460
+ "filePath": "src/models/ProjectSpecification.ts",
7874
8461
  "packageName": "@happyvertical/smrt-projects",
7875
8462
  "fields": {
7876
8463
  "metaType": {
7877
8464
  "type": "text",
7878
- "required": true,
7879
8465
  "_meta": {
7880
- "required": true
7881
- }
8466
+ "__statedOptions": [
8467
+ "required",
8468
+ "requiredFor"
8469
+ ],
8470
+ "required": true,
8471
+ "requiredFor": "identity"
8472
+ },
8473
+ "required": true
7882
8474
  },
7883
8475
  "metaId": {
7884
8476
  "type": "text",
7885
- "required": true,
7886
8477
  "_meta": {
7887
- "required": true
7888
- }
8478
+ "__statedOptions": [
8479
+ "required",
8480
+ "requiredFor"
8481
+ ],
8482
+ "required": true,
8483
+ "requiredFor": "identity"
8484
+ },
8485
+ "required": true
7889
8486
  },
7890
8487
  "role": {
7891
8488
  "type": "text",
7892
- "required": true,
7893
8489
  "_meta": {
8490
+ "__statedOptions": [
8491
+ "required"
8492
+ ],
7894
8493
  "required": true
7895
- }
8494
+ },
8495
+ "required": true
7896
8496
  },
7897
8497
  "sortOrder": {
7898
8498
  "type": "integer",
8499
+ "_meta": {
8500
+ "__statedOptions": [
8501
+ "default"
8502
+ ]
8503
+ },
7899
8504
  "required": false,
7900
8505
  "default": 0
7901
8506
  },
7902
8507
  "tenantId": {
7903
8508
  "type": "text",
7904
- "required": true,
7905
8509
  "_meta": {
7906
- "sqlType": "UUID",
7907
8510
  "__tenancy": {
7908
8511
  "isTenantIdField": true,
7909
8512
  "autoFilter": true,
@@ -7913,35 +8516,60 @@
7913
8516
  "mode": "required",
7914
8517
  "field": "tenantId",
7915
8518
  "allowSuperAdminBypass": false
7916
- }
7917
- }
8519
+ },
8520
+ "__statedOptions": [
8521
+ "sqlType",
8522
+ "requiredFor",
8523
+ "__tenancy"
8524
+ ],
8525
+ "sqlType": "UUID",
8526
+ "requiredFor": "tenant-scope"
8527
+ },
8528
+ "required": true
7918
8529
  },
7919
8530
  "title": {
7920
8531
  "type": "text",
7921
- "required": true,
7922
8532
  "_meta": {
7923
- "required": true
7924
- }
8533
+ "__statedOptions": []
8534
+ },
8535
+ "required": false
7925
8536
  },
7926
8537
  "summary": {
7927
8538
  "type": "text",
8539
+ "_meta": {
8540
+ "__statedOptions": []
8541
+ },
7928
8542
  "required": false
7929
8543
  },
7930
8544
  "cookbook": {
7931
8545
  "type": "text",
8546
+ "_meta": {
8547
+ "__statedOptions": []
8548
+ },
7932
8549
  "required": false
7933
8550
  },
7934
8551
  "revision": {
7935
8552
  "type": "integer",
8553
+ "_meta": {
8554
+ "__statedOptions": [
8555
+ "default"
8556
+ ]
8557
+ },
7936
8558
  "required": true,
7937
8559
  "default": 1
7938
8560
  },
7939
8561
  "actorType": {
7940
8562
  "type": "text",
8563
+ "_meta": {
8564
+ "__statedOptions": []
8565
+ },
7941
8566
  "required": false
7942
8567
  },
7943
8568
  "actorId": {
7944
8569
  "type": "text",
8570
+ "_meta": {
8571
+ "__statedOptions": []
8572
+ },
7945
8573
  "required": false
7946
8574
  }
7947
8575
  },
@@ -7997,11 +8625,6 @@
7997
8625
  "rule": "required",
7998
8626
  "fieldType": "text"
7999
8627
  },
8000
- {
8001
- "field": "title",
8002
- "rule": "required",
8003
- "fieldType": "text"
8004
- },
8005
8628
  {
8006
8629
  "field": "revision",
8007
8630
  "rule": "required",
@@ -8010,7 +8633,7 @@
8010
8633
  ],
8011
8634
  "schema": {
8012
8635
  "tableName": "project_specifications",
8013
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT NOT NULL,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
8636
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
8014
8637
  "columns": {
8015
8638
  "_sync_origin_device_id": {
8016
8639
  "type": "TEXT"
@@ -8072,7 +8695,7 @@
8072
8695
  },
8073
8696
  "title": {
8074
8697
  "type": "TEXT",
8075
- "notNull": true,
8698
+ "notNull": false,
8076
8699
  "unique": false
8077
8700
  },
8078
8701
  "summary": {
@@ -8134,7 +8757,7 @@
8134
8757
  ]
8135
8758
  }
8136
8759
  ],
8137
- "version": "52645f69"
8760
+ "version": "24ecd310"
8138
8761
  },
8139
8762
  "importPath": "@happyvertical/smrt-projects"
8140
8763
  },
@@ -8143,23 +8766,26 @@
8143
8766
  "className": "PullRequest",
8144
8767
  "qualifiedName": "@happyvertical/smrt-projects:PullRequest",
8145
8768
  "collection": "issues",
8146
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/PullRequest.ts",
8769
+ "filePath": "src/models/PullRequest.ts",
8147
8770
  "packageName": "@happyvertical/smrt-projects",
8148
8771
  "fields": {
8149
8772
  "created_at": {
8150
8773
  "type": "datetime",
8774
+ "_meta": {
8775
+ "__statedOptions": []
8776
+ },
8151
8777
  "required": false
8152
8778
  },
8153
8779
  "updated_at": {
8154
8780
  "type": "datetime",
8781
+ "_meta": {
8782
+ "__statedOptions": []
8783
+ },
8155
8784
  "required": false
8156
8785
  },
8157
8786
  "tenantId": {
8158
8787
  "type": "text",
8159
- "required": false,
8160
8788
  "_meta": {
8161
- "sqlType": "UUID",
8162
- "nullable": true,
8163
8789
  "__tenancy": {
8164
8790
  "isTenantIdField": true,
8165
8791
  "autoFilter": true,
@@ -8169,59 +8795,101 @@
8169
8795
  "mode": "optional",
8170
8796
  "field": "tenantId",
8171
8797
  "allowSuperAdminBypass": false
8172
- }
8173
- }
8798
+ },
8799
+ "__statedOptions": [
8800
+ "sqlType",
8801
+ "nullable",
8802
+ "__tenancy",
8803
+ "required"
8804
+ ],
8805
+ "required": false,
8806
+ "sqlType": "UUID",
8807
+ "nullable": true
8808
+ },
8809
+ "required": false
8174
8810
  },
8175
8811
  "repositoryId": {
8176
8812
  "type": "foreignKey",
8813
+ "_meta": {
8814
+ "__statedOptions": [
8815
+ "related"
8816
+ ]
8817
+ },
8177
8818
  "required": false,
8178
8819
  "related": "Repository"
8179
8820
  },
8180
8821
  "projectId": {
8181
8822
  "type": "foreignKey",
8182
- "required": false,
8183
- "related": "Project",
8184
- "description": "The project this issue belongs to.",
8185
8823
  "_meta": {
8824
+ "__statedOptions": [
8825
+ "description",
8826
+ "related"
8827
+ ],
8186
8828
  "description": "The project this issue belongs to."
8187
- }
8829
+ },
8830
+ "required": false,
8831
+ "related": "Project",
8832
+ "description": "The project this issue belongs to."
8188
8833
  },
8189
8834
  "number": {
8190
8835
  "type": "integer",
8836
+ "_meta": {
8837
+ "__statedOptions": [
8838
+ "default"
8839
+ ]
8840
+ },
8191
8841
  "required": false,
8192
8842
  "default": 0
8193
8843
  },
8194
8844
  "nodeId": {
8195
8845
  "type": "text",
8846
+ "_meta": {
8847
+ "__statedOptions": [
8848
+ "default"
8849
+ ]
8850
+ },
8196
8851
  "required": false,
8197
8852
  "default": ""
8198
8853
  },
8199
8854
  "title": {
8200
8855
  "type": "text",
8201
- "required": false,
8202
- "default": "",
8203
- "description": "A short summary of the issue.",
8204
8856
  "_meta": {
8857
+ "__statedOptions": [
8858
+ "description",
8859
+ "default"
8860
+ ],
8205
8861
  "description": "A short summary of the issue."
8206
- }
8862
+ },
8863
+ "required": false,
8864
+ "default": "",
8865
+ "description": "A short summary of the issue."
8207
8866
  },
8208
8867
  "body": {
8209
8868
  "type": "text",
8210
- "required": false,
8211
- "default": "",
8212
- "description": "The full description.",
8213
8869
  "_meta": {
8870
+ "__statedOptions": [
8871
+ "description",
8872
+ "default"
8873
+ ],
8214
8874
  "description": "The full description."
8215
- }
8875
+ },
8876
+ "required": false,
8877
+ "default": "",
8878
+ "description": "The full description."
8216
8879
  },
8217
8880
  "state": {
8218
8881
  "type": "text",
8219
- "required": false,
8220
- "default": "open",
8221
- "description": "open or closed.",
8222
8882
  "_meta": {
8883
+ "__statedOptions": [
8884
+ "description",
8885
+ "default",
8886
+ "enum"
8887
+ ],
8223
8888
  "description": "open or closed."
8224
8889
  },
8890
+ "required": false,
8891
+ "default": "open",
8892
+ "description": "open or closed.",
8225
8893
  "enum": [
8226
8894
  "open",
8227
8895
  "closed"
@@ -8229,91 +8897,164 @@
8229
8897
  },
8230
8898
  "author": {
8231
8899
  "type": "text",
8232
- "required": false,
8233
- "default": "",
8234
- "description": "Who raised the issue.",
8235
8900
  "_meta": {
8901
+ "__statedOptions": [
8902
+ "description",
8903
+ "default"
8904
+ ],
8236
8905
  "description": "Who raised the issue."
8237
- }
8906
+ },
8907
+ "required": false,
8908
+ "default": "",
8909
+ "description": "Who raised the issue."
8238
8910
  },
8239
8911
  "labels": {
8240
8912
  "type": "json",
8241
- "required": false,
8242
- "default": [],
8243
- "description": "The labels attached to the issue.",
8244
8913
  "_meta": {
8914
+ "__statedOptions": [
8915
+ "description",
8916
+ "default"
8917
+ ],
8245
8918
  "description": "The labels attached to the issue."
8246
- }
8919
+ },
8920
+ "required": false,
8921
+ "default": [],
8922
+ "description": "The labels attached to the issue."
8247
8923
  },
8248
8924
  "assignees": {
8249
8925
  "type": "json",
8250
- "required": false,
8251
- "default": [],
8252
- "description": "The people working on it.",
8253
8926
  "_meta": {
8927
+ "__statedOptions": [
8928
+ "description",
8929
+ "default"
8930
+ ],
8254
8931
  "description": "The people working on it."
8255
- }
8932
+ },
8933
+ "required": false,
8934
+ "default": [],
8935
+ "description": "The people working on it."
8256
8936
  },
8257
8937
  "commentsCount": {
8258
8938
  "type": "integer",
8939
+ "_meta": {
8940
+ "__statedOptions": [
8941
+ "default"
8942
+ ]
8943
+ },
8259
8944
  "required": false,
8260
8945
  "default": 0
8261
8946
  },
8262
8947
  "lastSyncedAt": {
8263
8948
  "type": "datetime",
8949
+ "_meta": {
8950
+ "__statedOptions": []
8951
+ },
8264
8952
  "required": false
8265
8953
  },
8266
8954
  "originalBody": {
8267
8955
  "type": "text",
8956
+ "_meta": {
8957
+ "__statedOptions": [
8958
+ "default"
8959
+ ]
8960
+ },
8268
8961
  "required": false,
8269
8962
  "default": ""
8270
8963
  },
8271
8964
  "synthesisCount": {
8272
8965
  "type": "integer",
8966
+ "_meta": {
8967
+ "__statedOptions": [
8968
+ "default"
8969
+ ]
8970
+ },
8273
8971
  "required": false,
8274
8972
  "default": 0
8275
8973
  },
8276
8974
  "headRef": {
8277
8975
  "type": "text",
8976
+ "_meta": {
8977
+ "__statedOptions": [
8978
+ "default"
8979
+ ]
8980
+ },
8278
8981
  "required": false,
8279
8982
  "default": ""
8280
8983
  },
8281
8984
  "baseRef": {
8282
8985
  "type": "text",
8986
+ "_meta": {
8987
+ "__statedOptions": [
8988
+ "default"
8989
+ ]
8990
+ },
8283
8991
  "required": false,
8284
8992
  "default": ""
8285
8993
  },
8286
8994
  "merged": {
8287
8995
  "type": "boolean",
8996
+ "_meta": {
8997
+ "__statedOptions": [
8998
+ "default"
8999
+ ]
9000
+ },
8288
9001
  "required": false,
8289
9002
  "default": false
8290
9003
  },
8291
9004
  "mergedAt": {
8292
9005
  "type": "datetime",
9006
+ "_meta": {
9007
+ "__statedOptions": []
9008
+ },
8293
9009
  "required": false
8294
9010
  },
8295
9011
  "mergeable": {
8296
9012
  "type": "boolean",
9013
+ "_meta": {
9014
+ "__statedOptions": [
9015
+ "default"
9016
+ ]
9017
+ },
8297
9018
  "required": false,
8298
9019
  "default": true
8299
9020
  },
8300
9021
  "draft": {
8301
9022
  "type": "boolean",
9023
+ "_meta": {
9024
+ "__statedOptions": [
9025
+ "default"
9026
+ ]
9027
+ },
8302
9028
  "required": false,
8303
9029
  "default": false
8304
9030
  },
8305
9031
  "additions": {
8306
9032
  "type": "integer",
9033
+ "_meta": {
9034
+ "__statedOptions": [
9035
+ "default"
9036
+ ]
9037
+ },
8307
9038
  "required": false,
8308
9039
  "default": 0
8309
9040
  },
8310
9041
  "deletions": {
8311
9042
  "type": "integer",
9043
+ "_meta": {
9044
+ "__statedOptions": [
9045
+ "default"
9046
+ ]
9047
+ },
8312
9048
  "required": false,
8313
9049
  "default": 0
8314
9050
  },
8315
9051
  "changedFiles": {
8316
9052
  "type": "integer",
9053
+ "_meta": {
9054
+ "__statedOptions": [
9055
+ "default"
9056
+ ]
9057
+ },
8317
9058
  "required": false,
8318
9059
  "default": 0
8319
9060
  }
@@ -8851,15 +9592,12 @@
8851
9592
  "className": "Repository",
8852
9593
  "qualifiedName": "@happyvertical/smrt-projects:Repository",
8853
9594
  "collection": "repositories",
8854
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/Repository.ts",
9595
+ "filePath": "src/models/Repository.ts",
8855
9596
  "packageName": "@happyvertical/smrt-projects",
8856
9597
  "fields": {
8857
9598
  "tenantId": {
8858
9599
  "type": "text",
8859
- "required": false,
8860
9600
  "_meta": {
8861
- "sqlType": "UUID",
8862
- "nullable": true,
8863
9601
  "__tenancy": {
8864
9602
  "isTenantIdField": true,
8865
9603
  "autoFilter": true,
@@ -8869,41 +9607,87 @@
8869
9607
  "mode": "optional",
8870
9608
  "field": "tenantId",
8871
9609
  "allowSuperAdminBypass": false
8872
- }
8873
- }
9610
+ },
9611
+ "__statedOptions": [
9612
+ "sqlType",
9613
+ "nullable",
9614
+ "__tenancy",
9615
+ "required"
9616
+ ],
9617
+ "sqlType": "UUID",
9618
+ "nullable": true,
9619
+ "required": false
9620
+ },
9621
+ "required": false
8874
9622
  },
8875
9623
  "owner": {
8876
9624
  "type": "text",
9625
+ "_meta": {
9626
+ "__statedOptions": [
9627
+ "default"
9628
+ ]
9629
+ },
8877
9630
  "required": false,
8878
9631
  "default": ""
8879
9632
  },
8880
9633
  "name": {
8881
9634
  "type": "text",
9635
+ "_meta": {
9636
+ "__statedOptions": [
9637
+ "default"
9638
+ ]
9639
+ },
8882
9640
  "required": false,
8883
9641
  "default": ""
8884
9642
  },
8885
9643
  "fullName": {
8886
9644
  "type": "text",
9645
+ "_meta": {
9646
+ "__statedOptions": [
9647
+ "default"
9648
+ ]
9649
+ },
8887
9650
  "required": false,
8888
9651
  "default": ""
8889
9652
  },
8890
9653
  "description": {
8891
9654
  "type": "text",
9655
+ "_meta": {
9656
+ "__statedOptions": [
9657
+ "default"
9658
+ ]
9659
+ },
8892
9660
  "required": false,
8893
9661
  "default": ""
8894
9662
  },
8895
9663
  "defaultBranch": {
8896
9664
  "type": "text",
9665
+ "_meta": {
9666
+ "__statedOptions": [
9667
+ "default"
9668
+ ]
9669
+ },
8897
9670
  "required": false,
8898
9671
  "default": "main"
8899
9672
  },
8900
9673
  "isPrivate": {
8901
9674
  "type": "boolean",
9675
+ "_meta": {
9676
+ "__statedOptions": [
9677
+ "default"
9678
+ ]
9679
+ },
8902
9680
  "required": false,
8903
9681
  "default": false
8904
9682
  },
8905
9683
  "providerType": {
8906
9684
  "type": "text",
9685
+ "_meta": {
9686
+ "__statedOptions": [
9687
+ "default",
9688
+ "enum"
9689
+ ]
9690
+ },
8907
9691
  "required": false,
8908
9692
  "default": "github",
8909
9693
  "enum": [
@@ -8915,39 +9699,76 @@
8915
9699
  },
8916
9700
  "baseUrl": {
8917
9701
  "type": "text",
9702
+ "_meta": {
9703
+ "__statedOptions": [
9704
+ "default"
9705
+ ]
9706
+ },
8918
9707
  "required": false,
8919
9708
  "default": ""
8920
9709
  },
8921
9710
  "tokenConfigKey": {
8922
9711
  "type": "text",
9712
+ "_meta": {
9713
+ "__statedOptions": [
9714
+ "default"
9715
+ ]
9716
+ },
8923
9717
  "required": false,
8924
9718
  "default": "GITHUB_TOKEN"
8925
9719
  },
8926
9720
  "lastSyncedAt": {
8927
9721
  "type": "datetime",
9722
+ "_meta": {
9723
+ "__statedOptions": []
9724
+ },
8928
9725
  "required": false
8929
9726
  },
8930
9727
  "url": {
8931
9728
  "type": "text",
9729
+ "_meta": {
9730
+ "__statedOptions": [
9731
+ "default"
9732
+ ]
9733
+ },
8932
9734
  "required": false,
8933
9735
  "default": ""
8934
9736
  },
8935
9737
  "archived": {
8936
9738
  "type": "boolean",
9739
+ "_meta": {
9740
+ "__statedOptions": [
9741
+ "default"
9742
+ ]
9743
+ },
8937
9744
  "required": false,
8938
9745
  "default": false
8939
9746
  },
8940
9747
  "lastPushedAt": {
8941
9748
  "type": "datetime",
9749
+ "_meta": {
9750
+ "__statedOptions": []
9751
+ },
8942
9752
  "required": false
8943
9753
  },
8944
9754
  "openPullRequestCount": {
8945
9755
  "type": "integer",
9756
+ "_meta": {
9757
+ "__statedOptions": [
9758
+ "default"
9759
+ ]
9760
+ },
8946
9761
  "required": false,
8947
9762
  "default": 0
8948
9763
  },
8949
9764
  "ciState": {
8950
9765
  "type": "text",
9766
+ "_meta": {
9767
+ "__statedOptions": [
9768
+ "default",
9769
+ "enum"
9770
+ ]
9771
+ },
8951
9772
  "required": false,
8952
9773
  "default": "unknown",
8953
9774
  "enum": [
@@ -8960,24 +9781,43 @@
8960
9781
  },
8961
9782
  "latestReleaseTag": {
8962
9783
  "type": "text",
9784
+ "_meta": {
9785
+ "__statedOptions": [
9786
+ "default"
9787
+ ]
9788
+ },
8963
9789
  "required": false,
8964
9790
  "default": ""
8965
9791
  },
8966
9792
  "latestReleaseDate": {
8967
9793
  "type": "datetime",
9794
+ "_meta": {
9795
+ "__statedOptions": []
9796
+ },
8968
9797
  "required": false
8969
9798
  },
8970
9799
  "latestReleaseUrl": {
8971
9800
  "type": "text",
9801
+ "_meta": {
9802
+ "__statedOptions": [
9803
+ "default"
9804
+ ]
9805
+ },
8972
9806
  "required": false,
8973
9807
  "default": ""
8974
9808
  },
8975
9809
  "lastObservedAt": {
8976
9810
  "type": "datetime",
9811
+ "_meta": {
9812
+ "__statedOptions": []
9813
+ },
8977
9814
  "required": false
8978
9815
  },
8979
9816
  "missingSince": {
8980
9817
  "type": "datetime",
9818
+ "_meta": {
9819
+ "__statedOptions": []
9820
+ },
8981
9821
  "required": false
8982
9822
  }
8983
9823
  },
@@ -9361,14 +10201,12 @@
9361
10201
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequestWorkLink",
9362
10202
  "collection": "developmentrequestworklinks",
9363
10203
  "description": "Provider-neutral connection from a Development Request to canonical work.",
9364
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
10204
+ "filePath": "src/models/delivery-control-plane.ts",
9365
10205
  "packageName": "@happyvertical/smrt-projects",
9366
10206
  "fields": {
9367
10207
  "tenantId": {
9368
10208
  "type": "text",
9369
- "required": true,
9370
10209
  "_meta": {
9371
- "sqlType": "UUID",
9372
10210
  "__tenancy": {
9373
10211
  "isTenantIdField": true,
9374
10212
  "autoFilter": true,
@@ -9378,44 +10216,71 @@
9378
10216
  "mode": "required",
9379
10217
  "field": "tenantId",
9380
10218
  "allowSuperAdminBypass": false
9381
- }
9382
- }
10219
+ },
10220
+ "__statedOptions": [
10221
+ "sqlType",
10222
+ "requiredFor",
10223
+ "__tenancy"
10224
+ ],
10225
+ "sqlType": "UUID",
10226
+ "requiredFor": "tenant-scope"
10227
+ },
10228
+ "required": true
9383
10229
  },
9384
10230
  "requestId": {
9385
10231
  "type": "foreignKey",
9386
- "required": true,
9387
- "related": "DevelopmentRequest",
9388
10232
  "_meta": {
9389
- "required": true
9390
- }
10233
+ "__statedOptions": [
10234
+ "required",
10235
+ "requiredFor",
10236
+ "related"
10237
+ ],
10238
+ "required": true,
10239
+ "requiredFor": "identity"
10240
+ },
10241
+ "required": true,
10242
+ "related": "DevelopmentRequest"
9391
10243
  },
9392
10244
  "workItemType": {
9393
10245
  "type": "text",
9394
- "required": false,
9395
- "_meta": {}
10246
+ "_meta": {
10247
+ "__statedOptions": []
10248
+ },
10249
+ "required": false
9396
10250
  },
9397
10251
  "workItemId": {
9398
10252
  "type": "text",
9399
- "required": false,
9400
- "_meta": {}
10253
+ "_meta": {
10254
+ "__statedOptions": []
10255
+ },
10256
+ "required": false
9401
10257
  },
9402
10258
  "canonicalStatus": {
9403
10259
  "type": "text",
9404
- "required": false,
9405
- "_meta": {}
10260
+ "_meta": {
10261
+ "__statedOptions": []
10262
+ },
10263
+ "required": false
9406
10264
  },
9407
10265
  "providerRef": {
9408
10266
  "type": "text",
9409
- "required": false,
9410
- "_meta": {}
10267
+ "_meta": {
10268
+ "__statedOptions": []
10269
+ },
10270
+ "required": false
9411
10271
  },
9412
10272
  "metadata": {
9413
10273
  "type": "text",
9414
- "required": false,
9415
- "_meta": {}
10274
+ "_meta": {
10275
+ "__statedOptions": []
10276
+ },
10277
+ "required": false
9416
10278
  },
9417
10279
  "lastProjectedAt": {
9418
10280
  "type": "datetime",
10281
+ "_meta": {
10282
+ "__statedOptions": []
10283
+ },
9419
10284
  "required": false
9420
10285
  }
9421
10286
  },
@@ -9564,14 +10429,12 @@
9564
10429
  "qualifiedName": "@happyvertical/smrt-projects:ProjectDeliveryEvent",
9565
10430
  "collection": "projectdeliveryevents",
9566
10431
  "description": "Ordered, idempotent delivery update emitted by the control plane.",
9567
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
10432
+ "filePath": "src/models/delivery-control-plane.ts",
9568
10433
  "packageName": "@happyvertical/smrt-projects",
9569
10434
  "fields": {
9570
10435
  "tenantId": {
9571
10436
  "type": "text",
9572
- "required": true,
9573
10437
  "_meta": {
9574
- "sqlType": "UUID",
9575
10438
  "__tenancy": {
9576
10439
  "isTenantIdField": true,
9577
10440
  "autoFilter": true,
@@ -9581,39 +10444,70 @@
9581
10444
  "mode": "required",
9582
10445
  "field": "tenantId",
9583
10446
  "allowSuperAdminBypass": false
9584
- }
9585
- }
10447
+ },
10448
+ "__statedOptions": [
10449
+ "sqlType",
10450
+ "requiredFor",
10451
+ "__tenancy"
10452
+ ],
10453
+ "sqlType": "UUID",
10454
+ "requiredFor": "tenant-scope"
10455
+ },
10456
+ "required": true
9586
10457
  },
9587
10458
  "integrationId": {
9588
10459
  "type": "foreignKey",
9589
- "required": true,
9590
- "related": "ProjectIntegration",
9591
10460
  "_meta": {
9592
- "required": true
9593
- }
10461
+ "__statedOptions": [
10462
+ "required",
10463
+ "requiredFor",
10464
+ "related"
10465
+ ],
10466
+ "required": true,
10467
+ "requiredFor": "identity"
10468
+ },
10469
+ "required": true,
10470
+ "related": "ProjectIntegration"
9594
10471
  },
9595
10472
  "requestId": {
9596
10473
  "type": "foreignKey",
9597
- "required": true,
9598
- "related": "DevelopmentRequest",
9599
10474
  "_meta": {
9600
- "required": true
9601
- }
10475
+ "__statedOptions": [
10476
+ "required",
10477
+ "requiredFor",
10478
+ "related"
10479
+ ],
10480
+ "required": true,
10481
+ "requiredFor": "identity"
10482
+ },
10483
+ "required": true,
10484
+ "related": "DevelopmentRequest"
9602
10485
  },
9603
10486
  "idempotencyKey": {
9604
10487
  "type": "text",
9605
- "required": false,
9606
- "_meta": {}
10488
+ "_meta": {
10489
+ "__statedOptions": []
10490
+ },
10491
+ "required": false
9607
10492
  },
9608
10493
  "sequence": {
9609
10494
  "type": "integer",
10495
+ "_meta": {
10496
+ "__statedOptions": [
10497
+ "default"
10498
+ ]
10499
+ },
9610
10500
  "required": false,
9611
10501
  "default": 0
9612
10502
  },
9613
10503
  "type": {
9614
10504
  "type": "text",
10505
+ "_meta": {
10506
+ "__statedOptions": [
10507
+ "enum"
10508
+ ]
10509
+ },
9615
10510
  "required": false,
9616
- "_meta": {},
9617
10511
  "enum": [
9618
10512
  "work_linked",
9619
10513
  "branch",
@@ -9628,26 +10522,41 @@
9628
10522
  },
9629
10523
  "payload": {
9630
10524
  "type": "text",
9631
- "required": false,
9632
- "_meta": {}
10525
+ "_meta": {
10526
+ "__statedOptions": []
10527
+ },
10528
+ "required": false
9633
10529
  },
9634
10530
  "occurredAt": {
9635
10531
  "type": "datetime",
10532
+ "_meta": {
10533
+ "__statedOptions": []
10534
+ },
9636
10535
  "required": false
9637
10536
  },
9638
10537
  "deliveredAt": {
9639
10538
  "type": "datetime",
10539
+ "_meta": {
10540
+ "__statedOptions": []
10541
+ },
9640
10542
  "required": false
9641
10543
  },
9642
10544
  "deliveryAttempts": {
9643
10545
  "type": "integer",
10546
+ "_meta": {
10547
+ "__statedOptions": [
10548
+ "default"
10549
+ ]
10550
+ },
9644
10551
  "required": false,
9645
10552
  "default": 0
9646
10553
  },
9647
10554
  "lastDeliveryError": {
9648
10555
  "type": "text",
9649
- "required": false,
9650
- "_meta": {}
10556
+ "_meta": {
10557
+ "__statedOptions": []
10558
+ },
10559
+ "required": false
9651
10560
  }
9652
10561
  },
9653
10562
  "methods": {},
@@ -9828,14 +10737,12 @@
9828
10737
  "qualifiedName": "@happyvertical/smrt-projects:PreviewApproval",
9829
10738
  "collection": "previewapprovals",
9830
10739
  "description": "Client decision state for one preview produced during delivery.",
9831
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
10740
+ "filePath": "src/models/delivery-control-plane.ts",
9832
10741
  "packageName": "@happyvertical/smrt-projects",
9833
10742
  "fields": {
9834
10743
  "tenantId": {
9835
10744
  "type": "text",
9836
- "required": true,
9837
10745
  "_meta": {
9838
- "sqlType": "UUID",
9839
10746
  "__tenancy": {
9840
10747
  "isTenantIdField": true,
9841
10748
  "autoFilter": true,
@@ -9845,31 +10752,53 @@
9845
10752
  "mode": "required",
9846
10753
  "field": "tenantId",
9847
10754
  "allowSuperAdminBypass": false
9848
- }
9849
- }
10755
+ },
10756
+ "__statedOptions": [
10757
+ "sqlType",
10758
+ "requiredFor",
10759
+ "__tenancy"
10760
+ ],
10761
+ "sqlType": "UUID",
10762
+ "requiredFor": "tenant-scope"
10763
+ },
10764
+ "required": true
9850
10765
  },
9851
10766
  "requestId": {
9852
10767
  "type": "foreignKey",
9853
- "required": true,
9854
- "related": "DevelopmentRequest",
9855
10768
  "_meta": {
9856
- "required": true
9857
- }
10769
+ "__statedOptions": [
10770
+ "required",
10771
+ "requiredFor",
10772
+ "related"
10773
+ ],
10774
+ "required": true,
10775
+ "requiredFor": "identity"
10776
+ },
10777
+ "required": true,
10778
+ "related": "DevelopmentRequest"
9858
10779
  },
9859
10780
  "previewId": {
9860
10781
  "type": "text",
9861
- "required": false,
9862
- "_meta": {}
10782
+ "_meta": {
10783
+ "__statedOptions": []
10784
+ },
10785
+ "required": false
9863
10786
  },
9864
10787
  "previewUrl": {
9865
10788
  "type": "text",
9866
- "required": false,
9867
- "_meta": {}
10789
+ "_meta": {
10790
+ "__statedOptions": []
10791
+ },
10792
+ "required": false
9868
10793
  },
9869
10794
  "status": {
9870
10795
  "type": "text",
10796
+ "_meta": {
10797
+ "__statedOptions": [
10798
+ "enum"
10799
+ ]
10800
+ },
9871
10801
  "required": false,
9872
- "_meta": {},
9873
10802
  "enum": [
9874
10803
  "pending",
9875
10804
  "approved",
@@ -9879,24 +10808,37 @@
9879
10808
  },
9880
10809
  "decidedByRef": {
9881
10810
  "type": "text",
9882
- "required": false,
9883
- "_meta": {}
10811
+ "_meta": {
10812
+ "__statedOptions": []
10813
+ },
10814
+ "required": false
9884
10815
  },
9885
10816
  "reason": {
9886
10817
  "type": "text",
9887
- "required": false,
9888
- "_meta": {}
10818
+ "_meta": {
10819
+ "__statedOptions": []
10820
+ },
10821
+ "required": false
9889
10822
  },
9890
10823
  "createdAt": {
9891
10824
  "type": "datetime",
10825
+ "_meta": {
10826
+ "__statedOptions": []
10827
+ },
9892
10828
  "required": false
9893
10829
  },
9894
10830
  "decidedAt": {
9895
10831
  "type": "datetime",
10832
+ "_meta": {
10833
+ "__statedOptions": []
10834
+ },
9896
10835
  "required": false
9897
10836
  },
9898
10837
  "staleAt": {
9899
10838
  "type": "datetime",
10839
+ "_meta": {
10840
+ "__statedOptions": []
10841
+ },
9900
10842
  "required": false
9901
10843
  }
9902
10844
  },
@@ -10048,14 +10990,12 @@
10048
10990
  "qualifiedName": "@happyvertical/smrt-projects:AssistanceRequest",
10049
10991
  "collection": "assistancerequests",
10050
10992
  "description": "Lossless conversational intake before support/development classification.",
10051
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
10993
+ "filePath": "src/models/delivery-control-plane.ts",
10052
10994
  "packageName": "@happyvertical/smrt-projects",
10053
10995
  "fields": {
10054
10996
  "tenantId": {
10055
10997
  "type": "text",
10056
- "required": true,
10057
10998
  "_meta": {
10058
- "sqlType": "UUID",
10059
10999
  "__tenancy": {
10060
11000
  "isTenantIdField": true,
10061
11001
  "autoFilter": true,
@@ -10065,46 +11005,74 @@
10065
11005
  "mode": "required",
10066
11006
  "field": "tenantId",
10067
11007
  "allowSuperAdminBypass": false
10068
- }
10069
- }
11008
+ },
11009
+ "__statedOptions": [
11010
+ "sqlType",
11011
+ "requiredFor",
11012
+ "__tenancy"
11013
+ ],
11014
+ "sqlType": "UUID",
11015
+ "requiredFor": "tenant-scope"
11016
+ },
11017
+ "required": true
10070
11018
  },
10071
11019
  "integrationId": {
10072
11020
  "type": "foreignKey",
10073
- "required": true,
10074
- "related": "ProjectIntegration",
10075
11021
  "_meta": {
10076
- "required": true
10077
- }
11022
+ "__statedOptions": [
11023
+ "required",
11024
+ "requiredFor",
11025
+ "related"
11026
+ ],
11027
+ "required": true,
11028
+ "requiredFor": "identity"
11029
+ },
11030
+ "required": true,
11031
+ "related": "ProjectIntegration"
10078
11032
  },
10079
11033
  "requesterId": {
10080
11034
  "type": "text",
10081
- "required": false,
10082
- "_meta": {}
11035
+ "_meta": {
11036
+ "__statedOptions": []
11037
+ },
11038
+ "required": false
10083
11039
  },
10084
11040
  "subject": {
10085
11041
  "type": "text",
10086
- "required": false,
10087
- "_meta": {}
11042
+ "_meta": {
11043
+ "__statedOptions": []
11044
+ },
11045
+ "required": false
10088
11046
  },
10089
11047
  "applicationContext": {
10090
11048
  "type": "text",
10091
- "required": false,
10092
- "_meta": {}
11049
+ "_meta": {
11050
+ "__statedOptions": []
11051
+ },
11052
+ "required": false
10093
11053
  },
10094
11054
  "conversation": {
10095
11055
  "type": "text",
10096
- "required": false,
10097
- "_meta": {}
11056
+ "_meta": {
11057
+ "__statedOptions": []
11058
+ },
11059
+ "required": false
10098
11060
  },
10099
11061
  "evidence": {
10100
11062
  "type": "text",
10101
- "required": false,
10102
- "_meta": {}
11063
+ "_meta": {
11064
+ "__statedOptions": []
11065
+ },
11066
+ "required": false
10103
11067
  },
10104
11068
  "classification": {
10105
11069
  "type": "text",
11070
+ "_meta": {
11071
+ "__statedOptions": [
11072
+ "enum"
11073
+ ]
11074
+ },
10106
11075
  "required": false,
10107
- "_meta": {},
10108
11076
  "enum": [
10109
11077
  "unclassified",
10110
11078
  "support",
@@ -10114,20 +11082,30 @@
10114
11082
  },
10115
11083
  "supportCaseId": {
10116
11084
  "type": "text",
10117
- "required": false,
10118
- "_meta": {}
11085
+ "_meta": {
11086
+ "__statedOptions": []
11087
+ },
11088
+ "required": false
10119
11089
  },
10120
11090
  "developmentRequestId": {
10121
11091
  "type": "text",
10122
- "required": false,
10123
- "_meta": {}
11092
+ "_meta": {
11093
+ "__statedOptions": []
11094
+ },
11095
+ "required": false
10124
11096
  },
10125
11097
  "deliveryHandoffLinkedAt": {
10126
11098
  "type": "datetime",
11099
+ "_meta": {
11100
+ "__statedOptions": []
11101
+ },
10127
11102
  "required": false
10128
11103
  },
10129
11104
  "createdAt": {
10130
11105
  "type": "datetime",
11106
+ "_meta": {
11107
+ "__statedOptions": []
11108
+ },
10131
11109
  "required": false
10132
11110
  }
10133
11111
  },
@@ -10289,14 +11267,12 @@
10289
11267
  "qualifiedName": "@happyvertical/smrt-projects:AssistanceRequestEvent",
10290
11268
  "collection": "assistancerequestevents",
10291
11269
  "description": "Append-only explanation of Assistance Request routing decisions.",
10292
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
11270
+ "filePath": "src/models/delivery-control-plane.ts",
10293
11271
  "packageName": "@happyvertical/smrt-projects",
10294
11272
  "fields": {
10295
11273
  "tenantId": {
10296
11274
  "type": "text",
10297
- "required": true,
10298
11275
  "_meta": {
10299
- "sqlType": "UUID",
10300
11276
  "__tenancy": {
10301
11277
  "isTenantIdField": true,
10302
11278
  "autoFilter": true,
@@ -10306,21 +11282,39 @@
10306
11282
  "mode": "required",
10307
11283
  "field": "tenantId",
10308
11284
  "allowSuperAdminBypass": false
10309
- }
10310
- }
11285
+ },
11286
+ "__statedOptions": [
11287
+ "sqlType",
11288
+ "requiredFor",
11289
+ "__tenancy"
11290
+ ],
11291
+ "sqlType": "UUID",
11292
+ "requiredFor": "tenant-scope"
11293
+ },
11294
+ "required": true
10311
11295
  },
10312
11296
  "assistanceRequestId": {
10313
11297
  "type": "foreignKey",
10314
- "required": true,
10315
- "related": "AssistanceRequest",
10316
11298
  "_meta": {
10317
- "required": true
10318
- }
11299
+ "__statedOptions": [
11300
+ "nullable",
11301
+ "related",
11302
+ "required"
11303
+ ],
11304
+ "nullable": true,
11305
+ "required": false
11306
+ },
11307
+ "required": false,
11308
+ "related": "AssistanceRequest"
10319
11309
  },
10320
11310
  "priorClassification": {
10321
11311
  "type": "text",
11312
+ "_meta": {
11313
+ "__statedOptions": [
11314
+ "enum"
11315
+ ]
11316
+ },
10322
11317
  "required": false,
10323
- "_meta": {},
10324
11318
  "enum": [
10325
11319
  "unclassified",
10326
11320
  "support",
@@ -10330,8 +11324,12 @@
10330
11324
  },
10331
11325
  "resultingClassification": {
10332
11326
  "type": "text",
11327
+ "_meta": {
11328
+ "__statedOptions": [
11329
+ "enum"
11330
+ ]
11331
+ },
10333
11332
  "required": false,
10334
- "_meta": {},
10335
11333
  "enum": [
10336
11334
  "unclassified",
10337
11335
  "support",
@@ -10341,21 +11339,30 @@
10341
11339
  },
10342
11340
  "actorRef": {
10343
11341
  "type": "text",
10344
- "required": false,
10345
- "_meta": {}
11342
+ "_meta": {
11343
+ "__statedOptions": []
11344
+ },
11345
+ "required": false
10346
11346
  },
10347
11347
  "reason": {
10348
11348
  "type": "text",
10349
- "required": false,
10350
- "_meta": {}
11349
+ "_meta": {
11350
+ "__statedOptions": []
11351
+ },
11352
+ "required": false
10351
11353
  },
10352
11354
  "resultingLinks": {
10353
11355
  "type": "text",
10354
- "required": false,
10355
- "_meta": {}
11356
+ "_meta": {
11357
+ "__statedOptions": []
11358
+ },
11359
+ "required": false
10356
11360
  },
10357
11361
  "occurredAt": {
10358
11362
  "type": "datetime",
11363
+ "_meta": {
11364
+ "__statedOptions": []
11365
+ },
10359
11366
  "required": false
10360
11367
  }
10361
11368
  },
@@ -10377,16 +11384,10 @@
10377
11384
  "extends": "SmrtObject",
10378
11385
  "exportName": "AssistanceRequestEvent",
10379
11386
  "collectionExportName": "AssistanceRequestEventCollection",
10380
- "validationRules": [
10381
- {
10382
- "field": "assistanceRequestId",
10383
- "rule": "required",
10384
- "fieldType": "foreignKey"
10385
- }
10386
- ],
11387
+ "validationRules": [],
10387
11388
  "schema": {
10388
11389
  "tableName": "assistance_request_events",
10389
- "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 NOT NULL,\n \"assistance_request_id\" UUID NOT NULL,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
11390
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 NOT NULL,\n \"assistance_request_id\" UUID,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
10390
11391
  "columns": {
10391
11392
  "_sync_origin_device_id": {
10392
11393
  "type": "TEXT"
@@ -10428,7 +11429,7 @@
10428
11429
  "assistance_request_id": {
10429
11430
  "type": "UUID",
10430
11431
  "referenceKind": "foreignKey",
10431
- "notNull": true,
11432
+ "notNull": false,
10432
11433
  "unique": false,
10433
11434
  "foreignKey": {
10434
11435
  "table": "assistance_requests",
@@ -10492,7 +11493,7 @@
10492
11493
  ]
10493
11494
  }
10494
11495
  ],
10495
- "version": "66ef0a29"
11496
+ "version": "1cd42826"
10496
11497
  },
10497
11498
  "importPath": "@happyvertical/smrt-projects"
10498
11499
  },
@@ -10501,7 +11502,7 @@
10501
11502
  "className": "DevelopmentRequestWorkLinkCollection",
10502
11503
  "qualifiedName": "@happyvertical/smrt-projects:DevelopmentRequestWorkLinkCollection",
10503
11504
  "collection": "developmentrequestworklinks",
10504
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
11505
+ "filePath": "src/models/delivery-control-plane.ts",
10505
11506
  "packageName": "@happyvertical/smrt-projects",
10506
11507
  "fields": {},
10507
11508
  "methods": {},
@@ -10640,7 +11641,7 @@
10640
11641
  "className": "ProjectDeliveryEventCollection",
10641
11642
  "qualifiedName": "@happyvertical/smrt-projects:ProjectDeliveryEventCollection",
10642
11643
  "collection": "projectdeliveryevents",
10643
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
11644
+ "filePath": "src/models/delivery-control-plane.ts",
10644
11645
  "packageName": "@happyvertical/smrt-projects",
10645
11646
  "fields": {},
10646
11647
  "methods": {},
@@ -10808,7 +11809,7 @@
10808
11809
  "className": "PreviewApprovalCollection",
10809
11810
  "qualifiedName": "@happyvertical/smrt-projects:PreviewApprovalCollection",
10810
11811
  "collection": "previewapprovals",
10811
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
11812
+ "filePath": "src/models/delivery-control-plane.ts",
10812
11813
  "packageName": "@happyvertical/smrt-projects",
10813
11814
  "fields": {},
10814
11815
  "methods": {},
@@ -10951,7 +11952,7 @@
10951
11952
  "className": "AssistanceRequestCollection",
10952
11953
  "qualifiedName": "@happyvertical/smrt-projects:AssistanceRequestCollection",
10953
11954
  "collection": "assistancerequests",
10954
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
11955
+ "filePath": "src/models/delivery-control-plane.ts",
10955
11956
  "packageName": "@happyvertical/smrt-projects",
10956
11957
  "fields": {},
10957
11958
  "methods": {},
@@ -11103,7 +12104,7 @@
11103
12104
  "className": "AssistanceRequestEventCollection",
11104
12105
  "qualifiedName": "@happyvertical/smrt-projects:AssistanceRequestEventCollection",
11105
12106
  "collection": "assistancerequestevents",
11106
- "filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
12107
+ "filePath": "src/models/delivery-control-plane.ts",
11107
12108
  "packageName": "@happyvertical/smrt-projects",
11108
12109
  "fields": {},
11109
12110
  "methods": {},
@@ -11125,7 +12126,7 @@
11125
12126
  ],
11126
12127
  "schema": {
11127
12128
  "tableName": "assistance_request_events",
11128
- "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 NOT NULL,\n \"assistance_request_id\" UUID NOT NULL,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
12129
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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 NOT NULL,\n \"assistance_request_id\" UUID,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
11129
12130
  "columns": {
11130
12131
  "_sync_origin_device_id": {
11131
12132
  "type": "TEXT"
@@ -11167,7 +12168,7 @@
11167
12168
  "assistance_request_id": {
11168
12169
  "type": "UUID",
11169
12170
  "referenceKind": "foreignKey",
11170
- "notNull": true,
12171
+ "notNull": false,
11171
12172
  "unique": false,
11172
12173
  "foreignKey": {
11173
12174
  "table": "assistance_requests",
@@ -11231,7 +12232,7 @@
11231
12232
  ]
11232
12233
  }
11233
12234
  ],
11234
- "version": "66ef0a29"
12235
+ "version": "1cd42826"
11235
12236
  },
11236
12237
  "importPath": "@happyvertical/smrt-projects"
11237
12238
  }
@@ -11400,5 +12401,6 @@
11400
12401
  "@happyvertical/smrt-users"
11401
12402
  ]
11402
12403
  },
12404
+ "schemaFingerprint": "808fc1b355a93fac9d80bf11d6573c9e69e8414eb21e668e2a68406d12a7f5d7",
11403
12405
  "stampsConstructors": true
11404
12406
  }