@happyvertical/smrt-profiles 0.51.38 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/AGENTS.md +3 -1
  2. package/README.md +33 -1
  3. package/dist/chunks/{OidcIdentity-K8V4u0CR.js → OidcIdentity-Cb1bxreM.js} +3 -3
  4. package/dist/chunks/{OidcIdentity-K8V4u0CR.js.map → OidcIdentity-Cb1bxreM.js.map} +1 -1
  5. package/dist/chunks/{OidcIdentityCollection-gnrLoF08.js → OidcIdentityCollection-TV8VdK69.js} +2 -2
  6. package/dist/chunks/{OidcIdentityCollection-gnrLoF08.js.map → OidcIdentityCollection-TV8VdK69.js.map} +1 -1
  7. package/dist/chunks/{ProfileAssetCollection-CmbeSgDi.js → ProfileAssetCollection-B9hacUJa.js} +10 -4
  8. package/dist/chunks/ProfileAssetCollection-B9hacUJa.js.map +1 -0
  9. package/dist/chunks/{ProfileCollection-DTT4KNpQ.js → ProfileCollection-DuJT7Mum.js} +52 -14
  10. package/dist/chunks/ProfileCollection-DuJT7Mum.js.map +1 -0
  11. package/dist/chunks/ProfileLinkCollection-4uNURz32.js +228 -0
  12. package/dist/chunks/ProfileLinkCollection-4uNURz32.js.map +1 -0
  13. package/dist/chunks/{ProfileMetadataCollection-DxX_BJKV.js → ProfileMetadataCollection-DQhbfEfa.js} +2 -1
  14. package/dist/chunks/ProfileMetadataCollection-DQhbfEfa.js.map +1 -0
  15. package/dist/chunks/{ProfileMetafieldCollection-CMKhVi2I.js → ProfileMetafieldCollection-CoBuM_5G.js} +2 -1
  16. package/dist/chunks/ProfileMetafieldCollection-CoBuM_5G.js.map +1 -0
  17. package/dist/chunks/{oidcProvisioningPrimitives-0-3n3D6f.js → oidcProvisioningPrimitives-D9OYu5-F.js} +3 -3
  18. package/dist/chunks/{oidcProvisioningPrimitives-0-3n3D6f.js.map → oidcProvisioningPrimitives-D9OYu5-F.js.map} +1 -1
  19. package/dist/chunks/{resolveIdentity-BrJDCjYi.js → resolveIdentity-B-PK6RwU.js} +14 -14
  20. package/dist/chunks/{resolveIdentity-BrJDCjYi.js.map → resolveIdentity-B-PK6RwU.js.map} +1 -1
  21. package/dist/collections/ProfileLinkCollection.d.ts +40 -0
  22. package/dist/collections/ProfileLinkCollection.d.ts.map +1 -0
  23. package/dist/collections/index.d.ts +1 -0
  24. package/dist/collections/index.d.ts.map +1 -1
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +14 -13
  28. package/dist/index.js.map +1 -1
  29. package/dist/internal/oidc-provisioning.js +2 -2
  30. package/dist/manifest.json +589 -13
  31. package/dist/models/Profile.d.ts +26 -0
  32. package/dist/models/Profile.d.ts.map +1 -1
  33. package/dist/models/ProfileAsset.d.ts.map +1 -1
  34. package/dist/models/ProfileLink.d.ts +54 -0
  35. package/dist/models/ProfileLink.d.ts.map +1 -0
  36. package/dist/models/ProfileMetadata.d.ts.map +1 -1
  37. package/dist/models/ProfileMetafield.d.ts.map +1 -1
  38. package/dist/models/index.d.ts +1 -0
  39. package/dist/models/index.d.ts.map +1 -1
  40. package/dist/smrt-knowledge.json +537 -7
  41. package/dist/utils.js +4 -4
  42. package/package.json +12 -12
  43. package/dist/chunks/ProfileAssetCollection-CmbeSgDi.js.map +0 -1
  44. package/dist/chunks/ProfileCollection-DTT4KNpQ.js.map +0 -1
  45. package/dist/chunks/ProfileMetadataCollection-DxX_BJKV.js.map +0 -1
  46. package/dist/chunks/ProfileMetafieldCollection-CMKhVi2I.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-profiles",
