@rokt/dcui-orchestrator 1.2.1-rc.13 → 1.2.1-rc.15
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.cjs +26 -26
- package/dist/index.js +15 -15
- package/dist/modules/instant-purchase/src/actions/instant-purchase.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/catalog-selectors-stacked/catalog-selectors-stacked.d.ts +3 -1
- package/dist/modules/instant-purchase/src/models/state/instant-purchase.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/tax-and-shipping/sagas.d.ts +5 -30
- package/dist/modules/instant-purchase/src/selectors/tax-and-shipping/selectors.d.ts +3 -0
- package/dist/modules/instant-purchase/src/utils/parse-non-negative-monetary-amount.d.ts +1 -0
- package/dist/modules/instant-purchase/src/utils/requires-tax-and-shipping-initialization.d.ts +2 -0
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ export interface PushTaxAndShippingPayload {
|
|
|
42
42
|
}
|
|
43
43
|
export interface MarkTaxAndShippingPendingPayload {
|
|
44
44
|
cacheKey: string;
|
|
45
|
+
requestId: string;
|
|
45
46
|
}
|
|
46
47
|
export declare const INITIATE_INSTANT_PURCHASE = "INSTANT_PURCHASE/INITIATE";
|
|
47
48
|
export type InitiateInstantPurchase = {
|
|
@@ -12,7 +12,9 @@ export interface CatalogSelectorsStackedProps<Template extends LayoutSchemaModel
|
|
|
12
12
|
* `text.textTransform` rather than transforming the value, so `When`
|
|
13
13
|
* comparisons stay stable.
|
|
14
14
|
* * `%^DATA.variantAttribute.hasMultipleOptions^%`: `"true"` or `"false"`.
|
|
15
|
-
* `CatalogDropdown` renders neither label nor control for a single option
|
|
15
|
+
* `CatalogDropdown` renders neither label nor control for a single option,
|
|
16
|
+
* and the whole template for that dimension is hidden, so it takes no
|
|
17
|
+
* space in the stack.
|
|
16
18
|
* Tokens from the enclosing scope stay resolvable alongside these.
|
|
17
19
|
*
|
|
18
20
|
* Keep the dropdown mounted. A `When` that encloses it would stop it mounting, and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CallEffect, PutEffect, RaceEffect, SelectEffect, ForkEffect } from 'redux-saga/effects';
|
|
2
|
-
import { InstantPurchaseTaxAndShippingResponsePayload,
|
|
2
|
+
import { InstantPurchaseTaxAndShippingResponsePayload, TaxAndShippingState, TaxAndShippingErrors } from '../../models';
|
|
3
3
|
import { GlobalGateway } from '../../../../../libraries/module-connector/src/main';
|
|
4
4
|
import { Log } from '../../../../../libraries/domain/src/models';
|
|
5
5
|
import { AppState } from '../../reducers';
|
|
@@ -10,41 +10,16 @@ export declare function watchTaxAndShippingChannel(gateway: GlobalGateway, logge
|
|
|
10
10
|
offerEnd: unknown;
|
|
11
11
|
} | undefined>;
|
|
12
12
|
export declare function initiateTaxAndShippingRequest(_gateway: GlobalGateway, logger: (log: Log) => void, action: InitiateTaxAndShipping): Generator<SelectEffect | CallEffect | PutEffect | ForkEffect, void, AppState['fulfillmentDetails'] | boolean>;
|
|
13
|
-
export declare function processTaxAndShippingResponse(payload: InstantPurchaseTaxAndShippingResponsePayload): Generator<PutEffect
|
|
13
|
+
export declare function processTaxAndShippingResponse(payload: InstantPurchaseTaxAndShippingResponsePayload): Generator<SelectEffect | PutEffect, void, unknown>;
|
|
14
|
+
export declare function timeoutPendingCacheEntry(cacheKey: string, requestId: string, logger: (log: Log) => void): Generator<CallEffect<void> | SelectEffect | CallEffect<true> | PutEffect<{
|
|
14
15
|
type: string;
|
|
15
16
|
payload: {
|
|
16
17
|
cacheKey: string;
|
|
17
18
|
taxAndShippingEntry: {
|
|
18
19
|
isPending: false;
|
|
19
20
|
taxAndShippingData: {
|
|
20
|
-
error: TaxAndShippingErrors
|
|
21
|
+
error: TaxAndShippingErrors;
|
|
21
22
|
};
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
-
type: string;
|
|
26
|
-
payload: {
|
|
27
|
-
event: string;
|
|
28
|
-
completionReason: string;
|
|
29
|
-
};
|
|
30
|
-
}> | PutEffect<{
|
|
31
|
-
type: string;
|
|
32
|
-
payload: {
|
|
33
|
-
key: "offerComplete";
|
|
34
|
-
value: number;
|
|
35
|
-
};
|
|
36
|
-
}> | PutEffect<{
|
|
37
|
-
type: string;
|
|
38
|
-
payload: {
|
|
39
|
-
cacheKey: string;
|
|
40
|
-
taxAndShippingEntry: {
|
|
41
|
-
isPending: false;
|
|
42
|
-
taxAndShippingData: {
|
|
43
|
-
taxAndShippingPricing: TaxAndShippingPricing;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
}> | PutEffect<{
|
|
48
|
-
type: string;
|
|
49
|
-
payload: string | null;
|
|
50
|
-
}>, void, unknown>;
|
|
25
|
+
}>, void, TaxAndShippingState>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { PluginCatalogItem } from '../../../../../libraries/domain/src/models';
|
|
1
2
|
import { TaxAndShippingEntry } from '../../models';
|
|
2
3
|
import { AppState } from '../../reducers';
|
|
3
4
|
export declare function getActiveTaxAndShipping(state: AppState): TaxAndShippingEntry;
|
|
5
|
+
export declare function getTaxAndShippingForCatalogItem(state: AppState, catalogItem: Pick<PluginCatalogItem, 'catalogItemId'>): TaxAndShippingEntry | undefined;
|
|
6
|
+
export declare function isCatalogItemTaxAndShippingReady(state: AppState, catalogItem: Pick<PluginCatalogItem, 'catalogItemId' | 'copy'>): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseNonNegativeMonetaryAmount(value: unknown): number | null;
|