buymeua-api-fe 0.2.0 → 0.4.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/README.md +162 -142
- package/dist/entities/auth/api/authApi.d.ts +161 -0
- package/dist/entities/auth/api/authApi.d.ts.map +1 -1
- package/dist/entities/auth/api/authApi.js +7 -1
- package/dist/entities/auth/api/authApi.js.map +1 -1
- package/dist/entities/auth/model/types.d.ts +2 -0
- package/dist/entities/auth/model/types.d.ts.map +1 -1
- package/dist/entities/country/api/countryApi.d.ts +841 -0
- package/dist/entities/country/api/countryApi.d.ts.map +1 -0
- package/dist/entities/country/api/countryApi.js +22 -0
- package/dist/entities/country/api/countryApi.js.map +1 -0
- package/dist/entities/country/index.d.ts +3 -0
- package/dist/entities/country/index.d.ts.map +1 -0
- package/dist/entities/country/index.js +3 -0
- package/dist/entities/country/index.js.map +1 -0
- package/dist/entities/country/model/types.d.ts +19 -0
- package/dist/entities/country/model/types.d.ts.map +1 -0
- package/dist/entities/country/model/types.js +1 -0
- package/dist/entities/country/model/types.js.map +1 -0
- package/dist/entities/store/api/storeApi.d.ts +190 -0
- package/dist/entities/store/api/storeApi.d.ts.map +1 -0
- package/dist/entities/store/api/storeApi.js +13 -0
- package/dist/entities/store/api/storeApi.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/country/api/countryApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGhF,eAAO,MAAM,UAAU;;oJAwBrB,CAAC;AAEH,eAAO,MAAQ,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAAe,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buymeuaApi } from '../../../shared/api';
|
|
2
|
+
import { getNextPageParam } from '../../../shared/lib';
|
|
3
|
+
export const countryApi = buymeuaApi.injectEndpoints({
|
|
4
|
+
endpoints: (build) => ({
|
|
5
|
+
getCountries: build.infiniteQuery({
|
|
6
|
+
infiniteQueryOptions: {
|
|
7
|
+
initialPageParam: 1,
|
|
8
|
+
getNextPageParam,
|
|
9
|
+
},
|
|
10
|
+
query: (arg) => ({
|
|
11
|
+
url: 'v3/countries',
|
|
12
|
+
params: {
|
|
13
|
+
page: arg.pageParam,
|
|
14
|
+
...arg.queryArg,
|
|
15
|
+
},
|
|
16
|
+
}),
|
|
17
|
+
}),
|
|
18
|
+
}),
|
|
19
|
+
overrideExisting: false,
|
|
20
|
+
});
|
|
21
|
+
export const { useGetCountriesInfiniteQuery } = countryApi;
|
|
22
|
+
//# sourceMappingURL=countryApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryApi.js","sourceRoot":"","sources":["../../../../src/entities/country/api/countryApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC,eAAe,CAAC;IACnD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,YAAY,EAAE,KAAK,CAAC,aAAa,CAI/B;YACA,oBAAoB,EAAE;gBACpB,gBAAgB,EAAE,CAAC;gBAEnB,gBAAgB;aACjB;YAED,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,cAAc;gBACnB,MAAM,EAAE;oBACN,IAAI,EAAE,GAAG,CAAC,SAAS;oBACnB,GAAG,GAAG,CAAC,QAAQ;iBAChB;aACF,CAAC;SACH,CAAC;KACH,CAAC;IAEF,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EAAE,4BAA4B,EAAE,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/country/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/country/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PaginatedResponse } from '../../../shared/model';
|
|
2
|
+
export interface Country {
|
|
3
|
+
id: number;
|
|
4
|
+
iso_code: string;
|
|
5
|
+
phone_prefix: string;
|
|
6
|
+
phone_mask: string;
|
|
7
|
+
default: boolean;
|
|
8
|
+
status: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
flag: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface GetCountriesRequest {
|
|
13
|
+
search?: string;
|
|
14
|
+
per_page?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface GetCountriesResponse extends PaginatedResponse {
|
|
17
|
+
data: Country[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/country/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/country/model/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { GetStoreInfoRequest, GetStoreInfoResponse } from '../model/types';
|
|
2
|
+
export declare const storeApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, {
|
|
3
|
+
getStoreInfo: import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>;
|
|
4
|
+
}, "buymeuaApi", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
5
|
+
export declare const useGetStoreInfoQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
6
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
7
|
+
originalArgs?: undefined | undefined;
|
|
8
|
+
data?: undefined | undefined;
|
|
9
|
+
error?: undefined | undefined;
|
|
10
|
+
requestId?: undefined | undefined;
|
|
11
|
+
endpointName?: string;
|
|
12
|
+
startedTimeStamp?: undefined | undefined;
|
|
13
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
currentData?: GetStoreInfoResponse;
|
|
16
|
+
isUninitialized: false;
|
|
17
|
+
isLoading: false;
|
|
18
|
+
isFetching: false;
|
|
19
|
+
isSuccess: false;
|
|
20
|
+
isError: false;
|
|
21
|
+
}, "isUninitialized"> & {
|
|
22
|
+
isUninitialized: true;
|
|
23
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
24
|
+
currentData?: GetStoreInfoResponse;
|
|
25
|
+
isUninitialized: false;
|
|
26
|
+
isLoading: false;
|
|
27
|
+
isFetching: false;
|
|
28
|
+
isSuccess: false;
|
|
29
|
+
isError: false;
|
|
30
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
31
|
+
isLoading: true;
|
|
32
|
+
isFetching: boolean;
|
|
33
|
+
data: undefined;
|
|
34
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
35
|
+
currentData?: GetStoreInfoResponse;
|
|
36
|
+
isUninitialized: false;
|
|
37
|
+
isLoading: false;
|
|
38
|
+
isFetching: false;
|
|
39
|
+
isSuccess: false;
|
|
40
|
+
isError: false;
|
|
41
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
42
|
+
isSuccess: true;
|
|
43
|
+
isFetching: true;
|
|
44
|
+
error: undefined;
|
|
45
|
+
} & {
|
|
46
|
+
data: GetStoreInfoResponse;
|
|
47
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
48
|
+
currentData?: GetStoreInfoResponse;
|
|
49
|
+
isUninitialized: false;
|
|
50
|
+
isLoading: false;
|
|
51
|
+
isFetching: false;
|
|
52
|
+
isSuccess: false;
|
|
53
|
+
isError: false;
|
|
54
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
55
|
+
currentData?: GetStoreInfoResponse;
|
|
56
|
+
isUninitialized: false;
|
|
57
|
+
isLoading: false;
|
|
58
|
+
isFetching: false;
|
|
59
|
+
isSuccess: false;
|
|
60
|
+
isError: false;
|
|
61
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
62
|
+
isSuccess: true;
|
|
63
|
+
isFetching: false;
|
|
64
|
+
error: undefined;
|
|
65
|
+
} & {
|
|
66
|
+
data: GetStoreInfoResponse;
|
|
67
|
+
currentData: GetStoreInfoResponse;
|
|
68
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
69
|
+
currentData?: GetStoreInfoResponse;
|
|
70
|
+
isUninitialized: false;
|
|
71
|
+
isLoading: false;
|
|
72
|
+
isFetching: false;
|
|
73
|
+
isSuccess: false;
|
|
74
|
+
isError: false;
|
|
75
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
76
|
+
currentData?: GetStoreInfoResponse;
|
|
77
|
+
isUninitialized: false;
|
|
78
|
+
isLoading: false;
|
|
79
|
+
isFetching: false;
|
|
80
|
+
isSuccess: false;
|
|
81
|
+
isError: false;
|
|
82
|
+
}, "error" | "isError"> & {
|
|
83
|
+
isError: true;
|
|
84
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
85
|
+
currentData?: GetStoreInfoResponse;
|
|
86
|
+
isUninitialized: false;
|
|
87
|
+
isLoading: false;
|
|
88
|
+
isFetching: false;
|
|
89
|
+
isSuccess: false;
|
|
90
|
+
isError: false;
|
|
91
|
+
}, "error">>)> & {
|
|
92
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
93
|
+
}>(arg: GetStoreInfoRequest | typeof import("@reduxjs/toolkit/query").skipToken, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
|
|
94
|
+
skip?: boolean;
|
|
95
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
96
|
+
} & {
|
|
97
|
+
skip?: boolean;
|
|
98
|
+
selectFromResult?: (state: import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
99
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
100
|
+
originalArgs?: undefined | undefined;
|
|
101
|
+
data?: undefined | undefined;
|
|
102
|
+
error?: undefined | undefined;
|
|
103
|
+
requestId?: undefined | undefined;
|
|
104
|
+
endpointName?: string;
|
|
105
|
+
startedTimeStamp?: undefined | undefined;
|
|
106
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
107
|
+
} & {
|
|
108
|
+
currentData?: GetStoreInfoResponse;
|
|
109
|
+
isUninitialized: false;
|
|
110
|
+
isLoading: false;
|
|
111
|
+
isFetching: false;
|
|
112
|
+
isSuccess: false;
|
|
113
|
+
isError: false;
|
|
114
|
+
}, "isUninitialized"> & {
|
|
115
|
+
isUninitialized: true;
|
|
116
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
117
|
+
currentData?: GetStoreInfoResponse;
|
|
118
|
+
isUninitialized: false;
|
|
119
|
+
isLoading: false;
|
|
120
|
+
isFetching: false;
|
|
121
|
+
isSuccess: false;
|
|
122
|
+
isError: false;
|
|
123
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
124
|
+
isLoading: true;
|
|
125
|
+
isFetching: boolean;
|
|
126
|
+
data: undefined;
|
|
127
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
128
|
+
currentData?: GetStoreInfoResponse;
|
|
129
|
+
isUninitialized: false;
|
|
130
|
+
isLoading: false;
|
|
131
|
+
isFetching: false;
|
|
132
|
+
isSuccess: false;
|
|
133
|
+
isError: false;
|
|
134
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
135
|
+
isSuccess: true;
|
|
136
|
+
isFetching: true;
|
|
137
|
+
error: undefined;
|
|
138
|
+
} & {
|
|
139
|
+
data: GetStoreInfoResponse;
|
|
140
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
141
|
+
currentData?: GetStoreInfoResponse;
|
|
142
|
+
isUninitialized: false;
|
|
143
|
+
isLoading: false;
|
|
144
|
+
isFetching: false;
|
|
145
|
+
isSuccess: false;
|
|
146
|
+
isError: false;
|
|
147
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
148
|
+
currentData?: GetStoreInfoResponse;
|
|
149
|
+
isUninitialized: false;
|
|
150
|
+
isLoading: false;
|
|
151
|
+
isFetching: false;
|
|
152
|
+
isSuccess: false;
|
|
153
|
+
isError: false;
|
|
154
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
155
|
+
isSuccess: true;
|
|
156
|
+
isFetching: false;
|
|
157
|
+
error: undefined;
|
|
158
|
+
} & {
|
|
159
|
+
data: GetStoreInfoResponse;
|
|
160
|
+
currentData: GetStoreInfoResponse;
|
|
161
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
162
|
+
currentData?: GetStoreInfoResponse;
|
|
163
|
+
isUninitialized: false;
|
|
164
|
+
isLoading: false;
|
|
165
|
+
isFetching: false;
|
|
166
|
+
isSuccess: false;
|
|
167
|
+
isError: false;
|
|
168
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
169
|
+
currentData?: GetStoreInfoResponse;
|
|
170
|
+
isUninitialized: false;
|
|
171
|
+
isLoading: false;
|
|
172
|
+
isFetching: false;
|
|
173
|
+
isSuccess: false;
|
|
174
|
+
isError: false;
|
|
175
|
+
}, "error" | "isError"> & {
|
|
176
|
+
isError: true;
|
|
177
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>> & {
|
|
178
|
+
currentData?: GetStoreInfoResponse;
|
|
179
|
+
isUninitialized: false;
|
|
180
|
+
isLoading: false;
|
|
181
|
+
isFetching: false;
|
|
182
|
+
isSuccess: false;
|
|
183
|
+
isError: false;
|
|
184
|
+
}, "error">>)> & {
|
|
185
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
186
|
+
}) => R;
|
|
187
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
188
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<GetStoreInfoRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetStoreInfoResponse, "buymeuaApi", unknown>>;
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=storeApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storeApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/store/api/storeApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEhF,eAAO,MAAM,QAAQ;;oJAUnB,CAAC;AAEH,eAAO,MAAQ,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { buymeuaApi } from '../../../shared/api';
|
|
2
|
+
export const storeApi = buymeuaApi.injectEndpoints({
|
|
3
|
+
endpoints: (build) => ({
|
|
4
|
+
getStoreInfo: build.query({
|
|
5
|
+
query: (arg) => ({
|
|
6
|
+
url: `v1/store/${arg.store.toString()}`,
|
|
7
|
+
}),
|
|
8
|
+
}),
|
|
9
|
+
}),
|
|
10
|
+
overrideExisting: false,
|
|
11
|
+
});
|
|
12
|
+
export const { useGetStoreInfoQuery } = storeApi;
|
|
13
|
+
//# sourceMappingURL=storeApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storeApi.js","sourceRoot":"","sources":["../../../../src/entities/store/api/storeApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,eAAe,CAAC;IACjD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,YAAY,EAAE,KAAK,CAAC,KAAK,CAA4C;YACnE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,YAAY,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE;aACxC,CAAC;SACH,CAAC;KACH,CAAC;IAEF,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,QAAQ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './entities/auth';
|
|
|
3
3
|
export * from './entities/cart';
|
|
4
4
|
export * from './entities/category';
|
|
5
5
|
export * from './entities/chat';
|
|
6
|
+
export * from './entities/country';
|
|
6
7
|
export * from './entities/customer';
|
|
7
8
|
export * from './entities/favorite';
|
|
8
9
|
export * from './entities/notification';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './entities/auth';
|
|
|
3
3
|
export * from './entities/cart';
|
|
4
4
|
export * from './entities/category';
|
|
5
5
|
export * from './entities/chat';
|
|
6
|
+
export * from './entities/country';
|
|
6
7
|
export * from './entities/customer'; // TODO: complete
|
|
7
8
|
export * from './entities/favorite';
|
|
8
9
|
export * from './entities/notification';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC,CAAC,iBAAiB;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC,CAAC,cAAc;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAElB,MAAM,cAAc,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC,CAAC,iBAAiB;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC,CAAC,cAAc;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAElB,MAAM,cAAc,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
13
|
"name": "buymeua-api-fe",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.4.0",
|
|
15
15
|
"description": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"author": "Denys Hrychulevych",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@eslint/js": "^9.
|
|
24
|
-
"eslint": "^9.
|
|
23
|
+
"@eslint/js": "^9.39.1",
|
|
24
|
+
"eslint": "^9.39.1",
|
|
25
25
|
"eslint-plugin-react": "^7.37.5",
|
|
26
26
|
"globals": "^16.4.0",
|
|
27
27
|
"prettier": "3.6.2",
|
|
28
28
|
"typescript": "^5.9.3",
|
|
29
|
-
"typescript-eslint": "^8.46.
|
|
29
|
+
"typescript-eslint": "^8.46.4"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@reduxjs/toolkit": "2.9.1"
|