5
- "packageVersion": "0.51.38",
5
+ "packageVersion": "0.52.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-profiles:ApiKeyCollection": {
8
8
  "name": "apikeycollection",
@@ -1997,7 +1997,7 @@
1997
1997
  "collectionExportName": "ProfileCollectionCollection",
1998
1998
  "schema": {
1999
1999
  "tableName": "profiles",
2000
- "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT\n);",
2000
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"is_public\" BOOLEAN DEFAULT FALSE\n);",
2001
2001
  "columns": {
2002
2002
  "id": {
2003
2003
  "type": "UUID",
@@ -2064,6 +2064,11 @@
2064
2064
  "description": {
2065
2065
  "type": "TEXT",
2066
2066
  "notNull": false
2067
+ },
2068
+ "is_public": {
2069
+ "type": "BOOLEAN",
2070
+ "notNull": false,
2071
+ "default": false
2067
2072
  }
2068
2073
  },
2069
2074
  "indexes": [
@@ -2104,7 +2109,180 @@
2104
2109
  ]
2105
2110
  }
2106
2111
  ],
2107
- "version": "fd4497fb"
2112
+ "version": "f4a7b632"
2113
+ },
2114
+ "importPath": "@happyvertical/smrt-profiles"
2115
+ },
2116
+ "@happyvertical/smrt-profiles:ProfileLinkCollection": {
2117
+ "name": "profilelinkcollection",
2118
+ "className": "ProfileLinkCollection",
2119
+ "qualifiedName": "@happyvertical/smrt-profiles:ProfileLinkCollection",
2120
+ "collection": "profilelinks",
2121
+ "filePath": "/home/runner/work/smrt/smrt/packages/profiles/src/collections/ProfileLinkCollection.ts",
2122
+ "packageName": "@happyvertical/smrt-profiles",
2123
+ "fields": {},
2124
+ "methods": {
2125
+ "listForProfile": {
2126
+ "name": "listForProfile",
2127
+ "async": true,
2128
+ "parameters": [
2129
+ {
2130
+ "name": "profileId",
2131
+ "type": "string",
2132
+ "optional": false
2133
+ }
2134
+ ],
2135
+ "returnType": "Promise<ProfileLink[]>",
2136
+ "isStatic": false,
2137
+ "isPublic": true
2138
+ },
2139
+ "replaceForProfile": {
2140
+ "name": "replaceForProfile",
2141
+ "async": true,
2142
+ "parameters": [
2143
+ {
2144
+ "name": "profileId",
2145
+ "type": "string",
2146
+ "optional": false
2147
+ },
2148
+ {
2149
+ "name": "links",
2150
+ "type": "any",
2151
+ "optional": false,
2152
+ "typeUnresolved": true
2153
+ }
2154
+ ],
2155
+ "returnType": "Promise<ProfileLink[]>",
2156
+ "isStatic": false,
2157
+ "isPublic": true
2158
+ },
2159
+ "reorder": {
2160
+ "name": "reorder",
2161
+ "async": true,
2162
+ "parameters": [
2163
+ {
2164
+ "name": "profileId",
2165
+ "type": "string",
2166
+ "optional": false
2167
+ },
2168
+ {
2169
+ "name": "linkIds",
2170
+ "type": "any",
2171
+ "optional": false,
2172
+ "typeUnresolved": true
2173
+ }
2174
+ ],
2175
+ "returnType": "Promise<ProfileLink[]>",
2176
+ "isStatic": false,
2177
+ "isPublic": true
2178
+ }
2179
+ },
2180
+ "decoratorConfig": {
2181
+ "tableName": "profile_links",
2182
+ "api": false,
2183
+ "mcp": false,
2184
+ "cli": false
2185
+ },
2186
+ "extends": "SmrtCollection",
2187
+ "extendsTypeArg": "ProfileLink",
2188
+ "exportName": "ProfileLinkCollection",
2189
+ "collectionExportName": "ProfileLinkCollectionCollection",
2190
+ "schema": {
2191
+ "tableName": "profile_links",
2192
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profile_links\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID NOT NULL,\n \"platform\" TEXT NOT NULL DEFAULT 'website',\n \"url\" TEXT NOT NULL,\n \"label\" TEXT,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0\n);",
2193
+ "columns": {
2194
+ "id": {
2195
+ "type": "UUID",
2196
+ "primaryKey": true,
2197
+ "referenceKind": "id",
2198
+ "notNull": true
2199
+ },
2200
+ "slug": {
2201
+ "type": "TEXT",
2202
+ "notNull": true
2203
+ },
2204
+ "context": {
2205
+ "type": "TEXT",
2206
+ "notNull": true,
2207
+ "default": ""
2208
+ },
2209
+ "created_at": {
2210
+ "type": "TIMESTAMP",
2211
+ "notNull": true,
2212
+ "default": "current_timestamp"
2213
+ },
2214
+ "updated_at": {
2215
+ "type": "TIMESTAMP",
2216
+ "notNull": true,
2217
+ "default": "current_timestamp"
2218
+ },
2219
+ "tenant_id": {
2220
+ "type": "UUID",
2221
+ "referenceKind": "tenantId",
2222
+ "notNull": false,
2223
+ "unique": false
2224
+ },
2225
+ "profile_id": {
2226
+ "type": "UUID",
2227
+ "referenceKind": "foreignKey",
2228
+ "notNull": true,
2229
+ "unique": false,
2230
+ "foreignKey": {
2231
+ "table": "profiles",
2232
+ "column": "id",
2233
+ "onDelete": "CASCADE",
2234
+ "onUpdate": "CASCADE"
2235
+ }
2236
+ },
2237
+ "platform": {
2238
+ "type": "TEXT",
2239
+ "notNull": true,
2240
+ "unique": false,
2241
+ "default": "website"
2242
+ },
2243
+ "url": {
2244
+ "type": "TEXT",
2245
+ "notNull": true,
2246
+ "unique": false
2247
+ },
2248
+ "label": {
2249
+ "type": "TEXT",
2250
+ "notNull": false,
2251
+ "unique": false
2252
+ },
2253
+ "sort_order": {
2254
+ "type": "INTEGER",
2255
+ "notNull": true,
2256
+ "unique": false,
2257
+ "default": 0
2258
+ }
2259
+ },
2260
+ "indexes": [
2261
+ {
2262
+ "name": "profile_links_slug_context_idx",
2263
+ "columns": [
2264
+ "tenant_id",
2265
+ "slug",
2266
+ "context"
2267
+ ],
2268
+ "unique": true,
2269
+ "nullsNotDistinct": true
2270
+ },
2271
+ {
2272
+ "name": "profile_links_tenant_id_created_at_idx",
2273
+ "columns": [
2274
+ "tenant_id",
2275
+ "created_at"
2276
+ ]
2277
+ },
2278
+ {
2279
+ "name": "profile_links_profile_id_idx",
2280
+ "columns": [
2281
+ "profile_id"
2282
+ ]
2283
+ }
2284
+ ],
2285
+ "version": "847fd648"
2108
2286
  },
2109
2287
  "importPath": "@happyvertical/smrt-profiles"
2110
2288
  },
