@clicktap/state 0.16.0 → 0.16.3
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/__mocks__/nanoid.d.ts +7 -0
- package/auth/AuthProvider.d.ts +66 -66
- package/auth/actors/authenticate.d.ts +1 -1
- package/auth/actors/refreshAccessToken.d.ts +1 -1
- package/auth/actors/unauthenticate.d.ts +1 -1
- package/auth/auth.d.ts +32 -32
- package/index.js +33 -33
- package/index.mjs +1460 -1535
- package/package.json +3 -3
- package/quote/CheckoutProvider.d.ts +69 -69
- package/quote/QuoteProvider.d.ts +153 -153
- package/quote/checkout/actions/resetCheckout.d.ts +7 -7
- package/quote/checkout/actions/updateQuote.d.ts +20 -20
- package/quote/checkout/actors/placeOrder.d.ts +1 -1
- package/quote/checkout/actors/submitStepData.d.ts +1 -1
- package/quote/checkout/types.d.ts +2 -2
- package/quote/checkout.d.ts +23 -23
- package/quote/quote/actions/addItems.d.ts +20 -20
- package/quote/quote/actions/refresh.d.ts +20 -20
- package/quote/quote/actions/removeItems.d.ts +20 -20
- package/quote/quote/actions/syncAccessToken.d.ts +6 -6
- package/quote/quote/actions/updateItems.d.ts +20 -20
- package/quote/quote/actors/addItems.d.ts +1 -1
- package/quote/quote/actors/refresh.d.ts +1 -1
- package/quote/quote/actors/removeItems.d.ts +1 -1
- package/quote/quote/actors/updateItems.d.ts +1 -1
- package/quote/quote/types.d.ts +4 -4
- package/quote/quote.d.ts +51 -51
- package/toast/ToastProvider.d.ts +32 -32
- package/toast/timer.d.ts +7 -7
- package/toast/toast.d.ts +29 -29
- package/toast/types.d.ts +0 -1
|
@@ -5,13 +5,13 @@ export declare function resetCheckout({ context, event, }: {
|
|
|
5
5
|
}): CheckoutMachineContext | {
|
|
6
6
|
currentStep: string;
|
|
7
7
|
errors: never[];
|
|
8
|
-
steps: import(
|
|
8
|
+
steps: import('../../..').CheckoutStep[];
|
|
9
9
|
successId: string;
|
|
10
10
|
quote: Partial<{
|
|
11
11
|
id: string | null;
|
|
12
12
|
accessToken: string | null;
|
|
13
13
|
locale: string | null;
|
|
14
|
-
checkoutSteps: import(
|
|
14
|
+
checkoutSteps: import('../../..').CheckoutStep[];
|
|
15
15
|
baseCurrency: string | null;
|
|
16
16
|
currency: string | null;
|
|
17
17
|
currencyConversionRate: number | null;
|
|
@@ -20,17 +20,17 @@ export declare function resetCheckout({ context, event, }: {
|
|
|
20
20
|
items: Record<string, any>[] | null;
|
|
21
21
|
promotions: Record<string, any>[] | null;
|
|
22
22
|
shippingAddresses: {
|
|
23
|
-
available: import(
|
|
23
|
+
available: import('../../..').QuoteAddress[];
|
|
24
24
|
applied: {
|
|
25
25
|
availableAddressId?: string | undefined;
|
|
26
|
-
address: import(
|
|
26
|
+
address: import('../../..').QuoteAddress;
|
|
27
27
|
itemIds: Record<string, any>[];
|
|
28
28
|
}[];
|
|
29
29
|
};
|
|
30
30
|
paymentMethods: {
|
|
31
|
-
available: import(
|
|
31
|
+
available: import('../../..').PaymentMethod[];
|
|
32
32
|
applied: {
|
|
33
|
-
paymentMethod: import(
|
|
33
|
+
paymentMethod: import('../../..').PaymentMethod;
|
|
34
34
|
options: Record<string, any>[];
|
|
35
35
|
amount: number;
|
|
36
36
|
}[];
|
|
@@ -39,7 +39,7 @@ export declare function resetCheckout({ context, event, }: {
|
|
|
39
39
|
id: string;
|
|
40
40
|
shippingAddress: {
|
|
41
41
|
id: string;
|
|
42
|
-
address: import(
|
|
42
|
+
address: import('../../..').QuoteAddress;
|
|
43
43
|
};
|
|
44
44
|
items: Record<string, any>[];
|
|
45
45
|
shippingMethods: {
|
|
@@ -8,7 +8,7 @@ export declare function updateQuote({ context, event, }: {
|
|
|
8
8
|
id: string | null;
|
|
9
9
|
accessToken: string | null;
|
|
10
10
|
locale: string | null;
|
|
11
|
-
checkoutSteps: import(
|
|
11
|
+
checkoutSteps: import('../../..').CheckoutStep[];
|
|
12
12
|
baseCurrency: string | null;
|
|
13
13
|
currency: string | null;
|
|
14
14
|
currencyConversionRate: number | null;
|
|
@@ -17,17 +17,17 @@ export declare function updateQuote({ context, event, }: {
|
|
|
17
17
|
items: Record<string, any>[] | null;
|
|
18
18
|
promotions: Record<string, any>[] | null;
|
|
19
19
|
shippingAddresses: {
|
|
20
|
-
available: import(
|
|
20
|
+
available: import('../../..').QuoteAddress[];
|
|
21
21
|
applied: {
|
|
22
22
|
availableAddressId?: string | undefined;
|
|
23
|
-
address: import(
|
|
23
|
+
address: import('../../..').QuoteAddress;
|
|
24
24
|
itemIds: Record<string, any>[];
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
27
|
paymentMethods: {
|
|
28
|
-
available: import(
|
|
28
|
+
available: import('../../..').PaymentMethod[];
|
|
29
29
|
applied: {
|
|
30
|
-
paymentMethod: import(
|
|
30
|
+
paymentMethod: import('../../..').PaymentMethod;
|
|
31
31
|
options: Record<string, any>[];
|
|
32
32
|
amount: number;
|
|
33
33
|
}[];
|
|
@@ -36,7 +36,7 @@ export declare function updateQuote({ context, event, }: {
|
|
|
36
36
|
id: string;
|
|
37
37
|
shippingAddress: {
|
|
38
38
|
id: string;
|
|
39
|
-
address: import(
|
|
39
|
+
address: import('../../..').QuoteAddress;
|
|
40
40
|
};
|
|
41
41
|
items: Record<string, any>[];
|
|
42
42
|
shippingMethods: {
|
|
@@ -104,26 +104,26 @@ export declare function updateQuote({ context, event, }: {
|
|
|
104
104
|
} | undefined;
|
|
105
105
|
graphql?: {
|
|
106
106
|
refresh: {
|
|
107
|
-
document: import(
|
|
108
|
-
requestHeaders?: import(
|
|
107
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
108
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
109
109
|
};
|
|
110
110
|
addItems: {
|
|
111
|
-
document: import(
|
|
112
|
-
requestHeaders?: import(
|
|
111
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
112
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
113
113
|
};
|
|
114
114
|
removeItems: {
|
|
115
|
-
document: import(
|
|
116
|
-
requestHeaders?: import(
|
|
115
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
116
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
117
117
|
};
|
|
118
118
|
updateItems: {
|
|
119
|
-
document: import(
|
|
120
|
-
requestHeaders?: import(
|
|
119
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
120
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
121
121
|
};
|
|
122
122
|
} | undefined;
|
|
123
123
|
id?: string | null | undefined;
|
|
124
124
|
accessToken?: string | null | undefined;
|
|
125
125
|
locale?: string | null | undefined;
|
|
126
|
-
checkoutSteps?: import(
|
|
126
|
+
checkoutSteps?: import('../../..').CheckoutStep[] | undefined;
|
|
127
127
|
baseCurrency?: string | null | undefined;
|
|
128
128
|
currency?: string | null | undefined;
|
|
129
129
|
currencyConversionRate?: number | null | undefined;
|
|
@@ -132,17 +132,17 @@ export declare function updateQuote({ context, event, }: {
|
|
|
132
132
|
items?: Record<string, any>[] | null | undefined;
|
|
133
133
|
promotions?: Record<string, any>[] | null | undefined;
|
|
134
134
|
shippingAddresses?: {
|
|
135
|
-
available: import(
|
|
135
|
+
available: import('../../..').QuoteAddress[];
|
|
136
136
|
applied: {
|
|
137
137
|
availableAddressId?: string | undefined;
|
|
138
|
-
address: import(
|
|
138
|
+
address: import('../../..').QuoteAddress;
|
|
139
139
|
itemIds: Record<string, any>[];
|
|
140
140
|
}[];
|
|
141
141
|
} | undefined;
|
|
142
142
|
paymentMethods?: {
|
|
143
|
-
available: import(
|
|
143
|
+
available: import('../../..').PaymentMethod[];
|
|
144
144
|
applied: {
|
|
145
|
-
paymentMethod: import(
|
|
145
|
+
paymentMethod: import('../../..').PaymentMethod;
|
|
146
146
|
options: Record<string, any>[];
|
|
147
147
|
amount: number;
|
|
148
148
|
}[];
|
|
@@ -151,7 +151,7 @@ export declare function updateQuote({ context, event, }: {
|
|
|
151
151
|
id: string;
|
|
152
152
|
shippingAddress: {
|
|
153
153
|
id: string;
|
|
154
|
-
address: import(
|
|
154
|
+
address: import('../../..').QuoteAddress;
|
|
155
155
|
};
|
|
156
156
|
items: Record<string, any>[];
|
|
157
157
|
shippingMethods: {
|
|
@@ -16,5 +16,5 @@ export type PlaceOrderDataOutput = Partial<{
|
|
|
16
16
|
}>;
|
|
17
17
|
};
|
|
18
18
|
}>;
|
|
19
|
-
export declare const placeOrder: import(
|
|
19
|
+
export declare const placeOrder: import('xstate').PromiseActorLogic<PlaceOrderSuccessEvent, PlaceOrderDataInput>;
|
|
20
20
|
export default placeOrder;
|
|
@@ -15,5 +15,5 @@ export type SubmitStepDataOutput = Partial<{
|
|
|
15
15
|
}>;
|
|
16
16
|
};
|
|
17
17
|
}>;
|
|
18
|
-
export declare const submitStepData: import(
|
|
18
|
+
export declare const submitStepData: import('xstate').PromiseActorLogic<SubmitStepDataSuccessEvent, SubmitStepDataInput>;
|
|
19
19
|
export default submitStepData;
|
|
@@ -16,11 +16,11 @@ export interface CheckoutMachineContext {
|
|
|
16
16
|
successId: string;
|
|
17
17
|
graphql: {
|
|
18
18
|
placeOrder: {
|
|
19
|
-
document: RequestDocument | TypedDocumentNode<unknown,
|
|
19
|
+
document: RequestDocument | TypedDocumentNode<unknown, object>;
|
|
20
20
|
requestHeaders?: GraphQLClientRequestHeaders;
|
|
21
21
|
};
|
|
22
22
|
submitStepData: {
|
|
23
|
-
document: RequestDocument | TypedDocumentNode<unknown,
|
|
23
|
+
document: RequestDocument | TypedDocumentNode<unknown, object>;
|
|
24
24
|
requestHeaders?: GraphQLClientRequestHeaders;
|
|
25
25
|
};
|
|
26
26
|
};
|
package/quote/checkout.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { CheckoutMachineContext } from './checkout/types';
|
|
2
2
|
import { DeepPartial } from './types';
|
|
3
|
-
export declare const checkoutMachine: import(
|
|
4
|
-
[x: string]: import(
|
|
3
|
+
export declare const checkoutMachine: import('xstate').StateMachine<CheckoutMachineContext, import('./checkout/types').ChangeStepEvent | import('./checkout/types').PlaceOrderEvent | import('./checkout/types').ResetCheckoutEvent | import('./checkout/types').SubmitStepDataEvent | import('xstate').DoneActorEvent<import('./checkout/types').PlaceOrderSuccessEvent> | import('xstate').DoneActorEvent<import('./checkout/types').SubmitStepDataSuccessEvent>, {
|
|
4
|
+
[x: string]: import('xstate').ActorRef<import('xstate').PromiseSnapshot<import('./checkout/types').PlaceOrderSuccessEvent, import('./checkout/actors').PlaceOrderDataInput>, {
|
|
5
5
|
[k: string]: unknown;
|
|
6
6
|
type: string;
|
|
7
|
-
}, import(
|
|
7
|
+
}, import('xstate').EventObject> | import('xstate').ActorRef<import('xstate').PromiseSnapshot<import('./checkout/types').SubmitStepDataSuccessEvent, import('./checkout/actors').SubmitStepDataInput>, {
|
|
8
8
|
[k: string]: unknown;
|
|
9
9
|
type: string;
|
|
10
|
-
}, import(
|
|
11
|
-
}, import(
|
|
10
|
+
}, import('xstate').EventObject> | undefined;
|
|
11
|
+
}, import('xstate').Values<{
|
|
12
12
|
placeOrder: {
|
|
13
13
|
src: "placeOrder";
|
|
14
|
-
logic: import(
|
|
14
|
+
logic: import('xstate').PromiseActorLogic<import('./checkout/types').PlaceOrderSuccessEvent, import('./checkout/actors').PlaceOrderDataInput>;
|
|
15
15
|
id: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
submitStepData: {
|
|
18
18
|
src: "submitStepData";
|
|
19
|
-
logic: import(
|
|
19
|
+
logic: import('xstate').PromiseActorLogic<import('./checkout/types').SubmitStepDataSuccessEvent, import('./checkout/actors').SubmitStepDataInput>;
|
|
20
20
|
id: string | undefined;
|
|
21
21
|
};
|
|
22
|
-
}>, import(
|
|
22
|
+
}>, import('xstate').Values<{
|
|
23
23
|
changeStep: {
|
|
24
24
|
type: "changeStep";
|
|
25
|
-
params: import(
|
|
25
|
+
params: import('xstate').NonReducibleUnknown;
|
|
26
26
|
};
|
|
27
27
|
nextStep: {
|
|
28
28
|
type: "nextStep";
|
|
29
|
-
params: import(
|
|
29
|
+
params: import('xstate').NonReducibleUnknown;
|
|
30
30
|
};
|
|
31
31
|
resetCheckout: {
|
|
32
32
|
type: "resetCheckout";
|
|
33
|
-
params: import(
|
|
33
|
+
params: import('xstate').NonReducibleUnknown;
|
|
34
34
|
};
|
|
35
35
|
updateQuote: {
|
|
36
36
|
type: "updateQuote";
|
|
37
|
-
params: import(
|
|
37
|
+
params: import('xstate').NonReducibleUnknown;
|
|
38
38
|
};
|
|
39
39
|
updateSuccessId: {
|
|
40
40
|
type: "updateSuccessId";
|
|
41
|
-
params: import(
|
|
41
|
+
params: import('xstate').NonReducibleUnknown;
|
|
42
42
|
};
|
|
43
43
|
}>, {
|
|
44
44
|
type: "quoteExists";
|
|
@@ -46,40 +46,40 @@ export declare const checkoutMachine: import("xstate").StateMachine<CheckoutMach
|
|
|
46
46
|
}, never, "uninitialized" | "initializing" | "showStep" | "submittingStepData" | "changingStep" | "placingOrder" | "success", string, {
|
|
47
47
|
initialContext: DeepPartial<CheckoutMachineContext>;
|
|
48
48
|
initialState?: string | undefined;
|
|
49
|
-
}, import(
|
|
49
|
+
}, import('xstate').NonReducibleUnknown, import('xstate').EventObject, import('xstate').MetaObject, import('xstate').ResolveTypegenMeta<import('xstate').TypegenDisabled, import('./checkout/types').ChangeStepEvent | import('./checkout/types').PlaceOrderEvent | import('./checkout/types').ResetCheckoutEvent | import('./checkout/types').SubmitStepDataEvent | import('xstate').DoneActorEvent<import('./checkout/types').PlaceOrderSuccessEvent> | import('xstate').DoneActorEvent<import('./checkout/types').SubmitStepDataSuccessEvent>, import('xstate').Values<{
|
|
50
50
|
placeOrder: {
|
|
51
51
|
src: "placeOrder";
|
|
52
|
-
logic: import(
|
|
52
|
+
logic: import('xstate').PromiseActorLogic<import('./checkout/types').PlaceOrderSuccessEvent, import('./checkout/actors').PlaceOrderDataInput>;
|
|
53
53
|
id: string | undefined;
|
|
54
54
|
};
|
|
55
55
|
submitStepData: {
|
|
56
56
|
src: "submitStepData";
|
|
57
|
-
logic: import(
|
|
57
|
+
logic: import('xstate').PromiseActorLogic<import('./checkout/types').SubmitStepDataSuccessEvent, import('./checkout/actors').SubmitStepDataInput>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
|
-
}>, import(
|
|
60
|
+
}>, import('xstate').Values<{
|
|
61
61
|
changeStep: {
|
|
62
62
|
type: "changeStep";
|
|
63
|
-
params: import(
|
|
63
|
+
params: import('xstate').NonReducibleUnknown;
|
|
64
64
|
};
|
|
65
65
|
nextStep: {
|
|
66
66
|
type: "nextStep";
|
|
67
|
-
params: import(
|
|
67
|
+
params: import('xstate').NonReducibleUnknown;
|
|
68
68
|
};
|
|
69
69
|
resetCheckout: {
|
|
70
70
|
type: "resetCheckout";
|
|
71
|
-
params: import(
|
|
71
|
+
params: import('xstate').NonReducibleUnknown;
|
|
72
72
|
};
|
|
73
73
|
updateQuote: {
|
|
74
74
|
type: "updateQuote";
|
|
75
|
-
params: import(
|
|
75
|
+
params: import('xstate').NonReducibleUnknown;
|
|
76
76
|
};
|
|
77
77
|
updateSuccessId: {
|
|
78
78
|
type: "updateSuccessId";
|
|
79
|
-
params: import(
|
|
79
|
+
params: import('xstate').NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
}>, {
|
|
82
82
|
type: "quoteExists";
|
|
83
83
|
params: unknown;
|
|
84
|
-
}, never, string, import(
|
|
84
|
+
}, never, string, import('xstate').EventObject>>;
|
|
85
85
|
export default checkoutMachine;
|
|
@@ -8,7 +8,7 @@ export declare function addItems({ context, event, }: {
|
|
|
8
8
|
id: string | null;
|
|
9
9
|
accessToken: string | null;
|
|
10
10
|
locale: string | null;
|
|
11
|
-
checkoutSteps: import(
|
|
11
|
+
checkoutSteps: import('../types').CheckoutStep[];
|
|
12
12
|
baseCurrency: string | null;
|
|
13
13
|
currency: string | null;
|
|
14
14
|
currencyConversionRate: number | null;
|
|
@@ -17,17 +17,17 @@ export declare function addItems({ context, event, }: {
|
|
|
17
17
|
items: Record<string, any>[] | null;
|
|
18
18
|
promotions: Record<string, any>[] | null;
|
|
19
19
|
shippingAddresses: {
|
|
20
|
-
available: import(
|
|
20
|
+
available: import('../types').QuoteAddress[];
|
|
21
21
|
applied: {
|
|
22
22
|
availableAddressId?: string | undefined;
|
|
23
|
-
address: import(
|
|
23
|
+
address: import('../types').QuoteAddress;
|
|
24
24
|
itemIds: Record<string, any>[];
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
27
|
paymentMethods: {
|
|
28
|
-
available: import(
|
|
28
|
+
available: import('../types').PaymentMethod[];
|
|
29
29
|
applied: {
|
|
30
|
-
paymentMethod: import(
|
|
30
|
+
paymentMethod: import('../types').PaymentMethod;
|
|
31
31
|
options: Record<string, any>[];
|
|
32
32
|
amount: number;
|
|
33
33
|
}[];
|
|
@@ -36,7 +36,7 @@ export declare function addItems({ context, event, }: {
|
|
|
36
36
|
id: string;
|
|
37
37
|
shippingAddress: {
|
|
38
38
|
id: string;
|
|
39
|
-
address: import(
|
|
39
|
+
address: import('../types').QuoteAddress;
|
|
40
40
|
};
|
|
41
41
|
items: Record<string, any>[];
|
|
42
42
|
shippingMethods: {
|
|
@@ -104,26 +104,26 @@ export declare function addItems({ context, event, }: {
|
|
|
104
104
|
} | undefined;
|
|
105
105
|
graphql?: {
|
|
106
106
|
refresh: {
|
|
107
|
-
document: import(
|
|
108
|
-
requestHeaders?: import(
|
|
107
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
108
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
109
109
|
};
|
|
110
110
|
addItems: {
|
|
111
|
-
document: import(
|
|
112
|
-
requestHeaders?: import(
|
|
111
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
112
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
113
113
|
};
|
|
114
114
|
removeItems: {
|
|
115
|
-
document: import(
|
|
116
|
-
requestHeaders?: import(
|
|
115
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
116
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
117
117
|
};
|
|
118
118
|
updateItems: {
|
|
119
|
-
document: import(
|
|
120
|
-
requestHeaders?: import(
|
|
119
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
120
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
121
121
|
};
|
|
122
122
|
} | undefined;
|
|
123
123
|
id?: string | null | undefined;
|
|
124
124
|
accessToken?: string | null | undefined;
|
|
125
125
|
locale?: string | null | undefined;
|
|
126
|
-
checkoutSteps?: import(
|
|
126
|
+
checkoutSteps?: import('../types').CheckoutStep[] | undefined;
|
|
127
127
|
baseCurrency?: string | null | undefined;
|
|
128
128
|
currency?: string | null | undefined;
|
|
129
129
|
currencyConversionRate?: number | null | undefined;
|
|
@@ -132,17 +132,17 @@ export declare function addItems({ context, event, }: {
|
|
|
132
132
|
items?: Record<string, any>[] | null | undefined;
|
|
133
133
|
promotions?: Record<string, any>[] | null | undefined;
|
|
134
134
|
shippingAddresses?: {
|
|
135
|
-
available: import(
|
|
135
|
+
available: import('../types').QuoteAddress[];
|
|
136
136
|
applied: {
|
|
137
137
|
availableAddressId?: string | undefined;
|
|
138
|
-
address: import(
|
|
138
|
+
address: import('../types').QuoteAddress;
|
|
139
139
|
itemIds: Record<string, any>[];
|
|
140
140
|
}[];
|
|
141
141
|
} | undefined;
|
|
142
142
|
paymentMethods?: {
|
|
143
|
-
available: import(
|
|
143
|
+
available: import('../types').PaymentMethod[];
|
|
144
144
|
applied: {
|
|
145
|
-
paymentMethod: import(
|
|
145
|
+
paymentMethod: import('../types').PaymentMethod;
|
|
146
146
|
options: Record<string, any>[];
|
|
147
147
|
amount: number;
|
|
148
148
|
}[];
|
|
@@ -151,7 +151,7 @@ export declare function addItems({ context, event, }: {
|
|
|
151
151
|
id: string;
|
|
152
152
|
shippingAddress: {
|
|
153
153
|
id: string;
|
|
154
|
-
address: import(
|
|
154
|
+
address: import('../types').QuoteAddress;
|
|
155
155
|
};
|
|
156
156
|
items: Record<string, any>[];
|
|
157
157
|
shippingMethods: {
|
|
@@ -8,7 +8,7 @@ export declare function refresh({ context, event, }: {
|
|
|
8
8
|
id: string | null;
|
|
9
9
|
accessToken: string | null;
|
|
10
10
|
locale: string | null;
|
|
11
|
-
checkoutSteps: import(
|
|
11
|
+
checkoutSteps: import('../types').CheckoutStep[];
|
|
12
12
|
baseCurrency: string | null;
|
|
13
13
|
currency: string | null;
|
|
14
14
|
currencyConversionRate: number | null;
|
|
@@ -17,17 +17,17 @@ export declare function refresh({ context, event, }: {
|
|
|
17
17
|
items: Record<string, any>[] | null;
|
|
18
18
|
promotions: Record<string, any>[] | null;
|
|
19
19
|
shippingAddresses: {
|
|
20
|
-
available: import(
|
|
20
|
+
available: import('../types').QuoteAddress[];
|
|
21
21
|
applied: {
|
|
22
22
|
availableAddressId?: string | undefined;
|
|
23
|
-
address: import(
|
|
23
|
+
address: import('../types').QuoteAddress;
|
|
24
24
|
itemIds: Record<string, any>[];
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
27
|
paymentMethods: {
|
|
28
|
-
available: import(
|
|
28
|
+
available: import('../types').PaymentMethod[];
|
|
29
29
|
applied: {
|
|
30
|
-
paymentMethod: import(
|
|
30
|
+
paymentMethod: import('../types').PaymentMethod;
|
|
31
31
|
options: Record<string, any>[];
|
|
32
32
|
amount: number;
|
|
33
33
|
}[];
|
|
@@ -36,7 +36,7 @@ export declare function refresh({ context, event, }: {
|
|
|
36
36
|
id: string;
|
|
37
37
|
shippingAddress: {
|
|
38
38
|
id: string;
|
|
39
|
-
address: import(
|
|
39
|
+
address: import('../types').QuoteAddress;
|
|
40
40
|
};
|
|
41
41
|
items: Record<string, any>[];
|
|
42
42
|
shippingMethods: {
|
|
@@ -104,26 +104,26 @@ export declare function refresh({ context, event, }: {
|
|
|
104
104
|
} | undefined;
|
|
105
105
|
graphql?: {
|
|
106
106
|
refresh: {
|
|
107
|
-
document: import(
|
|
108
|
-
requestHeaders?: import(
|
|
107
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
108
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
109
109
|
};
|
|
110
110
|
addItems: {
|
|
111
|
-
document: import(
|
|
112
|
-
requestHeaders?: import(
|
|
111
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
112
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
113
113
|
};
|
|
114
114
|
removeItems: {
|
|
115
|
-
document: import(
|
|
116
|
-
requestHeaders?: import(
|
|
115
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
116
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
117
117
|
};
|
|
118
118
|
updateItems: {
|
|
119
|
-
document: import(
|
|
120
|
-
requestHeaders?: import(
|
|
119
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
120
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
121
121
|
};
|
|
122
122
|
} | undefined;
|
|
123
123
|
id?: string | null | undefined;
|
|
124
124
|
accessToken?: string | null | undefined;
|
|
125
125
|
locale?: string | null | undefined;
|
|
126
|
-
checkoutSteps?: import(
|
|
126
|
+
checkoutSteps?: import('../types').CheckoutStep[] | undefined;
|
|
127
127
|
baseCurrency?: string | null | undefined;
|
|
128
128
|
currency?: string | null | undefined;
|
|
129
129
|
currencyConversionRate?: number | null | undefined;
|
|
@@ -132,17 +132,17 @@ export declare function refresh({ context, event, }: {
|
|
|
132
132
|
items?: Record<string, any>[] | null | undefined;
|
|
133
133
|
promotions?: Record<string, any>[] | null | undefined;
|
|
134
134
|
shippingAddresses?: {
|
|
135
|
-
available: import(
|
|
135
|
+
available: import('../types').QuoteAddress[];
|
|
136
136
|
applied: {
|
|
137
137
|
availableAddressId?: string | undefined;
|
|
138
|
-
address: import(
|
|
138
|
+
address: import('../types').QuoteAddress;
|
|
139
139
|
itemIds: Record<string, any>[];
|
|
140
140
|
}[];
|
|
141
141
|
} | undefined;
|
|
142
142
|
paymentMethods?: {
|
|
143
|
-
available: import(
|
|
143
|
+
available: import('../types').PaymentMethod[];
|
|
144
144
|
applied: {
|
|
145
|
-
paymentMethod: import(
|
|
145
|
+
paymentMethod: import('../types').PaymentMethod;
|
|
146
146
|
options: Record<string, any>[];
|
|
147
147
|
amount: number;
|
|
148
148
|
}[];
|
|
@@ -151,7 +151,7 @@ export declare function refresh({ context, event, }: {
|
|
|
151
151
|
id: string;
|
|
152
152
|
shippingAddress: {
|
|
153
153
|
id: string;
|
|
154
|
-
address: import(
|
|
154
|
+
address: import('../types').QuoteAddress;
|
|
155
155
|
};
|
|
156
156
|
items: Record<string, any>[];
|
|
157
157
|
shippingMethods: {
|
|
@@ -8,7 +8,7 @@ export declare function removeItems({ context, event, }: {
|
|
|
8
8
|
id: string | null;
|
|
9
9
|
accessToken: string | null;
|
|
10
10
|
locale: string | null;
|
|
11
|
-
checkoutSteps: import(
|
|
11
|
+
checkoutSteps: import('../types').CheckoutStep[];
|
|
12
12
|
baseCurrency: string | null;
|
|
13
13
|
currency: string | null;
|
|
14
14
|
currencyConversionRate: number | null;
|
|
@@ -17,17 +17,17 @@ export declare function removeItems({ context, event, }: {
|
|
|
17
17
|
items: Record<string, any>[] | null;
|
|
18
18
|
promotions: Record<string, any>[] | null;
|
|
19
19
|
shippingAddresses: {
|
|
20
|
-
available: import(
|
|
20
|
+
available: import('../types').QuoteAddress[];
|
|
21
21
|
applied: {
|
|
22
22
|
availableAddressId?: string | undefined;
|
|
23
|
-
address: import(
|
|
23
|
+
address: import('../types').QuoteAddress;
|
|
24
24
|
itemIds: Record<string, any>[];
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
27
|
paymentMethods: {
|
|
28
|
-
available: import(
|
|
28
|
+
available: import('../types').PaymentMethod[];
|
|
29
29
|
applied: {
|
|
30
|
-
paymentMethod: import(
|
|
30
|
+
paymentMethod: import('../types').PaymentMethod;
|
|
31
31
|
options: Record<string, any>[];
|
|
32
32
|
amount: number;
|
|
33
33
|
}[];
|
|
@@ -36,7 +36,7 @@ export declare function removeItems({ context, event, }: {
|
|
|
36
36
|
id: string;
|
|
37
37
|
shippingAddress: {
|
|
38
38
|
id: string;
|
|
39
|
-
address: import(
|
|
39
|
+
address: import('../types').QuoteAddress;
|
|
40
40
|
};
|
|
41
41
|
items: Record<string, any>[];
|
|
42
42
|
shippingMethods: {
|
|
@@ -104,26 +104,26 @@ export declare function removeItems({ context, event, }: {
|
|
|
104
104
|
} | undefined;
|
|
105
105
|
graphql?: {
|
|
106
106
|
refresh: {
|
|
107
|
-
document: import(
|
|
108
|
-
requestHeaders?: import(
|
|
107
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
108
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
109
109
|
};
|
|
110
110
|
addItems: {
|
|
111
|
-
document: import(
|
|
112
|
-
requestHeaders?: import(
|
|
111
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
112
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
113
113
|
};
|
|
114
114
|
removeItems: {
|
|
115
|
-
document: import(
|
|
116
|
-
requestHeaders?: import(
|
|
115
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
116
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
117
117
|
};
|
|
118
118
|
updateItems: {
|
|
119
|
-
document: import(
|
|
120
|
-
requestHeaders?: import(
|
|
119
|
+
document: import('graphql-request').RequestDocument | import('@graphql-typed-document-node/core').TypedDocumentNode<unknown, object>;
|
|
120
|
+
requestHeaders?: import('graphql-request/build/esm/types').GraphQLClientRequestHeaders | undefined;
|
|
121
121
|
};
|
|
122
122
|
} | undefined;
|
|
123
123
|
id?: string | null | undefined;
|
|
124
124
|
accessToken?: string | null | undefined;
|
|
125
125
|
locale?: string | null | undefined;
|
|
126
|
-
checkoutSteps?: import(
|
|
126
|
+
checkoutSteps?: import('../types').CheckoutStep[] | undefined;
|
|
127
127
|
baseCurrency?: string | null | undefined;
|
|
128
128
|
currency?: string | null | undefined;
|
|
129
129
|
currencyConversionRate?: number | null | undefined;
|
|
@@ -132,17 +132,17 @@ export declare function removeItems({ context, event, }: {
|
|
|
132
132
|
items?: Record<string, any>[] | null | undefined;
|
|
133
133
|
promotions?: Record<string, any>[] | null | undefined;
|
|
134
134
|
shippingAddresses?: {
|
|
135
|
-
available: import(
|
|
135
|
+
available: import('../types').QuoteAddress[];
|
|
136
136
|
applied: {
|
|
137
137
|
availableAddressId?: string | undefined;
|
|
138
|
-
address: import(
|
|
138
|
+
address: import('../types').QuoteAddress;
|
|
139
139
|
itemIds: Record<string, any>[];
|
|
140
140
|
}[];
|
|
141
141
|
} | undefined;
|
|
142
142
|
paymentMethods?: {
|
|
143
|
-
available: import(
|
|
143
|
+
available: import('../types').PaymentMethod[];
|
|
144
144
|
applied: {
|
|
145
|
-
paymentMethod: import(
|
|
145
|
+
paymentMethod: import('../types').PaymentMethod;
|
|
146
146
|
options: Record<string, any>[];
|
|
147
147
|
amount: number;
|
|
148
148
|
}[];
|
|
@@ -151,7 +151,7 @@ export declare function removeItems({ context, event, }: {
|
|
|
151
151
|
id: string;
|
|
152
152
|
shippingAddress: {
|
|
153
153
|
id: string;
|
|
154
|
-
address: import(
|
|
154
|
+
address: import('../types').QuoteAddress;
|
|
155
155
|
};
|
|
156
156
|
items: Record<string, any>[];
|
|
157
157
|
shippingMethods: {
|