@automattic/data-stores 3.1.2 → 3.2.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/CHANGELOG.md +14 -1
- package/dist/cjs/contextual-help/admin-sections.js +1 -1
- package/dist/cjs/contextual-help/admin-sections.js.map +1 -1
- package/dist/cjs/help-center/actions.js +79 -49
- package/dist/cjs/help-center/actions.js.map +1 -1
- package/dist/cjs/help-center/reducer.js +19 -10
- package/dist/cjs/help-center/reducer.js.map +1 -1
- package/dist/cjs/help-center/resolvers.js +2 -1
- package/dist/cjs/help-center/resolvers.js.map +1 -1
- package/dist/cjs/help-center/selectors.js +7 -5
- package/dist/cjs/help-center/selectors.js.map +1 -1
- package/dist/cjs/index.js +1 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/onboard/actions.js +11 -1
- package/dist/cjs/onboard/actions.js.map +1 -1
- package/dist/cjs/onboard/reducer.js +23 -1
- package/dist/cjs/onboard/reducer.js.map +1 -1
- package/dist/cjs/onboard/selectors.js +5 -1
- package/dist/cjs/onboard/selectors.js.map +1 -1
- package/dist/cjs/plans/queries/use-plans.js +20 -1
- package/dist/cjs/plans/queries/use-plans.js.map +1 -1
- package/dist/cjs/purchases/lib/assembler.js +6 -16
- package/dist/cjs/purchases/lib/assembler.js.map +1 -1
- package/dist/cjs/site/types.js.map +1 -1
- package/dist/esm/contextual-help/admin-sections.js +1 -1
- package/dist/esm/contextual-help/admin-sections.js.map +1 -1
- package/dist/esm/help-center/actions.js +74 -46
- package/dist/esm/help-center/actions.js.map +1 -1
- package/dist/esm/help-center/reducer.js +19 -10
- package/dist/esm/help-center/reducer.js.map +1 -1
- package/dist/esm/help-center/resolvers.js +3 -2
- package/dist/esm/help-center/resolvers.js.map +1 -1
- package/dist/esm/help-center/selectors.js +3 -2
- package/dist/esm/help-center/selectors.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/onboard/actions.js +8 -0
- package/dist/esm/onboard/actions.js.map +1 -1
- package/dist/esm/onboard/reducer.js +20 -0
- package/dist/esm/onboard/reducer.js.map +1 -1
- package/dist/esm/onboard/selectors.js +2 -0
- package/dist/esm/onboard/selectors.js.map +1 -1
- package/dist/esm/plans/queries/use-plans.js +20 -1
- package/dist/esm/plans/queries/use-plans.js.map +1 -1
- package/dist/esm/purchases/lib/assembler.js +6 -16
- package/dist/esm/purchases/lib/assembler.js.map +1 -1
- package/dist/esm/site/types.js.map +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/help-center/actions.d.ts +30 -14
- package/dist/types/help-center/actions.d.ts.map +1 -1
- package/dist/types/help-center/reducer.d.ts +6 -5
- package/dist/types/help-center/reducer.d.ts.map +1 -1
- package/dist/types/help-center/resolvers.d.ts +16 -8
- package/dist/types/help-center/resolvers.d.ts.map +1 -1
- package/dist/types/help-center/selectors.d.ts +3 -2
- package/dist/types/help-center/selectors.d.ts.map +1 -1
- package/dist/types/help-center/types.d.ts +1 -0
- package/dist/types/help-center/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +473 -43
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/onboard/actions.d.ts +14 -2
- package/dist/types/onboard/actions.d.ts.map +1 -1
- package/dist/types/onboard/reducer.d.ts +7 -1
- package/dist/types/onboard/reducer.d.ts.map +1 -1
- package/dist/types/onboard/selectors.d.ts +6 -2
- package/dist/types/onboard/selectors.d.ts.map +1 -1
- package/dist/types/onboard/types.d.ts +1 -1
- package/dist/types/onboard/types.d.ts.map +1 -1
- package/dist/types/plans/queries/use-plans.d.ts.map +1 -1
- package/dist/types/purchases/lib/assembler.d.ts +3 -3
- package/dist/types/purchases/lib/assembler.d.ts.map +1 -1
- package/dist/types/purchases/types.d.ts +3 -109
- package/dist/types/purchases/types.d.ts.map +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-site-domains-query.d.ts +1 -1
- package/dist/types/queries/use-site-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-site-query.d.ts +1 -1
- package/dist/types/queries/use-site-query.d.ts.map +1 -1
- package/dist/types/reader/index.d.ts +472 -40
- package/dist/types/reader/index.d.ts.map +1 -1
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts +75 -7
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts +75 -7
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts +143 -13
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts +103 -13
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts.map +1 -1
- package/dist/types/site/types.d.ts +2 -0
- package/dist/types/site/types.d.ts.map +1 -1
- package/dist/types/user/actions.d.ts +1 -1
- package/dist/types/user/reducer.d.ts +1 -1
- package/dist/types/user/resolvers.d.ts +2 -2
- package/dist/types/user/selectors.d.ts +2 -2
- package/dist/types/user/selectors.d.ts.map +1 -1
- package/dist/types/user/types.d.ts +2 -33
- package/dist/types/user/types.d.ts.map +1 -1
- package/package.json +4 -8
- package/src/contextual-help/admin-sections.ts +1 -1
- package/src/help-center/actions.ts +85 -50
- package/src/help-center/reducer.ts +27 -15
- package/src/help-center/resolvers.ts +15 -8
- package/src/help-center/selectors.ts +4 -2
- package/src/help-center/types.ts +1 -0
- package/src/index.ts +0 -3
- package/src/onboard/actions.ts +13 -1
- package/src/onboard/reducer.ts +26 -1
- package/src/onboard/selectors.ts +2 -0
- package/src/onboard/types.ts +1 -1
- package/src/plans/queries/use-plans.ts +29 -1
- package/src/purchases/lib/assembler.ts +10 -25
- package/src/purchases/types.ts +4 -116
- package/src/site/types.ts +2 -0
- package/src/user/types.ts +2 -38
- package/dist/cjs/domain-suggestions/actions.js +0 -33
- package/dist/cjs/domain-suggestions/actions.js.map +0 -1
- package/dist/cjs/domain-suggestions/constants.js +0 -12
- package/dist/cjs/domain-suggestions/constants.js.map +0 -1
- package/dist/cjs/domain-suggestions/index.js +0 -25
- package/dist/cjs/domain-suggestions/index.js.map +0 -1
- package/dist/cjs/domain-suggestions/queries.js +0 -78
- package/dist/cjs/domain-suggestions/queries.js.map +0 -1
- package/dist/cjs/domain-suggestions/reducer.js +0 -65
- package/dist/cjs/domain-suggestions/reducer.js.map +0 -1
- package/dist/cjs/domain-suggestions/resolvers.js +0 -91
- package/dist/cjs/domain-suggestions/resolvers.js.map +0 -1
- package/dist/cjs/domain-suggestions/selectors.js +0 -58
- package/dist/cjs/domain-suggestions/selectors.js.map +0 -1
- package/dist/cjs/domain-suggestions/types.js +0 -3
- package/dist/cjs/domain-suggestions/types.js.map +0 -1
- package/dist/cjs/domain-suggestions/utils.js +0 -47
- package/dist/cjs/domain-suggestions/utils.js.map +0 -1
- package/dist/esm/domain-suggestions/actions.js +0 -25
- package/dist/esm/domain-suggestions/actions.js.map +0 -1
- package/dist/esm/domain-suggestions/constants.js +0 -9
- package/dist/esm/domain-suggestions/constants.js.map +0 -1
- package/dist/esm/domain-suggestions/index.js +0 -20
- package/dist/esm/domain-suggestions/index.js.map +0 -1
- package/dist/esm/domain-suggestions/queries.js +0 -72
- package/dist/esm/domain-suggestions/queries.js.map +0 -1
- package/dist/esm/domain-suggestions/reducer.js +0 -61
- package/dist/esm/domain-suggestions/reducer.js.map +0 -1
- package/dist/esm/domain-suggestions/resolvers.js +0 -84
- package/dist/esm/domain-suggestions/resolvers.js.map +0 -1
- package/dist/esm/domain-suggestions/selectors.js +0 -47
- package/dist/esm/domain-suggestions/selectors.js.map +0 -1
- package/dist/esm/domain-suggestions/types.js +0 -2
- package/dist/esm/domain-suggestions/types.js.map +0 -1
- package/dist/esm/domain-suggestions/utils.js +0 -41
- package/dist/esm/domain-suggestions/utils.js.map +0 -1
- package/dist/types/domain-suggestions/actions.d.ts +0 -27
- package/dist/types/domain-suggestions/actions.d.ts.map +0 -1
- package/dist/types/domain-suggestions/constants.d.ts +0 -8
- package/dist/types/domain-suggestions/constants.d.ts.map +0 -1
- package/dist/types/domain-suggestions/index.d.ts +0 -10
- package/dist/types/domain-suggestions/index.d.ts.map +0 -1
- package/dist/types/domain-suggestions/queries.d.ts +0 -323
- package/dist/types/domain-suggestions/queries.d.ts.map +0 -1
- package/dist/types/domain-suggestions/reducer.d.ts +0 -16
- package/dist/types/domain-suggestions/reducer.d.ts.map +0 -1
- package/dist/types/domain-suggestions/resolvers.d.ts +0 -39
- package/dist/types/domain-suggestions/resolvers.d.ts.map +0 -1
- package/dist/types/domain-suggestions/selectors.d.ts +0 -18
- package/dist/types/domain-suggestions/selectors.d.ts.map +0 -1
- package/dist/types/domain-suggestions/types.d.ts +0 -206
- package/dist/types/domain-suggestions/types.d.ts.map +0 -1
- package/dist/types/domain-suggestions/utils.d.ts +0 -23
- package/dist/types/domain-suggestions/utils.d.ts.map +0 -1
- package/src/domain-suggestions/actions.ts +0 -51
- package/src/domain-suggestions/constants.ts +0 -8
- package/src/domain-suggestions/index.ts +0 -22
- package/src/domain-suggestions/queries.ts +0 -85
- package/src/domain-suggestions/reducer.ts +0 -77
- package/src/domain-suggestions/resolvers.ts +0 -110
- package/src/domain-suggestions/selectors.ts +0 -86
- package/src/domain-suggestions/test/reducer.ts +0 -105
- package/src/domain-suggestions/test/selectors.ts +0 -127
- package/src/domain-suggestions/types.ts +0 -254
- package/src/domain-suggestions/utils.ts +0 -50
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import type { DomainSuggestion, DomainSuggestionSelectorOptions } from './types';
|
|
2
|
-
export declare function useGetDomainSuggestions(search?: string | null, searchOptions?: DomainSuggestionSelectorOptions, queryOptions?: {}): {
|
|
3
|
-
invalidateCache: () => Promise<void>;
|
|
4
|
-
data: DomainSuggestion[];
|
|
5
|
-
error: Error;
|
|
6
|
-
isError: true;
|
|
7
|
-
isPending: false;
|
|
8
|
-
isLoadingError: false;
|
|
9
|
-
isRefetchError: true;
|
|
10
|
-
isSuccess: false;
|
|
11
|
-
status: "error";
|
|
12
|
-
dataUpdatedAt: number;
|
|
13
|
-
errorUpdatedAt: number;
|
|
14
|
-
failureCount: number;
|
|
15
|
-
failureReason: Error | null;
|
|
16
|
-
errorUpdateCount: number;
|
|
17
|
-
isFetched: boolean;
|
|
18
|
-
isFetchedAfterMount: boolean;
|
|
19
|
-
isFetching: boolean;
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
isInitialLoading: boolean;
|
|
22
|
-
isPaused: boolean;
|
|
23
|
-
isPlaceholderData: boolean;
|
|
24
|
-
isRefetching: boolean;
|
|
25
|
-
isStale: boolean;
|
|
26
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
27
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
28
|
-
} | {
|
|
29
|
-
invalidateCache: () => Promise<void>;
|
|
30
|
-
data: DomainSuggestion[];
|
|
31
|
-
error: null;
|
|
32
|
-
isError: false;
|
|
33
|
-
isPending: false;
|
|
34
|
-
isLoadingError: false;
|
|
35
|
-
isRefetchError: false;
|
|
36
|
-
isSuccess: true;
|
|
37
|
-
status: "success";
|
|
38
|
-
dataUpdatedAt: number;
|
|
39
|
-
errorUpdatedAt: number;
|
|
40
|
-
failureCount: number;
|
|
41
|
-
failureReason: Error | null;
|
|
42
|
-
errorUpdateCount: number;
|
|
43
|
-
isFetched: boolean;
|
|
44
|
-
isFetchedAfterMount: boolean;
|
|
45
|
-
isFetching: boolean;
|
|
46
|
-
isLoading: boolean;
|
|
47
|
-
isInitialLoading: boolean;
|
|
48
|
-
isPaused: boolean;
|
|
49
|
-
isPlaceholderData: boolean;
|
|
50
|
-
isRefetching: boolean;
|
|
51
|
-
isStale: boolean;
|
|
52
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
53
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
54
|
-
} | {
|
|
55
|
-
invalidateCache: () => Promise<void>;
|
|
56
|
-
data: undefined;
|
|
57
|
-
error: Error;
|
|
58
|
-
isError: true;
|
|
59
|
-
isPending: false;
|
|
60
|
-
isLoadingError: true;
|
|
61
|
-
isRefetchError: false;
|
|
62
|
-
isSuccess: false;
|
|
63
|
-
status: "error";
|
|
64
|
-
dataUpdatedAt: number;
|
|
65
|
-
errorUpdatedAt: number;
|
|
66
|
-
failureCount: number;
|
|
67
|
-
failureReason: Error | null;
|
|
68
|
-
errorUpdateCount: number;
|
|
69
|
-
isFetched: boolean;
|
|
70
|
-
isFetchedAfterMount: boolean;
|
|
71
|
-
isFetching: boolean;
|
|
72
|
-
isLoading: boolean;
|
|
73
|
-
isInitialLoading: boolean;
|
|
74
|
-
isPaused: boolean;
|
|
75
|
-
isPlaceholderData: boolean;
|
|
76
|
-
isRefetching: boolean;
|
|
77
|
-
isStale: boolean;
|
|
78
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
79
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
80
|
-
} | {
|
|
81
|
-
invalidateCache: () => Promise<void>;
|
|
82
|
-
data: undefined;
|
|
83
|
-
error: null;
|
|
84
|
-
isError: false;
|
|
85
|
-
isPending: true;
|
|
86
|
-
isLoadingError: false;
|
|
87
|
-
isRefetchError: false;
|
|
88
|
-
isSuccess: false;
|
|
89
|
-
status: "pending";
|
|
90
|
-
dataUpdatedAt: number;
|
|
91
|
-
errorUpdatedAt: number;
|
|
92
|
-
failureCount: number;
|
|
93
|
-
failureReason: Error | null;
|
|
94
|
-
errorUpdateCount: number;
|
|
95
|
-
isFetched: boolean;
|
|
96
|
-
isFetchedAfterMount: boolean;
|
|
97
|
-
isFetching: boolean;
|
|
98
|
-
isLoading: boolean;
|
|
99
|
-
isInitialLoading: boolean;
|
|
100
|
-
isPaused: boolean;
|
|
101
|
-
isPlaceholderData: boolean;
|
|
102
|
-
isRefetching: boolean;
|
|
103
|
-
isStale: boolean;
|
|
104
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
105
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Returns the expected *.wordpress.com for a given domain name
|
|
109
|
-
*/
|
|
110
|
-
export declare function useGetWordPressSubdomain(paidDomainName?: string | null): {
|
|
111
|
-
invalidateCache: () => Promise<void>;
|
|
112
|
-
data: DomainSuggestion[];
|
|
113
|
-
error: Error;
|
|
114
|
-
isError: true;
|
|
115
|
-
isPending: false;
|
|
116
|
-
isLoadingError: false;
|
|
117
|
-
isRefetchError: true;
|
|
118
|
-
isSuccess: false;
|
|
119
|
-
status: "error";
|
|
120
|
-
dataUpdatedAt: number;
|
|
121
|
-
errorUpdatedAt: number;
|
|
122
|
-
failureCount: number;
|
|
123
|
-
failureReason: Error | null;
|
|
124
|
-
errorUpdateCount: number;
|
|
125
|
-
isFetched: boolean;
|
|
126
|
-
isFetchedAfterMount: boolean;
|
|
127
|
-
isFetching: boolean;
|
|
128
|
-
isLoading: boolean;
|
|
129
|
-
isInitialLoading: boolean;
|
|
130
|
-
isPaused: boolean;
|
|
131
|
-
isPlaceholderData: boolean;
|
|
132
|
-
isRefetching: boolean;
|
|
133
|
-
isStale: boolean;
|
|
134
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
135
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
136
|
-
} | {
|
|
137
|
-
invalidateCache: () => Promise<void>;
|
|
138
|
-
data: DomainSuggestion[];
|
|
139
|
-
error: null;
|
|
140
|
-
isError: false;
|
|
141
|
-
isPending: false;
|
|
142
|
-
isLoadingError: false;
|
|
143
|
-
isRefetchError: false;
|
|
144
|
-
isSuccess: true;
|
|
145
|
-
status: "success";
|
|
146
|
-
dataUpdatedAt: number;
|
|
147
|
-
errorUpdatedAt: number;
|
|
148
|
-
failureCount: number;
|
|
149
|
-
failureReason: Error | null;
|
|
150
|
-
errorUpdateCount: number;
|
|
151
|
-
isFetched: boolean;
|
|
152
|
-
isFetchedAfterMount: boolean;
|
|
153
|
-
isFetching: boolean;
|
|
154
|
-
isLoading: boolean;
|
|
155
|
-
isInitialLoading: boolean;
|
|
156
|
-
isPaused: boolean;
|
|
157
|
-
isPlaceholderData: boolean;
|
|
158
|
-
isRefetching: boolean;
|
|
159
|
-
isStale: boolean;
|
|
160
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
161
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
162
|
-
} | {
|
|
163
|
-
invalidateCache: () => Promise<void>;
|
|
164
|
-
data: undefined;
|
|
165
|
-
error: Error;
|
|
166
|
-
isError: true;
|
|
167
|
-
isPending: false;
|
|
168
|
-
isLoadingError: true;
|
|
169
|
-
isRefetchError: false;
|
|
170
|
-
isSuccess: false;
|
|
171
|
-
status: "error";
|
|
172
|
-
dataUpdatedAt: number;
|
|
173
|
-
errorUpdatedAt: number;
|
|
174
|
-
failureCount: number;
|
|
175
|
-
failureReason: Error | null;
|
|
176
|
-
errorUpdateCount: number;
|
|
177
|
-
isFetched: boolean;
|
|
178
|
-
isFetchedAfterMount: boolean;
|
|
179
|
-
isFetching: boolean;
|
|
180
|
-
isLoading: boolean;
|
|
181
|
-
isInitialLoading: boolean;
|
|
182
|
-
isPaused: boolean;
|
|
183
|
-
isPlaceholderData: boolean;
|
|
184
|
-
isRefetching: boolean;
|
|
185
|
-
isStale: boolean;
|
|
186
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
187
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
188
|
-
} | {
|
|
189
|
-
invalidateCache: () => Promise<void>;
|
|
190
|
-
data: undefined;
|
|
191
|
-
error: null;
|
|
192
|
-
isError: false;
|
|
193
|
-
isPending: true;
|
|
194
|
-
isLoadingError: false;
|
|
195
|
-
isRefetchError: false;
|
|
196
|
-
isSuccess: false;
|
|
197
|
-
status: "pending";
|
|
198
|
-
dataUpdatedAt: number;
|
|
199
|
-
errorUpdatedAt: number;
|
|
200
|
-
failureCount: number;
|
|
201
|
-
failureReason: Error | null;
|
|
202
|
-
errorUpdateCount: number;
|
|
203
|
-
isFetched: boolean;
|
|
204
|
-
isFetchedAfterMount: boolean;
|
|
205
|
-
isFetching: boolean;
|
|
206
|
-
isLoading: boolean;
|
|
207
|
-
isInitialLoading: boolean;
|
|
208
|
-
isPaused: boolean;
|
|
209
|
-
isPlaceholderData: boolean;
|
|
210
|
-
isRefetching: boolean;
|
|
211
|
-
isStale: boolean;
|
|
212
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
213
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Returns a custom .com domain suggestion for a given query
|
|
217
|
-
*/
|
|
218
|
-
export declare function useGetSingleCustomDotComDomainSuggestion(query?: string | null, locale?: string): {
|
|
219
|
-
invalidateCache: () => Promise<void>;
|
|
220
|
-
data: DomainSuggestion[];
|
|
221
|
-
error: Error;
|
|
222
|
-
isError: true;
|
|
223
|
-
isPending: false;
|
|
224
|
-
isLoadingError: false;
|
|
225
|
-
isRefetchError: true;
|
|
226
|
-
isSuccess: false;
|
|
227
|
-
status: "error";
|
|
228
|
-
dataUpdatedAt: number;
|
|
229
|
-
errorUpdatedAt: number;
|
|
230
|
-
failureCount: number;
|
|
231
|
-
failureReason: Error | null;
|
|
232
|
-
errorUpdateCount: number;
|
|
233
|
-
isFetched: boolean;
|
|
234
|
-
isFetchedAfterMount: boolean;
|
|
235
|
-
isFetching: boolean;
|
|
236
|
-
isLoading: boolean;
|
|
237
|
-
isInitialLoading: boolean;
|
|
238
|
-
isPaused: boolean;
|
|
239
|
-
isPlaceholderData: boolean;
|
|
240
|
-
isRefetching: boolean;
|
|
241
|
-
isStale: boolean;
|
|
242
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
243
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
244
|
-
} | {
|
|
245
|
-
invalidateCache: () => Promise<void>;
|
|
246
|
-
data: DomainSuggestion[];
|
|
247
|
-
error: null;
|
|
248
|
-
isError: false;
|
|
249
|
-
isPending: false;
|
|
250
|
-
isLoadingError: false;
|
|
251
|
-
isRefetchError: false;
|
|
252
|
-
isSuccess: true;
|
|
253
|
-
status: "success";
|
|
254
|
-
dataUpdatedAt: number;
|
|
255
|
-
errorUpdatedAt: number;
|
|
256
|
-
failureCount: number;
|
|
257
|
-
failureReason: Error | null;
|
|
258
|
-
errorUpdateCount: number;
|
|
259
|
-
isFetched: boolean;
|
|
260
|
-
isFetchedAfterMount: boolean;
|
|
261
|
-
isFetching: boolean;
|
|
262
|
-
isLoading: boolean;
|
|
263
|
-
isInitialLoading: boolean;
|
|
264
|
-
isPaused: boolean;
|
|
265
|
-
isPlaceholderData: boolean;
|
|
266
|
-
isRefetching: boolean;
|
|
267
|
-
isStale: boolean;
|
|
268
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
269
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
270
|
-
} | {
|
|
271
|
-
invalidateCache: () => Promise<void>;
|
|
272
|
-
data: undefined;
|
|
273
|
-
error: Error;
|
|
274
|
-
isError: true;
|
|
275
|
-
isPending: false;
|
|
276
|
-
isLoadingError: true;
|
|
277
|
-
isRefetchError: false;
|
|
278
|
-
isSuccess: false;
|
|
279
|
-
status: "error";
|
|
280
|
-
dataUpdatedAt: number;
|
|
281
|
-
errorUpdatedAt: number;
|
|
282
|
-
failureCount: number;
|
|
283
|
-
failureReason: Error | null;
|
|
284
|
-
errorUpdateCount: number;
|
|
285
|
-
isFetched: boolean;
|
|
286
|
-
isFetchedAfterMount: boolean;
|
|
287
|
-
isFetching: boolean;
|
|
288
|
-
isLoading: boolean;
|
|
289
|
-
isInitialLoading: boolean;
|
|
290
|
-
isPaused: boolean;
|
|
291
|
-
isPlaceholderData: boolean;
|
|
292
|
-
isRefetching: boolean;
|
|
293
|
-
isStale: boolean;
|
|
294
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
295
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
296
|
-
} | {
|
|
297
|
-
invalidateCache: () => Promise<void>;
|
|
298
|
-
data: undefined;
|
|
299
|
-
error: null;
|
|
300
|
-
isError: false;
|
|
301
|
-
isPending: true;
|
|
302
|
-
isLoadingError: false;
|
|
303
|
-
isRefetchError: false;
|
|
304
|
-
isSuccess: false;
|
|
305
|
-
status: "pending";
|
|
306
|
-
dataUpdatedAt: number;
|
|
307
|
-
errorUpdatedAt: number;
|
|
308
|
-
failureCount: number;
|
|
309
|
-
failureReason: Error | null;
|
|
310
|
-
errorUpdateCount: number;
|
|
311
|
-
isFetched: boolean;
|
|
312
|
-
isFetchedAfterMount: boolean;
|
|
313
|
-
isFetching: boolean;
|
|
314
|
-
isLoading: boolean;
|
|
315
|
-
isInitialLoading: boolean;
|
|
316
|
-
isPaused: boolean;
|
|
317
|
-
isPlaceholderData: boolean;
|
|
318
|
-
isRefetching: boolean;
|
|
319
|
-
isStale: boolean;
|
|
320
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
321
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
322
|
-
};
|
|
323
|
-
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/queries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAIjF,wBAAgB,uBAAuB,CACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,aAAa,GAAE,+BAAoC,EACnD,YAAY,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CjB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvE;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/F"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Action } from './actions';
|
|
2
|
-
import type { DomainCategory, DomainSuggestionState, DomainAvailabilities } from './types';
|
|
3
|
-
import type { Reducer } from 'redux';
|
|
4
|
-
export declare const domainSuggestions: Reducer<DomainSuggestionState, Action>;
|
|
5
|
-
declare const reducer: Reducer<{
|
|
6
|
-
categories: DomainCategory[];
|
|
7
|
-
domainSuggestions: DomainSuggestionState;
|
|
8
|
-
availability: DomainAvailabilities;
|
|
9
|
-
}, Action, Partial<{
|
|
10
|
-
categories: never;
|
|
11
|
-
domainSuggestions: never;
|
|
12
|
-
availability: never;
|
|
13
|
-
}>>;
|
|
14
|
-
export type State = ReturnType<typeof reducer>;
|
|
15
|
-
export default reducer;
|
|
16
|
-
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/reducer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAUrC,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAE,qBAAqB,EAAE,MAAM,CAsCrE,CAAC;AAmBF,QAAA,MAAM,OAAO;;;;;;;;GAAqE,CAAC;AAEnF,MAAM,MAAM,KAAK,GAAG,UAAU,CAAE,OAAO,OAAO,CAAE,CAAC;AAEjD,eAAe,OAAO,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { DomainSuggestion, DomainSuggestionQuery } from './types';
|
|
2
|
-
export declare const isAvailable: (domainName: string) => Generator<{
|
|
3
|
-
readonly type: "FETCH_AND_PARSE";
|
|
4
|
-
readonly resource: RequestInfo | URL;
|
|
5
|
-
readonly options: RequestInit | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
readonly type: "RECEIVE_DOMAIN_AVAILABILITY";
|
|
8
|
-
readonly domainName: string;
|
|
9
|
-
readonly availability: import("./types").DomainAvailability;
|
|
10
|
-
}, {
|
|
11
|
-
body: any;
|
|
12
|
-
}>;
|
|
13
|
-
export declare function getCategories(): Generator<{
|
|
14
|
-
readonly type: "FETCH_AND_PARSE";
|
|
15
|
-
readonly resource: RequestInfo | URL;
|
|
16
|
-
readonly options: RequestInit | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "RECEIVE_CATEGORIES";
|
|
19
|
-
readonly categories: import("./types").DomainCategory[];
|
|
20
|
-
}, {
|
|
21
|
-
body: any;
|
|
22
|
-
}>;
|
|
23
|
-
export declare function __internalGetDomainSuggestions(queryObject: DomainSuggestionQuery): Generator<{
|
|
24
|
-
type: "WPCOM_REQUEST";
|
|
25
|
-
request: import("wpcom-proxy-request").WpcomRequestParams;
|
|
26
|
-
} | {
|
|
27
|
-
readonly type: "FETCH_DOMAIN_SUGGESTIONS";
|
|
28
|
-
readonly timeStamp: number;
|
|
29
|
-
}, {
|
|
30
|
-
readonly type: "RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS";
|
|
31
|
-
readonly queryObject: DomainSuggestionQuery;
|
|
32
|
-
readonly suggestions: DomainSuggestion[] | undefined;
|
|
33
|
-
readonly timeStamp: number;
|
|
34
|
-
} | {
|
|
35
|
-
readonly type: "RECEIVE_DOMAIN_SUGGESTIONS_ERROR";
|
|
36
|
-
readonly errorMessage: string;
|
|
37
|
-
readonly timeStamp: number;
|
|
38
|
-
}, DomainSuggestion[]>;
|
|
39
|
-
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/resolvers.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAevE,eAAO,MAAM,WAAW,GAA0B,YAAY,MAAM;;;;;;;;;;EAgBnE,CAAC;AAEF,wBAAiB,aAAa;;;;;;;;;GAK7B;AAED,wBAAiB,8BAA8B,CAAE,WAAW,EAAE,qBAAqB;;;;;;;;;;;;;;;uBAyDlF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataStatus } from './constants';
|
|
2
|
-
import type { State } from './reducer';
|
|
3
|
-
import type { DomainAvailability, DomainAvailabilities, DomainCategory, DomainSuggestion, DomainSuggestionQuery, DomainSuggestionSelectorOptions } from './types';
|
|
4
|
-
export declare const getCategories: (state: State) => DomainCategory[];
|
|
5
|
-
export declare const getDomainSuggestions: (_state: State, search: string, options?: DomainSuggestionSelectorOptions) => DomainSuggestion[] | undefined;
|
|
6
|
-
export declare const getDomainState: (state: State) => DataStatus;
|
|
7
|
-
export declare const getDomainErrorMessage: (state: State) => string | null;
|
|
8
|
-
export declare const isLoadingDomainSuggestions: (_state: State, search: string, options?: DomainSuggestionSelectorOptions) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Do not use this selector. It is for internal use.
|
|
11
|
-
* @param state Store state
|
|
12
|
-
* @param queryObject Normalized object representing the query
|
|
13
|
-
* @returns suggestions
|
|
14
|
-
*/
|
|
15
|
-
export declare const __internalGetDomainSuggestions: (state: State, queryObject: DomainSuggestionQuery) => DomainSuggestion[] | undefined;
|
|
16
|
-
export declare const isAvailable: (state: State, domainName: string) => DomainAvailability | undefined;
|
|
17
|
-
export declare const getDomainAvailabilities: (state: State) => DomainAvailabilities;
|
|
18
|
-
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EACX,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,+BAA+B,EAC/B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,aAAa,GAAK,OAAO,KAAK,KAAI,cAAc,EAU5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAChC,QAAQ,KAAK,EACb,QAAQ,MAAM,EACd,UAAS,+BAAoC,KAC3C,gBAAgB,EAAE,GAAG,SAWvB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAK,OAAO,KAAK,KAAI,UAE/C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAK,OAAO,KAAK,KAAI,MAAM,GAAG,IAE/D,CAAC;AAIF,eAAO,MAAM,0BAA0B,GACtC,QAAQ,KAAK,EACb,QAAQ,MAAM,EACd,UAAS,+BAAoC,KAC3C,OAQF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,GAC1C,OAAO,KAAK,EACZ,aAAa,qBAAqB,KAChC,gBAAgB,EAAE,GAAG,SAEvB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAK,OAAO,KAAK,EAAE,YAAY,MAAM,KAAI,kBAAkB,GAAG,SAErF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAK,OAAO,KAAK,KAAI,oBAExD,CAAC"}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import type { DataStatus } from './constants';
|
|
2
|
-
export interface DomainSuggestionQuery {
|
|
3
|
-
/**
|
|
4
|
-
* True to include .blog subdomain suggestions
|
|
5
|
-
* @example
|
|
6
|
-
* example.photo.blog
|
|
7
|
-
*/
|
|
8
|
-
include_dotblogsubdomain: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* True to include WordPress.com subdomain suggestions
|
|
11
|
-
* @example
|
|
12
|
-
* example.wordpress.com
|
|
13
|
-
*/
|
|
14
|
-
include_wordpressdotcom: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* True to include domains registered with wpcom in the response
|
|
17
|
-
*/
|
|
18
|
-
include_internal_move_eligible?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Localizes domain results, e.g., price format
|
|
21
|
-
*/
|
|
22
|
-
locale?: string;
|
|
23
|
-
/**
|
|
24
|
-
* True to only provide a wordpress.com subdomain
|
|
25
|
-
* @example
|
|
26
|
-
* example.wordpress.com
|
|
27
|
-
*/
|
|
28
|
-
only_wordpressdotcom: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Desired number of results
|
|
31
|
-
*/
|
|
32
|
-
quantity: number;
|
|
33
|
-
/**
|
|
34
|
-
* Domain search term
|
|
35
|
-
*/
|
|
36
|
-
query: string;
|
|
37
|
-
recommendation_context?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Vendor
|
|
40
|
-
*/
|
|
41
|
-
vendor: string;
|
|
42
|
-
/**
|
|
43
|
-
* The vertical id or slug
|
|
44
|
-
*/
|
|
45
|
-
vertical?: string;
|
|
46
|
-
/**
|
|
47
|
-
* An array of tlds
|
|
48
|
-
*/
|
|
49
|
-
tlds?: readonly string[];
|
|
50
|
-
/**
|
|
51
|
-
* Domain category slug
|
|
52
|
-
*/
|
|
53
|
-
category_slug?: string;
|
|
54
|
-
}
|
|
55
|
-
export type DomainName = string;
|
|
56
|
-
export interface DomainSuggestion {
|
|
57
|
-
/**
|
|
58
|
-
* The domain name
|
|
59
|
-
* @example "example.com"
|
|
60
|
-
*/
|
|
61
|
-
domain_name: DomainName;
|
|
62
|
-
/**
|
|
63
|
-
* Rendered formatted cost
|
|
64
|
-
* @example "Free" or "€15.00"
|
|
65
|
-
*/
|
|
66
|
-
cost: string;
|
|
67
|
-
/**
|
|
68
|
-
* Raw price
|
|
69
|
-
* @example 40
|
|
70
|
-
*/
|
|
71
|
-
raw_price: number;
|
|
72
|
-
/**
|
|
73
|
-
* Currency code
|
|
74
|
-
* @example USD
|
|
75
|
-
*/
|
|
76
|
-
currency_code: string;
|
|
77
|
-
/**
|
|
78
|
-
* Relevance as a percent: 0 <= relevance <= 1
|
|
79
|
-
* @example 0.9
|
|
80
|
-
*/
|
|
81
|
-
relevance?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Whether the domain supports privacy
|
|
84
|
-
*/
|
|
85
|
-
supports_privacy?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* The domain vendor
|
|
88
|
-
*/
|
|
89
|
-
vendor?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Reasons for suggestion the domain
|
|
92
|
-
* @example [ "exact-match" ]
|
|
93
|
-
*/
|
|
94
|
-
match_reasons?: readonly string[];
|
|
95
|
-
/**
|
|
96
|
-
* The product ID
|
|
97
|
-
*/
|
|
98
|
-
product_id?: number;
|
|
99
|
-
/**
|
|
100
|
-
* The product slug
|
|
101
|
-
*/
|
|
102
|
-
product_slug?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Whether the domain is free
|
|
105
|
-
*/
|
|
106
|
-
is_free?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Whether the domain requires HSTS
|
|
109
|
-
*/
|
|
110
|
-
hsts_required?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Whether the domain requires to show the notice for .gay tld
|
|
113
|
-
*/
|
|
114
|
-
is_dot_gay_notice_required?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Whether the domain is unavailable
|
|
117
|
-
*/
|
|
118
|
-
unavailable: boolean;
|
|
119
|
-
isRecommended?: boolean;
|
|
120
|
-
isBestAlternative?: boolean;
|
|
121
|
-
is_premium?: boolean;
|
|
122
|
-
}
|
|
123
|
-
export interface DomainCategory {
|
|
124
|
-
/**
|
|
125
|
-
* The domain category title
|
|
126
|
-
*/
|
|
127
|
-
title: string;
|
|
128
|
-
/**
|
|
129
|
-
* The domain category slug
|
|
130
|
-
*/
|
|
131
|
-
slug: string;
|
|
132
|
-
/**
|
|
133
|
-
* The domain category tier
|
|
134
|
-
*/
|
|
135
|
-
tier: number | null;
|
|
136
|
-
}
|
|
137
|
-
export interface DomainAvailability {
|
|
138
|
-
/**
|
|
139
|
-
* The domain name the availability was checked for.
|
|
140
|
-
*/
|
|
141
|
-
domain_name: string;
|
|
142
|
-
/**
|
|
143
|
-
* The mappability status of the domain.
|
|
144
|
-
*/
|
|
145
|
-
mappable: string;
|
|
146
|
-
/**
|
|
147
|
-
* The availability status of the domain.
|
|
148
|
-
*/
|
|
149
|
-
status: string;
|
|
150
|
-
/**
|
|
151
|
-
* Whether the domain supports privacy.
|
|
152
|
-
*/
|
|
153
|
-
supports_privacy: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* ID of the product
|
|
156
|
-
*/
|
|
157
|
-
product_id?: number;
|
|
158
|
-
/**
|
|
159
|
-
* The product slug
|
|
160
|
-
*/
|
|
161
|
-
product_slug?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Rendered cost with currency
|
|
164
|
-
* @example "€15.00"
|
|
165
|
-
*/
|
|
166
|
-
cost?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Vendor
|
|
169
|
-
*/
|
|
170
|
-
vendor?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Whether the domain requires HSTS
|
|
173
|
-
*/
|
|
174
|
-
hsts_required?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Whether the domain requires to show the notice for .gay tld
|
|
177
|
-
*/
|
|
178
|
-
is_dot_gay_notice_required?: boolean;
|
|
179
|
-
}
|
|
180
|
-
export type TimestampMS = ReturnType<typeof Date.now>;
|
|
181
|
-
export type DomainSuggestions = Record<string, DomainSuggestion[] | undefined>;
|
|
182
|
-
export interface DomainSuggestionState {
|
|
183
|
-
/**
|
|
184
|
-
* The state of the DomainSuggestions e.g. pending, failure etc
|
|
185
|
-
*/
|
|
186
|
-
state: DataStatus;
|
|
187
|
-
/**
|
|
188
|
-
* Domain suggestion data typically returned from the API
|
|
189
|
-
*/
|
|
190
|
-
data: DomainSuggestions;
|
|
191
|
-
/**
|
|
192
|
-
* Error message
|
|
193
|
-
*/
|
|
194
|
-
errorMessage: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* Timestamp from last updated attempt
|
|
197
|
-
*/
|
|
198
|
-
lastUpdated: TimestampMS;
|
|
199
|
-
/**
|
|
200
|
-
* Pending timestamp
|
|
201
|
-
*/
|
|
202
|
-
pendingSince: TimestampMS | undefined;
|
|
203
|
-
}
|
|
204
|
-
export type DomainAvailabilities = Record<string, DomainAvailability | undefined>;
|
|
205
|
-
export type DomainSuggestionSelectorOptions = Partial<Exclude<DomainSuggestionQuery, 'query'>>;
|
|
206
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { DomainSuggestionQuery, DomainSuggestionSelectorOptions } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Stable transform to an object key for storage and access.
|
|
4
|
-
*/
|
|
5
|
-
export declare const stringifyDomainQueryObject: (q: DomainSuggestionQuery) => string;
|
|
6
|
-
/**
|
|
7
|
-
* Formats the domain suggestion price according to 'format-currency' package rules
|
|
8
|
-
* We use this for consistency in prices formats across plans and domains
|
|
9
|
-
* @param price the domain suggestion raw price
|
|
10
|
-
* @param currencyCode the currency code to be used when formatting price
|
|
11
|
-
*/
|
|
12
|
-
export declare function getFormattedPrice(price: number, currencyCode: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Normalize domain query
|
|
15
|
-
*
|
|
16
|
-
* It's important to have a consistent, reproduceable representation of a domains query so that the result can be
|
|
17
|
-
* stored and retrieved.
|
|
18
|
-
* @param search Domain search string
|
|
19
|
-
* @param queryOptions Optional paramaters for the query
|
|
20
|
-
* @returns Normalized query object
|
|
21
|
-
*/
|
|
22
|
-
export declare function normalizeDomainSuggestionQuery(search: string, queryOptions: DomainSuggestionSelectorOptions): DomainSuggestionQuery;
|
|
23
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,CAAE,CAAC,EAAE,qBAAqB,KAAM,MAClD,CAAC;AAExB;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAI,MAAM,CAI/E;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC7C,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,+BAA+B,GAC3C,qBAAqB,CAevB"}
|