@@ -4794,6 +4972,14 @@
4794
4972
  "type": "text",
4795
4973
  "required": false
4796
4974
  },
4975
+ "isPublic": {
4976
+ "type": "boolean",
4977
+ "required": false,
4978
+ "default": false,
4979
+ "_meta": {
4980
+ "default": false
4981
+ }
4982
+ },
4797
4983
  "metadata": {
4798
4984
  "type": "oneToMany",
4799
4985
  "required": false,
@@ -4902,6 +5088,29 @@
4902
5088
  "isStatic": false,
4903
5089
  "isPublic": true
4904
5090
  },
5091
+ "getLinks": {
5092
+ "name": "getLinks",
5093
+ "async": true,
5094
+ "parameters": [],
5095
+ "returnType": "Promise<ProfileLink[]>",
5096
+ "isStatic": false,
5097
+ "isPublic": true
5098
+ },
5099
+ "setLinks": {
5100
+ "name": "setLinks",
5101
+ "async": true,
5102
+ "parameters": [
5103
+ {
5104
+ "name": "links",
5105
+ "type": "any",
5106
+ "optional": false,
5107
+ "typeUnresolved": true
5108
+ }
5109
+ ],
5110
+ "returnType": "Promise<ProfileLink[]>",
5111
+ "isStatic": false,
5112
+ "isPublic": true
5113
+ },
4905
5114
  "getAssets": {
4906
5115
  "name": "getAssets",
4907
5116
  "async": true,
@@ -5292,7 +5501,7 @@
5292
5501
  ],
