@spiffcommerce/core 27.2.1-beta.3bacc6ca-c8cc-5dca-a011-3b4b088687dc → 27.2.1-beta.4ce42ac6-14b8-5f25-8253-732fa129c9fa
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 +2 -33
- package/dist/index.js +141 -150
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1299 -1382
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { RenderableContextService, RenderableContext, ThreeDPreviewService, Mode
|
|
|
5
5
|
import * as lodash from 'lodash';
|
|
6
6
|
import { CompleteQuoteMessage, ThemeInstallConfigurationGraphQl, ConversionConfiguration } from '@spiffcommerce/theme-bridge';
|
|
7
7
|
export { ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation } from '@spiffcommerce/theme-bridge';
|
|
8
|
-
import { Currency } from 'dinero.js';
|
|
9
8
|
import { FuseResult } from 'fuse.js';
|
|
10
9
|
import { Font } from 'opentype.js';
|
|
11
10
|
|
|
@@ -2188,37 +2187,6 @@ declare class IntegrationProduct {
|
|
|
2188
2187
|
getAllWorkflows(): ProductWorkflow$1[];
|
|
2189
2188
|
}
|
|
2190
2189
|
|
|
2191
|
-
declare class CurrencyContext {
|
|
2192
|
-
private readonly presentmentCurrency?;
|
|
2193
|
-
private readonly partnerCurrency;
|
|
2194
|
-
private readonly rateFrom;
|
|
2195
|
-
private readonly rateTo;
|
|
2196
|
-
constructor(rateFrom: number, rateTo: number, partnerCurrency: Currency, presentmentCurrency?: Currency);
|
|
2197
|
-
/**
|
|
2198
|
-
* @returns The currency code for the currency being used for monetary display.
|
|
2199
|
-
*/
|
|
2200
|
-
code(): Currency;
|
|
2201
|
-
/**
|
|
2202
|
-
* @returns true if the conversion is required, false otherwise.
|
|
2203
|
-
*/
|
|
2204
|
-
conversionRequired(): boolean;
|
|
2205
|
-
/**
|
|
2206
|
-
* Converts a monetary value from a workflow in a partner specified currency
|
|
2207
|
-
* to the units of the currency being used for display.
|
|
2208
|
-
* @param amount The amount in minor units to convert.
|
|
2209
|
-
* @returns
|
|
2210
|
-
*/
|
|
2211
|
-
getConvertedSubunits(amount: number): number;
|
|
2212
|
-
/**
|
|
2213
|
-
* Converts a monetary value from the database to the units of its currency.
|
|
2214
|
-
*/
|
|
2215
|
-
private units;
|
|
2216
|
-
/**
|
|
2217
|
-
* Converts a monetary value in units to the subunits of its currency.
|
|
2218
|
-
*/
|
|
2219
|
-
private subunits;
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
2190
|
declare const getWorkflows: (ids: string[], options?: GetWorkflowGraphqlOptions) => Promise<Workflow[]>;
|
|
2223
2191
|
declare const getWorkflow: (id: string, options?: GetWorkflowGraphqlOptions) => Promise<Workflow>;
|
|
2224
2192
|
/**
|
|
@@ -2330,6 +2298,7 @@ interface ClientConfiguration {
|
|
|
2330
2298
|
*/
|
|
2331
2299
|
declare class SpiffCommerceClient {
|
|
2332
2300
|
private options;
|
|
2301
|
+
private currencyCode?;
|
|
2333
2302
|
private customer?;
|
|
2334
2303
|
private activeIntegration?;
|
|
2335
2304
|
private marketplaceThemeInstallId?;
|
|
@@ -2344,8 +2313,8 @@ declare class SpiffCommerceClient {
|
|
|
2344
2313
|
* and the Spiff Commerce platform.
|
|
2345
2314
|
*/
|
|
2346
2315
|
getAssetManager(): AssetManager;
|
|
2316
|
+
getCurrencyCode(): string;
|
|
2347
2317
|
getFlowService(): FlowService;
|
|
2348
|
-
getCurrencyContext(presentmentCurrency: string): Promise<CurrencyContext>;
|
|
2349
2318
|
getIntegration(): Promise<Integration>;
|
|
2350
2319
|
canUseAddon(addonHandle: AddonHandle): Promise<boolean>;
|
|
2351
2320
|
/**
|