@memberjunction/server 2.85.0 → 2.87.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.
@@ -1640,6 +1640,321 @@ AIAgentModelResolver = __decorate([
1640
1640
  Resolver(AIAgentModel_)
1641
1641
  ], AIAgentModelResolver);
1642
1642
  export { AIAgentModelResolver };
1643
+ let ComponentRegistry_ = class ComponentRegistry_ {
1644
+ ID;
1645
+ Name;
1646
+ Description;
1647
+ URI;
1648
+ Type;
1649
+ APIVersion;
1650
+ Status;
1651
+ _mj__CreatedAt;
1652
+ _mj__UpdatedAt;
1653
+ MJ_Components_SourceRegistryIDArray;
1654
+ };
1655
+ __decorate([
1656
+ Field({ description: `Primary key for the component registry` }),
1657
+ MaxLength(16),
1658
+ __metadata("design:type", String)
1659
+ ], ComponentRegistry_.prototype, "ID", void 0);
1660
+ __decorate([
1661
+ Field({ description: `Name of the registry (e.g., MemberJunction Registry, NPM, Internal Registry)` }),
1662
+ MaxLength(510),
1663
+ __metadata("design:type", String)
1664
+ ], ComponentRegistry_.prototype, "Name", void 0);
1665
+ __decorate([
1666
+ Field({ nullable: true, description: `Description of the registry and its purpose` }),
1667
+ __metadata("design:type", String)
1668
+ ], ComponentRegistry_.prototype, "Description", void 0);
1669
+ __decorate([
1670
+ Field({ nullable: true, description: `Registry endpoint URI (e.g., https://registry.memberjunction.org)` }),
1671
+ MaxLength(1000),
1672
+ __metadata("design:type", String)
1673
+ ], ComponentRegistry_.prototype, "URI", void 0);
1674
+ __decorate([
1675
+ Field({ nullable: true, description: `Type of registry: public, private, or internal` }),
1676
+ MaxLength(100),
1677
+ __metadata("design:type", String)
1678
+ ], ComponentRegistry_.prototype, "Type", void 0);
1679
+ __decorate([
1680
+ Field({ nullable: true, description: `API version supported by the registry for compatibility` }),
1681
+ MaxLength(100),
1682
+ __metadata("design:type", String)
1683
+ ], ComponentRegistry_.prototype, "APIVersion", void 0);
1684
+ __decorate([
1685
+ Field({ nullable: true, description: `Current status of the registry: active, deprecated, or offline` }),
1686
+ MaxLength(100),
1687
+ __metadata("design:type", String)
1688
+ ], ComponentRegistry_.prototype, "Status", void 0);
1689
+ __decorate([
1690
+ Field(),
1691
+ MaxLength(10),
1692
+ __metadata("design:type", Date)
1693
+ ], ComponentRegistry_.prototype, "_mj__CreatedAt", void 0);
1694
+ __decorate([
1695
+ Field(),
1696
+ MaxLength(10),
1697
+ __metadata("design:type", Date)
1698
+ ], ComponentRegistry_.prototype, "_mj__UpdatedAt", void 0);
1699
+ __decorate([
1700
+ Field(() => [Component_]),
1701
+ __metadata("design:type", Array)
1702
+ ], ComponentRegistry_.prototype, "MJ_Components_SourceRegistryIDArray", void 0);
1703
+ ComponentRegistry_ = __decorate([
1704
+ ObjectType({ description: `Registry catalog for component sources, similar to NPM registry but supporting multiple sources` })
1705
+ ], ComponentRegistry_);
1706
+ export { ComponentRegistry_ };
1707
+ let CreateComponentRegistryInput = class CreateComponentRegistryInput {
1708
+ ID;
1709
+ Name;
1710
+ Description;
1711
+ URI;
1712
+ Type;
1713
+ APIVersion;
1714
+ Status;
1715
+ };
1716
+ __decorate([
1717
+ Field({ nullable: true }),
1718
+ __metadata("design:type", String)
1719
+ ], CreateComponentRegistryInput.prototype, "ID", void 0);
1720
+ __decorate([
1721
+ Field({ nullable: true }),
1722
+ __metadata("design:type", String)
1723
+ ], CreateComponentRegistryInput.prototype, "Name", void 0);
1724
+ __decorate([
1725
+ Field({ nullable: true }),
1726
+ __metadata("design:type", String)
1727
+ ], CreateComponentRegistryInput.prototype, "Description", void 0);
1728
+ __decorate([
1729
+ Field({ nullable: true }),
1730
+ __metadata("design:type", String)
1731
+ ], CreateComponentRegistryInput.prototype, "URI", void 0);
1732
+ __decorate([
1733
+ Field({ nullable: true }),
1734
+ __metadata("design:type", String)
1735
+ ], CreateComponentRegistryInput.prototype, "Type", void 0);
1736
+ __decorate([
1737
+ Field({ nullable: true }),
1738
+ __metadata("design:type", String)
1739
+ ], CreateComponentRegistryInput.prototype, "APIVersion", void 0);
1740
+ __decorate([
1741
+ Field({ nullable: true }),
1742
+ __metadata("design:type", String)
1743
+ ], CreateComponentRegistryInput.prototype, "Status", void 0);
1744
+ CreateComponentRegistryInput = __decorate([
1745
+ InputType()
1746
+ ], CreateComponentRegistryInput);
1747
+ export { CreateComponentRegistryInput };
1748
+ let UpdateComponentRegistryInput = class UpdateComponentRegistryInput {
1749
+ ID;
1750
+ Name;
1751
+ Description;
1752
+ URI;
1753
+ Type;
1754
+ APIVersion;
1755
+ Status;
1756
+ OldValues___;
1757
+ };
1758
+ __decorate([
1759
+ Field(),
1760
+ __metadata("design:type", String)
1761
+ ], UpdateComponentRegistryInput.prototype, "ID", void 0);
1762
+ __decorate([
1763
+ Field({ nullable: true }),
1764
+ __metadata("design:type", String)
1765
+ ], UpdateComponentRegistryInput.prototype, "Name", void 0);
1766
+ __decorate([
1767
+ Field({ nullable: true }),
1768
+ __metadata("design:type", String)
1769
+ ], UpdateComponentRegistryInput.prototype, "Description", void 0);
1770
+ __decorate([
1771
+ Field({ nullable: true }),
1772
+ __metadata("design:type", String)
1773
+ ], UpdateComponentRegistryInput.prototype, "URI", void 0);
1774
+ __decorate([
1775
+ Field({ nullable: true }),
1776
+ __metadata("design:type", String)
1777
+ ], UpdateComponentRegistryInput.prototype, "Type", void 0);
1778
+ __decorate([
1779
+ Field({ nullable: true }),
1780
+ __metadata("design:type", String)
1781
+ ], UpdateComponentRegistryInput.prototype, "APIVersion", void 0);
1782
+ __decorate([
1783
+ Field({ nullable: true }),
1784
+ __metadata("design:type", String)
1785
+ ], UpdateComponentRegistryInput.prototype, "Status", void 0);
1786
+ __decorate([
1787
+ Field(() => [KeyValuePairInput], { nullable: true }),
1788
+ __metadata("design:type", Array)
1789
+ ], UpdateComponentRegistryInput.prototype, "OldValues___", void 0);
1790
+ UpdateComponentRegistryInput = __decorate([
1791
+ InputType()
1792
+ ], UpdateComponentRegistryInput);
1793
+ export { UpdateComponentRegistryInput };
1794
+ let RunComponentRegistryViewResult = class RunComponentRegistryViewResult {
1795
+ Results;
1796
+ UserViewRunID;
1797
+ RowCount;
1798
+ TotalRowCount;
1799
+ ExecutionTime;
1800
+ ErrorMessage;
1801
+ Success;
1802
+ };
1803
+ __decorate([
1804
+ Field(() => [ComponentRegistry_]),
1805
+ __metadata("design:type", Array)
1806
+ ], RunComponentRegistryViewResult.prototype, "Results", void 0);
1807
+ __decorate([
1808
+ Field(() => String, { nullable: true }),
1809
+ __metadata("design:type", String)
1810
+ ], RunComponentRegistryViewResult.prototype, "UserViewRunID", void 0);
1811
+ __decorate([
1812
+ Field(() => Int, { nullable: true }),
1813
+ __metadata("design:type", Number)
1814
+ ], RunComponentRegistryViewResult.prototype, "RowCount", void 0);
1815
+ __decorate([
1816
+ Field(() => Int, { nullable: true }),
1817
+ __metadata("design:type", Number)
1818
+ ], RunComponentRegistryViewResult.prototype, "TotalRowCount", void 0);
1819
+ __decorate([
1820
+ Field(() => Int, { nullable: true }),
1821
+ __metadata("design:type", Number)
1822
+ ], RunComponentRegistryViewResult.prototype, "ExecutionTime", void 0);
1823
+ __decorate([
1824
+ Field({ nullable: true }),
1825
+ __metadata("design:type", String)
1826
+ ], RunComponentRegistryViewResult.prototype, "ErrorMessage", void 0);
1827
+ __decorate([
1828
+ Field(() => Boolean, { nullable: false }),
1829
+ __metadata("design:type", Boolean)
1830
+ ], RunComponentRegistryViewResult.prototype, "Success", void 0);
1831
+ RunComponentRegistryViewResult = __decorate([
1832
+ ObjectType()
1833
+ ], RunComponentRegistryViewResult);
1834
+ export { RunComponentRegistryViewResult };
1835
+ let ComponentRegistryResolver = class ComponentRegistryResolver extends ResolverBase {
1836
+ async RunComponentRegistryViewByID(input, { providers, userPayload }, pubSub) {
1837
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1838
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
1839
+ }
1840
+ async RunComponentRegistryViewByName(input, { providers, userPayload }, pubSub) {
1841
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1842
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
1843
+ }
1844
+ async RunComponentRegistryDynamicView(input, { providers, userPayload }, pubSub) {
1845
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1846
+ input.EntityName = 'MJ: Component Registries';
1847
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
1848
+ }
1849
+ async ComponentRegistry(ID, { dataSources, userPayload, providers }, pubSub) {
1850
+ this.CheckUserReadPermissions('MJ: Component Registries', userPayload);
1851
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1852
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
1853
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentRegistries] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Registries', userPayload, EntityPermissionType.Read, 'AND');
1854
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
1855
+ const result = this.MapFieldNamesToCodeNames('MJ: Component Registries', rows && rows.length > 0 ? rows[0] : {});
1856
+ return result;
1857
+ }
1858
+ async MJ_Components_SourceRegistryIDArray(componentregistry_, { dataSources, userPayload, providers }, pubSub) {
1859
+ this.CheckUserReadPermissions('MJ: Components', userPayload);
1860
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1861
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
1862
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponents] WHERE [SourceRegistryID]='${componentregistry_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Components', userPayload, EntityPermissionType.Read, 'AND');
1863
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
1864
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Components', rows);
1865
+ return result;
1866
+ }
1867
+ async CreateComponentRegistry(input, { providers, userPayload }, pubSub) {
1868
+ const provider = GetReadWriteProvider(providers);
1869
+ return this.CreateRecord('MJ: Component Registries', input, provider, userPayload, pubSub);
1870
+ }
1871
+ async UpdateComponentRegistry(input, { providers, userPayload }, pubSub) {
1872
+ const provider = GetReadWriteProvider(providers);
1873
+ return this.UpdateRecord('MJ: Component Registries', input, provider, userPayload, pubSub);
1874
+ }
1875
+ async DeleteComponentRegistry(ID, options, { providers, userPayload }, pubSub) {
1876
+ const provider = GetReadWriteProvider(providers);
1877
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1878
+ return this.DeleteRecord('MJ: Component Registries', key, options, provider, userPayload, pubSub);
1879
+ }
1880
+ };
1881
+ __decorate([
1882
+ Query(() => RunComponentRegistryViewResult),
1883
+ __param(0, Arg('input', () => RunViewByIDInput)),
1884
+ __param(1, Ctx()),
1885
+ __param(2, PubSub()),
1886
+ __metadata("design:type", Function),
1887
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1888
+ __metadata("design:returntype", Promise)
1889
+ ], ComponentRegistryResolver.prototype, "RunComponentRegistryViewByID", null);
1890
+ __decorate([
1891
+ Query(() => RunComponentRegistryViewResult),
1892
+ __param(0, Arg('input', () => RunViewByNameInput)),
1893
+ __param(1, Ctx()),
1894
+ __param(2, PubSub()),
1895
+ __metadata("design:type", Function),
1896
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1897
+ __metadata("design:returntype", Promise)
1898
+ ], ComponentRegistryResolver.prototype, "RunComponentRegistryViewByName", null);
1899
+ __decorate([
1900
+ Query(() => RunComponentRegistryViewResult),
1901
+ __param(0, Arg('input', () => RunDynamicViewInput)),
1902
+ __param(1, Ctx()),
1903
+ __param(2, PubSub()),
1904
+ __metadata("design:type", Function),
1905
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1906
+ __metadata("design:returntype", Promise)
1907
+ ], ComponentRegistryResolver.prototype, "RunComponentRegistryDynamicView", null);
1908
+ __decorate([
1909
+ Query(() => ComponentRegistry_, { nullable: true }),
1910
+ __param(0, Arg('ID', () => String)),
1911
+ __param(1, Ctx()),
1912
+ __param(2, PubSub()),
1913
+ __metadata("design:type", Function),
1914
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1915
+ __metadata("design:returntype", Promise)
1916
+ ], ComponentRegistryResolver.prototype, "ComponentRegistry", null);
1917
+ __decorate([
1918
+ FieldResolver(() => [Component_]),
1919
+ __param(0, Root()),
1920
+ __param(1, Ctx()),
1921
+ __param(2, PubSub()),
1922
+ __metadata("design:type", Function),
1923
+ __metadata("design:paramtypes", [ComponentRegistry_, Object, PubSubEngine]),
1924
+ __metadata("design:returntype", Promise)
1925
+ ], ComponentRegistryResolver.prototype, "MJ_Components_SourceRegistryIDArray", null);
1926
+ __decorate([
1927
+ Mutation(() => ComponentRegistry_),
1928
+ __param(0, Arg('input', () => CreateComponentRegistryInput)),
1929
+ __param(1, Ctx()),
1930
+ __param(2, PubSub()),
1931
+ __metadata("design:type", Function),
1932
+ __metadata("design:paramtypes", [CreateComponentRegistryInput, Object, PubSubEngine]),
1933
+ __metadata("design:returntype", Promise)
1934
+ ], ComponentRegistryResolver.prototype, "CreateComponentRegistry", null);
1935
+ __decorate([
1936
+ Mutation(() => ComponentRegistry_),
1937
+ __param(0, Arg('input', () => UpdateComponentRegistryInput)),
1938
+ __param(1, Ctx()),
1939
+ __param(2, PubSub()),
1940
+ __metadata("design:type", Function),
1941
+ __metadata("design:paramtypes", [UpdateComponentRegistryInput, Object, PubSubEngine]),
1942
+ __metadata("design:returntype", Promise)
1943
+ ], ComponentRegistryResolver.prototype, "UpdateComponentRegistry", null);
1944
+ __decorate([
1945
+ Mutation(() => ComponentRegistry_),
1946
+ __param(0, Arg('ID', () => String)),
1947
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
1948
+ __param(2, Ctx()),
1949
+ __param(3, PubSub()),
1950
+ __metadata("design:type", Function),
1951
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1952
+ __metadata("design:returntype", Promise)
1953
+ ], ComponentRegistryResolver.prototype, "DeleteComponentRegistry", null);
1954
+ ComponentRegistryResolver = __decorate([
1955
+ Resolver(ComponentRegistry_)
1956
+ ], ComponentRegistryResolver);
1957
+ export { ComponentRegistryResolver };
1643
1958
  let AIAgentNoteType_ = class AIAgentNoteType_ {
1644
1959
  ID;
1645
1960
  Name;
@@ -1891,6 +2206,247 @@ AIAgentNoteTypeResolver = __decorate([
1891
2206
  Resolver(AIAgentNoteType_)
1892
2207
  ], AIAgentNoteTypeResolver);
1893
2208
  export { AIAgentNoteTypeResolver };
2209
+ let ComponentDependency_ = class ComponentDependency_ {
2210
+ ID;
2211
+ ComponentID;
2212
+ DependencyComponentID;
2213
+ _mj__CreatedAt;
2214
+ _mj__UpdatedAt;
2215
+ Component;
2216
+ DependencyComponent;
2217
+ };
2218
+ __decorate([
2219
+ Field({ description: `Primary key for component dependency` }),
2220
+ MaxLength(16),
2221
+ __metadata("design:type", String)
2222
+ ], ComponentDependency_.prototype, "ID", void 0);
2223
+ __decorate([
2224
+ Field({ description: `Foreign key to parent Component that has the dependency` }),
2225
+ MaxLength(16),
2226
+ __metadata("design:type", String)
2227
+ ], ComponentDependency_.prototype, "ComponentID", void 0);
2228
+ __decorate([
2229
+ Field({ description: `Foreign key to the Component that is depended upon` }),
2230
+ MaxLength(16),
2231
+ __metadata("design:type", String)
2232
+ ], ComponentDependency_.prototype, "DependencyComponentID", void 0);
2233
+ __decorate([
2234
+ Field(),
2235
+ MaxLength(10),
2236
+ __metadata("design:type", Date)
2237
+ ], ComponentDependency_.prototype, "_mj__CreatedAt", void 0);
2238
+ __decorate([
2239
+ Field(),
2240
+ MaxLength(10),
2241
+ __metadata("design:type", Date)
2242
+ ], ComponentDependency_.prototype, "_mj__UpdatedAt", void 0);
2243
+ __decorate([
2244
+ Field(),
2245
+ MaxLength(1000),
2246
+ __metadata("design:type", String)
2247
+ ], ComponentDependency_.prototype, "Component", void 0);
2248
+ __decorate([
2249
+ Field(),
2250
+ MaxLength(1000),
2251
+ __metadata("design:type", String)
2252
+ ], ComponentDependency_.prototype, "DependencyComponent", void 0);
2253
+ ComponentDependency_ = __decorate([
2254
+ ObjectType({ description: `Tracks component-to-component dependencies for composition` })
2255
+ ], ComponentDependency_);
2256
+ export { ComponentDependency_ };
2257
+ let CreateComponentDependencyInput = class CreateComponentDependencyInput {
2258
+ ID;
2259
+ ComponentID;
2260
+ DependencyComponentID;
2261
+ };
2262
+ __decorate([
2263
+ Field({ nullable: true }),
2264
+ __metadata("design:type", String)
2265
+ ], CreateComponentDependencyInput.prototype, "ID", void 0);
2266
+ __decorate([
2267
+ Field({ nullable: true }),
2268
+ __metadata("design:type", String)
2269
+ ], CreateComponentDependencyInput.prototype, "ComponentID", void 0);
2270
+ __decorate([
2271
+ Field({ nullable: true }),
2272
+ __metadata("design:type", String)
2273
+ ], CreateComponentDependencyInput.prototype, "DependencyComponentID", void 0);
2274
+ CreateComponentDependencyInput = __decorate([
2275
+ InputType()
2276
+ ], CreateComponentDependencyInput);
2277
+ export { CreateComponentDependencyInput };
2278
+ let UpdateComponentDependencyInput = class UpdateComponentDependencyInput {
2279
+ ID;
2280
+ ComponentID;
2281
+ DependencyComponentID;
2282
+ OldValues___;
2283
+ };
2284
+ __decorate([
2285
+ Field(),
2286
+ __metadata("design:type", String)
2287
+ ], UpdateComponentDependencyInput.prototype, "ID", void 0);
2288
+ __decorate([
2289
+ Field({ nullable: true }),
2290
+ __metadata("design:type", String)
2291
+ ], UpdateComponentDependencyInput.prototype, "ComponentID", void 0);
2292
+ __decorate([
2293
+ Field({ nullable: true }),
2294
+ __metadata("design:type", String)
2295
+ ], UpdateComponentDependencyInput.prototype, "DependencyComponentID", void 0);
2296
+ __decorate([
2297
+ Field(() => [KeyValuePairInput], { nullable: true }),
2298
+ __metadata("design:type", Array)
2299
+ ], UpdateComponentDependencyInput.prototype, "OldValues___", void 0);
2300
+ UpdateComponentDependencyInput = __decorate([
2301
+ InputType()
2302
+ ], UpdateComponentDependencyInput);
2303
+ export { UpdateComponentDependencyInput };
2304
+ let RunComponentDependencyViewResult = class RunComponentDependencyViewResult {
2305
+ Results;
2306
+ UserViewRunID;
2307
+ RowCount;
2308
+ TotalRowCount;
2309
+ ExecutionTime;
2310
+ ErrorMessage;
2311
+ Success;
2312
+ };
2313
+ __decorate([
2314
+ Field(() => [ComponentDependency_]),
2315
+ __metadata("design:type", Array)
2316
+ ], RunComponentDependencyViewResult.prototype, "Results", void 0);
2317
+ __decorate([
2318
+ Field(() => String, { nullable: true }),
2319
+ __metadata("design:type", String)
2320
+ ], RunComponentDependencyViewResult.prototype, "UserViewRunID", void 0);
2321
+ __decorate([
2322
+ Field(() => Int, { nullable: true }),
2323
+ __metadata("design:type", Number)
2324
+ ], RunComponentDependencyViewResult.prototype, "RowCount", void 0);
2325
+ __decorate([
2326
+ Field(() => Int, { nullable: true }),
2327
+ __metadata("design:type", Number)
2328
+ ], RunComponentDependencyViewResult.prototype, "TotalRowCount", void 0);
2329
+ __decorate([
2330
+ Field(() => Int, { nullable: true }),
2331
+ __metadata("design:type", Number)
2332
+ ], RunComponentDependencyViewResult.prototype, "ExecutionTime", void 0);
2333
+ __decorate([
2334
+ Field({ nullable: true }),
2335
+ __metadata("design:type", String)
2336
+ ], RunComponentDependencyViewResult.prototype, "ErrorMessage", void 0);
2337
+ __decorate([
2338
+ Field(() => Boolean, { nullable: false }),
2339
+ __metadata("design:type", Boolean)
2340
+ ], RunComponentDependencyViewResult.prototype, "Success", void 0);
2341
+ RunComponentDependencyViewResult = __decorate([
2342
+ ObjectType()
2343
+ ], RunComponentDependencyViewResult);
2344
+ export { RunComponentDependencyViewResult };
2345
+ let ComponentDependencyResolver = class ComponentDependencyResolver extends ResolverBase {
2346
+ async RunComponentDependencyViewByID(input, { providers, userPayload }, pubSub) {
2347
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
2348
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
2349
+ }
2350
+ async RunComponentDependencyViewByName(input, { providers, userPayload }, pubSub) {
2351
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
2352
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
2353
+ }
2354
+ async RunComponentDependencyDynamicView(input, { providers, userPayload }, pubSub) {
2355
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
2356
+ input.EntityName = 'MJ: Component Dependencies';
2357
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
2358
+ }
2359
+ async ComponentDependency(ID, { dataSources, userPayload, providers }, pubSub) {
2360
+ this.CheckUserReadPermissions('MJ: Component Dependencies', userPayload);
2361
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
2362
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
2363
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentDependencies] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Dependencies', userPayload, EntityPermissionType.Read, 'AND');
2364
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
2365
+ const result = this.MapFieldNamesToCodeNames('MJ: Component Dependencies', rows && rows.length > 0 ? rows[0] : {});
2366
+ return result;
2367
+ }
2368
+ async CreateComponentDependency(input, { providers, userPayload }, pubSub) {
2369
+ const provider = GetReadWriteProvider(providers);
2370
+ return this.CreateRecord('MJ: Component Dependencies', input, provider, userPayload, pubSub);
2371
+ }
2372
+ async UpdateComponentDependency(input, { providers, userPayload }, pubSub) {
2373
+ const provider = GetReadWriteProvider(providers);
2374
+ return this.UpdateRecord('MJ: Component Dependencies', input, provider, userPayload, pubSub);
2375
+ }
2376
+ async DeleteComponentDependency(ID, options, { providers, userPayload }, pubSub) {
2377
+ const provider = GetReadWriteProvider(providers);
2378
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
2379
+ return this.DeleteRecord('MJ: Component Dependencies', key, options, provider, userPayload, pubSub);
2380
+ }
2381
+ };
2382
+ __decorate([
2383
+ Query(() => RunComponentDependencyViewResult),
2384
+ __param(0, Arg('input', () => RunViewByIDInput)),
2385
+ __param(1, Ctx()),
2386
+ __param(2, PubSub()),
2387
+ __metadata("design:type", Function),
2388
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
2389
+ __metadata("design:returntype", Promise)
2390
+ ], ComponentDependencyResolver.prototype, "RunComponentDependencyViewByID", null);
2391
+ __decorate([
2392
+ Query(() => RunComponentDependencyViewResult),
2393
+ __param(0, Arg('input', () => RunViewByNameInput)),
2394
+ __param(1, Ctx()),
2395
+ __param(2, PubSub()),
2396
+ __metadata("design:type", Function),
2397
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
2398
+ __metadata("design:returntype", Promise)
2399
+ ], ComponentDependencyResolver.prototype, "RunComponentDependencyViewByName", null);
2400
+ __decorate([
2401
+ Query(() => RunComponentDependencyViewResult),
2402
+ __param(0, Arg('input', () => RunDynamicViewInput)),
2403
+ __param(1, Ctx()),
2404
+ __param(2, PubSub()),
2405
+ __metadata("design:type", Function),
2406
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
2407
+ __metadata("design:returntype", Promise)
2408
+ ], ComponentDependencyResolver.prototype, "RunComponentDependencyDynamicView", null);
2409
+ __decorate([
2410
+ Query(() => ComponentDependency_, { nullable: true }),
2411
+ __param(0, Arg('ID', () => String)),
2412
+ __param(1, Ctx()),
2413
+ __param(2, PubSub()),
2414
+ __metadata("design:type", Function),
2415
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
2416
+ __metadata("design:returntype", Promise)
2417
+ ], ComponentDependencyResolver.prototype, "ComponentDependency", null);
2418
+ __decorate([
2419
+ Mutation(() => ComponentDependency_),
2420
+ __param(0, Arg('input', () => CreateComponentDependencyInput)),
2421
+ __param(1, Ctx()),
2422
+ __param(2, PubSub()),
2423
+ __metadata("design:type", Function),
2424
+ __metadata("design:paramtypes", [CreateComponentDependencyInput, Object, PubSubEngine]),
2425
+ __metadata("design:returntype", Promise)
2426
+ ], ComponentDependencyResolver.prototype, "CreateComponentDependency", null);
2427
+ __decorate([
2428
+ Mutation(() => ComponentDependency_),
2429
+ __param(0, Arg('input', () => UpdateComponentDependencyInput)),
2430
+ __param(1, Ctx()),
2431
+ __param(2, PubSub()),
2432
+ __metadata("design:type", Function),
2433
+ __metadata("design:paramtypes", [UpdateComponentDependencyInput, Object, PubSubEngine]),
2434
+ __metadata("design:returntype", Promise)
2435
+ ], ComponentDependencyResolver.prototype, "UpdateComponentDependency", null);
2436
+ __decorate([
2437
+ Mutation(() => ComponentDependency_),
2438
+ __param(0, Arg('ID', () => String)),
2439
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
2440
+ __param(2, Ctx()),
2441
+ __param(3, PubSub()),
2442
+ __metadata("design:type", Function),
2443
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
2444
+ __metadata("design:returntype", Promise)
2445
+ ], ComponentDependencyResolver.prototype, "DeleteComponentDependency", null);
2446
+ ComponentDependencyResolver = __decorate([
2447
+ Resolver(ComponentDependency_)
2448
+ ], ComponentDependencyResolver);
2449
+ export { ComponentDependencyResolver };
1894
2450
  let AIAgentRun_ = class AIAgentRun_ {
1895
2451
  ID;
1896
2452
  AgentID;
@@ -3593,10 +4149,12 @@ let AIAgent_ = class AIAgent_ {
3593
4149
  AIAgentLearningCycles_AgentIDArray;
3594
4150
  AIAgentRequests_AgentIDArray;
3595
4151
  MJ_AIAgentSteps_AgentIDArray;
4152
+ MJ_AIAgentRelationships_AgentIDArray;
3596
4153
  AIAgentNotes_AgentIDArray;
3597
4154
  MJ_AIAgentPrompts_AgentIDArray;
3598
4155
  MJ_AIAgentRuns_AgentIDArray;
3599
4156
  MJ_AIAgentSteps_SubAgentIDArray;
4157
+ MJ_AIAgentRelationships_SubAgentIDArray;
3600
4158
  AIResultCache_AgentIDArray;
3601
4159
  MJ_AIPromptRuns_AgentIDArray;
3602
4160
  AIAgents_ParentIDArray;
@@ -3802,6 +4360,10 @@ __decorate([
3802
4360
  Field(() => [AIAgentStep_]),
3803
4361
  __metadata("design:type", Array)
3804
4362
  ], AIAgent_.prototype, "MJ_AIAgentSteps_AgentIDArray", void 0);
4363
+ __decorate([
4364
+ Field(() => [AIAgentRelationship_]),
4365
+ __metadata("design:type", Array)
4366
+ ], AIAgent_.prototype, "MJ_AIAgentRelationships_AgentIDArray", void 0);
3805
4367
  __decorate([
3806
4368
  Field(() => [AIAgentNote_]),
3807
4369
  __metadata("design:type", Array)
@@ -3818,6 +4380,10 @@ __decorate([
3818
4380
  Field(() => [AIAgentStep_]),
3819
4381
  __metadata("design:type", Array)
3820
4382
  ], AIAgent_.prototype, "MJ_AIAgentSteps_SubAgentIDArray", void 0);
4383
+ __decorate([
4384
+ Field(() => [AIAgentRelationship_]),
4385
+ __metadata("design:type", Array)
4386
+ ], AIAgent_.prototype, "MJ_AIAgentRelationships_SubAgentIDArray", void 0);
3821
4387
  __decorate([
3822
4388
  Field(() => [AIResultCache_]),
3823
4389
  __metadata("design:type", Array)
@@ -4300,6 +4866,15 @@ let AIAgentResolver = class AIAgentResolver extends ResolverBase {
4300
4866
  const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Steps', rows);
4301
4867
  return result;
4302
4868
  }
4869
+ async MJ_AIAgentRelationships_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
4870
+ this.CheckUserReadPermissions('MJ: AI Agent Relationships', userPayload);
4871
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
4872
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
4873
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRelationships] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Relationships', userPayload, EntityPermissionType.Read, 'AND');
4874
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
4875
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows);
4876
+ return result;
4877
+ }
4303
4878
  async AIAgentNotes_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
4304
4879
  this.CheckUserReadPermissions('AI Agent Notes', userPayload);
4305
4880
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -4336,6 +4911,15 @@ let AIAgentResolver = class AIAgentResolver extends ResolverBase {
4336
4911
  const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Steps', rows);
4337
4912
  return result;
4338
4913
  }
4914
+ async MJ_AIAgentRelationships_SubAgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
4915
+ this.CheckUserReadPermissions('MJ: AI Agent Relationships', userPayload);
4916
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
4917
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
4918
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRelationships] WHERE [SubAgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Relationships', userPayload, EntityPermissionType.Read, 'AND');
4919
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
4920
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows);
4921
+ return result;
4922
+ }
4339
4923
  async AIResultCache_AgentIDArray(aiagent_, { dataSources, userPayload, providers }, pubSub) {
4340
4924
  this.CheckUserReadPermissions('AI Result Cache', userPayload);
4341
4925
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -4458,6 +5042,15 @@ __decorate([
4458
5042
  __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
4459
5043
  __metadata("design:returntype", Promise)
4460
5044
  ], AIAgentResolver.prototype, "MJ_AIAgentSteps_AgentIDArray", null);
5045
+ __decorate([
5046
+ FieldResolver(() => [AIAgentRelationship_]),
5047
+ __param(0, Root()),
5048
+ __param(1, Ctx()),
5049
+ __param(2, PubSub()),
5050
+ __metadata("design:type", Function),
5051
+ __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
5052
+ __metadata("design:returntype", Promise)
5053
+ ], AIAgentResolver.prototype, "MJ_AIAgentRelationships_AgentIDArray", null);
4461
5054
  __decorate([
4462
5055
  FieldResolver(() => [AIAgentNote_]),
4463
5056
  __param(0, Root()),
@@ -4494,6 +5087,15 @@ __decorate([
4494
5087
  __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
4495
5088
  __metadata("design:returntype", Promise)
4496
5089
  ], AIAgentResolver.prototype, "MJ_AIAgentSteps_SubAgentIDArray", null);
5090
+ __decorate([
5091
+ FieldResolver(() => [AIAgentRelationship_]),
5092
+ __param(0, Root()),
5093
+ __param(1, Ctx()),
5094
+ __param(2, PubSub()),
5095
+ __metadata("design:type", Function),
5096
+ __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
5097
+ __metadata("design:returntype", Promise)
5098
+ ], AIAgentResolver.prototype, "MJ_AIAgentRelationships_SubAgentIDArray", null);
4497
5099
  __decorate([
4498
5100
  FieldResolver(() => [AIResultCache_]),
4499
5101
  __param(0, Root()),
@@ -58991,6 +59593,574 @@ DashboardUserStateResolver = __decorate([
58991
59593
  Resolver(DashboardUserState_)
58992
59594
  ], DashboardUserStateResolver);
58993
59595
  export { DashboardUserStateResolver };
59596
+ let Component_ = class Component_ {
59597
+ ID;
59598
+ Namespace;
59599
+ Name;
59600
+ Version;
59601
+ VersionSequence;
59602
+ Title;
59603
+ Description;
59604
+ Type;
59605
+ Status;
59606
+ DeveloperName;
59607
+ DeveloperEmail;
59608
+ DeveloperOrganization;
59609
+ SourceRegistryID;
59610
+ ReplicatedAt;
59611
+ LastSyncedAt;
59612
+ _mj__CreatedAt;
59613
+ _mj__UpdatedAt;
59614
+ Specification;
59615
+ FunctionalRequirements;
59616
+ TechnicalDesign;
59617
+ FunctionalRequirementsVector;
59618
+ TechnicalDesignVector;
59619
+ SourceRegistry;
59620
+ MJ_ComponentDependencies_DependencyComponentIDArray;
59621
+ MJ_ComponentLibraryLinks_ComponentIDArray;
59622
+ MJ_ComponentDependencies_ComponentIDArray;
59623
+ };
59624
+ __decorate([
59625
+ Field({ description: `Immutable UUID that remains the same across all systems` }),
59626
+ MaxLength(16),
59627
+ __metadata("design:type", String)
59628
+ ], Component_.prototype, "ID", void 0);
59629
+ __decorate([
59630
+ Field({ nullable: true, description: `Hierarchical namespace path (e.g., dashboards/sales for local, @memberjunction/dashboards/financial for external)` }),
59631
+ __metadata("design:type", String)
59632
+ ], Component_.prototype, "Namespace", void 0);
59633
+ __decorate([
59634
+ Field({ description: `Component name within the namespace (e.g., revenue-tracker)` }),
59635
+ MaxLength(1000),
59636
+ __metadata("design:type", String)
59637
+ ], Component_.prototype, "Name", void 0);
59638
+ __decorate([
59639
+ Field({ description: `Semantic version number (e.g., 1.0.0, 1.2.3-beta)` }),
59640
+ MaxLength(100),
59641
+ __metadata("design:type", String)
59642
+ ], Component_.prototype, "Version", void 0);
59643
+ __decorate([
59644
+ Field(() => Int, { description: `Numeric sequence for sorting versions` }),
59645
+ __metadata("design:type", Number)
59646
+ ], Component_.prototype, "VersionSequence", void 0);
59647
+ __decorate([
59648
+ Field({ nullable: true, description: `User-friendly display title for the component` }),
59649
+ MaxLength(2000),
59650
+ __metadata("design:type", String)
59651
+ ], Component_.prototype, "Title", void 0);
59652
+ __decorate([
59653
+ Field({ nullable: true, description: `Detailed description of the component functionality` }),
59654
+ __metadata("design:type", String)
59655
+ ], Component_.prototype, "Description", void 0);
59656
+ __decorate([
59657
+ Field({ nullable: true, description: `Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other` }),
59658
+ MaxLength(510),
59659
+ __metadata("design:type", String)
59660
+ ], Component_.prototype, "Type", void 0);
59661
+ __decorate([
59662
+ Field({ nullable: true, description: `Publication status: draft, published, or deprecated` }),
59663
+ MaxLength(100),
59664
+ __metadata("design:type", String)
59665
+ ], Component_.prototype, "Status", void 0);
59666
+ __decorate([
59667
+ Field({ nullable: true, description: `Name of the component developer or author` }),
59668
+ MaxLength(510),
59669
+ __metadata("design:type", String)
59670
+ ], Component_.prototype, "DeveloperName", void 0);
59671
+ __decorate([
59672
+ Field({ nullable: true, description: `Contact email for the component developer` }),
59673
+ MaxLength(510),
59674
+ __metadata("design:type", String)
59675
+ ], Component_.prototype, "DeveloperEmail", void 0);
59676
+ __decorate([
59677
+ Field({ nullable: true, description: `Organization name of the component developer` }),
59678
+ MaxLength(510),
59679
+ __metadata("design:type", String)
59680
+ ], Component_.prototype, "DeveloperOrganization", void 0);
59681
+ __decorate([
59682
+ Field({ nullable: true, description: `Foreign key to ComponentRegistry - NULL for local components, populated for replicated ones` }),
59683
+ MaxLength(16),
59684
+ __metadata("design:type", String)
59685
+ ], Component_.prototype, "SourceRegistryID", void 0);
59686
+ __decorate([
59687
+ Field({ nullable: true, description: `Timestamp when the component was replicated from external registry (NULL for local components)` }),
59688
+ MaxLength(10),
59689
+ __metadata("design:type", Date)
59690
+ ], Component_.prototype, "ReplicatedAt", void 0);
59691
+ __decorate([
59692
+ Field({ nullable: true, description: `Last synchronization timestamp with the source registry` }),
59693
+ MaxLength(10),
59694
+ __metadata("design:type", Date)
59695
+ ], Component_.prototype, "LastSyncedAt", void 0);
59696
+ __decorate([
59697
+ Field(),
59698
+ MaxLength(10),
59699
+ __metadata("design:type", Date)
59700
+ ], Component_.prototype, "_mj__CreatedAt", void 0);
59701
+ __decorate([
59702
+ Field(),
59703
+ MaxLength(10),
59704
+ __metadata("design:type", Date)
59705
+ ], Component_.prototype, "_mj__UpdatedAt", void 0);
59706
+ __decorate([
59707
+ Field({ description: `Complete JSON specification object for the component` }),
59708
+ __metadata("design:type", String)
59709
+ ], Component_.prototype, "Specification", void 0);
59710
+ __decorate([
59711
+ Field({ nullable: true, description: `Functional requirements describing what the component should accomplish` }),
59712
+ __metadata("design:type", String)
59713
+ ], Component_.prototype, "FunctionalRequirements", void 0);
59714
+ __decorate([
59715
+ Field({ nullable: true, description: `Technical design describing how the component is implemented` }),
59716
+ __metadata("design:type", String)
59717
+ ], Component_.prototype, "TechnicalDesign", void 0);
59718
+ __decorate([
59719
+ Field({ nullable: true, description: `Vector embedding of the functional requirements for similarity search` }),
59720
+ __metadata("design:type", String)
59721
+ ], Component_.prototype, "FunctionalRequirementsVector", void 0);
59722
+ __decorate([
59723
+ Field({ nullable: true, description: `Vector embedding of the technical design for similarity search` }),
59724
+ __metadata("design:type", String)
59725
+ ], Component_.prototype, "TechnicalDesignVector", void 0);
59726
+ __decorate([
59727
+ Field({ nullable: true }),
59728
+ MaxLength(510),
59729
+ __metadata("design:type", String)
59730
+ ], Component_.prototype, "SourceRegistry", void 0);
59731
+ __decorate([
59732
+ Field(() => [ComponentDependency_]),
59733
+ __metadata("design:type", Array)
59734
+ ], Component_.prototype, "MJ_ComponentDependencies_DependencyComponentIDArray", void 0);
59735
+ __decorate([
59736
+ Field(() => [ComponentLibraryLink_]),
59737
+ __metadata("design:type", Array)
59738
+ ], Component_.prototype, "MJ_ComponentLibraryLinks_ComponentIDArray", void 0);
59739
+ __decorate([
59740
+ Field(() => [ComponentDependency_]),
59741
+ __metadata("design:type", Array)
59742
+ ], Component_.prototype, "MJ_ComponentDependencies_ComponentIDArray", void 0);
59743
+ Component_ = __decorate([
59744
+ ObjectType({ description: `Main catalog of reusable components with versioning and registry support` })
59745
+ ], Component_);
59746
+ export { Component_ };
59747
+ let CreateComponentInput = class CreateComponentInput {
59748
+ ID;
59749
+ Namespace;
59750
+ Name;
59751
+ Version;
59752
+ VersionSequence;
59753
+ Title;
59754
+ Description;
59755
+ Type;
59756
+ Status;
59757
+ DeveloperName;
59758
+ DeveloperEmail;
59759
+ DeveloperOrganization;
59760
+ SourceRegistryID;
59761
+ ReplicatedAt;
59762
+ LastSyncedAt;
59763
+ Specification;
59764
+ FunctionalRequirements;
59765
+ TechnicalDesign;
59766
+ FunctionalRequirementsVector;
59767
+ TechnicalDesignVector;
59768
+ };
59769
+ __decorate([
59770
+ Field({ nullable: true }),
59771
+ __metadata("design:type", String)
59772
+ ], CreateComponentInput.prototype, "ID", void 0);
59773
+ __decorate([
59774
+ Field({ nullable: true }),
59775
+ __metadata("design:type", String)
59776
+ ], CreateComponentInput.prototype, "Namespace", void 0);
59777
+ __decorate([
59778
+ Field({ nullable: true }),
59779
+ __metadata("design:type", String)
59780
+ ], CreateComponentInput.prototype, "Name", void 0);
59781
+ __decorate([
59782
+ Field({ nullable: true }),
59783
+ __metadata("design:type", String)
59784
+ ], CreateComponentInput.prototype, "Version", void 0);
59785
+ __decorate([
59786
+ Field(() => Int, { nullable: true }),
59787
+ __metadata("design:type", Number)
59788
+ ], CreateComponentInput.prototype, "VersionSequence", void 0);
59789
+ __decorate([
59790
+ Field({ nullable: true }),
59791
+ __metadata("design:type", String)
59792
+ ], CreateComponentInput.prototype, "Title", void 0);
59793
+ __decorate([
59794
+ Field({ nullable: true }),
59795
+ __metadata("design:type", String)
59796
+ ], CreateComponentInput.prototype, "Description", void 0);
59797
+ __decorate([
59798
+ Field({ nullable: true }),
59799
+ __metadata("design:type", String)
59800
+ ], CreateComponentInput.prototype, "Type", void 0);
59801
+ __decorate([
59802
+ Field({ nullable: true }),
59803
+ __metadata("design:type", String)
59804
+ ], CreateComponentInput.prototype, "Status", void 0);
59805
+ __decorate([
59806
+ Field({ nullable: true }),
59807
+ __metadata("design:type", String)
59808
+ ], CreateComponentInput.prototype, "DeveloperName", void 0);
59809
+ __decorate([
59810
+ Field({ nullable: true }),
59811
+ __metadata("design:type", String)
59812
+ ], CreateComponentInput.prototype, "DeveloperEmail", void 0);
59813
+ __decorate([
59814
+ Field({ nullable: true }),
59815
+ __metadata("design:type", String)
59816
+ ], CreateComponentInput.prototype, "DeveloperOrganization", void 0);
59817
+ __decorate([
59818
+ Field({ nullable: true }),
59819
+ __metadata("design:type", String)
59820
+ ], CreateComponentInput.prototype, "SourceRegistryID", void 0);
59821
+ __decorate([
59822
+ Field({ nullable: true }),
59823
+ __metadata("design:type", Date)
59824
+ ], CreateComponentInput.prototype, "ReplicatedAt", void 0);
59825
+ __decorate([
59826
+ Field({ nullable: true }),
59827
+ __metadata("design:type", Date)
59828
+ ], CreateComponentInput.prototype, "LastSyncedAt", void 0);
59829
+ __decorate([
59830
+ Field({ nullable: true }),
59831
+ __metadata("design:type", String)
59832
+ ], CreateComponentInput.prototype, "Specification", void 0);
59833
+ __decorate([
59834
+ Field({ nullable: true }),
59835
+ __metadata("design:type", String)
59836
+ ], CreateComponentInput.prototype, "FunctionalRequirements", void 0);
59837
+ __decorate([
59838
+ Field({ nullable: true }),
59839
+ __metadata("design:type", String)
59840
+ ], CreateComponentInput.prototype, "TechnicalDesign", void 0);
59841
+ __decorate([
59842
+ Field({ nullable: true }),
59843
+ __metadata("design:type", String)
59844
+ ], CreateComponentInput.prototype, "FunctionalRequirementsVector", void 0);
59845
+ __decorate([
59846
+ Field({ nullable: true }),
59847
+ __metadata("design:type", String)
59848
+ ], CreateComponentInput.prototype, "TechnicalDesignVector", void 0);
59849
+ CreateComponentInput = __decorate([
59850
+ InputType()
59851
+ ], CreateComponentInput);
59852
+ export { CreateComponentInput };
59853
+ let UpdateComponentInput = class UpdateComponentInput {
59854
+ ID;
59855
+ Namespace;
59856
+ Name;
59857
+ Version;
59858
+ VersionSequence;
59859
+ Title;
59860
+ Description;
59861
+ Type;
59862
+ Status;
59863
+ DeveloperName;
59864
+ DeveloperEmail;
59865
+ DeveloperOrganization;
59866
+ SourceRegistryID;
59867
+ ReplicatedAt;
59868
+ LastSyncedAt;
59869
+ Specification;
59870
+ FunctionalRequirements;
59871
+ TechnicalDesign;
59872
+ FunctionalRequirementsVector;
59873
+ TechnicalDesignVector;
59874
+ OldValues___;
59875
+ };
59876
+ __decorate([
59877
+ Field(),
59878
+ __metadata("design:type", String)
59879
+ ], UpdateComponentInput.prototype, "ID", void 0);
59880
+ __decorate([
59881
+ Field({ nullable: true }),
59882
+ __metadata("design:type", String)
59883
+ ], UpdateComponentInput.prototype, "Namespace", void 0);
59884
+ __decorate([
59885
+ Field({ nullable: true }),
59886
+ __metadata("design:type", String)
59887
+ ], UpdateComponentInput.prototype, "Name", void 0);
59888
+ __decorate([
59889
+ Field({ nullable: true }),
59890
+ __metadata("design:type", String)
59891
+ ], UpdateComponentInput.prototype, "Version", void 0);
59892
+ __decorate([
59893
+ Field(() => Int, { nullable: true }),
59894
+ __metadata("design:type", Number)
59895
+ ], UpdateComponentInput.prototype, "VersionSequence", void 0);
59896
+ __decorate([
59897
+ Field({ nullable: true }),
59898
+ __metadata("design:type", String)
59899
+ ], UpdateComponentInput.prototype, "Title", void 0);
59900
+ __decorate([
59901
+ Field({ nullable: true }),
59902
+ __metadata("design:type", String)
59903
+ ], UpdateComponentInput.prototype, "Description", void 0);
59904
+ __decorate([
59905
+ Field({ nullable: true }),
59906
+ __metadata("design:type", String)
59907
+ ], UpdateComponentInput.prototype, "Type", void 0);
59908
+ __decorate([
59909
+ Field({ nullable: true }),
59910
+ __metadata("design:type", String)
59911
+ ], UpdateComponentInput.prototype, "Status", void 0);
59912
+ __decorate([
59913
+ Field({ nullable: true }),
59914
+ __metadata("design:type", String)
59915
+ ], UpdateComponentInput.prototype, "DeveloperName", void 0);
59916
+ __decorate([
59917
+ Field({ nullable: true }),
59918
+ __metadata("design:type", String)
59919
+ ], UpdateComponentInput.prototype, "DeveloperEmail", void 0);
59920
+ __decorate([
59921
+ Field({ nullable: true }),
59922
+ __metadata("design:type", String)
59923
+ ], UpdateComponentInput.prototype, "DeveloperOrganization", void 0);
59924
+ __decorate([
59925
+ Field({ nullable: true }),
59926
+ __metadata("design:type", String)
59927
+ ], UpdateComponentInput.prototype, "SourceRegistryID", void 0);
59928
+ __decorate([
59929
+ Field({ nullable: true }),
59930
+ __metadata("design:type", Date)
59931
+ ], UpdateComponentInput.prototype, "ReplicatedAt", void 0);
59932
+ __decorate([
59933
+ Field({ nullable: true }),
59934
+ __metadata("design:type", Date)
59935
+ ], UpdateComponentInput.prototype, "LastSyncedAt", void 0);
59936
+ __decorate([
59937
+ Field({ nullable: true }),
59938
+ __metadata("design:type", String)
59939
+ ], UpdateComponentInput.prototype, "Specification", void 0);
59940
+ __decorate([
59941
+ Field({ nullable: true }),
59942
+ __metadata("design:type", String)
59943
+ ], UpdateComponentInput.prototype, "FunctionalRequirements", void 0);
59944
+ __decorate([
59945
+ Field({ nullable: true }),
59946
+ __metadata("design:type", String)
59947
+ ], UpdateComponentInput.prototype, "TechnicalDesign", void 0);
59948
+ __decorate([
59949
+ Field({ nullable: true }),
59950
+ __metadata("design:type", String)
59951
+ ], UpdateComponentInput.prototype, "FunctionalRequirementsVector", void 0);
59952
+ __decorate([
59953
+ Field({ nullable: true }),
59954
+ __metadata("design:type", String)
59955
+ ], UpdateComponentInput.prototype, "TechnicalDesignVector", void 0);
59956
+ __decorate([
59957
+ Field(() => [KeyValuePairInput], { nullable: true }),
59958
+ __metadata("design:type", Array)
59959
+ ], UpdateComponentInput.prototype, "OldValues___", void 0);
59960
+ UpdateComponentInput = __decorate([
59961
+ InputType()
59962
+ ], UpdateComponentInput);
59963
+ export { UpdateComponentInput };
59964
+ let RunComponentViewResult = class RunComponentViewResult {
59965
+ Results;
59966
+ UserViewRunID;
59967
+ RowCount;
59968
+ TotalRowCount;
59969
+ ExecutionTime;
59970
+ ErrorMessage;
59971
+ Success;
59972
+ };
59973
+ __decorate([
59974
+ Field(() => [Component_]),
59975
+ __metadata("design:type", Array)
59976
+ ], RunComponentViewResult.prototype, "Results", void 0);
59977
+ __decorate([
59978
+ Field(() => String, { nullable: true }),
59979
+ __metadata("design:type", String)
59980
+ ], RunComponentViewResult.prototype, "UserViewRunID", void 0);
59981
+ __decorate([
59982
+ Field(() => Int, { nullable: true }),
59983
+ __metadata("design:type", Number)
59984
+ ], RunComponentViewResult.prototype, "RowCount", void 0);
59985
+ __decorate([
59986
+ Field(() => Int, { nullable: true }),
59987
+ __metadata("design:type", Number)
59988
+ ], RunComponentViewResult.prototype, "TotalRowCount", void 0);
59989
+ __decorate([
59990
+ Field(() => Int, { nullable: true }),
59991
+ __metadata("design:type", Number)
59992
+ ], RunComponentViewResult.prototype, "ExecutionTime", void 0);
59993
+ __decorate([
59994
+ Field({ nullable: true }),
59995
+ __metadata("design:type", String)
59996
+ ], RunComponentViewResult.prototype, "ErrorMessage", void 0);
59997
+ __decorate([
59998
+ Field(() => Boolean, { nullable: false }),
59999
+ __metadata("design:type", Boolean)
60000
+ ], RunComponentViewResult.prototype, "Success", void 0);
60001
+ RunComponentViewResult = __decorate([
60002
+ ObjectType()
60003
+ ], RunComponentViewResult);
60004
+ export { RunComponentViewResult };
60005
+ let ComponentResolver = class ComponentResolver extends ResolverBase {
60006
+ async RunComponentViewByID(input, { providers, userPayload }, pubSub) {
60007
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60008
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
60009
+ }
60010
+ async RunComponentViewByName(input, { providers, userPayload }, pubSub) {
60011
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60012
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
60013
+ }
60014
+ async RunComponentDynamicView(input, { providers, userPayload }, pubSub) {
60015
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60016
+ input.EntityName = 'MJ: Components';
60017
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
60018
+ }
60019
+ async Component(ID, { dataSources, userPayload, providers }, pubSub) {
60020
+ this.CheckUserReadPermissions('MJ: Components', userPayload);
60021
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60022
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
60023
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponents] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Components', userPayload, EntityPermissionType.Read, 'AND');
60024
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
60025
+ const result = this.MapFieldNamesToCodeNames('MJ: Components', rows && rows.length > 0 ? rows[0] : {});
60026
+ return result;
60027
+ }
60028
+ async MJ_ComponentDependencies_DependencyComponentIDArray(component_, { dataSources, userPayload, providers }, pubSub) {
60029
+ this.CheckUserReadPermissions('MJ: Component Dependencies', userPayload);
60030
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60031
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
60032
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentDependencies] WHERE [DependencyComponentID]='${component_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Dependencies', userPayload, EntityPermissionType.Read, 'AND');
60033
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
60034
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Component Dependencies', rows);
60035
+ return result;
60036
+ }
60037
+ async MJ_ComponentLibraryLinks_ComponentIDArray(component_, { dataSources, userPayload, providers }, pubSub) {
60038
+ this.CheckUserReadPermissions('MJ: Component Library Links', userPayload);
60039
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60040
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
60041
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentLibraryLinks] WHERE [ComponentID]='${component_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Library Links', userPayload, EntityPermissionType.Read, 'AND');
60042
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
60043
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Component Library Links', rows);
60044
+ return result;
60045
+ }
60046
+ async MJ_ComponentDependencies_ComponentIDArray(component_, { dataSources, userPayload, providers }, pubSub) {
60047
+ this.CheckUserReadPermissions('MJ: Component Dependencies', userPayload);
60048
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60049
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
60050
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentDependencies] WHERE [ComponentID]='${component_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Dependencies', userPayload, EntityPermissionType.Read, 'AND');
60051
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
60052
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Component Dependencies', rows);
60053
+ return result;
60054
+ }
60055
+ async CreateComponent(input, { providers, userPayload }, pubSub) {
60056
+ const provider = GetReadWriteProvider(providers);
60057
+ return this.CreateRecord('MJ: Components', input, provider, userPayload, pubSub);
60058
+ }
60059
+ async UpdateComponent(input, { providers, userPayload }, pubSub) {
60060
+ const provider = GetReadWriteProvider(providers);
60061
+ return this.UpdateRecord('MJ: Components', input, provider, userPayload, pubSub);
60062
+ }
60063
+ async DeleteComponent(ID, options, { providers, userPayload }, pubSub) {
60064
+ const provider = GetReadWriteProvider(providers);
60065
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
60066
+ return this.DeleteRecord('MJ: Components', key, options, provider, userPayload, pubSub);
60067
+ }
60068
+ };
60069
+ __decorate([
60070
+ Query(() => RunComponentViewResult),
60071
+ __param(0, Arg('input', () => RunViewByIDInput)),
60072
+ __param(1, Ctx()),
60073
+ __param(2, PubSub()),
60074
+ __metadata("design:type", Function),
60075
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
60076
+ __metadata("design:returntype", Promise)
60077
+ ], ComponentResolver.prototype, "RunComponentViewByID", null);
60078
+ __decorate([
60079
+ Query(() => RunComponentViewResult),
60080
+ __param(0, Arg('input', () => RunViewByNameInput)),
60081
+ __param(1, Ctx()),
60082
+ __param(2, PubSub()),
60083
+ __metadata("design:type", Function),
60084
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
60085
+ __metadata("design:returntype", Promise)
60086
+ ], ComponentResolver.prototype, "RunComponentViewByName", null);
60087
+ __decorate([
60088
+ Query(() => RunComponentViewResult),
60089
+ __param(0, Arg('input', () => RunDynamicViewInput)),
60090
+ __param(1, Ctx()),
60091
+ __param(2, PubSub()),
60092
+ __metadata("design:type", Function),
60093
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
60094
+ __metadata("design:returntype", Promise)
60095
+ ], ComponentResolver.prototype, "RunComponentDynamicView", null);
60096
+ __decorate([
60097
+ Query(() => Component_, { nullable: true }),
60098
+ __param(0, Arg('ID', () => String)),
60099
+ __param(1, Ctx()),
60100
+ __param(2, PubSub()),
60101
+ __metadata("design:type", Function),
60102
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
60103
+ __metadata("design:returntype", Promise)
60104
+ ], ComponentResolver.prototype, "Component", null);
60105
+ __decorate([
60106
+ FieldResolver(() => [ComponentDependency_]),
60107
+ __param(0, Root()),
60108
+ __param(1, Ctx()),
60109
+ __param(2, PubSub()),
60110
+ __metadata("design:type", Function),
60111
+ __metadata("design:paramtypes", [Component_, Object, PubSubEngine]),
60112
+ __metadata("design:returntype", Promise)
60113
+ ], ComponentResolver.prototype, "MJ_ComponentDependencies_DependencyComponentIDArray", null);
60114
+ __decorate([
60115
+ FieldResolver(() => [ComponentLibraryLink_]),
60116
+ __param(0, Root()),
60117
+ __param(1, Ctx()),
60118
+ __param(2, PubSub()),
60119
+ __metadata("design:type", Function),
60120
+ __metadata("design:paramtypes", [Component_, Object, PubSubEngine]),
60121
+ __metadata("design:returntype", Promise)
60122
+ ], ComponentResolver.prototype, "MJ_ComponentLibraryLinks_ComponentIDArray", null);
60123
+ __decorate([
60124
+ FieldResolver(() => [ComponentDependency_]),
60125
+ __param(0, Root()),
60126
+ __param(1, Ctx()),
60127
+ __param(2, PubSub()),
60128
+ __metadata("design:type", Function),
60129
+ __metadata("design:paramtypes", [Component_, Object, PubSubEngine]),
60130
+ __metadata("design:returntype", Promise)
60131
+ ], ComponentResolver.prototype, "MJ_ComponentDependencies_ComponentIDArray", null);
60132
+ __decorate([
60133
+ Mutation(() => Component_),
60134
+ __param(0, Arg('input', () => CreateComponentInput)),
60135
+ __param(1, Ctx()),
60136
+ __param(2, PubSub()),
60137
+ __metadata("design:type", Function),
60138
+ __metadata("design:paramtypes", [CreateComponentInput, Object, PubSubEngine]),
60139
+ __metadata("design:returntype", Promise)
60140
+ ], ComponentResolver.prototype, "CreateComponent", null);
60141
+ __decorate([
60142
+ Mutation(() => Component_),
60143
+ __param(0, Arg('input', () => UpdateComponentInput)),
60144
+ __param(1, Ctx()),
60145
+ __param(2, PubSub()),
60146
+ __metadata("design:type", Function),
60147
+ __metadata("design:paramtypes", [UpdateComponentInput, Object, PubSubEngine]),
60148
+ __metadata("design:returntype", Promise)
60149
+ ], ComponentResolver.prototype, "UpdateComponent", null);
60150
+ __decorate([
60151
+ Mutation(() => Component_),
60152
+ __param(0, Arg('ID', () => String)),
60153
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
60154
+ __param(2, Ctx()),
60155
+ __param(3, PubSub()),
60156
+ __metadata("design:type", Function),
60157
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
60158
+ __metadata("design:returntype", Promise)
60159
+ ], ComponentResolver.prototype, "DeleteComponent", null);
60160
+ ComponentResolver = __decorate([
60161
+ Resolver(Component_)
60162
+ ], ComponentResolver);
60163
+ export { ComponentResolver };
58994
60164
  let ArtifactType_ = class ArtifactType_ {
58995
60165
  ID;
58996
60166
  Name;
@@ -60257,6 +61427,353 @@ AIAgentPromptResolver = __decorate([
60257
61427
  Resolver(AIAgentPrompt_)
60258
61428
  ], AIAgentPromptResolver);
60259
61429
  export { AIAgentPromptResolver };
61430
+ let ComponentLibrary_ = class ComponentLibrary_ {
61431
+ ID;
61432
+ Name;
61433
+ DisplayName;
61434
+ Version;
61435
+ GlobalVariable;
61436
+ Category;
61437
+ CDNUrl;
61438
+ CDNCssUrl;
61439
+ Description;
61440
+ _mj__CreatedAt;
61441
+ _mj__UpdatedAt;
61442
+ MJ_ComponentLibraryLinks_LibraryIDArray;
61443
+ };
61444
+ __decorate([
61445
+ Field({ description: `Primary key for the component library` }),
61446
+ MaxLength(16),
61447
+ __metadata("design:type", String)
61448
+ ], ComponentLibrary_.prototype, "ID", void 0);
61449
+ __decorate([
61450
+ Field({ description: `NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)` }),
61451
+ MaxLength(1000),
61452
+ __metadata("design:type", String)
61453
+ ], ComponentLibrary_.prototype, "Name", void 0);
61454
+ __decorate([
61455
+ Field({ nullable: true, description: `User-friendly display name for the library` }),
61456
+ MaxLength(1000),
61457
+ __metadata("design:type", String)
61458
+ ], ComponentLibrary_.prototype, "DisplayName", void 0);
61459
+ __decorate([
61460
+ Field({ nullable: true, description: `Library version number` }),
61461
+ MaxLength(200),
61462
+ __metadata("design:type", String)
61463
+ ], ComponentLibrary_.prototype, "Version", void 0);
61464
+ __decorate([
61465
+ Field({ nullable: true, description: `Global variable name when loaded (e.g., _ for lodash, React for react)` }),
61466
+ MaxLength(510),
61467
+ __metadata("design:type", String)
61468
+ ], ComponentLibrary_.prototype, "GlobalVariable", void 0);
61469
+ __decorate([
61470
+ Field({ nullable: true, description: `Library category: Core, Runtime, UI, Charting, Utility, or Other` }),
61471
+ MaxLength(200),
61472
+ __metadata("design:type", String)
61473
+ ], ComponentLibrary_.prototype, "Category", void 0);
61474
+ __decorate([
61475
+ Field({ nullable: true, description: `CDN URL for loading the library JavaScript` }),
61476
+ MaxLength(2000),
61477
+ __metadata("design:type", String)
61478
+ ], ComponentLibrary_.prototype, "CDNUrl", void 0);
61479
+ __decorate([
61480
+ Field({ nullable: true, description: `Optional CDN URL for loading library CSS` }),
61481
+ MaxLength(2000),
61482
+ __metadata("design:type", String)
61483
+ ], ComponentLibrary_.prototype, "CDNCssUrl", void 0);
61484
+ __decorate([
61485
+ Field({ nullable: true, description: `Description of the library and its capabilities` }),
61486
+ __metadata("design:type", String)
61487
+ ], ComponentLibrary_.prototype, "Description", void 0);
61488
+ __decorate([
61489
+ Field(),
61490
+ MaxLength(10),
61491
+ __metadata("design:type", Date)
61492
+ ], ComponentLibrary_.prototype, "_mj__CreatedAt", void 0);
61493
+ __decorate([
61494
+ Field(),
61495
+ MaxLength(10),
61496
+ __metadata("design:type", Date)
61497
+ ], ComponentLibrary_.prototype, "_mj__UpdatedAt", void 0);
61498
+ __decorate([
61499
+ Field(() => [ComponentLibraryLink_]),
61500
+ __metadata("design:type", Array)
61501
+ ], ComponentLibrary_.prototype, "MJ_ComponentLibraryLinks_LibraryIDArray", void 0);
61502
+ ComponentLibrary_ = __decorate([
61503
+ ObjectType({ description: `Catalog of third-party JavaScript libraries that components can depend on` })
61504
+ ], ComponentLibrary_);
61505
+ export { ComponentLibrary_ };
61506
+ let CreateComponentLibraryInput = class CreateComponentLibraryInput {
61507
+ ID;
61508
+ Name;
61509
+ DisplayName;
61510
+ Version;
61511
+ GlobalVariable;
61512
+ Category;
61513
+ CDNUrl;
61514
+ CDNCssUrl;
61515
+ Description;
61516
+ };
61517
+ __decorate([
61518
+ Field({ nullable: true }),
61519
+ __metadata("design:type", String)
61520
+ ], CreateComponentLibraryInput.prototype, "ID", void 0);
61521
+ __decorate([
61522
+ Field({ nullable: true }),
61523
+ __metadata("design:type", String)
61524
+ ], CreateComponentLibraryInput.prototype, "Name", void 0);
61525
+ __decorate([
61526
+ Field({ nullable: true }),
61527
+ __metadata("design:type", String)
61528
+ ], CreateComponentLibraryInput.prototype, "DisplayName", void 0);
61529
+ __decorate([
61530
+ Field({ nullable: true }),
61531
+ __metadata("design:type", String)
61532
+ ], CreateComponentLibraryInput.prototype, "Version", void 0);
61533
+ __decorate([
61534
+ Field({ nullable: true }),
61535
+ __metadata("design:type", String)
61536
+ ], CreateComponentLibraryInput.prototype, "GlobalVariable", void 0);
61537
+ __decorate([
61538
+ Field({ nullable: true }),
61539
+ __metadata("design:type", String)
61540
+ ], CreateComponentLibraryInput.prototype, "Category", void 0);
61541
+ __decorate([
61542
+ Field({ nullable: true }),
61543
+ __metadata("design:type", String)
61544
+ ], CreateComponentLibraryInput.prototype, "CDNUrl", void 0);
61545
+ __decorate([
61546
+ Field({ nullable: true }),
61547
+ __metadata("design:type", String)
61548
+ ], CreateComponentLibraryInput.prototype, "CDNCssUrl", void 0);
61549
+ __decorate([
61550
+ Field({ nullable: true }),
61551
+ __metadata("design:type", String)
61552
+ ], CreateComponentLibraryInput.prototype, "Description", void 0);
61553
+ CreateComponentLibraryInput = __decorate([
61554
+ InputType()
61555
+ ], CreateComponentLibraryInput);
61556
+ export { CreateComponentLibraryInput };
61557
+ let UpdateComponentLibraryInput = class UpdateComponentLibraryInput {
61558
+ ID;
61559
+ Name;
61560
+ DisplayName;
61561
+ Version;
61562
+ GlobalVariable;
61563
+ Category;
61564
+ CDNUrl;
61565
+ CDNCssUrl;
61566
+ Description;
61567
+ OldValues___;
61568
+ };
61569
+ __decorate([
61570
+ Field(),
61571
+ __metadata("design:type", String)
61572
+ ], UpdateComponentLibraryInput.prototype, "ID", void 0);
61573
+ __decorate([
61574
+ Field({ nullable: true }),
61575
+ __metadata("design:type", String)
61576
+ ], UpdateComponentLibraryInput.prototype, "Name", void 0);
61577
+ __decorate([
61578
+ Field({ nullable: true }),
61579
+ __metadata("design:type", String)
61580
+ ], UpdateComponentLibraryInput.prototype, "DisplayName", void 0);
61581
+ __decorate([
61582
+ Field({ nullable: true }),
61583
+ __metadata("design:type", String)
61584
+ ], UpdateComponentLibraryInput.prototype, "Version", void 0);
61585
+ __decorate([
61586
+ Field({ nullable: true }),
61587
+ __metadata("design:type", String)
61588
+ ], UpdateComponentLibraryInput.prototype, "GlobalVariable", void 0);
61589
+ __decorate([
61590
+ Field({ nullable: true }),
61591
+ __metadata("design:type", String)
61592
+ ], UpdateComponentLibraryInput.prototype, "Category", void 0);
61593
+ __decorate([
61594
+ Field({ nullable: true }),
61595
+ __metadata("design:type", String)
61596
+ ], UpdateComponentLibraryInput.prototype, "CDNUrl", void 0);
61597
+ __decorate([
61598
+ Field({ nullable: true }),
61599
+ __metadata("design:type", String)
61600
+ ], UpdateComponentLibraryInput.prototype, "CDNCssUrl", void 0);
61601
+ __decorate([
61602
+ Field({ nullable: true }),
61603
+ __metadata("design:type", String)
61604
+ ], UpdateComponentLibraryInput.prototype, "Description", void 0);
61605
+ __decorate([
61606
+ Field(() => [KeyValuePairInput], { nullable: true }),
61607
+ __metadata("design:type", Array)
61608
+ ], UpdateComponentLibraryInput.prototype, "OldValues___", void 0);
61609
+ UpdateComponentLibraryInput = __decorate([
61610
+ InputType()
61611
+ ], UpdateComponentLibraryInput);
61612
+ export { UpdateComponentLibraryInput };
61613
+ let RunComponentLibraryViewResult = class RunComponentLibraryViewResult {
61614
+ Results;
61615
+ UserViewRunID;
61616
+ RowCount;
61617
+ TotalRowCount;
61618
+ ExecutionTime;
61619
+ ErrorMessage;
61620
+ Success;
61621
+ };
61622
+ __decorate([
61623
+ Field(() => [ComponentLibrary_]),
61624
+ __metadata("design:type", Array)
61625
+ ], RunComponentLibraryViewResult.prototype, "Results", void 0);
61626
+ __decorate([
61627
+ Field(() => String, { nullable: true }),
61628
+ __metadata("design:type", String)
61629
+ ], RunComponentLibraryViewResult.prototype, "UserViewRunID", void 0);
61630
+ __decorate([
61631
+ Field(() => Int, { nullable: true }),
61632
+ __metadata("design:type", Number)
61633
+ ], RunComponentLibraryViewResult.prototype, "RowCount", void 0);
61634
+ __decorate([
61635
+ Field(() => Int, { nullable: true }),
61636
+ __metadata("design:type", Number)
61637
+ ], RunComponentLibraryViewResult.prototype, "TotalRowCount", void 0);
61638
+ __decorate([
61639
+ Field(() => Int, { nullable: true }),
61640
+ __metadata("design:type", Number)
61641
+ ], RunComponentLibraryViewResult.prototype, "ExecutionTime", void 0);
61642
+ __decorate([
61643
+ Field({ nullable: true }),
61644
+ __metadata("design:type", String)
61645
+ ], RunComponentLibraryViewResult.prototype, "ErrorMessage", void 0);
61646
+ __decorate([
61647
+ Field(() => Boolean, { nullable: false }),
61648
+ __metadata("design:type", Boolean)
61649
+ ], RunComponentLibraryViewResult.prototype, "Success", void 0);
61650
+ RunComponentLibraryViewResult = __decorate([
61651
+ ObjectType()
61652
+ ], RunComponentLibraryViewResult);
61653
+ export { RunComponentLibraryViewResult };
61654
+ let ComponentLibraryResolver = class ComponentLibraryResolver extends ResolverBase {
61655
+ async RunComponentLibraryViewByID(input, { providers, userPayload }, pubSub) {
61656
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
61657
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
61658
+ }
61659
+ async RunComponentLibraryViewByName(input, { providers, userPayload }, pubSub) {
61660
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
61661
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
61662
+ }
61663
+ async RunComponentLibraryDynamicView(input, { providers, userPayload }, pubSub) {
61664
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
61665
+ input.EntityName = 'MJ: Component Libraries';
61666
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
61667
+ }
61668
+ async ComponentLibrary(ID, { dataSources, userPayload, providers }, pubSub) {
61669
+ this.CheckUserReadPermissions('MJ: Component Libraries', userPayload);
61670
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
61671
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
61672
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentLibraries] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Libraries', userPayload, EntityPermissionType.Read, 'AND');
61673
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
61674
+ const result = this.MapFieldNamesToCodeNames('MJ: Component Libraries', rows && rows.length > 0 ? rows[0] : {});
61675
+ return result;
61676
+ }
61677
+ async MJ_ComponentLibraryLinks_LibraryIDArray(componentlibrary_, { dataSources, userPayload, providers }, pubSub) {
61678
+ this.CheckUserReadPermissions('MJ: Component Library Links', userPayload);
61679
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
61680
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
61681
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentLibraryLinks] WHERE [LibraryID]='${componentlibrary_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Library Links', userPayload, EntityPermissionType.Read, 'AND');
61682
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
61683
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Component Library Links', rows);
61684
+ return result;
61685
+ }
61686
+ async CreateComponentLibrary(input, { providers, userPayload }, pubSub) {
61687
+ const provider = GetReadWriteProvider(providers);
61688
+ return this.CreateRecord('MJ: Component Libraries', input, provider, userPayload, pubSub);
61689
+ }
61690
+ async UpdateComponentLibrary(input, { providers, userPayload }, pubSub) {
61691
+ const provider = GetReadWriteProvider(providers);
61692
+ return this.UpdateRecord('MJ: Component Libraries', input, provider, userPayload, pubSub);
61693
+ }
61694
+ async DeleteComponentLibrary(ID, options, { providers, userPayload }, pubSub) {
61695
+ const provider = GetReadWriteProvider(providers);
61696
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
61697
+ return this.DeleteRecord('MJ: Component Libraries', key, options, provider, userPayload, pubSub);
61698
+ }
61699
+ };
61700
+ __decorate([
61701
+ Query(() => RunComponentLibraryViewResult),
61702
+ __param(0, Arg('input', () => RunViewByIDInput)),
61703
+ __param(1, Ctx()),
61704
+ __param(2, PubSub()),
61705
+ __metadata("design:type", Function),
61706
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
61707
+ __metadata("design:returntype", Promise)
61708
+ ], ComponentLibraryResolver.prototype, "RunComponentLibraryViewByID", null);
61709
+ __decorate([
61710
+ Query(() => RunComponentLibraryViewResult),
61711
+ __param(0, Arg('input', () => RunViewByNameInput)),
61712
+ __param(1, Ctx()),
61713
+ __param(2, PubSub()),
61714
+ __metadata("design:type", Function),
61715
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
61716
+ __metadata("design:returntype", Promise)
61717
+ ], ComponentLibraryResolver.prototype, "RunComponentLibraryViewByName", null);
61718
+ __decorate([
61719
+ Query(() => RunComponentLibraryViewResult),
61720
+ __param(0, Arg('input', () => RunDynamicViewInput)),
61721
+ __param(1, Ctx()),
61722
+ __param(2, PubSub()),
61723
+ __metadata("design:type", Function),
61724
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
61725
+ __metadata("design:returntype", Promise)
61726
+ ], ComponentLibraryResolver.prototype, "RunComponentLibraryDynamicView", null);
61727
+ __decorate([
61728
+ Query(() => ComponentLibrary_, { nullable: true }),
61729
+ __param(0, Arg('ID', () => String)),
61730
+ __param(1, Ctx()),
61731
+ __param(2, PubSub()),
61732
+ __metadata("design:type", Function),
61733
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
61734
+ __metadata("design:returntype", Promise)
61735
+ ], ComponentLibraryResolver.prototype, "ComponentLibrary", null);
61736
+ __decorate([
61737
+ FieldResolver(() => [ComponentLibraryLink_]),
61738
+ __param(0, Root()),
61739
+ __param(1, Ctx()),
61740
+ __param(2, PubSub()),
61741
+ __metadata("design:type", Function),
61742
+ __metadata("design:paramtypes", [ComponentLibrary_, Object, PubSubEngine]),
61743
+ __metadata("design:returntype", Promise)
61744
+ ], ComponentLibraryResolver.prototype, "MJ_ComponentLibraryLinks_LibraryIDArray", null);
61745
+ __decorate([
61746
+ Mutation(() => ComponentLibrary_),
61747
+ __param(0, Arg('input', () => CreateComponentLibraryInput)),
61748
+ __param(1, Ctx()),
61749
+ __param(2, PubSub()),
61750
+ __metadata("design:type", Function),
61751
+ __metadata("design:paramtypes", [CreateComponentLibraryInput, Object, PubSubEngine]),
61752
+ __metadata("design:returntype", Promise)
61753
+ ], ComponentLibraryResolver.prototype, "CreateComponentLibrary", null);
61754
+ __decorate([
61755
+ Mutation(() => ComponentLibrary_),
61756
+ __param(0, Arg('input', () => UpdateComponentLibraryInput)),
61757
+ __param(1, Ctx()),
61758
+ __param(2, PubSub()),
61759
+ __metadata("design:type", Function),
61760
+ __metadata("design:paramtypes", [UpdateComponentLibraryInput, Object, PubSubEngine]),
61761
+ __metadata("design:returntype", Promise)
61762
+ ], ComponentLibraryResolver.prototype, "UpdateComponentLibrary", null);
61763
+ __decorate([
61764
+ Mutation(() => ComponentLibrary_),
61765
+ __param(0, Arg('ID', () => String)),
61766
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
61767
+ __param(2, Ctx()),
61768
+ __param(3, PubSub()),
61769
+ __metadata("design:type", Function),
61770
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
61771
+ __metadata("design:returntype", Promise)
61772
+ ], ComponentLibraryResolver.prototype, "DeleteComponentLibrary", null);
61773
+ ComponentLibraryResolver = __decorate([
61774
+ Resolver(ComponentLibrary_)
61775
+ ], ComponentLibraryResolver);
61776
+ export { ComponentLibraryResolver };
60260
61777
  let DashboardUserPreference_ = class DashboardUserPreference_ {
60261
61778
  ID;
60262
61779
  UserID;
@@ -60908,6 +62425,520 @@ QueryParameterResolver = __decorate([
60908
62425
  Resolver(QueryParameter_)
60909
62426
  ], QueryParameterResolver);
60910
62427
  export { QueryParameterResolver };
62428
+ let AIAgentRelationship_ = class AIAgentRelationship_ {
62429
+ ID;
62430
+ AgentID;
62431
+ SubAgentID;
62432
+ Status;
62433
+ _mj__CreatedAt;
62434
+ _mj__UpdatedAt;
62435
+ Agent;
62436
+ SubAgent;
62437
+ };
62438
+ __decorate([
62439
+ Field({ description: `Primary key for AI agent relationships` }),
62440
+ MaxLength(16),
62441
+ __metadata("design:type", String)
62442
+ ], AIAgentRelationship_.prototype, "ID", void 0);
62443
+ __decorate([
62444
+ Field({ description: `Foreign key to parent AIAgent that can invoke the sub-agent` }),
62445
+ MaxLength(16),
62446
+ __metadata("design:type", String)
62447
+ ], AIAgentRelationship_.prototype, "AgentID", void 0);
62448
+ __decorate([
62449
+ Field({ description: `Foreign key to sub-agent AIAgent that can be invoked` }),
62450
+ MaxLength(16),
62451
+ __metadata("design:type", String)
62452
+ ], AIAgentRelationship_.prototype, "SubAgentID", void 0);
62453
+ __decorate([
62454
+ Field({ description: `Status of the relationship: Pending (awaiting approval), Active (can invoke), or Revoked (no longer allowed)` }),
62455
+ MaxLength(100),
62456
+ __metadata("design:type", String)
62457
+ ], AIAgentRelationship_.prototype, "Status", void 0);
62458
+ __decorate([
62459
+ Field(),
62460
+ MaxLength(10),
62461
+ __metadata("design:type", Date)
62462
+ ], AIAgentRelationship_.prototype, "_mj__CreatedAt", void 0);
62463
+ __decorate([
62464
+ Field(),
62465
+ MaxLength(10),
62466
+ __metadata("design:type", Date)
62467
+ ], AIAgentRelationship_.prototype, "_mj__UpdatedAt", void 0);
62468
+ __decorate([
62469
+ Field({ nullable: true }),
62470
+ MaxLength(510),
62471
+ __metadata("design:type", String)
62472
+ ], AIAgentRelationship_.prototype, "Agent", void 0);
62473
+ __decorate([
62474
+ Field({ nullable: true }),
62475
+ MaxLength(510),
62476
+ __metadata("design:type", String)
62477
+ ], AIAgentRelationship_.prototype, "SubAgent", void 0);
62478
+ AIAgentRelationship_ = __decorate([
62479
+ ObjectType({ description: `Tracks relationships between AI agents for sub-agent orchestration` })
62480
+ ], AIAgentRelationship_);
62481
+ export { AIAgentRelationship_ };
62482
+ let CreateAIAgentRelationshipInput = class CreateAIAgentRelationshipInput {
62483
+ ID;
62484
+ AgentID;
62485
+ SubAgentID;
62486
+ Status;
62487
+ };
62488
+ __decorate([
62489
+ Field({ nullable: true }),
62490
+ __metadata("design:type", String)
62491
+ ], CreateAIAgentRelationshipInput.prototype, "ID", void 0);
62492
+ __decorate([
62493
+ Field({ nullable: true }),
62494
+ __metadata("design:type", String)
62495
+ ], CreateAIAgentRelationshipInput.prototype, "AgentID", void 0);
62496
+ __decorate([
62497
+ Field({ nullable: true }),
62498
+ __metadata("design:type", String)
62499
+ ], CreateAIAgentRelationshipInput.prototype, "SubAgentID", void 0);
62500
+ __decorate([
62501
+ Field({ nullable: true }),
62502
+ __metadata("design:type", String)
62503
+ ], CreateAIAgentRelationshipInput.prototype, "Status", void 0);
62504
+ CreateAIAgentRelationshipInput = __decorate([
62505
+ InputType()
62506
+ ], CreateAIAgentRelationshipInput);
62507
+ export { CreateAIAgentRelationshipInput };
62508
+ let UpdateAIAgentRelationshipInput = class UpdateAIAgentRelationshipInput {
62509
+ ID;
62510
+ AgentID;
62511
+ SubAgentID;
62512
+ Status;
62513
+ OldValues___;
62514
+ };
62515
+ __decorate([
62516
+ Field(),
62517
+ __metadata("design:type", String)
62518
+ ], UpdateAIAgentRelationshipInput.prototype, "ID", void 0);
62519
+ __decorate([
62520
+ Field({ nullable: true }),
62521
+ __metadata("design:type", String)
62522
+ ], UpdateAIAgentRelationshipInput.prototype, "AgentID", void 0);
62523
+ __decorate([
62524
+ Field({ nullable: true }),
62525
+ __metadata("design:type", String)
62526
+ ], UpdateAIAgentRelationshipInput.prototype, "SubAgentID", void 0);
62527
+ __decorate([
62528
+ Field({ nullable: true }),
62529
+ __metadata("design:type", String)
62530
+ ], UpdateAIAgentRelationshipInput.prototype, "Status", void 0);
62531
+ __decorate([
62532
+ Field(() => [KeyValuePairInput], { nullable: true }),
62533
+ __metadata("design:type", Array)
62534
+ ], UpdateAIAgentRelationshipInput.prototype, "OldValues___", void 0);
62535
+ UpdateAIAgentRelationshipInput = __decorate([
62536
+ InputType()
62537
+ ], UpdateAIAgentRelationshipInput);
62538
+ export { UpdateAIAgentRelationshipInput };
62539
+ let RunAIAgentRelationshipViewResult = class RunAIAgentRelationshipViewResult {
62540
+ Results;
62541
+ UserViewRunID;
62542
+ RowCount;
62543
+ TotalRowCount;
62544
+ ExecutionTime;
62545
+ ErrorMessage;
62546
+ Success;
62547
+ };
62548
+ __decorate([
62549
+ Field(() => [AIAgentRelationship_]),
62550
+ __metadata("design:type", Array)
62551
+ ], RunAIAgentRelationshipViewResult.prototype, "Results", void 0);
62552
+ __decorate([
62553
+ Field(() => String, { nullable: true }),
62554
+ __metadata("design:type", String)
62555
+ ], RunAIAgentRelationshipViewResult.prototype, "UserViewRunID", void 0);
62556
+ __decorate([
62557
+ Field(() => Int, { nullable: true }),
62558
+ __metadata("design:type", Number)
62559
+ ], RunAIAgentRelationshipViewResult.prototype, "RowCount", void 0);
62560
+ __decorate([
62561
+ Field(() => Int, { nullable: true }),
62562
+ __metadata("design:type", Number)
62563
+ ], RunAIAgentRelationshipViewResult.prototype, "TotalRowCount", void 0);
62564
+ __decorate([
62565
+ Field(() => Int, { nullable: true }),
62566
+ __metadata("design:type", Number)
62567
+ ], RunAIAgentRelationshipViewResult.prototype, "ExecutionTime", void 0);
62568
+ __decorate([
62569
+ Field({ nullable: true }),
62570
+ __metadata("design:type", String)
62571
+ ], RunAIAgentRelationshipViewResult.prototype, "ErrorMessage", void 0);
62572
+ __decorate([
62573
+ Field(() => Boolean, { nullable: false }),
62574
+ __metadata("design:type", Boolean)
62575
+ ], RunAIAgentRelationshipViewResult.prototype, "Success", void 0);
62576
+ RunAIAgentRelationshipViewResult = __decorate([
62577
+ ObjectType()
62578
+ ], RunAIAgentRelationshipViewResult);
62579
+ export { RunAIAgentRelationshipViewResult };
62580
+ let AIAgentRelationshipResolver = class AIAgentRelationshipResolver extends ResolverBase {
62581
+ async RunAIAgentRelationshipViewByID(input, { providers, userPayload }, pubSub) {
62582
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62583
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
62584
+ }
62585
+ async RunAIAgentRelationshipViewByName(input, { providers, userPayload }, pubSub) {
62586
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62587
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
62588
+ }
62589
+ async RunAIAgentRelationshipDynamicView(input, { providers, userPayload }, pubSub) {
62590
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62591
+ input.EntityName = 'MJ: AI Agent Relationships';
62592
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
62593
+ }
62594
+ async AIAgentRelationship(ID, { dataSources, userPayload, providers }, pubSub) {
62595
+ this.CheckUserReadPermissions('MJ: AI Agent Relationships', userPayload);
62596
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62597
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
62598
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRelationships] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Relationships', userPayload, EntityPermissionType.Read, 'AND');
62599
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
62600
+ const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows && rows.length > 0 ? rows[0] : {});
62601
+ return result;
62602
+ }
62603
+ async CreateAIAgentRelationship(input, { providers, userPayload }, pubSub) {
62604
+ const provider = GetReadWriteProvider(providers);
62605
+ return this.CreateRecord('MJ: AI Agent Relationships', input, provider, userPayload, pubSub);
62606
+ }
62607
+ async UpdateAIAgentRelationship(input, { providers, userPayload }, pubSub) {
62608
+ const provider = GetReadWriteProvider(providers);
62609
+ return this.UpdateRecord('MJ: AI Agent Relationships', input, provider, userPayload, pubSub);
62610
+ }
62611
+ async DeleteAIAgentRelationship(ID, options, { providers, userPayload }, pubSub) {
62612
+ const provider = GetReadWriteProvider(providers);
62613
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
62614
+ return this.DeleteRecord('MJ: AI Agent Relationships', key, options, provider, userPayload, pubSub);
62615
+ }
62616
+ };
62617
+ __decorate([
62618
+ Query(() => RunAIAgentRelationshipViewResult),
62619
+ __param(0, Arg('input', () => RunViewByIDInput)),
62620
+ __param(1, Ctx()),
62621
+ __param(2, PubSub()),
62622
+ __metadata("design:type", Function),
62623
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
62624
+ __metadata("design:returntype", Promise)
62625
+ ], AIAgentRelationshipResolver.prototype, "RunAIAgentRelationshipViewByID", null);
62626
+ __decorate([
62627
+ Query(() => RunAIAgentRelationshipViewResult),
62628
+ __param(0, Arg('input', () => RunViewByNameInput)),
62629
+ __param(1, Ctx()),
62630
+ __param(2, PubSub()),
62631
+ __metadata("design:type", Function),
62632
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
62633
+ __metadata("design:returntype", Promise)
62634
+ ], AIAgentRelationshipResolver.prototype, "RunAIAgentRelationshipViewByName", null);
62635
+ __decorate([
62636
+ Query(() => RunAIAgentRelationshipViewResult),
62637
+ __param(0, Arg('input', () => RunDynamicViewInput)),
62638
+ __param(1, Ctx()),
62639
+ __param(2, PubSub()),
62640
+ __metadata("design:type", Function),
62641
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
62642
+ __metadata("design:returntype", Promise)
62643
+ ], AIAgentRelationshipResolver.prototype, "RunAIAgentRelationshipDynamicView", null);
62644
+ __decorate([
62645
+ Query(() => AIAgentRelationship_, { nullable: true }),
62646
+ __param(0, Arg('ID', () => String)),
62647
+ __param(1, Ctx()),
62648
+ __param(2, PubSub()),
62649
+ __metadata("design:type", Function),
62650
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
62651
+ __metadata("design:returntype", Promise)
62652
+ ], AIAgentRelationshipResolver.prototype, "AIAgentRelationship", null);
62653
+ __decorate([
62654
+ Mutation(() => AIAgentRelationship_),
62655
+ __param(0, Arg('input', () => CreateAIAgentRelationshipInput)),
62656
+ __param(1, Ctx()),
62657
+ __param(2, PubSub()),
62658
+ __metadata("design:type", Function),
62659
+ __metadata("design:paramtypes", [CreateAIAgentRelationshipInput, Object, PubSubEngine]),
62660
+ __metadata("design:returntype", Promise)
62661
+ ], AIAgentRelationshipResolver.prototype, "CreateAIAgentRelationship", null);
62662
+ __decorate([
62663
+ Mutation(() => AIAgentRelationship_),
62664
+ __param(0, Arg('input', () => UpdateAIAgentRelationshipInput)),
62665
+ __param(1, Ctx()),
62666
+ __param(2, PubSub()),
62667
+ __metadata("design:type", Function),
62668
+ __metadata("design:paramtypes", [UpdateAIAgentRelationshipInput, Object, PubSubEngine]),
62669
+ __metadata("design:returntype", Promise)
62670
+ ], AIAgentRelationshipResolver.prototype, "UpdateAIAgentRelationship", null);
62671
+ __decorate([
62672
+ Mutation(() => AIAgentRelationship_),
62673
+ __param(0, Arg('ID', () => String)),
62674
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
62675
+ __param(2, Ctx()),
62676
+ __param(3, PubSub()),
62677
+ __metadata("design:type", Function),
62678
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
62679
+ __metadata("design:returntype", Promise)
62680
+ ], AIAgentRelationshipResolver.prototype, "DeleteAIAgentRelationship", null);
62681
+ AIAgentRelationshipResolver = __decorate([
62682
+ Resolver(AIAgentRelationship_)
62683
+ ], AIAgentRelationshipResolver);
62684
+ export { AIAgentRelationshipResolver };
62685
+ let ComponentLibraryLink_ = class ComponentLibraryLink_ {
62686
+ ID;
62687
+ ComponentID;
62688
+ LibraryID;
62689
+ MinVersion;
62690
+ _mj__CreatedAt;
62691
+ _mj__UpdatedAt;
62692
+ Component;
62693
+ Library;
62694
+ };
62695
+ __decorate([
62696
+ Field({ description: `Primary key for component-library relationship` }),
62697
+ MaxLength(16),
62698
+ __metadata("design:type", String)
62699
+ ], ComponentLibraryLink_.prototype, "ID", void 0);
62700
+ __decorate([
62701
+ Field({ description: `Foreign key to Component that depends on the library` }),
62702
+ MaxLength(16),
62703
+ __metadata("design:type", String)
62704
+ ], ComponentLibraryLink_.prototype, "ComponentID", void 0);
62705
+ __decorate([
62706
+ Field({ description: `Foreign key to ComponentLibrary that the component depends on` }),
62707
+ MaxLength(16),
62708
+ __metadata("design:type", String)
62709
+ ], ComponentLibraryLink_.prototype, "LibraryID", void 0);
62710
+ __decorate([
62711
+ Field({ nullable: true, description: `Minimum version requirement using semantic versioning (e.g., ^1.0.0, ~2.5.0)` }),
62712
+ MaxLength(200),
62713
+ __metadata("design:type", String)
62714
+ ], ComponentLibraryLink_.prototype, "MinVersion", void 0);
62715
+ __decorate([
62716
+ Field(),
62717
+ MaxLength(10),
62718
+ __metadata("design:type", Date)
62719
+ ], ComponentLibraryLink_.prototype, "_mj__CreatedAt", void 0);
62720
+ __decorate([
62721
+ Field(),
62722
+ MaxLength(10),
62723
+ __metadata("design:type", Date)
62724
+ ], ComponentLibraryLink_.prototype, "_mj__UpdatedAt", void 0);
62725
+ __decorate([
62726
+ Field(),
62727
+ MaxLength(1000),
62728
+ __metadata("design:type", String)
62729
+ ], ComponentLibraryLink_.prototype, "Component", void 0);
62730
+ __decorate([
62731
+ Field(),
62732
+ MaxLength(1000),
62733
+ __metadata("design:type", String)
62734
+ ], ComponentLibraryLink_.prototype, "Library", void 0);
62735
+ ComponentLibraryLink_ = __decorate([
62736
+ ObjectType({ description: `Links components to their third-party library dependencies` })
62737
+ ], ComponentLibraryLink_);
62738
+ export { ComponentLibraryLink_ };
62739
+ let CreateComponentLibraryLinkInput = class CreateComponentLibraryLinkInput {
62740
+ ID;
62741
+ ComponentID;
62742
+ LibraryID;
62743
+ MinVersion;
62744
+ };
62745
+ __decorate([
62746
+ Field({ nullable: true }),
62747
+ __metadata("design:type", String)
62748
+ ], CreateComponentLibraryLinkInput.prototype, "ID", void 0);
62749
+ __decorate([
62750
+ Field({ nullable: true }),
62751
+ __metadata("design:type", String)
62752
+ ], CreateComponentLibraryLinkInput.prototype, "ComponentID", void 0);
62753
+ __decorate([
62754
+ Field({ nullable: true }),
62755
+ __metadata("design:type", String)
62756
+ ], CreateComponentLibraryLinkInput.prototype, "LibraryID", void 0);
62757
+ __decorate([
62758
+ Field({ nullable: true }),
62759
+ __metadata("design:type", String)
62760
+ ], CreateComponentLibraryLinkInput.prototype, "MinVersion", void 0);
62761
+ CreateComponentLibraryLinkInput = __decorate([
62762
+ InputType()
62763
+ ], CreateComponentLibraryLinkInput);
62764
+ export { CreateComponentLibraryLinkInput };
62765
+ let UpdateComponentLibraryLinkInput = class UpdateComponentLibraryLinkInput {
62766
+ ID;
62767
+ ComponentID;
62768
+ LibraryID;
62769
+ MinVersion;
62770
+ OldValues___;
62771
+ };
62772
+ __decorate([
62773
+ Field(),
62774
+ __metadata("design:type", String)
62775
+ ], UpdateComponentLibraryLinkInput.prototype, "ID", void 0);
62776
+ __decorate([
62777
+ Field({ nullable: true }),
62778
+ __metadata("design:type", String)
62779
+ ], UpdateComponentLibraryLinkInput.prototype, "ComponentID", void 0);
62780
+ __decorate([
62781
+ Field({ nullable: true }),
62782
+ __metadata("design:type", String)
62783
+ ], UpdateComponentLibraryLinkInput.prototype, "LibraryID", void 0);
62784
+ __decorate([
62785
+ Field({ nullable: true }),
62786
+ __metadata("design:type", String)
62787
+ ], UpdateComponentLibraryLinkInput.prototype, "MinVersion", void 0);
62788
+ __decorate([
62789
+ Field(() => [KeyValuePairInput], { nullable: true }),
62790
+ __metadata("design:type", Array)
62791
+ ], UpdateComponentLibraryLinkInput.prototype, "OldValues___", void 0);
62792
+ UpdateComponentLibraryLinkInput = __decorate([
62793
+ InputType()
62794
+ ], UpdateComponentLibraryLinkInput);
62795
+ export { UpdateComponentLibraryLinkInput };
62796
+ let RunComponentLibraryLinkViewResult = class RunComponentLibraryLinkViewResult {
62797
+ Results;
62798
+ UserViewRunID;
62799
+ RowCount;
62800
+ TotalRowCount;
62801
+ ExecutionTime;
62802
+ ErrorMessage;
62803
+ Success;
62804
+ };
62805
+ __decorate([
62806
+ Field(() => [ComponentLibraryLink_]),
62807
+ __metadata("design:type", Array)
62808
+ ], RunComponentLibraryLinkViewResult.prototype, "Results", void 0);
62809
+ __decorate([
62810
+ Field(() => String, { nullable: true }),
62811
+ __metadata("design:type", String)
62812
+ ], RunComponentLibraryLinkViewResult.prototype, "UserViewRunID", void 0);
62813
+ __decorate([
62814
+ Field(() => Int, { nullable: true }),
62815
+ __metadata("design:type", Number)
62816
+ ], RunComponentLibraryLinkViewResult.prototype, "RowCount", void 0);
62817
+ __decorate([
62818
+ Field(() => Int, { nullable: true }),
62819
+ __metadata("design:type", Number)
62820
+ ], RunComponentLibraryLinkViewResult.prototype, "TotalRowCount", void 0);
62821
+ __decorate([
62822
+ Field(() => Int, { nullable: true }),
62823
+ __metadata("design:type", Number)
62824
+ ], RunComponentLibraryLinkViewResult.prototype, "ExecutionTime", void 0);
62825
+ __decorate([
62826
+ Field({ nullable: true }),
62827
+ __metadata("design:type", String)
62828
+ ], RunComponentLibraryLinkViewResult.prototype, "ErrorMessage", void 0);
62829
+ __decorate([
62830
+ Field(() => Boolean, { nullable: false }),
62831
+ __metadata("design:type", Boolean)
62832
+ ], RunComponentLibraryLinkViewResult.prototype, "Success", void 0);
62833
+ RunComponentLibraryLinkViewResult = __decorate([
62834
+ ObjectType()
62835
+ ], RunComponentLibraryLinkViewResult);
62836
+ export { RunComponentLibraryLinkViewResult };
62837
+ let ComponentLibraryLinkResolver = class ComponentLibraryLinkResolver extends ResolverBase {
62838
+ async RunComponentLibraryLinkViewByID(input, { providers, userPayload }, pubSub) {
62839
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62840
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
62841
+ }
62842
+ async RunComponentLibraryLinkViewByName(input, { providers, userPayload }, pubSub) {
62843
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62844
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
62845
+ }
62846
+ async RunComponentLibraryLinkDynamicView(input, { providers, userPayload }, pubSub) {
62847
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62848
+ input.EntityName = 'MJ: Component Library Links';
62849
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
62850
+ }
62851
+ async ComponentLibraryLink(ID, { dataSources, userPayload, providers }, pubSub) {
62852
+ this.CheckUserReadPermissions('MJ: Component Library Links', userPayload);
62853
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62854
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
62855
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwComponentLibraryLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Library Links', userPayload, EntityPermissionType.Read, 'AND');
62856
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
62857
+ const result = this.MapFieldNamesToCodeNames('MJ: Component Library Links', rows && rows.length > 0 ? rows[0] : {});
62858
+ return result;
62859
+ }
62860
+ async CreateComponentLibraryLink(input, { providers, userPayload }, pubSub) {
62861
+ const provider = GetReadWriteProvider(providers);
62862
+ return this.CreateRecord('MJ: Component Library Links', input, provider, userPayload, pubSub);
62863
+ }
62864
+ async UpdateComponentLibraryLink(input, { providers, userPayload }, pubSub) {
62865
+ const provider = GetReadWriteProvider(providers);
62866
+ return this.UpdateRecord('MJ: Component Library Links', input, provider, userPayload, pubSub);
62867
+ }
62868
+ async DeleteComponentLibraryLink(ID, options, { providers, userPayload }, pubSub) {
62869
+ const provider = GetReadWriteProvider(providers);
62870
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
62871
+ return this.DeleteRecord('MJ: Component Library Links', key, options, provider, userPayload, pubSub);
62872
+ }
62873
+ };
62874
+ __decorate([
62875
+ Query(() => RunComponentLibraryLinkViewResult),
62876
+ __param(0, Arg('input', () => RunViewByIDInput)),
62877
+ __param(1, Ctx()),
62878
+ __param(2, PubSub()),
62879
+ __metadata("design:type", Function),
62880
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
62881
+ __metadata("design:returntype", Promise)
62882
+ ], ComponentLibraryLinkResolver.prototype, "RunComponentLibraryLinkViewByID", null);
62883
+ __decorate([
62884
+ Query(() => RunComponentLibraryLinkViewResult),
62885
+ __param(0, Arg('input', () => RunViewByNameInput)),
62886
+ __param(1, Ctx()),
62887
+ __param(2, PubSub()),
62888
+ __metadata("design:type", Function),
62889
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
62890
+ __metadata("design:returntype", Promise)
62891
+ ], ComponentLibraryLinkResolver.prototype, "RunComponentLibraryLinkViewByName", null);
62892
+ __decorate([
62893
+ Query(() => RunComponentLibraryLinkViewResult),
62894
+ __param(0, Arg('input', () => RunDynamicViewInput)),
62895
+ __param(1, Ctx()),
62896
+ __param(2, PubSub()),
62897
+ __metadata("design:type", Function),
62898
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
62899
+ __metadata("design:returntype", Promise)
62900
+ ], ComponentLibraryLinkResolver.prototype, "RunComponentLibraryLinkDynamicView", null);
62901
+ __decorate([
62902
+ Query(() => ComponentLibraryLink_, { nullable: true }),
62903
+ __param(0, Arg('ID', () => String)),
62904
+ __param(1, Ctx()),
62905
+ __param(2, PubSub()),
62906
+ __metadata("design:type", Function),
62907
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
62908
+ __metadata("design:returntype", Promise)
62909
+ ], ComponentLibraryLinkResolver.prototype, "ComponentLibraryLink", null);
62910
+ __decorate([
62911
+ Mutation(() => ComponentLibraryLink_),
62912
+ __param(0, Arg('input', () => CreateComponentLibraryLinkInput)),
62913
+ __param(1, Ctx()),
62914
+ __param(2, PubSub()),
62915
+ __metadata("design:type", Function),
62916
+ __metadata("design:paramtypes", [CreateComponentLibraryLinkInput, Object, PubSubEngine]),
62917
+ __metadata("design:returntype", Promise)
62918
+ ], ComponentLibraryLinkResolver.prototype, "CreateComponentLibraryLink", null);
62919
+ __decorate([
62920
+ Mutation(() => ComponentLibraryLink_),
62921
+ __param(0, Arg('input', () => UpdateComponentLibraryLinkInput)),
62922
+ __param(1, Ctx()),
62923
+ __param(2, PubSub()),
62924
+ __metadata("design:type", Function),
62925
+ __metadata("design:paramtypes", [UpdateComponentLibraryLinkInput, Object, PubSubEngine]),
62926
+ __metadata("design:returntype", Promise)
62927
+ ], ComponentLibraryLinkResolver.prototype, "UpdateComponentLibraryLink", null);
62928
+ __decorate([
62929
+ Mutation(() => ComponentLibraryLink_),
62930
+ __param(0, Arg('ID', () => String)),
62931
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
62932
+ __param(2, Ctx()),
62933
+ __param(3, PubSub()),
62934
+ __metadata("design:type", Function),
62935
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
62936
+ __metadata("design:returntype", Promise)
62937
+ ], ComponentLibraryLinkResolver.prototype, "DeleteComponentLibraryLink", null);
62938
+ ComponentLibraryLinkResolver = __decorate([
62939
+ Resolver(ComponentLibraryLink_)
62940
+ ], ComponentLibraryLinkResolver);
62941
+ export { ComponentLibraryLinkResolver };
60911
62942
  let ContentProcessRun_ = class ContentProcessRun_ {
60912
62943
  ID;
60913
62944
  SourceID;