5293
5502
  "schema": {
5294
5503
  "tableName": "profiles",
5295
- "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT\n);",
5504
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"is_public\" BOOLEAN DEFAULT FALSE\n);",
5296
5505
  "columns": {
5297
5506
  "id": {
5298
5507
  "type": "UUID",
@@ -5359,6 +5568,11 @@
5359
5568
  "description": {
5360
5569
  "type": "TEXT",
5361
5570
  "notNull": false
5571
+ },
5572
+ "is_public": {
5573
+ "type": "BOOLEAN",
5574
+ "notNull": false,
5575
+ "default": false
5362
5576
  }
5363
5577
  },
5364
5578
  "indexes": [
@@ -5399,7 +5613,7 @@
5399
5613
  ]
5400
5614
  }
5401
5615
  ],
5402
- "version": "fd4497fb"
5616
+ "version": "f4a7b632"
5403
5617
  },
5404
5618
  "importPath": "@happyvertical/smrt-profiles"
5405
5619
  },
@@ -5434,13 +5648,17 @@
5434
5648
  "required": true,
5435
5649
  "related": "Profile",
5436
5650
  "_meta": {
5437
- "required": true
5651
+ "required": true,
5652
+ "onDelete": "CASCADE"
5438
5653
  }
5439
5654
  },
5440
5655
  "assetId": {
5441
5656
  "type": "crossPackageRef",
5442
5657
  "required": true,
5443
- "related": "@happyvertical/smrt-assets:Asset"
5658
+ "related": "@happyvertical/smrt-assets:Asset",
5659
+ "_meta": {
5660
+ "onDelete": "CASCADE"
5661
+ }
5444
5662
  },
5445
5663
  "relationship": {
5446
5664
  "type": "text",
@@ -5595,6 +5813,256 @@
5595
5813
  },
5596
5814
  "importPath": "@happyvertical/smrt-profiles"
5597
5815
  },
