@spiffcommerce/core 19.3.3 → 20.0.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/index.d.ts +29 -4
- package/dist/index.js +382 -372
- package/dist/index.umd.cjs +51 -49
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1638,7 +1638,11 @@ declare class ProductCollection {
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
1640
1640
|
*/
|
|
1641
|
-
getProducts():
|
|
1641
|
+
getProducts(): CollectionProduct[];
|
|
1642
|
+
/**
|
|
1643
|
+
* A list of products in this collections with useful helpers for interacting with them.
|
|
1644
|
+
*/
|
|
1645
|
+
fetchProducts(): Promise<CollectionProduct[]>;
|
|
1642
1646
|
getTransformCollection(): TransformCollection | undefined;
|
|
1643
1647
|
/**
|
|
1644
1648
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -2152,6 +2156,23 @@ interface ClientOptions {
|
|
|
2152
2156
|
*/
|
|
2153
2157
|
applicationKey?: string;
|
|
2154
2158
|
}
|
|
2159
|
+
interface GetBundleGraphqlAssetsOptions {
|
|
2160
|
+
metadata?: boolean;
|
|
2161
|
+
}
|
|
2162
|
+
interface GetBundleGraphqlProductCollectionOptions {
|
|
2163
|
+
eagerFetchProducts?: boolean;
|
|
2164
|
+
}
|
|
2165
|
+
interface GetBundleGraphqlOptions {
|
|
2166
|
+
productCollection?: GetBundleGraphqlProductCollectionOptions;
|
|
2167
|
+
assets?: GetBundleGraphqlAssetsOptions;
|
|
2168
|
+
}
|
|
2169
|
+
interface GetBundleOptions {
|
|
2170
|
+
/**
|
|
2171
|
+
* Configuration for the graphQL request made for bundles. Allows for retrieval
|
|
2172
|
+
* of additional data.
|
|
2173
|
+
*/
|
|
2174
|
+
graphql?: GetBundleGraphqlOptions;
|
|
2175
|
+
}
|
|
2155
2176
|
interface GetWorkflowGraphqlAssetsOptions {
|
|
2156
2177
|
metadata?: boolean;
|
|
2157
2178
|
}
|
|
@@ -2164,7 +2185,7 @@ interface GetWorkflowOptionsBase {
|
|
|
2164
2185
|
*/
|
|
2165
2186
|
previewService?: ThreeDPreviewService;
|
|
2166
2187
|
/**
|
|
2167
|
-
*
|
|
2188
|
+
* Configuration related to the
|
|
2168
2189
|
* workflow and how the system interprets it.
|
|
2169
2190
|
*/
|
|
2170
2191
|
workflowConfiguration?: {
|
|
@@ -2290,7 +2311,7 @@ declare class SpiffCommerceClient {
|
|
|
2290
2311
|
*/
|
|
2291
2312
|
getNewBundle(collectionId?: string, initialMetadata?: {
|
|
2292
2313
|
[key: string]: string;
|
|
2293
|
-
}): Promise<Bundle>;
|
|
2314
|
+
}, options?: GetBundleOptions): Promise<Bundle>;
|
|
2294
2315
|
/**
|
|
2295
2316
|
* Retrieves an existing bundle from the API, by id.
|
|
2296
2317
|
* @param bundleId The id of the bundle to retrieve.
|
|
@@ -2298,7 +2319,11 @@ declare class SpiffCommerceClient {
|
|
|
2298
2319
|
* @param graphqlOptions Optional: Options to configure loading the workflow.
|
|
2299
2320
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
2300
2321
|
*/
|
|
2301
|
-
getExistingBundle(bundleId: string, previewService?: ThreeDPreviewService,
|
|
2322
|
+
getExistingBundle(bundleId: string, previewService?: ThreeDPreviewService,
|
|
2323
|
+
/**
|
|
2324
|
+
* @deprecated use GetBundleOptions instead. This attribute will be removed in the future.
|
|
2325
|
+
*/
|
|
2326
|
+
graphqlOptions?: GetBundleGraphqlOptions, options?: GetBundleOptions): Promise<Bundle>;
|
|
2302
2327
|
/**
|
|
2303
2328
|
* Retrieves all existing bundle stakeholders from the API, for the currently authenticated customer.
|
|
2304
2329
|
* @returns An array of bundle stakeholders.
|