@spiffcommerce/core 26.42.0 → 26.42.1-beta.11005913-44ed-53ed-be12-8745ec5907c4
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 +34 -1
- package/dist/index.js +180 -180
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1686 -1518
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -2283,6 +2283,9 @@ interface ClientConfiguration {
|
|
|
2283
2283
|
marketplaceThemeInstallId?: string;
|
|
2284
2284
|
marketplaceThemeInstallConfigurationId?: string;
|
|
2285
2285
|
bearerAuthenticationToken?: string;
|
|
2286
|
+
userPoolClientId?: string;
|
|
2287
|
+
userPoolRegion?: string;
|
|
2288
|
+
spiffRegion?: string;
|
|
2286
2289
|
}
|
|
2287
2290
|
/**
|
|
2288
2291
|
* The Spiff Commerce Javascript Client. Required for
|
|
@@ -2295,6 +2298,10 @@ declare class SpiffCommerceClient {
|
|
|
2295
2298
|
private activeIntegration?;
|
|
2296
2299
|
private marketplaceThemeInstallId?;
|
|
2297
2300
|
private marketplaceThemeInstallConfigurationId?;
|
|
2301
|
+
private userPoolClientId?;
|
|
2302
|
+
private userPoolRegion?;
|
|
2303
|
+
private spiffRegion?;
|
|
2304
|
+
private challengeSession?;
|
|
2298
2305
|
constructor(options: ClientOptions);
|
|
2299
2306
|
configure(configuration: ClientConfiguration): void;
|
|
2300
2307
|
/**
|
|
@@ -2354,6 +2361,25 @@ declare class SpiffCommerceClient {
|
|
|
2354
2361
|
* @returns True if the verification was successful, false otherwise.
|
|
2355
2362
|
*/
|
|
2356
2363
|
verifyCode(emailAddress: string, verificationCode: string): Promise<boolean>;
|
|
2364
|
+
/**
|
|
2365
|
+
* Generate an email code to allow logging in as a Spiff user.
|
|
2366
|
+
*/
|
|
2367
|
+
generateLoginCode(emailAddress: string): Promise<void>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Verify an email code to log in as a Spiff user.
|
|
2370
|
+
*/
|
|
2371
|
+
verifyLoginCode(emailAddress: string, code: string): Promise<void>;
|
|
2372
|
+
/**
|
|
2373
|
+
* Log out the currently logged-in Spiff user.
|
|
2374
|
+
*/
|
|
2375
|
+
logOut(): Promise<void>;
|
|
2376
|
+
/**
|
|
2377
|
+
* Check if a customer is logged in.
|
|
2378
|
+
* If they are, set the customer object.
|
|
2379
|
+
* This is how we resume sessions between loads.
|
|
2380
|
+
*/
|
|
2381
|
+
reloadLoggedInCustomer(): Promise<void>;
|
|
2382
|
+
loggedInBearerToken(): Promise<string>;
|
|
2357
2383
|
getCustomerMetafields(): Promise<Metafield[]>;
|
|
2358
2384
|
/**
|
|
2359
2385
|
* @param collectionId Optional: The id of the product collection that the bundle can use.
|
|
@@ -4680,7 +4706,9 @@ declare const optionService: OptionService;
|
|
|
4680
4706
|
declare const setBearerAuthenticationToken: (token: string) => void;
|
|
4681
4707
|
declare class GraphQlManager {
|
|
4682
4708
|
private shadowGraphqlClient;
|
|
4709
|
+
private spiffClient?;
|
|
4683
4710
|
constructor();
|
|
4711
|
+
setSpiffCommerceClient(client: SpiffCommerceClient): void;
|
|
4684
4712
|
getShadowGraphqlClient(): ApolloClient<any>;
|
|
4685
4713
|
private constructShadowGraphqlClient;
|
|
4686
4714
|
}
|
|
@@ -5819,4 +5847,9 @@ declare const validateWorkflowExperienceRecipient: (workflowExperience: Workflow
|
|
|
5819
5847
|
*/
|
|
5820
5848
|
declare const validateWorkflowExperienceRecipients: (workflowExperiences: WorkflowExperience[]) => Promise<(AddressValidationJob | undefined)[] | undefined>;
|
|
5821
5849
|
|
|
5822
|
-
|
|
5850
|
+
/**
|
|
5851
|
+
* Gets the raw Global Property State for a bundle.
|
|
5852
|
+
*/
|
|
5853
|
+
declare const getGlobalPropertyStateForBundle: (bundleId: string) => Promise<GlobalPropertyState | undefined>;
|
|
5854
|
+
|
|
5855
|
+
export { AddonHandle, AddressComponent, AddressValidationJob, AddressValidationJobStatus, AddressValidationResult, AddressValidationResultConfirmationLevel, Animatable, AnyStepData, ArrayInput, AspectType, Asset, AssetConfiguration, AssetNotFoundError, AssetObjectVersion, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, Bundle$1 as Bundle, BundleDesignCreationCartAddMode, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, Bundle as BundleRaw, BundleStakeholder, CanvasCommand, CollectionProduct, ColorDefinition, ColorOption, ColorOptionGlobalPropertyHandle, ColorProfileProps, CommandContext, CommandState, Condition, ConditionalGlobalPropertiesChangedEventData, CreateElementCommand, CreateLayoutCommand, Customer, CustomerDetailsInput, DeleteElementCommand, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, DigitalContentStepData, DigitalContentStepHandle, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameService, FrameStep, FrameStepData, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyConfiguration, GlobalPropertyHandle, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, IllustrationStepHandle, ImageElement, InformationMessageType, InformationResult, InformationStepData, InformationStepHandle, Integration, IntegrationOptionResource, IntegrationProduct, IntegrationType, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutNotFoundError, LayoutRenderingPurpose, LayoutState, LayoutsState, MandatorySteps, MaterialEffectMode, MaterialStepData, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepData, ModelStepHandle, ModuleStepData, ModuleStepHandle, MoveCommand, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, OptionResource, Order, OrderItem, PapyrusComponent, ParseError, PictureStepData, PictureStepHandle, Placeable, PmsSearchResult, Point, Product, ProductCameraRig, ProductCollection, ProductCollectionProductSortKey, ProductWorkflow$1 as ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepData, QuestionStepHandle, QueueablePromise, Recipient, Region, RegionElement, RenderableScene, ResizeCommand, ResourceNotFoundError, RotateCommand, SavedDesign, ScaleAxis, SelectionStorage, SendBackwardsCommand, ShapeStepData, ShapeStepHandle, ShareAction, ShareActionType, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, Step, StepAspect, StepAspectType, StepElements, StepGroup, StepHandle, StepStorage, StepType, TextAlgorithm, TextChangeCommand, TextChangeResult, TextGlobalPropertyHandle, TextInput, TextStepData, TextStepHandle, TextStepStorage, TextboxElement, Theme, ToastCallback, Transaction, Transform, TransformCollection$1 as TransformCollection, UnhandledBehaviorError, UnitOfMeasurement, UpdateImageSourceCommand, Variant, VariantResource, Vector3, Workflow, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowPanel, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, browserColorToHex, cmPerPixel, createDesign, currentDirection, dataUrlFromExternalUrl, designService, determineCorrectFontSizeAndLines, digitalContentStepService, domParser, duplicateBundle, duplicateTransaction, fetchAsString, findAngle, findElement, findPmsColors, frameDataCache, frameStepService, generate, generateCommands, generateSVGWithUnknownColors, generateStateFromDesignInputSteps, getAddressValidationJobs, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getBoundedOffsets, getBundleThemeConfiguration, getCustomer, getCustomerBundles, getElementVertices, getFrameData, getGlobalPropertyStateForBundle, getIntegration, getNEPoint, getNWPoint, getOrderedTransactions, getOverrideThemeConfiguration, getPointOfRotation, getProductCollections, getSEPoint, getSvgElement, getTemplateBundles, getTemplateTransactions, getTransaction, getTransactionThemeConfiguration, getTransactionsForBundle, getTrueCoordinates, getUnorderedTransactions, getValidationJobsForWorkflowExperiences, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, isCloseToValue, loadFont, matchHexToPms, materialStepService, metafieldManager, mmPerPixel, modelStepService, modifySVGColors, moduleStepService, nameBundle, nameTransaction, optionService, outlineFontsInSvg, patternImageDataCache, persistenceService, pictureStepService, pmsToRgb, questionStepService, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout, rgbToPms, rotateAroundPoint, sanitizeSvgTree, setBearerAuthenticationToken, setCanvasModule, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, svgColorValueToDefinition, svgStringDimensions, svgToDataUrl, textStepService, toast, validateWorkflowExperienceRecipient, validateWorkflowExperienceRecipients, xmlSerializer };
|