5816
+ "@happyvertical/smrt-profiles:ProfileLink": {
5817
+ "name": "profilelink",
5818
+ "className": "ProfileLink",
5819
+ "qualifiedName": "@happyvertical/smrt-profiles:ProfileLink",
5820
+ "collection": "profilelinks",
5821
+ "filePath": "/home/runner/work/smrt/smrt/packages/profiles/src/models/ProfileLink.ts",
5822
+ "packageName": "@happyvertical/smrt-profiles",
5823
+ "fields": {
5824
+ "tenantId": {
5825
+ "type": "text",
5826
+ "required": false,
5827
+ "_meta": {
5828
+ "sqlType": "UUID",
5829
+ "nullable": true,
5830
+ "__tenancy": {
5831
+ "isTenantIdField": true,
5832
+ "autoFilter": true,
5833
+ "required": false,
5834
+ "autoPopulate": true,
5835
+ "nullable": true,
5836
+ "mode": "optional",
5837
+ "field": "tenantId",
5838
+ "allowSuperAdminBypass": false
5839
+ }
5840
+ }
5841
+ },
5842
+ "profileId": {
5843
+ "type": "foreignKey",
5844
+ "required": true,
5845
+ "related": "Profile",
5846
+ "_meta": {
5847
+ "required": true,
5848
+ "onDelete": "CASCADE"
5849
+ }
5850
+ },
5851
+ "platform": {
5852
+ "type": "text",
5853
+ "required": true,
5854
+ "default": "website",
5855
+ "maxLength": 32,
5856
+ "_meta": {
5857
+ "required": true,
5858
+ "maxLength": 32
5859
+ }
5860
+ },
5861
+ "url": {
5862
+ "type": "text",
5863
+ "required": true,
5864
+ "maxLength": 2048,
5865
+ "_meta": {
5866
+ "required": true,
5867
+ "maxLength": 2048
5868
+ }
5869
+ },
5870
+ "label": {
5871
+ "type": "text",
5872
+ "required": false,
5873
+ "maxLength": 200,
5874
+ "_meta": {
5875
+ "nullable": true,
5876
+ "maxLength": 200
5877
+ }
5878
+ },
5879
+ "sortOrder": {
5880
+ "type": "integer",
5881
+ "required": true,
5882
+ "default": 0
5883
+ }
5884
+ },
5885
+ "methods": {
5886
+ "getSlug": {
5887
+ "name": "getSlug",
5888
+ "async": true,
5889
+ "parameters": [],
5890
+ "returnType": "Promise<string | null | undefined>",
5891
+ "isStatic": false,
5892
+ "isPublic": true
5893
+ },
5894
+ "save": {
5895
+ "name": "save",
5896
+ "async": true,
5897
+ "parameters": [
5898
+ {
5899
+ "name": "...args",
5900
+ "type": "any",
5901
+ "optional": true,
5902
+ "typeUnresolved": true
5903
+ }
5904
+ ],
5905
+ "returnType": "Promise<this>",
5906
+ "isStatic": false,
5907
+ "isPublic": true
5908
+ }
5909
+ },
5910
+ "decoratorConfig": {
5911
+ "tableName": "profile_links",
5912
+ "api": false,
5913
+ "mcp": false,
5914
+ "cli": false,
5915
+ "tenantScoped": {
5916
+ "mode": "optional"
5917
+ },
5918
+ "conflictColumns": [
5919
+ "tenant_id",
5920
+ "slug",
5921
+ "context"
5922
+ ]
5923
+ },
5924
+ "extends": "SmrtObject",
5925
+ "exportName": "ProfileLink",
5926
+ "collectionExportName": "ProfileLinkCollection",
5927
+ "validationRules": [
5928
+ {
5929
+ "field": "profileId",
5930
+ "rule": "required",
5931
+ "fieldType": "foreignKey"
5932
+ },
5933
+ {
5934
+ "field": "platform",
5935
+ "rule": "required",
5936
+ "fieldType": "text"
5937
+ },
5938
+ {
5939
+ "field": "platform",
5940
+ "rule": "maxLength",
5941
+ "value": 32,
5942
+ "fieldType": "text"
5943
+ },
5944
+ {
5945
+ "field": "url",
5946
+ "rule": "required",
5947
+ "fieldType": "text"
5948
+ },
5949
+ {
5950
+ "field": "url",
5951
+ "rule": "maxLength",
5952
+ "value": 2048,
5953
+ "fieldType": "text"
5954
+ },
5955
+ {
5956
+ "field": "label",
5957
+ "rule": "maxLength",
5958
+ "value": 200,
5959
+ "fieldType": "text"
5960
+ },
5961
+ {
5962
+ "field": "sortOrder",
5963
+ "rule": "required",
5964
+ "fieldType": "integer"
5965
+ }
5966
+ ],
5967
+ "schema": {
5968
+ "tableName": "profile_links",
5969
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profile_links\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID NOT NULL,\n \"platform\" TEXT NOT NULL DEFAULT 'website',\n \"url\" TEXT NOT NULL,\n \"label\" TEXT,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0\n);",
5970
+ "columns": {
5971
+ "id": {
5972
+ "type": "UUID",
5973
+ "primaryKey": true,
5974
+ "referenceKind": "id",
5975
+ "notNull": true
5976
+ },
5977
+ "slug": {
5978
+ "type": "TEXT",
5979
+ "notNull": true
5980
+ },
5981
+ "context": {
5982
+ "type": "TEXT",
5983
+ "notNull": true,
5984
+ "default": ""
5985
+ },
5986
+ "created_at": {
5987
+ "type": "TIMESTAMP",
5988
+ "notNull": true,
5989
+ "default": "current_timestamp"
5990
+ },
5991
+ "updated_at": {
5992
+ "type": "TIMESTAMP",
5993
+ "notNull": true,
5994
+ "default": "current_timestamp"
5995
+ },
5996
+ "tenant_id": {
5997
+ "type": "UUID",
5998
+ "referenceKind": "tenantId",
5999
+ "notNull": false,
6000
+ "unique": false
6001
+ },
6002
+ "profile_id": {
6003
+ "type": "UUID",
6004
+ "referenceKind": "foreignKey",
6005
+ "notNull": true,
6006
+ "unique": false,
6007
+ "foreignKey": {
6008
+ "table": "profiles",
6009
+ "column": "id",
6010
+ "onDelete": "CASCADE",
6011
+ "onUpdate": "CASCADE"
6012
+ }
6013
+ },
6014
+ "platform": {
6015
+ "type": "TEXT",
6016
+ "notNull": true,
6017
+ "unique": false,
6018
+ "default": "website"
6019
+ },
6020
+ "url": {
6021
+ "type": "TEXT",
6022
+ "notNull": true,
6023
+ "unique": false
6024
+ },
6025
+ "label": {
6026
+ "type": "TEXT",
6027
+ "notNull": false,
6028
+ "unique": false
6029
+ },
6030
+ "sort_order": {
6031
+ "type": "INTEGER",
6032
+ "notNull": true,
6033
+ "unique": false,
6034
+ "default": 0
6035
+ }
6036
+ },
6037
+ "indexes": [
6038
+ {
6039
+ "name": "profile_links_slug_context_idx",
6040
+ "columns": [
6041
+ "tenant_id",
6042
+ "slug",
6043
+ "context"
6044
+ ],
6045
+ "unique": true,
6046
+ "nullsNotDistinct": true
6047
+ },
6048
+ {
6049
+ "name": "profile_links_tenant_id_created_at_idx",
6050
+ "columns": [
6051
+ "tenant_id",
6052
+ "created_at"
6053
+ ]
6054
+ },
6055
+ {
6056
+ "name": "profile_links_profile_id_idx",
6057
+ "columns": [
6058
+ "profile_id"
6059
+ ]
6060
+ }
6061
+ ],
6062
+ "version": "847fd648"
6063
+ },
6064
+ "importPath": "@happyvertical/smrt-profiles"
6065
+ },
5598
6066
  "@happyvertical/smrt-profiles:ProfileMetadata": {
5599
6067
  "name": "profilemetadata",
5600
6068
  "className": "ProfileMetadata",
@@ -7032,6 +7500,14 @@
7032
7500
  "type": "text",
7033
7501
  "required": false
7034
7502
  },
