Skip to content
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Stub declarations for Salesforce platform types encoded as compilable Java.

These stub declarations help support static analysis of Apex code in [apex-ls](https://github.com/apex-dev-tools/apex-ls) but you may also find them useful for other purposes. They have been encoded in Java to get the benefit of type checking by javac so it easier to spot when something is amiss. In apex-ls JVM reflection is used to 'read' the stubs as part of the static analysis.

The library is versioned to reflect Salesforce API numbers, so currently v62.X.X matches the Salesforce Winter '25 API.
The library is versioned to reflect Salesforce API numbers, so currently v63.X.X matches the Salesforce Spring '25 API.

## Installation

Expand All @@ -14,7 +14,7 @@ To use the jar in a maven project add the following to your pom.xml
<dependency>
<groupId>io.github.apex-dev-tools</groupId>
<artifactId>standard-types</artifactId>
<version>62.0.1</version>
<version>63.0.0</version>
</dependency>
```

Expand Down
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.github.apex-dev-tools</groupId>
<artifactId>standard-types</artifactId>
<version>62.0.1</version>
<version>63.0.0</version>
<packaging>jar</packaging>

<name>standard-types</name>
Expand Down Expand Up @@ -195,6 +195,9 @@
</goals>
</execution>
</executions>
<configuration>
<quiet>true</quiet>
</configuration>
</plugin>

</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public abstract class AbstractCheckoutAddressInput {
public String city;
public String companyName;
public String country;
public String firstName;
public String id;
public String lastName;
public String name;
public String postalCode;
public String region;
public String shipToPhoneNumber;
public String street;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

@SuppressWarnings("unused")
public abstract class AbstractList {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Boolean;
import com.nawforce.runforce.System.Double;
import com.nawforce.runforce.System.Integer;
import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class AbstractRecordField {
public String type;

public Boolean equals$(Object obj) {throw new java.lang.UnsupportedOperationException();}
public Double getBuildVersion() {throw new java.lang.UnsupportedOperationException();}
public Integer hashCode$() {throw new java.lang.UnsupportedOperationException();}
public String toString$() {throw new java.lang.UnsupportedOperationException();}
public abstract class AbstractRecordField {
public String type;
}
15 changes: 15 additions & 0 deletions src/main/java/com/nawforce/runforce/ConnectApi/BooleanList.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Boolean;
import com.nawforce.runforce.System.List;

@SuppressWarnings("unused")
public class BooleanList extends AbstractList {
public List<Boolean> values;

public BooleanList() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.List;
import com.nawforce.runforce.System.SObject;

@SuppressWarnings("unused")
public class CartEvaluateShippingInput {
public List<SObject> customFields;
public CartShippingAddressInput shippingAddress;

public CartEvaluateShippingInput() {throw new java.lang.UnsupportedOperationException();}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.List;
import com.nawforce.runforce.System.SObject;

@SuppressWarnings("unused")
public class CartEvaluateTaxInput {
public List<SObject> customFields;
public CartShippingAddressInput shippingAddress;

public CartEvaluateTaxInput() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

@SuppressWarnings("unused")
public class CartShippingAddressInput extends AbstractCheckoutAddressInput {
public CartShippingAddressInput() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ public class CommerceCart {
public static CartCouponCollection applyCartCoupon(String webstoreId, String effectiveAccountId, String activeCartOrId, CartCouponInput cartCouponInput, String currencyIsoCode) {throw new java.lang.UnsupportedOperationException();}
public static CartToWishlistResult copyCartToWishlist(String webstoreId, String effectiveAccountId, String activeCartOrId, CartToWishlistInput cartToWishlistInput) {throw new java.lang.UnsupportedOperationException();}
public static CalculateCartResult calculateCart(String webstoreId, String activeCartOrId, String effectiveAccountId) {throw new UnsupportedOperationException();}
public static CalculateCartResult calculateCart(String webstoreId, String activeCartOrId, String effectiveAccountId, ConnectApiCalculateCartInput calculateCartInput) {throw new java.lang.UnsupportedOperationException();}
public static CartSummary createCart(String webstoreId, CartInput cart) {throw new java.lang.UnsupportedOperationException();}
public static CartSummary cloneCart(String webstoreId, String activeCartOrId, String targetEffectiveAccountId, String targetType) {throw new java.lang.UnsupportedOperationException();}
public static void deleteCart(String webstoreId, String effectiveAccountId, String activeCartOrId) {throw new java.lang.UnsupportedOperationException();}
public static void deleteCartCoupon(String webstoreId, String effectiveAccountId, String activeCartOrId, String cartCouponId) {throw new java.lang.UnsupportedOperationException();}
public static void deleteCartCoupon(String webstoreId, String effectiveAccountId, String activeCartOrId, String cartCouponId, String currencyIsoCode) {throw new java.lang.UnsupportedOperationException();}
public static void deleteCartItem(String webstoreId, String effectiveAccountId, String activeCartOrId, String cartItemId) {throw new java.lang.UnsupportedOperationException();}
public static void deleteInventoryReservation(String webstoreId, String activeCartOrId, String effectiveAccountId) {throw new java.lang.UnsupportedOperationException();}
public static CalculateCartResult evaluateShipping(String webstoreId, String activeCartOrId, String effectiveAccountId, CartEvaluateShippingInput cartEvaluateShippingInput) {throw new java.lang.UnsupportedOperationException();}
public static CalculateCartResult evaluateTaxes(String webstoreId, String activeCartOrId, String effectiveAccountId, CartEvaluateTaxInput cartEvaluateTaxInput) {throw new java.lang.UnsupportedOperationException();}
public static CartCouponCollection getCartCoupons(String webstoreId, String effectiveAccountId, String activeCartOrId) {throw new java.lang.UnsupportedOperationException();}
public static CartCouponCollection getCartCoupons(String webstoreId, String effectiveAccountId, String activeCartOrId, String currencyIsoCode) {throw new java.lang.UnsupportedOperationException();}
public static CartItemPromotionCollectionOutputRepresentation getCartItemPromotion(String webstoreId, String effectiveAccountId, String activeCartOrId, CartItemPromotionCollectionInputRepresentation cartItemPromotionCollectionInput) {throw new java.lang.UnsupportedOperationException();}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.List;
import com.nawforce.runforce.System.SObject;

@SuppressWarnings("unused")
public class ConnectApiCalculateCartInput {
public List<SObject> customFields;

public ConnectApiCalculateCartInput() {throw new java.lang.UnsupportedOperationException();}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Map;
import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class DataCategoryMetadata {
public com.nawforce.runforce.System.String groupName;
public String label;
public Map<String, DataCategoryValueMetadata> values;

public DataCategoryMetadata() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;
@SuppressWarnings("unused")
public enum DataCategoryOperator {
Above,
AboveOrBelow,
At,
Below
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class DataCategoryValueMetadata {
public String label;
public String valueName;

public DataCategoryValueMetadata() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Double;
import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class DeliveryAddressInputRepresentation {
public String city;
public String country;
public Double latitude;
public Double longitude;
public String postalCode;
public String state;

public DeliveryAddressInputRepresentation() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.List;
import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class DeliveryEstimateOutputRepresentation {
public DeliveryEstimationErrorOutputRepresentation error;
public String location;
public List<ProductDeliverEstimationOutputRepresentation> productDeliverEstimations;
public String shippingCarrierMethodExternalReference;

public DeliveryEstimateOutputRepresentation() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class DeliveryEstimationErrorOutputRepresentation {
public String code;
public String message;

public DeliveryEstimationErrorOutputRepresentation() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Double;
import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class DeliveryEstimationProductInputRepresentation {
public String name;
public String productId;
public Double quantity;
public String stockKeepingUnit;

public DeliveryEstimationProductInputRepresentation() {throw new java.lang.UnsupportedOperationException();}
}
15 changes: 15 additions & 0 deletions src/main/java/com/nawforce/runforce/ConnectApi/DoubleList.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Double;
import com.nawforce.runforce.System.List;

@SuppressWarnings("unused")
public class DoubleList extends AbstractList {
public List<Double> values;

public DoubleList() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@
package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Boolean;
import com.nawforce.runforce.System.Integer;
import com.nawforce.runforce.System.Map;
import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class EinsteinPromptTemplateGenerationsInput {
public EinsteinLlmAdditionalConfigInput additionalConfig;
public String citationMode;
public Map<String,WrappedValue> inputParams;
public Boolean isPreview;
public String provider;
public String outputLanguage;
public WrappedValue tags;

public EinsteinPromptTemplateGenerationsInput() {throw new java.lang.UnsupportedOperationException();}

public Boolean equals$(Object obj) {throw new java.lang.UnsupportedOperationException();}
public Integer hashCode$() {throw new java.lang.UnsupportedOperationException();}
public String toString$() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.Boolean;
import com.nawforce.runforce.System.Double;
import com.nawforce.runforce.System.Integer;
import com.nawforce.runforce.System.String;
import com.nawforce.runforce.System.*;

@SuppressWarnings("unused")
public class EmailMessageCapability extends FeedElementCapability {
public EmailAttachment attachments;
public String automationType;
public List<EmailAddress> bccAddresses;
public String body;
public List<EmailAddress> ccAddresses;
Expand All @@ -36,9 +36,4 @@ public class EmailMessageCapability extends FeedElementCapability {
public Integer totalAttachments;

public EmailMessageCapability() {throw new java.lang.UnsupportedOperationException();}

public Boolean equals$(Object obj) {throw new java.lang.UnsupportedOperationException();}
public Double getBuildVersion() {throw new java.lang.UnsupportedOperationException();}
public Integer hashCode$() {throw new java.lang.UnsupportedOperationException();}
public String toString$() {throw new java.lang.UnsupportedOperationException();}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/

package com.nawforce.runforce.ConnectApi;

import com.nawforce.runforce.System.String;

@SuppressWarnings("unused")
public class EstimateDeliveryDateInputRepresentation {
public DeliveryAddressInputRepresentation deliveryAddress;
public String locations;
public DeliveryEstimationProductInputRepresentation products;
public ShippingCarrierInputRepresentation shippingCarrier;

public EstimateDeliveryDateInputRepresentation() {throw new java.lang.UnsupportedOperationException();}
}
Loading
Loading