Skip to content

feature/v60-update #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ robot/Technology-Transfer-Starter/results/

# Misc
.DS_Store
/IlluminatedCloud/
12 changes: 6 additions & 6 deletions force-app/main/default/classes/TTSCore.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ public with sharing class TTSCore {


public class RelatedRecordsInput {
@InvocableVariable(label='Start Date')
@InvocableVariable(Label='Start Date')
public Datetime startDate;
@InvocableVariable(label='End Date')
@InvocableVariable(Label='End Date')
public Datetime endDate;
@InvocableVariable(label='Frequency')
@InvocableVariable(Label='Frequency')
public String frequency;
@InvocableVariable(label='Record ID')
@InvocableVariable(Label='Record ID')
public String recordId;
}

@InvocableMethod(label='Generate Recurring Transaction Records')
@InvocableMethod(Label='Generate Recurring Transaction Records')
public static void generateRecurringTransactionRecords(List<RelatedRecordsInput> inputs) {

// Check object and field accessibility
if (!Schema.sObjectType.TTS_Transaction__c.isAccessible() || !Schema.sObjectType.TTS_Transaction__c.isCreateable() || !Schema.sObjectType.TTS_Transaction__c.isDeletable()) {
if (!Schema.SObjectType.TTS_Transaction__c.isAccessible() || !Schema.SObjectType.TTS_Transaction__c.isCreateable() || !Schema.SObjectType.TTS_Transaction__c.isDeletable()) {
// Object is not accessible, return or handle accordingly
System.debug('TTS_Transaction__c is not accessible for the user. Please review user permissions.');
return;
Expand Down
4 changes: 2 additions & 2 deletions force-app/main/default/classes/TTSCore.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>57.0</apiVersion>
<apiVersion>60.0</apiVersion>
<status>Active</status>
</ApexClass>
</ApexClass>
8 changes: 4 additions & 4 deletions force-app/main/default/classes/TTSCoreTest.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@isTest
@IsTest
private class TTSCoreTest {

@testSetup
@TestSetup
static void setup() {
// Insert necessary records for the test
Id spaceFeeRecordTypeId = Schema.SObjectType.TTS_Transaction__c.getRecordTypeInfosByDeveloperName().get('Space_Fee').getRecordTypeId();
Expand Down Expand Up @@ -56,11 +56,11 @@ private class TTSCoreTest {
insert childRecord;
}

@isTest
@IsTest
static void testGenerateRecurringTransactionRecords() {

// Generate a unique username using current UTC date and time
String uniqueUsername = 'john.doe.' + Datetime.now().formatGMT('yyyyMMddHHmmss') + '@example.com';
String uniqueUsername = 'john.doe.' + Datetime.now().formatGmt('yyyyMMddHHmmss') + '@example.com';

// Create a new User
User newUser = new User();
Expand Down
4 changes: 2 additions & 2 deletions force-app/main/default/classes/TTSCoreTest.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>57.0</apiVersion>
<apiVersion>60.0</apiVersion>
<status>Active</status>
</ApexClass>
</ApexClass>
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@
<dashboardType>MyTeamUser</dashboardType>
<description>Yearly summary of disclosures by count</description>
<isGridLayout>true</isGridLayout>
<runningUser>[email protected]</runningUser>
<owner>[email protected]</owner>
<runningUser>[email protected]</runningUser>
<textColor>#000000</textColor>
<title>Technology Disclosure Dashboard</title>
<titleColor>#000000</titleColor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<value>Edit</value>
</valueListItems>
<valueListItems>
<value>TTS_Disclosure__c.Approve_Disclosure</value>
<value>techstarter__TTS_Disclosure__c.Approve_Disclosure</value>
</valueListItems>
<valueListItems>
<value>ChangeOwnerOne</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<value>Edit</value>
</valueListItems>
<valueListItems>
<value>TTS_Transaction__c.Generate_Schedule</value>
<value>techstarter__TTS_Transaction__c.Generate_Schedule</value>
<visibilityRule>
<booleanFilter>1 AND 2</booleanFilter>
<criteria>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
</connector>
<fields>
<name>Disclosure_Confirmation_Screen</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Disclosure_Confirmation_Screen}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Disclosure_Confirmation_Screen}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<showFooter>true</showFooter>
Expand Down Expand Up @@ -377,7 +377,7 @@
<fieldType>Region</fieldType>
<fields>
<name>General_HelpText</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Disclosure_DetailsHelp}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Disclosure_DetailsHelp}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -420,7 +420,7 @@
<fieldType>Region</fieldType>
<fields>
<name>Commercial_Apps_Help</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Disclosure_CommercialAppHelp}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Disclosure_CommercialAppHelp}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -452,7 +452,7 @@
<fieldType>Region</fieldType>
<fields>
<name>CurrentProtections_Help</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Disclosure_CurrentProtectHelp}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Disclosure_CurrentProtectHelp}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -512,7 +512,7 @@
<fieldType>Region</fieldType>
<fields>
<name>FundingSources_Help</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Funding_HelpText}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Funding_HelpText}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -555,7 +555,7 @@
<fieldType>Region</fieldType>
<fields>
<name>Partnerships_Help</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Disclosure_PartnershipsHelp}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Disclosure_PartnershipsHelp}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -611,7 +611,7 @@
</connector>
<fields>
<name>DocsHelp</name>
<fieldText>&lt;p&gt;{!$Label.TTS_Disclosure_DocsHelp}&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;{!$Label.techstarter__TTS_Disclosure_DocsHelp}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<elementReference>Get_Current_Record.Start_Date_Time__c</elementReference>
</value>
</inputParameters>
<nameSegment>TTSCore</nameSegment>
<versionSegment>1</versionSegment>
</actionCalls>
<apiVersion>57.0</apiVersion>
<decisions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
<help></help>
<label></label>
<name>Type__c</name>
<picklistValues>
<masterLabel>Client</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Co-Principal Investigator</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Collaborator</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Consultant</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Principal Investigator (PI)</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Provider</masterLabel>
<translation></translation>
Expand All @@ -11,4 +31,8 @@
<masterLabel>Recipient</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Sponsor</masterLabel>
<translation></translation>
</picklistValues>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Budget__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Status__c</name>
<picklistValues>
<masterLabel>Active</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Amended</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Completed</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Draft</masterLabel>
<translation></translation>
Expand All @@ -22,6 +30,14 @@
<masterLabel>In Dispute</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>On Hold</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Pending</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Terminated</masterLabel>
<translation></translation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<label></label>
<section>Description</section>
</sections>
<sections>
<label></label>
<section>Financials</section>
</sections>
<sections>
<label></label>
<section>Related</section>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Individual_Contact__c</name>
<relationshipLabel></relationshipLabel>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Protection_Title__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Protection__c</name>
<relationshipLabel></relationshipLabel>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Type__c</name>
<picklistValues>
<masterLabel>Corporate Assignee</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Educational Institution</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Foreign Applicant</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Government Agency</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Individual Inventor</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Joint Inventor</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Non-profit Organisation</masterLabel>
<translation></translation>
</picklistValues>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Commercial_Applications__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Current_Protection_Details__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Current_Protections__c</name>
<picklistValues>
<masterLabel>Copyrighted</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Exclusive license</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Joint ownership</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Non-exclusive license</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Patent pending</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Patented</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Pending evaluation</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Public domain</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Trade secret</masterLabel>
<translation></translation>
</picklistValues>
<picklistValues>
<masterLabel>Trademarked</masterLabel>
<translation></translation>
</picklistValues>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Disclosure_Description__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Disclosure_Title__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<help></help>
<label></label>
<name>Disclosure_date__c</name>
</CustomFieldTranslation>
Loading