7503
+ "isPublic": {
7504
+ "type": "boolean",
7505
+ "required": false,
7506
+ "default": false,
7507
+ "_meta": {
7508
+ "default": false
7509
+ }
7510
+ },
7035
7511
  "metadata": {
7036
7512
  "type": "oneToMany",
7037
7513
  "required": false,
@@ -7140,6 +7616,29 @@
7140
7616
  "isStatic": false,
7141
7617
  "isPublic": true
7142
7618
  },
7619
+ "getLinks": {
7620
+ "name": "getLinks",
7621
+ "async": true,
7622
+ "parameters": [],
7623
+ "returnType": "Promise<ProfileLink[]>",
7624
+ "isStatic": false,
7625
+ "isPublic": true
7626
+ },
7627
+ "setLinks": {
7628
+ "name": "setLinks",
7629
+ "async": true,
7630
+ "parameters": [
7631
+ {
7632
+ "name": "links",
7633
+ "type": "any",
7634
+ "optional": false,
7635
+ "typeUnresolved": true
7636
+ }
7637
+ ],
7638
+ "returnType": "Promise<ProfileLink[]>",
7639
+ "isStatic": false,
7640
+ "isPublic": true
7641
+ },
7143
7642
  "getAssets": {
7144
7643
  "name": "getAssets",
7145
7644
  "async": true,
@@ -7502,7 +8001,7 @@
7502
8001
  ],
7503
8002
  "schema": {
7504
8003
  "tableName": "profiles",
7505
- "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT\n);",
8004
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"is_public\" BOOLEAN DEFAULT FALSE\n);",
7506
8005
  "columns": {
7507
8006
  "id": {
7508
8007
  "type": "UUID",
@@ -7569,6 +8068,11 @@
7569
8068
  "description": {
7570
8069
  "type": "TEXT",
7571
8070
  "notNull": false
8071
+ },
8072
+ "is_public": {
8073
+ "type": "BOOLEAN",
8074
+ "notNull": false,
8075
+ "default": false
7572
8076
  }
7573
8077
  },
7574
8078
  "indexes": [
@@ -7609,7 +8113,7 @@
7609
8113
  ]
7610
8114
  }
7611
8115
  ],
7612
- "version": "50218e42"
8116
+ "version": "2043b736"
7613
8117
  },
7614
8118
  "importPath": "@happyvertical/smrt-profiles"
7615
8119
  },
@@ -7678,6 +8182,14 @@
7678
8182
  "type": "text",
7679
8183
  "required": false
7680
8184
  },
8185
+ "isPublic": {
8186
+ "type": "boolean",
8187
+ "required": false,
8188
+ "default": false,
8189
+ "_meta": {
8190
+ "default": false
8191
+ }
8192
+ },
7681
8193
  "metadata": {
7682
8194
  "type": "oneToMany",
7683
8195
  "required": false,
@@ -7786,6 +8298,29 @@
7786
8298
  "isStatic": false,
7787
8299
  "isPublic": true
7788
8300
  },
