@serik_lav/api-fe 0.78.0 → 0.79.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 +4 -0
- package/dist/entities/looks/api/looksApi.d.ts +191 -0
- package/dist/entities/looks/api/looksApi.d.ts.map +1 -0
- package/dist/entities/looks/api/looksApi.js +25 -0
- package/dist/entities/looks/api/looksApi.js.map +1 -0
- package/dist/entities/looks/index.d.ts +3 -0
- package/dist/entities/looks/index.d.ts.map +1 -0
- package/dist/entities/looks/index.js +3 -0
- package/dist/entities/looks/index.js.map +1 -0
- package/dist/entities/looks/model/types.d.ts +37 -0
- package/dist/entities/looks/model/types.d.ts.map +1 -0
- package/dist/entities/looks/model/types.js +1 -0
- package/dist/entities/looks/model/types.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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `looks`: новий домен «Образи» — `looksApi.useGetLooksInfiniteQuery` (GET v1/looks, фільтр `article`) та `useGetLookQuery(slug)` (GET v1/looks/{slug}, з `others`). Типи `Look`, `LookPreview`, `LookImage`, `GetLooksRequest/Response`, `GetLookResponse`.
|
|
13
|
+
|
|
10
14
|
## [0.78.0] - 2026-09-19
|
|
11
15
|
|
|
12
16
|
### Added
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { GetLookResponse, GetLooksRequest, GetLooksResponse } from '../model/types';
|
|
2
|
+
export declare const looksApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, {
|
|
3
|
+
getLooks: import("@reduxjs/toolkit/query").InfiniteQueryDefinition<void | GetLooksRequest, number, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLooksResponse, "buymeuaApi", unknown>;
|
|
4
|
+
getLook: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>;
|
|
5
|
+
}, "buymeuaApi", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
6
|
+
export declare const useGetLookQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
7
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
8
|
+
originalArgs?: undefined | undefined;
|
|
9
|
+
data?: undefined | undefined;
|
|
10
|
+
error?: undefined | undefined;
|
|
11
|
+
requestId?: undefined | undefined;
|
|
12
|
+
endpointName?: string;
|
|
13
|
+
startedTimeStamp?: undefined | undefined;
|
|
14
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
currentData?: GetLookResponse;
|
|
17
|
+
isUninitialized: false;
|
|
18
|
+
isLoading: false;
|
|
19
|
+
isFetching: false;
|
|
20
|
+
isSuccess: false;
|
|
21
|
+
isError: false;
|
|
22
|
+
}, "isUninitialized"> & {
|
|
23
|
+
isUninitialized: true;
|
|
24
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
25
|
+
currentData?: GetLookResponse;
|
|
26
|
+
isUninitialized: false;
|
|
27
|
+
isLoading: false;
|
|
28
|
+
isFetching: false;
|
|
29
|
+
isSuccess: false;
|
|
30
|
+
isError: false;
|
|
31
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
32
|
+
isLoading: true;
|
|
33
|
+
isFetching: boolean;
|
|
34
|
+
data: undefined;
|
|
35
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
36
|
+
currentData?: GetLookResponse;
|
|
37
|
+
isUninitialized: false;
|
|
38
|
+
isLoading: false;
|
|
39
|
+
isFetching: false;
|
|
40
|
+
isSuccess: false;
|
|
41
|
+
isError: false;
|
|
42
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
43
|
+
isSuccess: true;
|
|
44
|
+
isFetching: true;
|
|
45
|
+
error: undefined;
|
|
46
|
+
} & {
|
|
47
|
+
data: GetLookResponse;
|
|
48
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
49
|
+
currentData?: GetLookResponse;
|
|
50
|
+
isUninitialized: false;
|
|
51
|
+
isLoading: false;
|
|
52
|
+
isFetching: false;
|
|
53
|
+
isSuccess: false;
|
|
54
|
+
isError: false;
|
|
55
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
56
|
+
currentData?: GetLookResponse;
|
|
57
|
+
isUninitialized: false;
|
|
58
|
+
isLoading: false;
|
|
59
|
+
isFetching: false;
|
|
60
|
+
isSuccess: false;
|
|
61
|
+
isError: false;
|
|
62
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
63
|
+
isSuccess: true;
|
|
64
|
+
isFetching: false;
|
|
65
|
+
error: undefined;
|
|
66
|
+
} & {
|
|
67
|
+
data: GetLookResponse;
|
|
68
|
+
currentData: GetLookResponse;
|
|
69
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
70
|
+
currentData?: GetLookResponse;
|
|
71
|
+
isUninitialized: false;
|
|
72
|
+
isLoading: false;
|
|
73
|
+
isFetching: false;
|
|
74
|
+
isSuccess: false;
|
|
75
|
+
isError: false;
|
|
76
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
77
|
+
currentData?: GetLookResponse;
|
|
78
|
+
isUninitialized: false;
|
|
79
|
+
isLoading: false;
|
|
80
|
+
isFetching: false;
|
|
81
|
+
isSuccess: false;
|
|
82
|
+
isError: false;
|
|
83
|
+
}, "error" | "isError"> & {
|
|
84
|
+
isError: true;
|
|
85
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
86
|
+
currentData?: GetLookResponse;
|
|
87
|
+
isUninitialized: false;
|
|
88
|
+
isLoading: false;
|
|
89
|
+
isFetching: false;
|
|
90
|
+
isSuccess: false;
|
|
91
|
+
isError: false;
|
|
92
|
+
}, "error">>)> & {
|
|
93
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
94
|
+
}>(arg: string | typeof import("@reduxjs/toolkit/query").skipToken, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
|
|
95
|
+
skip?: boolean;
|
|
96
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
97
|
+
} & {
|
|
98
|
+
skip?: boolean;
|
|
99
|
+
selectFromResult?: (state: import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
100
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
101
|
+
originalArgs?: undefined | undefined;
|
|
102
|
+
data?: undefined | undefined;
|
|
103
|
+
error?: undefined | undefined;
|
|
104
|
+
requestId?: undefined | undefined;
|
|
105
|
+
endpointName?: string;
|
|
106
|
+
startedTimeStamp?: undefined | undefined;
|
|
107
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
108
|
+
} & {
|
|
109
|
+
currentData?: GetLookResponse;
|
|
110
|
+
isUninitialized: false;
|
|
111
|
+
isLoading: false;
|
|
112
|
+
isFetching: false;
|
|
113
|
+
isSuccess: false;
|
|
114
|
+
isError: false;
|
|
115
|
+
}, "isUninitialized"> & {
|
|
116
|
+
isUninitialized: true;
|
|
117
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
118
|
+
currentData?: GetLookResponse;
|
|
119
|
+
isUninitialized: false;
|
|
120
|
+
isLoading: false;
|
|
121
|
+
isFetching: false;
|
|
122
|
+
isSuccess: false;
|
|
123
|
+
isError: false;
|
|
124
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
125
|
+
isLoading: true;
|
|
126
|
+
isFetching: boolean;
|
|
127
|
+
data: undefined;
|
|
128
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
129
|
+
currentData?: GetLookResponse;
|
|
130
|
+
isUninitialized: false;
|
|
131
|
+
isLoading: false;
|
|
132
|
+
isFetching: false;
|
|
133
|
+
isSuccess: false;
|
|
134
|
+
isError: false;
|
|
135
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
136
|
+
isSuccess: true;
|
|
137
|
+
isFetching: true;
|
|
138
|
+
error: undefined;
|
|
139
|
+
} & {
|
|
140
|
+
data: GetLookResponse;
|
|
141
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
142
|
+
currentData?: GetLookResponse;
|
|
143
|
+
isUninitialized: false;
|
|
144
|
+
isLoading: false;
|
|
145
|
+
isFetching: false;
|
|
146
|
+
isSuccess: false;
|
|
147
|
+
isError: false;
|
|
148
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
149
|
+
currentData?: GetLookResponse;
|
|
150
|
+
isUninitialized: false;
|
|
151
|
+
isLoading: false;
|
|
152
|
+
isFetching: false;
|
|
153
|
+
isSuccess: false;
|
|
154
|
+
isError: false;
|
|
155
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
156
|
+
isSuccess: true;
|
|
157
|
+
isFetching: false;
|
|
158
|
+
error: undefined;
|
|
159
|
+
} & {
|
|
160
|
+
data: GetLookResponse;
|
|
161
|
+
currentData: GetLookResponse;
|
|
162
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
163
|
+
currentData?: GetLookResponse;
|
|
164
|
+
isUninitialized: false;
|
|
165
|
+
isLoading: false;
|
|
166
|
+
isFetching: false;
|
|
167
|
+
isSuccess: false;
|
|
168
|
+
isError: false;
|
|
169
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
170
|
+
currentData?: GetLookResponse;
|
|
171
|
+
isUninitialized: false;
|
|
172
|
+
isLoading: false;
|
|
173
|
+
isFetching: false;
|
|
174
|
+
isSuccess: false;
|
|
175
|
+
isError: false;
|
|
176
|
+
}, "error" | "isError"> & {
|
|
177
|
+
isError: true;
|
|
178
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>> & {
|
|
179
|
+
currentData?: GetLookResponse;
|
|
180
|
+
isUninitialized: false;
|
|
181
|
+
isLoading: false;
|
|
182
|
+
isFetching: false;
|
|
183
|
+
isSuccess: false;
|
|
184
|
+
isError: false;
|
|
185
|
+
}, "error">>)> & {
|
|
186
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
187
|
+
}) => R;
|
|
188
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
189
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetLookResponse, "buymeuaApi", unknown>>;
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=looksApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"looksApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/looks/api/looksApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,QAAQ;;;oJA6BnB,CAAC;AAEH,eAAO,MAAQ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { buymeuaApi } from '../../../shared/api';
|
|
2
|
+
import { getNextPageParam } from '../../../shared/lib';
|
|
3
|
+
export const looksApi = buymeuaApi.injectEndpoints({
|
|
4
|
+
endpoints: (build) => ({
|
|
5
|
+
getLooks: build.infiniteQuery({
|
|
6
|
+
infiniteQueryOptions: {
|
|
7
|
+
initialPageParam: 1,
|
|
8
|
+
getNextPageParam,
|
|
9
|
+
},
|
|
10
|
+
query: (arg) => ({
|
|
11
|
+
url: 'v1/looks',
|
|
12
|
+
params: {
|
|
13
|
+
...arg.queryArg,
|
|
14
|
+
page: arg.pageParam,
|
|
15
|
+
},
|
|
16
|
+
}),
|
|
17
|
+
}),
|
|
18
|
+
getLook: build.query({
|
|
19
|
+
query: (slug) => ({ url: `v1/looks/${slug}` }),
|
|
20
|
+
}),
|
|
21
|
+
}),
|
|
22
|
+
overrideExisting: false,
|
|
23
|
+
});
|
|
24
|
+
export const { useGetLookQuery } = looksApi;
|
|
25
|
+
//# sourceMappingURL=looksApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"looksApi.js","sourceRoot":"","sources":["../../../../src/entities/looks/api/looksApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,eAAe,CAAC;IACjD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,aAAa,CAK3B;YACA,oBAAoB,EAAE;gBACpB,gBAAgB,EAAE,CAAC;gBAEnB,gBAAgB;aACjB;YAED,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,UAAU;gBACf,MAAM,EAAE;oBACN,GAAG,GAAG,CAAC,QAAQ;oBACf,IAAI,EAAE,GAAG,CAAC,SAAS;iBACpB;aACF,CAAC;SACH,CAAC;QAEF,OAAO,EAAE,KAAK,CAAC,KAAK,CAA0B;YAC5C,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC;SAC/C,CAAC;KACH,CAAC;IAEF,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/looks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/looks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { PaginatedResponse } from '../../../shared/model';
|
|
2
|
+
import type { BaseProduct } from '../../product';
|
|
3
|
+
export interface LookImage {
|
|
4
|
+
id: number;
|
|
5
|
+
file_name: string;
|
|
6
|
+
original_url: string;
|
|
7
|
+
/** up to 600x800 */
|
|
8
|
+
thumb_url: string;
|
|
9
|
+
/** up to 1200x1600 */
|
|
10
|
+
preview_url: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LookPreview {
|
|
13
|
+
id: number;
|
|
14
|
+
title: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
/** First image of the look */
|
|
17
|
+
cover: LookImage | null;
|
|
18
|
+
}
|
|
19
|
+
export interface Look extends LookPreview {
|
|
20
|
+
description: string | null;
|
|
21
|
+
images: LookImage[];
|
|
22
|
+
/** Products in the admin-defined order (ProductListResource) */
|
|
23
|
+
products: BaseProduct[];
|
|
24
|
+
/** Other active looks — present only in GET v1/looks/{slug} */
|
|
25
|
+
others?: LookPreview[];
|
|
26
|
+
}
|
|
27
|
+
export interface GetLooksRequest {
|
|
28
|
+
article?: string;
|
|
29
|
+
per_page?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface GetLooksResponse extends PaginatedResponse {
|
|
32
|
+
data: Look[];
|
|
33
|
+
}
|
|
34
|
+
export interface GetLookResponse {
|
|
35
|
+
data: Look;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/looks/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,gEAAgE;IAChE,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,IAAI,EAAE,IAAI,EAAE,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/looks/model/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './entities/creatives';
|
|
|
9
9
|
export * from './entities/customer';
|
|
10
10
|
export * from './entities/faq';
|
|
11
11
|
export * from './entities/favorite';
|
|
12
|
+
export * from './entities/looks';
|
|
12
13
|
export * from './entities/notification';
|
|
13
14
|
export * from './entities/novaposhta';
|
|
14
15
|
export * from './entities/order';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AAC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ist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export * from './entities/creatives';
|
|
|
10
10
|
export * from './entities/customer';
|
|
11
11
|
export * from './entities/faq';
|
|
12
12
|
export * from './entities/favorite';
|
|
13
|
+
export * from './entities/looks';
|
|
13
14
|
export * from './entities/notification';
|
|
14
15
|
export * from './entities/novaposhta';
|
|
15
16
|
export * from './entities/order';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAEL,mBAAmB,EACnB,SAAS,EAET,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B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