@memberjunction/server 2.28.0 → 2.29.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.
- package/dist/generated/generated.d.ts +21 -59
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +114 -353
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +2 -0
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +27 -0
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/package.json +22 -22
- package/src/generated/generated.ts +71 -225
- package/src/resolvers/QueryResolver.ts +19 -0
|
@@ -1555,341 +1555,6 @@ AIAgentNoteTypeResolver = __decorate([
|
|
|
1555
1555
|
Resolver(AIAgentNoteType_)
|
|
1556
1556
|
], AIAgentNoteTypeResolver);
|
|
1557
1557
|
export { AIAgentNoteTypeResolver };
|
|
1558
|
-
let flyway_schema_history_ = class flyway_schema_history_ {
|
|
1559
|
-
installed_rank;
|
|
1560
|
-
version;
|
|
1561
|
-
description;
|
|
1562
|
-
type;
|
|
1563
|
-
script;
|
|
1564
|
-
checksum;
|
|
1565
|
-
installed_by;
|
|
1566
|
-
installed_on;
|
|
1567
|
-
execution_time;
|
|
1568
|
-
success;
|
|
1569
|
-
_mj__CreatedAt;
|
|
1570
|
-
_mj__UpdatedAt;
|
|
1571
|
-
};
|
|
1572
|
-
__decorate([
|
|
1573
|
-
Field(() => Int),
|
|
1574
|
-
__metadata("design:type", Number)
|
|
1575
|
-
], flyway_schema_history_.prototype, "installed_rank", void 0);
|
|
1576
|
-
__decorate([
|
|
1577
|
-
Field({ nullable: true }),
|
|
1578
|
-
MaxLength(100),
|
|
1579
|
-
__metadata("design:type", String)
|
|
1580
|
-
], flyway_schema_history_.prototype, "version", void 0);
|
|
1581
|
-
__decorate([
|
|
1582
|
-
Field({ nullable: true }),
|
|
1583
|
-
MaxLength(400),
|
|
1584
|
-
__metadata("design:type", String)
|
|
1585
|
-
], flyway_schema_history_.prototype, "description", void 0);
|
|
1586
|
-
__decorate([
|
|
1587
|
-
Field(),
|
|
1588
|
-
MaxLength(40),
|
|
1589
|
-
__metadata("design:type", String)
|
|
1590
|
-
], flyway_schema_history_.prototype, "type", void 0);
|
|
1591
|
-
__decorate([
|
|
1592
|
-
Field(),
|
|
1593
|
-
MaxLength(2000),
|
|
1594
|
-
__metadata("design:type", String)
|
|
1595
|
-
], flyway_schema_history_.prototype, "script", void 0);
|
|
1596
|
-
__decorate([
|
|
1597
|
-
Field(() => Int, { nullable: true }),
|
|
1598
|
-
__metadata("design:type", Number)
|
|
1599
|
-
], flyway_schema_history_.prototype, "checksum", void 0);
|
|
1600
|
-
__decorate([
|
|
1601
|
-
Field(),
|
|
1602
|
-
MaxLength(200),
|
|
1603
|
-
__metadata("design:type", String)
|
|
1604
|
-
], flyway_schema_history_.prototype, "installed_by", void 0);
|
|
1605
|
-
__decorate([
|
|
1606
|
-
Field(),
|
|
1607
|
-
MaxLength(8),
|
|
1608
|
-
__metadata("design:type", Date)
|
|
1609
|
-
], flyway_schema_history_.prototype, "installed_on", void 0);
|
|
1610
|
-
__decorate([
|
|
1611
|
-
Field(() => Int),
|
|
1612
|
-
__metadata("design:type", Number)
|
|
1613
|
-
], flyway_schema_history_.prototype, "execution_time", void 0);
|
|
1614
|
-
__decorate([
|
|
1615
|
-
Field(() => Boolean),
|
|
1616
|
-
__metadata("design:type", Boolean)
|
|
1617
|
-
], flyway_schema_history_.prototype, "success", void 0);
|
|
1618
|
-
__decorate([
|
|
1619
|
-
Field(),
|
|
1620
|
-
MaxLength(10),
|
|
1621
|
-
__metadata("design:type", Date)
|
|
1622
|
-
], flyway_schema_history_.prototype, "_mj__CreatedAt", void 0);
|
|
1623
|
-
__decorate([
|
|
1624
|
-
Field(),
|
|
1625
|
-
MaxLength(10),
|
|
1626
|
-
__metadata("design:type", Date)
|
|
1627
|
-
], flyway_schema_history_.prototype, "_mj__UpdatedAt", void 0);
|
|
1628
|
-
flyway_schema_history_ = __decorate([
|
|
1629
|
-
ObjectType()
|
|
1630
|
-
], flyway_schema_history_);
|
|
1631
|
-
export { flyway_schema_history_ };
|
|
1632
|
-
let Createflyway_schema_historyInput = class Createflyway_schema_historyInput {
|
|
1633
|
-
installed_rank;
|
|
1634
|
-
version;
|
|
1635
|
-
description;
|
|
1636
|
-
type;
|
|
1637
|
-
script;
|
|
1638
|
-
checksum;
|
|
1639
|
-
installed_by;
|
|
1640
|
-
installed_on;
|
|
1641
|
-
execution_time;
|
|
1642
|
-
success;
|
|
1643
|
-
};
|
|
1644
|
-
__decorate([
|
|
1645
|
-
Field(() => Int),
|
|
1646
|
-
__metadata("design:type", Number)
|
|
1647
|
-
], Createflyway_schema_historyInput.prototype, "installed_rank", void 0);
|
|
1648
|
-
__decorate([
|
|
1649
|
-
Field({ nullable: true }),
|
|
1650
|
-
__metadata("design:type", String)
|
|
1651
|
-
], Createflyway_schema_historyInput.prototype, "version", void 0);
|
|
1652
|
-
__decorate([
|
|
1653
|
-
Field({ nullable: true }),
|
|
1654
|
-
__metadata("design:type", String)
|
|
1655
|
-
], Createflyway_schema_historyInput.prototype, "description", void 0);
|
|
1656
|
-
__decorate([
|
|
1657
|
-
Field({ nullable: true }),
|
|
1658
|
-
__metadata("design:type", String)
|
|
1659
|
-
], Createflyway_schema_historyInput.prototype, "type", void 0);
|
|
1660
|
-
__decorate([
|
|
1661
|
-
Field({ nullable: true }),
|
|
1662
|
-
__metadata("design:type", String)
|
|
1663
|
-
], Createflyway_schema_historyInput.prototype, "script", void 0);
|
|
1664
|
-
__decorate([
|
|
1665
|
-
Field(() => Int, { nullable: true }),
|
|
1666
|
-
__metadata("design:type", Number)
|
|
1667
|
-
], Createflyway_schema_historyInput.prototype, "checksum", void 0);
|
|
1668
|
-
__decorate([
|
|
1669
|
-
Field({ nullable: true }),
|
|
1670
|
-
__metadata("design:type", String)
|
|
1671
|
-
], Createflyway_schema_historyInput.prototype, "installed_by", void 0);
|
|
1672
|
-
__decorate([
|
|
1673
|
-
Field({ nullable: true }),
|
|
1674
|
-
__metadata("design:type", Date)
|
|
1675
|
-
], Createflyway_schema_historyInput.prototype, "installed_on", void 0);
|
|
1676
|
-
__decorate([
|
|
1677
|
-
Field(() => Int, { nullable: true }),
|
|
1678
|
-
__metadata("design:type", Number)
|
|
1679
|
-
], Createflyway_schema_historyInput.prototype, "execution_time", void 0);
|
|
1680
|
-
__decorate([
|
|
1681
|
-
Field(() => Boolean, { nullable: true }),
|
|
1682
|
-
__metadata("design:type", Boolean)
|
|
1683
|
-
], Createflyway_schema_historyInput.prototype, "success", void 0);
|
|
1684
|
-
Createflyway_schema_historyInput = __decorate([
|
|
1685
|
-
InputType()
|
|
1686
|
-
], Createflyway_schema_historyInput);
|
|
1687
|
-
export { Createflyway_schema_historyInput };
|
|
1688
|
-
let Updateflyway_schema_historyInput = class Updateflyway_schema_historyInput {
|
|
1689
|
-
installed_rank;
|
|
1690
|
-
version;
|
|
1691
|
-
description;
|
|
1692
|
-
type;
|
|
1693
|
-
script;
|
|
1694
|
-
checksum;
|
|
1695
|
-
installed_by;
|
|
1696
|
-
installed_on;
|
|
1697
|
-
execution_time;
|
|
1698
|
-
success;
|
|
1699
|
-
OldValues___;
|
|
1700
|
-
};
|
|
1701
|
-
__decorate([
|
|
1702
|
-
Field(() => Int),
|
|
1703
|
-
__metadata("design:type", Number)
|
|
1704
|
-
], Updateflyway_schema_historyInput.prototype, "installed_rank", void 0);
|
|
1705
|
-
__decorate([
|
|
1706
|
-
Field({ nullable: true }),
|
|
1707
|
-
__metadata("design:type", String)
|
|
1708
|
-
], Updateflyway_schema_historyInput.prototype, "version", void 0);
|
|
1709
|
-
__decorate([
|
|
1710
|
-
Field({ nullable: true }),
|
|
1711
|
-
__metadata("design:type", String)
|
|
1712
|
-
], Updateflyway_schema_historyInput.prototype, "description", void 0);
|
|
1713
|
-
__decorate([
|
|
1714
|
-
Field({ nullable: true }),
|
|
1715
|
-
__metadata("design:type", String)
|
|
1716
|
-
], Updateflyway_schema_historyInput.prototype, "type", void 0);
|
|
1717
|
-
__decorate([
|
|
1718
|
-
Field({ nullable: true }),
|
|
1719
|
-
__metadata("design:type", String)
|
|
1720
|
-
], Updateflyway_schema_historyInput.prototype, "script", void 0);
|
|
1721
|
-
__decorate([
|
|
1722
|
-
Field(() => Int, { nullable: true }),
|
|
1723
|
-
__metadata("design:type", Number)
|
|
1724
|
-
], Updateflyway_schema_historyInput.prototype, "checksum", void 0);
|
|
1725
|
-
__decorate([
|
|
1726
|
-
Field({ nullable: true }),
|
|
1727
|
-
__metadata("design:type", String)
|
|
1728
|
-
], Updateflyway_schema_historyInput.prototype, "installed_by", void 0);
|
|
1729
|
-
__decorate([
|
|
1730
|
-
Field({ nullable: true }),
|
|
1731
|
-
__metadata("design:type", Date)
|
|
1732
|
-
], Updateflyway_schema_historyInput.prototype, "installed_on", void 0);
|
|
1733
|
-
__decorate([
|
|
1734
|
-
Field(() => Int, { nullable: true }),
|
|
1735
|
-
__metadata("design:type", Number)
|
|
1736
|
-
], Updateflyway_schema_historyInput.prototype, "execution_time", void 0);
|
|
1737
|
-
__decorate([
|
|
1738
|
-
Field(() => Boolean, { nullable: true }),
|
|
1739
|
-
__metadata("design:type", Boolean)
|
|
1740
|
-
], Updateflyway_schema_historyInput.prototype, "success", void 0);
|
|
1741
|
-
__decorate([
|
|
1742
|
-
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1743
|
-
__metadata("design:type", Array)
|
|
1744
|
-
], Updateflyway_schema_historyInput.prototype, "OldValues___", void 0);
|
|
1745
|
-
Updateflyway_schema_historyInput = __decorate([
|
|
1746
|
-
InputType()
|
|
1747
|
-
], Updateflyway_schema_historyInput);
|
|
1748
|
-
export { Updateflyway_schema_historyInput };
|
|
1749
|
-
let Runflyway_schema_historyViewResult = class Runflyway_schema_historyViewResult {
|
|
1750
|
-
Results;
|
|
1751
|
-
UserViewRunID;
|
|
1752
|
-
RowCount;
|
|
1753
|
-
TotalRowCount;
|
|
1754
|
-
ExecutionTime;
|
|
1755
|
-
ErrorMessage;
|
|
1756
|
-
Success;
|
|
1757
|
-
};
|
|
1758
|
-
__decorate([
|
|
1759
|
-
Field(() => [flyway_schema_history_]),
|
|
1760
|
-
__metadata("design:type", Array)
|
|
1761
|
-
], Runflyway_schema_historyViewResult.prototype, "Results", void 0);
|
|
1762
|
-
__decorate([
|
|
1763
|
-
Field(() => String, { nullable: true }),
|
|
1764
|
-
__metadata("design:type", String)
|
|
1765
|
-
], Runflyway_schema_historyViewResult.prototype, "UserViewRunID", void 0);
|
|
1766
|
-
__decorate([
|
|
1767
|
-
Field(() => Int, { nullable: true }),
|
|
1768
|
-
__metadata("design:type", Number)
|
|
1769
|
-
], Runflyway_schema_historyViewResult.prototype, "RowCount", void 0);
|
|
1770
|
-
__decorate([
|
|
1771
|
-
Field(() => Int, { nullable: true }),
|
|
1772
|
-
__metadata("design:type", Number)
|
|
1773
|
-
], Runflyway_schema_historyViewResult.prototype, "TotalRowCount", void 0);
|
|
1774
|
-
__decorate([
|
|
1775
|
-
Field(() => Int, { nullable: true }),
|
|
1776
|
-
__metadata("design:type", Number)
|
|
1777
|
-
], Runflyway_schema_historyViewResult.prototype, "ExecutionTime", void 0);
|
|
1778
|
-
__decorate([
|
|
1779
|
-
Field({ nullable: true }),
|
|
1780
|
-
__metadata("design:type", String)
|
|
1781
|
-
], Runflyway_schema_historyViewResult.prototype, "ErrorMessage", void 0);
|
|
1782
|
-
__decorate([
|
|
1783
|
-
Field(() => Boolean, { nullable: false }),
|
|
1784
|
-
__metadata("design:type", Boolean)
|
|
1785
|
-
], Runflyway_schema_historyViewResult.prototype, "Success", void 0);
|
|
1786
|
-
Runflyway_schema_historyViewResult = __decorate([
|
|
1787
|
-
ObjectType()
|
|
1788
|
-
], Runflyway_schema_historyViewResult);
|
|
1789
|
-
export { Runflyway_schema_historyViewResult };
|
|
1790
|
-
let flyway_schema_historyResolver = class flyway_schema_historyResolver extends ResolverBase {
|
|
1791
|
-
async Runflyway_schema_historyViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
1792
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1793
|
-
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
1794
|
-
}
|
|
1795
|
-
async Runflyway_schema_historyViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
1796
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1797
|
-
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
1798
|
-
}
|
|
1799
|
-
async Runflyway_schema_historyDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
1800
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1801
|
-
input.EntityName = 'Flyway _schema _histories';
|
|
1802
|
-
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
1803
|
-
}
|
|
1804
|
-
async flyway_schema_history(installed_rank, { dataSources, userPayload }, pubSub) {
|
|
1805
|
-
this.CheckUserReadPermissions('Flyway _schema _histories', userPayload);
|
|
1806
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1807
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFlyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('Flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
|
|
1808
|
-
const result = this.MapFieldNamesToCodeNames('Flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
1809
|
-
return result;
|
|
1810
|
-
}
|
|
1811
|
-
async Createflyway_schema_history(input, { dataSources, userPayload }, pubSub) {
|
|
1812
|
-
const dataSource = GetReadWriteDataSource(dataSources);
|
|
1813
|
-
return this.CreateRecord('Flyway _schema _histories', input, dataSource, userPayload, pubSub);
|
|
1814
|
-
}
|
|
1815
|
-
async Updateflyway_schema_history(input, { dataSources, userPayload }, pubSub) {
|
|
1816
|
-
const dataSource = GetReadWriteDataSource(dataSources);
|
|
1817
|
-
return this.UpdateRecord('Flyway _schema _histories', input, dataSource, userPayload, pubSub);
|
|
1818
|
-
}
|
|
1819
|
-
async Deleteflyway_schema_history(installed_rank, options, { dataSources, userPayload }, pubSub) {
|
|
1820
|
-
const dataSource = GetReadWriteDataSource(dataSources);
|
|
1821
|
-
const key = new CompositeKey([{ FieldName: 'installed_rank', Value: installed_rank }]);
|
|
1822
|
-
return this.DeleteRecord('Flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
|
|
1823
|
-
}
|
|
1824
|
-
};
|
|
1825
|
-
__decorate([
|
|
1826
|
-
Query(() => Runflyway_schema_historyViewResult),
|
|
1827
|
-
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1828
|
-
__param(1, Ctx()),
|
|
1829
|
-
__param(2, PubSub()),
|
|
1830
|
-
__metadata("design:type", Function),
|
|
1831
|
-
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1832
|
-
__metadata("design:returntype", Promise)
|
|
1833
|
-
], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByID", null);
|
|
1834
|
-
__decorate([
|
|
1835
|
-
Query(() => Runflyway_schema_historyViewResult),
|
|
1836
|
-
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1837
|
-
__param(1, Ctx()),
|
|
1838
|
-
__param(2, PubSub()),
|
|
1839
|
-
__metadata("design:type", Function),
|
|
1840
|
-
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1841
|
-
__metadata("design:returntype", Promise)
|
|
1842
|
-
], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByName", null);
|
|
1843
|
-
__decorate([
|
|
1844
|
-
Query(() => Runflyway_schema_historyViewResult),
|
|
1845
|
-
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1846
|
-
__param(1, Ctx()),
|
|
1847
|
-
__param(2, PubSub()),
|
|
1848
|
-
__metadata("design:type", Function),
|
|
1849
|
-
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1850
|
-
__metadata("design:returntype", Promise)
|
|
1851
|
-
], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyDynamicView", null);
|
|
1852
|
-
__decorate([
|
|
1853
|
-
Query(() => flyway_schema_history_, { nullable: true }),
|
|
1854
|
-
__param(0, Arg('installed_rank', () => Int)),
|
|
1855
|
-
__param(1, Ctx()),
|
|
1856
|
-
__param(2, PubSub()),
|
|
1857
|
-
__metadata("design:type", Function),
|
|
1858
|
-
__metadata("design:paramtypes", [Number, Object, PubSubEngine]),
|
|
1859
|
-
__metadata("design:returntype", Promise)
|
|
1860
|
-
], flyway_schema_historyResolver.prototype, "flyway_schema_history", null);
|
|
1861
|
-
__decorate([
|
|
1862
|
-
Mutation(() => flyway_schema_history_),
|
|
1863
|
-
__param(0, Arg('input', () => Createflyway_schema_historyInput)),
|
|
1864
|
-
__param(1, Ctx()),
|
|
1865
|
-
__param(2, PubSub()),
|
|
1866
|
-
__metadata("design:type", Function),
|
|
1867
|
-
__metadata("design:paramtypes", [Createflyway_schema_historyInput, Object, PubSubEngine]),
|
|
1868
|
-
__metadata("design:returntype", Promise)
|
|
1869
|
-
], flyway_schema_historyResolver.prototype, "Createflyway_schema_history", null);
|
|
1870
|
-
__decorate([
|
|
1871
|
-
Mutation(() => flyway_schema_history_),
|
|
1872
|
-
__param(0, Arg('input', () => Updateflyway_schema_historyInput)),
|
|
1873
|
-
__param(1, Ctx()),
|
|
1874
|
-
__param(2, PubSub()),
|
|
1875
|
-
__metadata("design:type", Function),
|
|
1876
|
-
__metadata("design:paramtypes", [Updateflyway_schema_historyInput, Object, PubSubEngine]),
|
|
1877
|
-
__metadata("design:returntype", Promise)
|
|
1878
|
-
], flyway_schema_historyResolver.prototype, "Updateflyway_schema_history", null);
|
|
1879
|
-
__decorate([
|
|
1880
|
-
Mutation(() => flyway_schema_history_),
|
|
1881
|
-
__param(0, Arg('installed_rank', () => Int)),
|
|
1882
|
-
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1883
|
-
__param(2, Ctx()),
|
|
1884
|
-
__param(3, PubSub()),
|
|
1885
|
-
__metadata("design:type", Function),
|
|
1886
|
-
__metadata("design:paramtypes", [Number, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1887
|
-
__metadata("design:returntype", Promise)
|
|
1888
|
-
], flyway_schema_historyResolver.prototype, "Deleteflyway_schema_history", null);
|
|
1889
|
-
flyway_schema_historyResolver = __decorate([
|
|
1890
|
-
Resolver(flyway_schema_history_)
|
|
1891
|
-
], flyway_schema_historyResolver);
|
|
1892
|
-
export { flyway_schema_historyResolver };
|
|
1893
1558
|
let AIAgent_ = class AIAgent_ {
|
|
1894
1559
|
ID;
|
|
1895
1560
|
Name;
|
|
@@ -7305,6 +6970,11 @@ let EntityField_ = class EntityField_ {
|
|
|
7305
6970
|
ScopeDefault;
|
|
7306
6971
|
AutoUpdateRelatedEntityInfo;
|
|
7307
6972
|
ValuesToPackWithSchema;
|
|
6973
|
+
GeneratedValidationFunctionName;
|
|
6974
|
+
GeneratedValidationFunctionDescription;
|
|
6975
|
+
GeneratedValidationFunctionCode;
|
|
6976
|
+
GeneratedValidationFunctionCheckConstraint;
|
|
6977
|
+
FieldCodeName;
|
|
7308
6978
|
Entity;
|
|
7309
6979
|
SchemaName;
|
|
7310
6980
|
BaseTable;
|
|
@@ -7512,6 +7182,27 @@ __decorate([
|
|
|
7512
7182
|
MaxLength(20),
|
|
7513
7183
|
__metadata("design:type", String)
|
|
7514
7184
|
], EntityField_.prototype, "ValuesToPackWithSchema", void 0);
|
|
7185
|
+
__decorate([
|
|
7186
|
+
Field({ nullable: true, description: `Contains the name of the generated field validation function, if it exists, null otherwise` }),
|
|
7187
|
+
MaxLength(510),
|
|
7188
|
+
__metadata("design:type", String)
|
|
7189
|
+
], EntityField_.prototype, "GeneratedValidationFunctionName", void 0);
|
|
7190
|
+
__decorate([
|
|
7191
|
+
Field({ nullable: true, description: `Contains a description for business users of what the validation function for this field does, if it exists` }),
|
|
7192
|
+
__metadata("design:type", String)
|
|
7193
|
+
], EntityField_.prototype, "GeneratedValidationFunctionDescription", void 0);
|
|
7194
|
+
__decorate([
|
|
7195
|
+
Field({ nullable: true, description: `Contains the generated code for the field validation function, if it exists, null otherwise.` }),
|
|
7196
|
+
__metadata("design:type", String)
|
|
7197
|
+
], EntityField_.prototype, "GeneratedValidationFunctionCode", void 0);
|
|
7198
|
+
__decorate([
|
|
7199
|
+
Field({ nullable: true, description: `If a generated validation function was generated previously, this stores the text from the source CHECK constraint in the database. This is stored so that regeneration of the validation function will only occur when the source CHECK constraint changes.` }),
|
|
7200
|
+
__metadata("design:type", String)
|
|
7201
|
+
], EntityField_.prototype, "GeneratedValidationFunctionCheckConstraint", void 0);
|
|
7202
|
+
__decorate([
|
|
7203
|
+
Field({ nullable: true }),
|
|
7204
|
+
__metadata("design:type", String)
|
|
7205
|
+
], EntityField_.prototype, "FieldCodeName", void 0);
|
|
7515
7206
|
__decorate([
|
|
7516
7207
|
Field(),
|
|
7517
7208
|
MaxLength(510),
|
|
@@ -7606,6 +7297,10 @@ let CreateEntityFieldInput = class CreateEntityFieldInput {
|
|
|
7606
7297
|
ScopeDefault;
|
|
7607
7298
|
AutoUpdateRelatedEntityInfo;
|
|
7608
7299
|
ValuesToPackWithSchema;
|
|
7300
|
+
GeneratedValidationFunctionName;
|
|
7301
|
+
GeneratedValidationFunctionDescription;
|
|
7302
|
+
GeneratedValidationFunctionCode;
|
|
7303
|
+
GeneratedValidationFunctionCheckConstraint;
|
|
7609
7304
|
};
|
|
7610
7305
|
__decorate([
|
|
7611
7306
|
Field({ nullable: true }),
|
|
@@ -7723,6 +7418,22 @@ __decorate([
|
|
|
7723
7418
|
Field({ nullable: true }),
|
|
7724
7419
|
__metadata("design:type", String)
|
|
7725
7420
|
], CreateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
|
|
7421
|
+
__decorate([
|
|
7422
|
+
Field({ nullable: true }),
|
|
7423
|
+
__metadata("design:type", String)
|
|
7424
|
+
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionName", void 0);
|
|
7425
|
+
__decorate([
|
|
7426
|
+
Field({ nullable: true }),
|
|
7427
|
+
__metadata("design:type", String)
|
|
7428
|
+
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionDescription", void 0);
|
|
7429
|
+
__decorate([
|
|
7430
|
+
Field({ nullable: true }),
|
|
7431
|
+
__metadata("design:type", String)
|
|
7432
|
+
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionCode", void 0);
|
|
7433
|
+
__decorate([
|
|
7434
|
+
Field({ nullable: true }),
|
|
7435
|
+
__metadata("design:type", String)
|
|
7436
|
+
], CreateEntityFieldInput.prototype, "GeneratedValidationFunctionCheckConstraint", void 0);
|
|
7726
7437
|
CreateEntityFieldInput = __decorate([
|
|
7727
7438
|
InputType()
|
|
7728
7439
|
], CreateEntityFieldInput);
|
|
@@ -7758,6 +7469,10 @@ let UpdateEntityFieldInput = class UpdateEntityFieldInput {
|
|
|
7758
7469
|
ScopeDefault;
|
|
7759
7470
|
AutoUpdateRelatedEntityInfo;
|
|
7760
7471
|
ValuesToPackWithSchema;
|
|
7472
|
+
GeneratedValidationFunctionName;
|
|
7473
|
+
GeneratedValidationFunctionDescription;
|
|
7474
|
+
GeneratedValidationFunctionCode;
|
|
7475
|
+
GeneratedValidationFunctionCheckConstraint;
|
|
7761
7476
|
OldValues___;
|
|
7762
7477
|
};
|
|
7763
7478
|
__decorate([
|
|
@@ -7880,6 +7595,22 @@ __decorate([
|
|
|
7880
7595
|
Field({ nullable: true }),
|
|
7881
7596
|
__metadata("design:type", String)
|
|
7882
7597
|
], UpdateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
|
|
7598
|
+
__decorate([
|
|
7599
|
+
Field({ nullable: true }),
|
|
7600
|
+
__metadata("design:type", String)
|
|
7601
|
+
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionName", void 0);
|
|
7602
|
+
__decorate([
|
|
7603
|
+
Field({ nullable: true }),
|
|
7604
|
+
__metadata("design:type", String)
|
|
7605
|
+
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionDescription", void 0);
|
|
7606
|
+
__decorate([
|
|
7607
|
+
Field({ nullable: true }),
|
|
7608
|
+
__metadata("design:type", String)
|
|
7609
|
+
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionCode", void 0);
|
|
7610
|
+
__decorate([
|
|
7611
|
+
Field({ nullable: true }),
|
|
7612
|
+
__metadata("design:type", String)
|
|
7613
|
+
], UpdateEntityFieldInput.prototype, "GeneratedValidationFunctionCheckConstraint", void 0);
|
|
7883
7614
|
__decorate([
|
|
7884
7615
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
7885
7616
|
__metadata("design:type", Array)
|
|
@@ -9845,9 +9576,9 @@ let User_ = class User_ {
|
|
|
9845
9576
|
UserNotifications_UserIDArray;
|
|
9846
9577
|
Templates_UserIDArray;
|
|
9847
9578
|
UserFavorites_UserIDArray;
|
|
9579
|
+
ResourceLinks_UserIDArray;
|
|
9848
9580
|
ListCategories_UserIDArray;
|
|
9849
9581
|
ScheduledActions_CreatedByUserIDArray;
|
|
9850
|
-
ResourceLinks_UserIDArray;
|
|
9851
9582
|
AIAgentRequests_ResponseByUserIDArray;
|
|
9852
9583
|
AIAgentNotes_UserIDArray;
|
|
9853
9584
|
ResourcePermissions_UserIDArray;
|
|
@@ -10073,6 +9804,10 @@ __decorate([
|
|
|
10073
9804
|
Field(() => [UserFavorite_]),
|
|
10074
9805
|
__metadata("design:type", Array)
|
|
10075
9806
|
], User_.prototype, "UserFavorites_UserIDArray", void 0);
|
|
9807
|
+
__decorate([
|
|
9808
|
+
Field(() => [ResourceLink_]),
|
|
9809
|
+
__metadata("design:type", Array)
|
|
9810
|
+
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
10076
9811
|
__decorate([
|
|
10077
9812
|
Field(() => [ListCategory_]),
|
|
10078
9813
|
__metadata("design:type", Array)
|
|
@@ -10081,10 +9816,6 @@ __decorate([
|
|
|
10081
9816
|
Field(() => [ScheduledAction_]),
|
|
10082
9817
|
__metadata("design:type", Array)
|
|
10083
9818
|
], User_.prototype, "ScheduledActions_CreatedByUserIDArray", void 0);
|
|
10084
|
-
__decorate([
|
|
10085
|
-
Field(() => [ResourceLink_]),
|
|
10086
|
-
__metadata("design:type", Array)
|
|
10087
|
-
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
10088
9819
|
__decorate([
|
|
10089
9820
|
Field(() => [AIAgentRequest_]),
|
|
10090
9821
|
__metadata("design:type", Array)
|
|
@@ -10520,6 +10251,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10520
10251
|
const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
|
|
10521
10252
|
return result;
|
|
10522
10253
|
}
|
|
10254
|
+
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10255
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
10256
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10257
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
10258
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
10259
|
+
return result;
|
|
10260
|
+
}
|
|
10523
10261
|
async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10524
10262
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
10525
10263
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10534,13 +10272,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10534
10272
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
|
|
10535
10273
|
return result;
|
|
10536
10274
|
}
|
|
10537
|
-
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10538
|
-
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
10539
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10540
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
10541
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
10542
|
-
return result;
|
|
10543
|
-
}
|
|
10544
10275
|
async AIAgentRequests_ResponseByUserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10545
10276
|
this.CheckUserReadPermissions('AI Agent Requests', userPayload);
|
|
10546
10277
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10905,32 +10636,32 @@ __decorate([
|
|
|
10905
10636
|
__metadata("design:returntype", Promise)
|
|
10906
10637
|
], UserResolverBase.prototype, "UserFavorites_UserIDArray", null);
|
|
10907
10638
|
__decorate([
|
|
10908
|
-
FieldResolver(() => [
|
|
10639
|
+
FieldResolver(() => [ResourceLink_]),
|
|
10909
10640
|
__param(0, Root()),
|
|
10910
10641
|
__param(1, Ctx()),
|
|
10911
10642
|
__param(2, PubSub()),
|
|
10912
10643
|
__metadata("design:type", Function),
|
|
10913
10644
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10914
10645
|
__metadata("design:returntype", Promise)
|
|
10915
|
-
], UserResolverBase.prototype, "
|
|
10646
|
+
], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
|
|
10916
10647
|
__decorate([
|
|
10917
|
-
FieldResolver(() => [
|
|
10648
|
+
FieldResolver(() => [ListCategory_]),
|
|
10918
10649
|
__param(0, Root()),
|
|
10919
10650
|
__param(1, Ctx()),
|
|
10920
10651
|
__param(2, PubSub()),
|
|
10921
10652
|
__metadata("design:type", Function),
|
|
10922
10653
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10923
10654
|
__metadata("design:returntype", Promise)
|
|
10924
|
-
], UserResolverBase.prototype, "
|
|
10655
|
+
], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
|
|
10925
10656
|
__decorate([
|
|
10926
|
-
FieldResolver(() => [
|
|
10657
|
+
FieldResolver(() => [ScheduledAction_]),
|
|
10927
10658
|
__param(0, Root()),
|
|
10928
10659
|
__param(1, Ctx()),
|
|
10929
10660
|
__param(2, PubSub()),
|
|
10930
10661
|
__metadata("design:type", Function),
|
|
10931
10662
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10932
10663
|
__metadata("design:returntype", Promise)
|
|
10933
|
-
], UserResolverBase.prototype, "
|
|
10664
|
+
], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
|
|
10934
10665
|
__decorate([
|
|
10935
10666
|
FieldResolver(() => [AIAgentRequest_]),
|
|
10936
10667
|
__param(0, Root()),
|
|
@@ -40110,6 +39841,8 @@ let CommunicationProvider_ = class CommunicationProvider_ {
|
|
|
40110
39841
|
_mj__CreatedAt;
|
|
40111
39842
|
_mj__UpdatedAt;
|
|
40112
39843
|
SupportsScheduledSending;
|
|
39844
|
+
SupportsForwarding;
|
|
39845
|
+
SupportsReplying;
|
|
40113
39846
|
CommunicationLogs_CommunicationProviderIDArray;
|
|
40114
39847
|
CommunicationProviderMessageTypes_CommunicationProviderIDArray;
|
|
40115
39848
|
};
|
|
@@ -40154,6 +39887,14 @@ __decorate([
|
|
|
40154
39887
|
Field(() => Boolean, { description: `Whether or not the provider supports sending messages at a specific time` }),
|
|
40155
39888
|
__metadata("design:type", Boolean)
|
|
40156
39889
|
], CommunicationProvider_.prototype, "SupportsScheduledSending", void 0);
|
|
39890
|
+
__decorate([
|
|
39891
|
+
Field(() => Boolean, { description: `Whether or not the provider supports forwarding messages to another recipient ` }),
|
|
39892
|
+
__metadata("design:type", Boolean)
|
|
39893
|
+
], CommunicationProvider_.prototype, "SupportsForwarding", void 0);
|
|
39894
|
+
__decorate([
|
|
39895
|
+
Field(() => Boolean, { description: `Whether or not the provider supports replying to messages` }),
|
|
39896
|
+
__metadata("design:type", Boolean)
|
|
39897
|
+
], CommunicationProvider_.prototype, "SupportsReplying", void 0);
|
|
40157
39898
|
__decorate([
|
|
40158
39899
|
Field(() => [CommunicationLog_]),
|
|
40159
39900
|
__metadata("design:type", Array)
|
|
@@ -40173,6 +39914,8 @@ let CreateCommunicationProviderInput = class CreateCommunicationProviderInput {
|
|
|
40173
39914
|
SupportsSending;
|
|
40174
39915
|
SupportsReceiving;
|
|
40175
39916
|
SupportsScheduledSending;
|
|
39917
|
+
SupportsForwarding;
|
|
39918
|
+
SupportsReplying;
|
|
40176
39919
|
};
|
|
40177
39920
|
__decorate([
|
|
40178
39921
|
Field({ nullable: true }),
|
|
@@ -40198,6 +39941,14 @@ __decorate([
|
|
|
40198
39941
|
Field(() => Boolean, { nullable: true }),
|
|
40199
39942
|
__metadata("design:type", Boolean)
|
|
40200
39943
|
], CreateCommunicationProviderInput.prototype, "SupportsScheduledSending", void 0);
|
|
39944
|
+
__decorate([
|
|
39945
|
+
Field(() => Boolean, { nullable: true }),
|
|
39946
|
+
__metadata("design:type", Boolean)
|
|
39947
|
+
], CreateCommunicationProviderInput.prototype, "SupportsForwarding", void 0);
|
|
39948
|
+
__decorate([
|
|
39949
|
+
Field(() => Boolean, { nullable: true }),
|
|
39950
|
+
__metadata("design:type", Boolean)
|
|
39951
|
+
], CreateCommunicationProviderInput.prototype, "SupportsReplying", void 0);
|
|
40201
39952
|
CreateCommunicationProviderInput = __decorate([
|
|
40202
39953
|
InputType()
|
|
40203
39954
|
], CreateCommunicationProviderInput);
|
|
@@ -40210,6 +39961,8 @@ let UpdateCommunicationProviderInput = class UpdateCommunicationProviderInput {
|
|
|
40210
39961
|
SupportsSending;
|
|
40211
39962
|
SupportsReceiving;
|
|
40212
39963
|
SupportsScheduledSending;
|
|
39964
|
+
SupportsForwarding;
|
|
39965
|
+
SupportsReplying;
|
|
40213
39966
|
OldValues___;
|
|
40214
39967
|
};
|
|
40215
39968
|
__decorate([
|
|
@@ -40240,6 +39993,14 @@ __decorate([
|
|
|
40240
39993
|
Field(() => Boolean, { nullable: true }),
|
|
40241
39994
|
__metadata("design:type", Boolean)
|
|
40242
39995
|
], UpdateCommunicationProviderInput.prototype, "SupportsScheduledSending", void 0);
|
|
39996
|
+
__decorate([
|
|
39997
|
+
Field(() => Boolean, { nullable: true }),
|
|
39998
|
+
__metadata("design:type", Boolean)
|
|
39999
|
+
], UpdateCommunicationProviderInput.prototype, "SupportsForwarding", void 0);
|
|
40000
|
+
__decorate([
|
|
40001
|
+
Field(() => Boolean, { nullable: true }),
|
|
40002
|
+
__metadata("design:type", Boolean)
|
|
40003
|
+
], UpdateCommunicationProviderInput.prototype, "SupportsReplying", void 0);
|
|
40243
40004
|
__decorate([
|
|
40244
40005
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
40245
40006
|
__metadata("design:type", Array)
|