@spiffcommerce/core 19.1.1 → 19.2.1-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 +13 -0
- package/dist/index.js +358 -315
- package/dist/index.umd.cjs +33 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,10 +21,17 @@ 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
|
+
}
|
|
24
29
|
declare class GraphQlManager {
|
|
25
30
|
private shadowGraphqlClient;
|
|
31
|
+
private authenticationMode;
|
|
26
32
|
constructor();
|
|
27
33
|
getShadowGraphqlClient(): ApolloClient<any>;
|
|
34
|
+
setAuthenticationMode(mode: GraphQLAuthenticationMode): void;
|
|
28
35
|
private constructShadowGraphqlClient;
|
|
29
36
|
}
|
|
30
37
|
declare const graphQlManager: GraphQlManager;
|
|
@@ -2227,6 +2234,12 @@ declare class SpiffCommerceClient {
|
|
|
2227
2234
|
getAssetManager(): AssetManager;
|
|
2228
2235
|
getCurrencyCode(): string;
|
|
2229
2236
|
getFlowService(): FlowService;
|
|
2237
|
+
getIntegration(): Promise<{
|
|
2238
|
+
id: string;
|
|
2239
|
+
theme: Theme;
|
|
2240
|
+
partner: Partner;
|
|
2241
|
+
logo: string;
|
|
2242
|
+
}>;
|
|
2230
2243
|
/**
|
|
2231
2244
|
* Attempts to load persisted authentication information from local storage, and authenticate with the Spiff Commerce API.
|
|
2232
2245
|
* @param bundleId The ID of the bundle you intend to load.
|