8301
+ "getLinks": {
8302
+ "name": "getLinks",
8303
+ "async": true,
8304
+ "parameters": [],
8305
+ "returnType": "Promise<ProfileLink[]>",
8306
+ "isStatic": false,
8307
+ "isPublic": true
8308
+ },
8309
+ "setLinks": {
8310
+ "name": "setLinks",
8311
+ "async": true,
8312
+ "parameters": [
8313
+ {
8314
+ "name": "links",
8315
+ "type": "any",
8316
+ "optional": false,
8317
+ "typeUnresolved": true
8318
+ }
8319
+ ],
8320
+ "returnType": "Promise<ProfileLink[]>",
8321
+ "isStatic": false,
8322
+ "isPublic": true
8323
+ },
7789
8324
  "getAssets": {
7790
8325
  "name": "getAssets",
7791
8326
  "async": true,
@@ -8148,7 +8683,7 @@
8148
8683
  ],
8149
8684
  "schema": {
8150
8685
  "tableName": "profiles",
8151
- "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT\n);",
8686
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"is_public\" BOOLEAN DEFAULT FALSE\n);",
8152
8687
  "columns": {
8153
8688
  "id": {
8154
8689
  "type": "UUID",
@@ -8215,6 +8750,11 @@
8215
8750
  "description": {
8216
8751
  "type": "TEXT",
8217
8752
  "notNull": false
8753
+ },
8754
+ "is_public": {
8755
+ "type": "BOOLEAN",
8756
+ "notNull": false,
8757
+ "default": false
8218
8758
  }
8219
8759
  },
8220
8760
  "indexes": [
@@ -8255,7 +8795,7 @@
8255
8795
  ]
8256
8796
  }
8257
8797
  ],
8258
- "version": "b6b91ae1"
8798
+ "version": "573ebccc"
8259
8799
  },
8260
8800
  "importPath": "@happyvertical/smrt-profiles"
8261
8801
  },
@@ -8324,6 +8864,14 @@
8324
8864
  "type": "text",
8325
8865
  "required": false
8326
8866
  },
8867
+ "isPublic": {
8868
+ "type": "boolean",
8869
+ "required": false,
8870
+ "default": false,
8871
+ "_meta": {
8872
+ "default": false
8873
+ }
8874
+ },
8327
8875
  "metadata": {
8328
8876
  "type": "oneToMany",
8329
8877
  "required": false,
@@ -8432,6 +8980,29 @@
8432
8980
  "isStatic": false,
8433
8981
  "isPublic": true
8434
8982
  },
8983
+ "getLinks": {
8984
+ "name": "getLinks",
8985
+ "async": true,
8986
+ "parameters": [],
8987
+ "returnType": "Promise<ProfileLink[]>",
8988
+ "isStatic": false,
8989
+ "isPublic": true
8990
+ },
8991
+ "setLinks": {
8992
+ "name": "setLinks",
8993
+ "async": true,
8994
+ "parameters": [
8995
+ {
8996
+ "name": "links",
8997
+ "type": "any",
8998
+ "optional": false,
8999
+ "typeUnresolved": true
9000
+ }
9001
+ ],
9002
+ "returnType": "Promise<ProfileLink[]>",
9003
+ "isStatic": false,
9004
+ "isPublic": true
9005
+ },
8435
9006
  "getAssets": {
8436
9007
  "name": "getAssets",
8437
9008
  "async": true,
@@ -8794,7 +9365,7 @@
8794
9365
  ],
8795
9366
  "schema": {
8796
9367
  "tableName": "profiles",
8797
- "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT\n);",
9368
+ "ddl": "CREATE TABLE IF NOT EXISTS \"profiles\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type_id\" UUID,\n \"email\" TEXT,\n \"email_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"is_public\" BOOLEAN DEFAULT FALSE\n);",
8798
9369
  "columns": {
8799
9370
  "id": {
8800
9371
  "type": "UUID",
@@ -8861,6 +9432,11 @@
8861
9432
  "description": {
8862
9433
  "type": "TEXT",
8863
9434
  "notNull": false
9435
+ },
9436
+ "is_public": {
9437
+ "type": "BOOLEAN",
9438
+ "notNull": false,
9439
+ "default": false
8864
9440
  }
8865
9441
  },
8866
9442
  "indexes": [
@@ -8901,7 +9477,7 @@
8901
9477
  ]
8902
9478
  }
8903
9479
  ],
8904
- "version": "39683be5"
9480
+ "version": "2a1c7716"
8905
9481
  },
8906
9482
  "importPath": "@happyvertical/smrt-profiles"
8907
9483
  }