@spiffcommerce/core 19.2.3-alpha.1 → 19.3.0-alpha.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 CHANGED
@@ -21,17 +21,10 @@ declare class OptionService {
21
21
  }
22
22
  declare const optionService: OptionService;
23
23
 
24
- declare enum GraphQLAuthenticationMode {
25
- Default = 0,
26
- Application = 1,
27
- User = 2
28
- }
29
24
  declare class GraphQlManager {
30
25
  private shadowGraphqlClient;
31
- private authenticationMode;
32
26
  constructor();
33
27
  getShadowGraphqlClient(): ApolloClient<any>;
34
- setAuthenticationMode(mode: GraphQLAuthenticationMode): void;
35
28
  private constructShadowGraphqlClient;
36
29
  }
37
30
  declare const graphQlManager: GraphQlManager;
@@ -1002,8 +995,8 @@ interface BundleStakeholderInput {
1002
995
  type ProductCollectionResource = {
1003
996
  id: string;
1004
997
  globalPropertyConfiguration?: GlobalPropertyConfiguration;
998
+ productCollectionProducts?: ProductCollectionProductResource[];
1005
999
  name: string;
1006
- productCollectionProducts: ProductCollectionProductResource[];
1007
1000
  transformCollection?: TransformCollection$1;
1008
1001
  };
1009
1002
  type ProductCollectionProductResource = {
@@ -1645,7 +1638,7 @@ declare class ProductCollection {
1645
1638
  /**
1646
1639
  * A list of products in this collections with useful helpers for interacting with them.
1647
1640
  */
1648
- getProducts(): CollectionProduct[];
1641
+ getProducts(): Promise<CollectionProduct[]>;
1649
1642
  getTransformCollection(): TransformCollection | undefined;
1650
1643
  /**
1651
1644
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -1805,10 +1798,6 @@ interface Bundle {
1805
1798
  * @returns A promise that resolves when the name and metadata have been updated in the Spiff Commerce system.
1806
1799
  */
1807
1800
  setNameAndMetadata(name: string, metadata: Map<string, string>): Promise<void>;
1808
- /**
1809
- * Returns true when the bundle contains products that share global properties.
1810
- */
1811
- hasGlobalProperties(): boolean;
1812
1801
  /**
1813
1802
  * Get a handle to the global properties available within this bundle. Setting values
1814
1803
  * via this method will make selections on all bundles that share the property.
@@ -2938,4 +2927,4 @@ declare class PromiseCache {
2938
2927
  }
2939
2928
  declare const promiseCache: PromiseCache;
2940
2929
 
2941
- export { AssetNotFoundError, Bundle, CollectionProduct, ColorOption, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetWorkflowOptions, GlobalPropertyHandle, GraphQLAuthenticationMode, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, NodeType, ObjectInput, ObjectInputType, OptionNotFoundError, ParseError, PictureStepHandle, Product, ProductCameraRig, ProductCollection, ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextStepHandle, TextStepStorage, Transaction, Transform, TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, createDesign, designService, digitalContentStepService, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, questionStepService, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };
2930
+ export { AssetNotFoundError, Bundle, CollectionProduct, ColorOption, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, NodeType, ObjectInput, ObjectInputType, OptionNotFoundError, ParseError, PictureStepHandle, Product, ProductCameraRig, ProductCollection, ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextStepHandle, TextStepStorage, Transaction, Transform, TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, createDesign, designService, digitalContentStepService, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, questionStepService, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };