Skip to content

Commit

Permalink
Updated new Apex classes in release v50.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lushang committed Dec 16, 2020
1 parent 8927b9b commit 0e428ae
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 12 deletions.
6 changes: 5 additions & 1 deletion completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ def load_sobject_cache(reload_cache=False, username=None):


class PackageCompletions(sublime_plugin.EventListener):
"""
Completions for Package.xml
"""
def on_query_completions(self, view, prefix, locations):
if not view.match_selector(locations[0], "text.xml"):
return []

# Check whether current file is package file
pattern = "<types>[\\s.*<>\\-\\w/\\%1-9]+</types>"
if not view.find_all(pattern): return
if not view.find_all(pattern):
return

location = locations[0]
pt = locations[0] - len(prefix) - 1
Expand Down
2 changes: 1 addition & 1 deletion processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ def handle_thread(thread, timeout):

# Makedir for subscribed meta types
for metadata_folder in settings["subscribed_metadata_folders"]:
outputdir = os.path.join(extract_to, "src", metadata_folder);
outputdir = os.path.join(extract_to, "src", metadata_folder)
if not os.path.exists(outputdir): os.makedirs(outputdir)

# Extract the zipFile to extract_to
Expand Down
81 changes: 71 additions & 10 deletions salesforce/lib/apex.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"Separator"
],
"System": [
"AccessType",
"XmlException",
"RequiredFeatureMissingException",
"SearchException",
Expand Down Expand Up @@ -737,7 +738,8 @@
"ApexPages",
"Approval",
"QuickAction",
"SObject",
"SObject",
"SObjectAccessDecision",
"AssertException",
"Date",
"Messaging",
Expand Down Expand Up @@ -829,7 +831,8 @@
"QueueableContextImpl",
"Site",
"UserManagement",
"Callable"
"Callable",
"Security",
],
"Canvas": [
"CanvasRenderException",
Expand Down Expand Up @@ -864,14 +867,15 @@
"EmailFileAttachment",
"AttachmentRetrievalOption",
"InboundEmailResult",
"InboundEmail",
"RenderEmailTemplateError",
"InboundEmail",
"EmailToSalesforceHandler",
"SingleEmailMessage",
"TextAttachment",
"PushNotification",
"PushNotificationPayload",
"RenderEmailTemplateBodyResult",
"PushNotificationPayload",
"CustomNotification",
"RenderEmailTemplateBodyResult",
"RenderEmailTemplateError",
"MassEmailMessage"
],
"DataProtection": [
Expand Down Expand Up @@ -3082,7 +3086,25 @@
},
"namespace": "Messaging",
"properties": {}
},
},
"customnotification": {
"constructors": {
"CustomNotification()\t": "CustomNotification()$0",
"CustomNotification(String typeId, String sender, String title, String body, String targetId, String targetPageRef)\t": "CustomNotification(${1:String typeId}, ${2:String sender}, ${3:String title}, ${4:String body}, ${5:String targetId}, ${6:String targetPageRef})$0"
},
"name": "CustomNotification",
"methods": {
"send(Set<String> users)\tvoid": "send(${1:Set<String> users})$0",
"setNotificationTypeId(String id)\tvoid": "setNotificationTypeId(${1:String id})$0",
"setTitle(String title)\tvoid": "setTitle(${1:String title})$0",
"setBody(String body)\tvoid": "setBody(${1:String body})$0",
"setSenderId(String id)\tvoid": "setSenderId(${1:String id})$0",
"setTargetId(String targetId)\tvoid": "setTargetId(${1:String targetId})$0",
"setTargetPageRef(String pageRef)\tvoid": "setTargetPageRef(${1:String pageRef})$0",
},
"namespace": "Messaging",
"properties": {}
},
"sortorder": [
{
"constructors": {},
Expand Down Expand Up @@ -9658,7 +9680,13 @@
"getLimitFieldsDescribes()\tInteger": "getLimitFieldsDescribes()$0",
"getChildRelationshipsDescribes()\tInteger": "getChildRelationshipsDescribes()$0",
"getHeapSize()\tInteger": "getHeapSize()$0",
"getPickListDescribes()\tInteger": "getPickListDescribes()$0"
"getPickListDescribes()\tInteger": "getPickListDescribes()$0",
"getMobilePushApexCalls()\tInteger": "getMobilePushApexCalls()$0",
"getLimitMobilePushApexCalls()\tInteger": "getLimitMobilePushApexCalls()$0",
"getPublishImmediateDML()\tInteger": "getPublishImmediateDML()$0",
"getLimitPublishImmediateDML()\tInteger": "getLimitPublishImmediateDML()$0",
"getQueueableJobs()\tInteger": "getQueueableJobs()$0",
"getLimitQueueableJobs()\tInteger": "getLimitQueueableJobs()$0",
},
"namespace": "Limits",
"name": "Limits"
Expand Down Expand Up @@ -23310,5 +23338,38 @@
"properties": {
"fileCount": "fileCount$0"
}
}
}
},
"security": {
"constructors": {},
"name": "Security",
"methods": {
"stripInaccessible(System.AccessType accessCheckType, List<SObject> sourceRecords, Boolean enforceRootObjectCRUD)\tSystem.SObjectAccessDecision": "stripInaccessible(${1:System.AccessType accessCheckType}, ${2:List<SObject> sourceRecords}, ${3:Boolean enforceRootObjectCRUD})$0",
"stripInaccessible(System.AccessType accessCheckType, List<SObject> sourceRecords)\tSystem.SObjectAccessDecision": "stripInaccessible(${1:System.AccessType accessCheckType}, ${2:List<SObject> sourceRecords})$0",
},
"namespace": "System",
"properties": {}
},
"accesstype": {
"constructors": {},
"name": "AccessType",
"methods": {},
"namespace": "System",
"properties": {
"CREATABLE": "CREATABLE$0",
"READABLE": "READABLE$0",
"UPDATABLE": "UPDATABLE$0",
"UPSERTABLE": "UPSERTABLE$0",
}
},
"sobjectaccessdecision": {
"constructors": {},
"name": "SObjectAccessDecision",
"methods": {
"getModifiedIndexes()\tSet<Integer>": "getModifiedIndexes()$0",
"getRecords()\tList<SObject>": "getRecords()$0",
"getRemovedFields()\tMap<String,Set<String>>": "getRemovedFields()$0",
},
"namespace": "System",
"properties": {}
},
}

0 comments on commit 0e428ae

Please sign in to comment.