@swishapp/api-client 0.43.1-next.0 → 0.44.0-unstable.20260203181536
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 +56 -0
- package/dist/{client.d.ts → 2026-01/client.d.ts} +1 -1
- package/dist/2026-01/index.d.ts +3 -0
- package/dist/2026-01/index.js +7 -0
- package/dist/{openapi → 2026-01/openapi}/client/index.d.ts +2 -1
- package/dist/{openapi → 2026-01/openapi}/client/types.gen.d.ts +2 -9
- package/dist/{openapi → 2026-01/openapi}/client/utils.gen.d.ts +1 -1
- package/dist/{openapi → 2026-01/openapi}/core/bodySerializer.gen.d.ts +12 -4
- package/dist/{openapi → 2026-01/openapi}/core/params.gen.d.ts +10 -0
- package/dist/2026-01/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/2026-01/openapi/index.d.ts +2 -0
- package/dist/{openapi → 2026-01/openapi}/sdk.gen.d.ts +1 -0
- package/dist/{openapi → 2026-01/openapi}/types.gen.d.ts +7 -97
- package/dist/{types.d.ts → 2026-01/types.d.ts} +1 -2
- package/dist/2026-04/client.d.ts +74 -0
- package/dist/2026-04/index.d.ts +3 -0
- package/dist/2026-04/index.js +7 -0
- package/dist/2026-04/openapi/client/client.gen.d.ts +2 -0
- package/dist/2026-04/openapi/client/index.d.ts +8 -0
- package/dist/2026-04/openapi/client/types.gen.d.ts +117 -0
- package/dist/2026-04/openapi/client/utils.gen.d.ts +33 -0
- package/dist/2026-04/openapi/client.gen.d.ts +12 -0
- package/dist/2026-04/openapi/core/auth.gen.d.ts +18 -0
- package/dist/2026-04/openapi/core/bodySerializer.gen.d.ts +25 -0
- package/dist/2026-04/openapi/core/params.gen.d.ts +43 -0
- package/dist/2026-04/openapi/core/pathSerializer.gen.d.ts +33 -0
- package/dist/2026-04/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/2026-04/openapi/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/2026-04/openapi/core/types.gen.d.ts +78 -0
- package/dist/2026-04/openapi/core/utils.gen.d.ts +19 -0
- package/dist/2026-04/openapi/index.d.ts +2 -0
- package/dist/2026-04/openapi/sdk.gen.d.ts +60 -0
- package/dist/2026-04/openapi/types.gen.d.ts +3335 -0
- package/dist/2026-04/types.d.ts +60 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +6 -4
- package/dist/unstable/client.d.ts +74 -0
- package/dist/unstable/index.d.ts +3 -0
- package/dist/unstable/index.js +7 -0
- package/dist/unstable/openapi/client/client.gen.d.ts +2 -0
- package/dist/unstable/openapi/client/index.d.ts +8 -0
- package/dist/unstable/openapi/client/types.gen.d.ts +117 -0
- package/dist/unstable/openapi/client/utils.gen.d.ts +33 -0
- package/dist/unstable/openapi/client.gen.d.ts +12 -0
- package/dist/unstable/openapi/core/auth.gen.d.ts +18 -0
- package/dist/unstable/openapi/core/bodySerializer.gen.d.ts +25 -0
- package/dist/unstable/openapi/core/params.gen.d.ts +43 -0
- package/dist/unstable/openapi/core/pathSerializer.gen.d.ts +33 -0
- package/dist/unstable/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/unstable/openapi/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/unstable/openapi/core/types.gen.d.ts +78 -0
- package/dist/unstable/openapi/core/utils.gen.d.ts +19 -0
- package/dist/unstable/openapi/index.d.ts +2 -0
- package/dist/unstable/openapi/sdk.gen.d.ts +60 -0
- package/dist/unstable/openapi/types.gen.d.ts +3335 -0
- package/dist/unstable/types.d.ts +60 -0
- package/package.json +44 -9
- package/dist/openapi/index.d.ts +0 -2
- /package/dist/{openapi → 2026-01/openapi}/client/client.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/client.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/auth.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/pathSerializer.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/types.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/utils.gen.d.ts +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {
|
|
2
|
+
}
|
|
3
|
+
interface SerializePrimitiveOptions {
|
|
4
|
+
allowReserved?: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SerializerOptions<T> {
|
|
8
|
+
/**
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
explode: boolean;
|
|
12
|
+
style: T;
|
|
13
|
+
}
|
|
14
|
+
export type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
15
|
+
export type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
|
|
16
|
+
type MatrixStyle = 'label' | 'matrix' | 'simple';
|
|
17
|
+
export type ObjectStyle = 'form' | 'deepObject';
|
|
18
|
+
type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
|
|
19
|
+
interface SerializePrimitiveParam extends SerializePrimitiveOptions {
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "." | ";" | "," | "&";
|
|
23
|
+
export declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
|
|
24
|
+
export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "." | ";" | "," | "&";
|
|
25
|
+
export declare const serializeArrayParam: ({ allowReserved, explode, name, style, value, }: SerializeOptions<ArraySeparatorStyle> & {
|
|
26
|
+
value: unknown[];
|
|
27
|
+
}) => string;
|
|
28
|
+
export declare const serializePrimitiveParam: ({ allowReserved, name, value, }: SerializePrimitiveParam) => string;
|
|
29
|
+
export declare const serializeObjectParam: ({ allowReserved, explode, name, style, value, valueOnly, }: SerializeOptions<ObjectSeparatorStyle> & {
|
|
30
|
+
value: Record<string, unknown> | Date;
|
|
31
|
+
valueOnly?: boolean;
|
|
32
|
+
}) => string;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON-friendly union that mirrors what Pinia Colada can hash.
|
|
3
|
+
*/
|
|
4
|
+
export type JsonValue = null | string | number | boolean | JsonValue[] | {
|
|
5
|
+
[key: string]: JsonValue;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const queryKeyJsonReplacer: (_key: string, value: unknown) => {} | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Safely stringifies a value and parses it back into a JsonValue.
|
|
13
|
+
*/
|
|
14
|
+
export declare const stringifyToJsonValue: (input: unknown) => JsonValue | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Normalizes any accepted value into a JSON-friendly shape for query keys.
|
|
17
|
+
*/
|
|
18
|
+
export declare const serializeQueryKeyValue: (value: unknown) => JsonValue | undefined;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { Config } from './types.gen';
|
|
2
|
+
export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
5
|
+
* fetch instance.
|
|
6
|
+
*
|
|
7
|
+
* @default globalThis.fetch
|
|
8
|
+
*/
|
|
9
|
+
fetch?: typeof fetch;
|
|
10
|
+
/**
|
|
11
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
12
|
+
*/
|
|
13
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
14
|
+
/**
|
|
15
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
16
|
+
*
|
|
17
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
18
|
+
*
|
|
19
|
+
* @param error The error that occurred.
|
|
20
|
+
*/
|
|
21
|
+
onSseError?: (error: unknown) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback invoked when an event is streamed from the server.
|
|
24
|
+
*
|
|
25
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
26
|
+
*
|
|
27
|
+
* @param event Event streamed from the server.
|
|
28
|
+
* @returns Nothing (void).
|
|
29
|
+
*/
|
|
30
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
31
|
+
serializedBody?: RequestInit['body'];
|
|
32
|
+
/**
|
|
33
|
+
* Default retry delay in milliseconds.
|
|
34
|
+
*
|
|
35
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
36
|
+
*
|
|
37
|
+
* @default 3000
|
|
38
|
+
*/
|
|
39
|
+
sseDefaultRetryDelay?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Maximum number of retry attempts before giving up.
|
|
42
|
+
*/
|
|
43
|
+
sseMaxRetryAttempts?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum retry delay in milliseconds.
|
|
46
|
+
*
|
|
47
|
+
* Applies only when exponential backoff is used.
|
|
48
|
+
*
|
|
49
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
50
|
+
*
|
|
51
|
+
* @default 30000
|
|
52
|
+
*/
|
|
53
|
+
sseMaxRetryDelay?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Optional sleep function for retry backoff.
|
|
56
|
+
*
|
|
57
|
+
* Defaults to using `setTimeout`.
|
|
58
|
+
*/
|
|
59
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
60
|
+
url: string;
|
|
61
|
+
};
|
|
62
|
+
export interface StreamEvent<TData = unknown> {
|
|
63
|
+
data: TData;
|
|
64
|
+
event?: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
retry?: number;
|
|
67
|
+
}
|
|
68
|
+
export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
69
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
70
|
+
};
|
|
71
|
+
export declare const createSseClient: <TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Auth, AuthToken } from './auth.gen';
|
|
2
|
+
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen';
|
|
3
|
+
export type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
4
|
+
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the final request URL.
|
|
7
|
+
*/
|
|
8
|
+
buildUrl: BuildUrlFn;
|
|
9
|
+
getConfig: () => Config;
|
|
10
|
+
request: RequestFn;
|
|
11
|
+
setConfig: (config: Config) => Config;
|
|
12
|
+
} & {
|
|
13
|
+
[K in HttpMethod]: MethodFn;
|
|
14
|
+
} & ([SseFn] extends [never] ? {
|
|
15
|
+
sse?: never;
|
|
16
|
+
} : {
|
|
17
|
+
sse: {
|
|
18
|
+
[K in HttpMethod]: SseFn;
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
export interface Config {
|
|
22
|
+
/**
|
|
23
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
24
|
+
* added to the request payload as defined by its `security` array.
|
|
25
|
+
*/
|
|
26
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
27
|
+
/**
|
|
28
|
+
* A function for serializing request body parameter. By default,
|
|
29
|
+
* {@link JSON.stringify()} will be used.
|
|
30
|
+
*/
|
|
31
|
+
bodySerializer?: BodySerializer | null;
|
|
32
|
+
/**
|
|
33
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
34
|
+
* `Headers` object with.
|
|
35
|
+
*
|
|
36
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
37
|
+
*/
|
|
38
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* The request method.
|
|
41
|
+
*
|
|
42
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
43
|
+
*/
|
|
44
|
+
method?: Uppercase<HttpMethod>;
|
|
45
|
+
/**
|
|
46
|
+
* A function for serializing request query parameters. By default, arrays
|
|
47
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
48
|
+
* style, and reserved characters are percent-encoded.
|
|
49
|
+
*
|
|
50
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
51
|
+
* API function is used.
|
|
52
|
+
*
|
|
53
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
54
|
+
*/
|
|
55
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
56
|
+
/**
|
|
57
|
+
* A function validating request data. This is useful if you want to ensure
|
|
58
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
59
|
+
* the server.
|
|
60
|
+
*/
|
|
61
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* A function transforming response data before it's returned. This is useful
|
|
64
|
+
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
65
|
+
*/
|
|
66
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* A function validating response data. This is useful if you want to ensure
|
|
69
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
70
|
+
* the transformers and returned to the user.
|
|
71
|
+
*/
|
|
72
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
73
|
+
}
|
|
74
|
+
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
75
|
+
export type OmitNever<T extends Record<string, unknown>> = {
|
|
76
|
+
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
|
|
77
|
+
};
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
|
|
2
|
+
export interface PathSerializer {
|
|
3
|
+
path: Record<string, unknown>;
|
|
4
|
+
url: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PATH_PARAM_RE: RegExp;
|
|
7
|
+
export declare const defaultPathSerializer: ({ path, url: _url }: PathSerializer) => string;
|
|
8
|
+
export declare const getUrl: ({ baseUrl, path, query, querySerializer, url: _url, }: {
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
path?: Record<string, unknown>;
|
|
11
|
+
query?: Record<string, unknown>;
|
|
12
|
+
querySerializer: QuerySerializer;
|
|
13
|
+
url: string;
|
|
14
|
+
}) => string;
|
|
15
|
+
export declare function getValidRequestBody(options: {
|
|
16
|
+
body?: unknown;
|
|
17
|
+
bodySerializer?: BodySerializer | null;
|
|
18
|
+
serializedBody?: unknown;
|
|
19
|
+
}): unknown;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { analyticsControllerLoadNewLists, analyticsControllerLoadSavedItems, analyticsControllerLoadSessions, itemControllerCount, itemControllerCreate, itemControllerDelete, itemControllerDeleteById, itemControllerFind, itemControllerFindById, itemControllerGetRecentlyViewedItems, itemControllerSetListsById, itemControllerUpdateById, listControllerAddItemsToList, listControllerCreate, listControllerDeleteById, listControllerFind, listControllerFindById, listControllerRemoveItemFromList, listControllerSetListItemsOrder, listControllerUpdateById, notificationsControllerDeleteById, notificationsControllerFind, notificationsControllerGetUnreadCount, notificationsControllerMarkAsRead, type Options, ordersControllerFind, ordersControllerFindOne, profileControllerCreateToken, profileControllerGetProfile, profileControllerIdentify, profileControllerUpdateProfile, sharedListsControllerDeleteById, sharedListsControllerFindAll, sharedListsControllerFindById, sharedListsControllerSave, subscriptionsControllerCreate, subscriptionsControllerDelete, subscriptionsControllerFind, subscriptionsControllerFindById, subscriptionsControllerUpdate, trackingControllerCollect } from './sdk.gen';
|
|
2
|
+
export type { AddItemsToListInput, Analytics, AnalyticsControllerLoadNewListsData, AnalyticsControllerLoadNewListsError, AnalyticsControllerLoadNewListsErrors, AnalyticsControllerLoadNewListsResponse, AnalyticsControllerLoadNewListsResponses, AnalyticsControllerLoadSavedItemsData, AnalyticsControllerLoadSavedItemsError, AnalyticsControllerLoadSavedItemsErrors, AnalyticsControllerLoadSavedItemsResponse, AnalyticsControllerLoadSavedItemsResponses, AnalyticsControllerLoadSessionsData, AnalyticsControllerLoadSessionsError, AnalyticsControllerLoadSessionsErrors, AnalyticsControllerLoadSessionsResponse, AnalyticsControllerLoadSessionsResponses, ClientOptions, CreateItemInput, CreateListInput, CreateProfileTokenInput, CreateProfileTokenResult, CreateSubscriptionInput, DeleteItemsInput, Error, ErrorResponse, Fulfillment, IdentifyProfileInput, ImageDto, Item, ItemControllerCountData, ItemControllerCountError, ItemControllerCountErrors, ItemControllerCountResponse, ItemControllerCountResponses, ItemControllerCreateData, ItemControllerCreateError, ItemControllerCreateErrors, ItemControllerCreateResponse, ItemControllerCreateResponses, ItemControllerDeleteByIdData, ItemControllerDeleteByIdError, ItemControllerDeleteByIdErrors, ItemControllerDeleteByIdResponse, ItemControllerDeleteByIdResponses, ItemControllerDeleteData, ItemControllerDeleteError, ItemControllerDeleteErrors, ItemControllerDeleteResponse, ItemControllerDeleteResponses, ItemControllerFindByIdData, ItemControllerFindByIdError, ItemControllerFindByIdErrors, ItemControllerFindByIdResponse, ItemControllerFindByIdResponses, ItemControllerFindData, ItemControllerFindError, ItemControllerFindErrors, ItemControllerFindResponse, ItemControllerFindResponses, ItemControllerGetRecentlyViewedItemsData, ItemControllerGetRecentlyViewedItemsError, ItemControllerGetRecentlyViewedItemsErrors, ItemControllerGetRecentlyViewedItemsResponse, ItemControllerGetRecentlyViewedItemsResponses, ItemControllerSetListsByIdData, ItemControllerSetListsByIdError, ItemControllerSetListsByIdErrors, ItemControllerSetListsByIdResponse, ItemControllerSetListsByIdResponses, ItemControllerUpdateByIdData, ItemControllerUpdateByIdError, ItemControllerUpdateByIdErrors, ItemControllerUpdateByIdResponse, ItemControllerUpdateByIdResponses, ItemCount, ItemDetail, ItemReference, List, ListControllerAddItemsToListData, ListControllerAddItemsToListError, ListControllerAddItemsToListErrors, ListControllerAddItemsToListResponse, ListControllerAddItemsToListResponses, ListControllerCreateData, ListControllerCreateError, ListControllerCreateErrors, ListControllerCreateResponse, ListControllerCreateResponses, ListControllerDeleteByIdData, ListControllerDeleteByIdError, ListControllerDeleteByIdErrors, ListControllerDeleteByIdResponse, ListControllerDeleteByIdResponses, ListControllerFindByIdData, ListControllerFindByIdError, ListControllerFindByIdErrors, ListControllerFindByIdResponse, ListControllerFindByIdResponses, ListControllerFindData, ListControllerFindError, ListControllerFindErrors, ListControllerFindResponse, ListControllerFindResponses, ListControllerRemoveItemFromListData, ListControllerRemoveItemFromListError, ListControllerRemoveItemFromListErrors, ListControllerRemoveItemFromListResponse, ListControllerRemoveItemFromListResponses, ListControllerSetListItemsOrderData, ListControllerSetListItemsOrderError, ListControllerSetListItemsOrderErrors, ListControllerSetListItemsOrderResponse, ListControllerSetListItemsOrderResponses, ListControllerUpdateByIdData, ListControllerUpdateByIdError, ListControllerUpdateByIdErrors, ListControllerUpdateByIdResponse, ListControllerUpdateByIdResponses, ListDetail, MarketingConsent, MarkReadDto, Money, MoneyDto, Notification, NotificationContextDto, NotificationProductDto, NotificationsControllerDeleteByIdData, NotificationsControllerDeleteByIdError, NotificationsControllerDeleteByIdErrors, NotificationsControllerDeleteByIdResponse, NotificationsControllerDeleteByIdResponses, NotificationsControllerFindData, NotificationsControllerFindError, NotificationsControllerFindErrors, NotificationsControllerFindResponse, NotificationsControllerFindResponses, NotificationsControllerGetUnreadCountData, NotificationsControllerGetUnreadCountError, NotificationsControllerGetUnreadCountErrors, NotificationsControllerGetUnreadCountResponse, NotificationsControllerGetUnreadCountResponses, NotificationsControllerMarkAsReadData, NotificationsControllerMarkAsReadError, NotificationsControllerMarkAsReadErrors, NotificationsControllerMarkAsReadResponse, NotificationsControllerMarkAsReadResponses, NotificationSettings, NotificationUnreadCount, NotificationVariantDto, OrderDetailDto, OrderDto, OrderLineItem, OrdersControllerFindData, OrdersControllerFindError, OrdersControllerFindErrors, OrdersControllerFindOneData, OrdersControllerFindOneError, OrdersControllerFindOneErrors, OrdersControllerFindOneResponse, OrdersControllerFindOneResponses, OrdersControllerFindResponse, OrdersControllerFindResponses, PageInfo, PaginatedResponse, PreviewImageDto, ProductCategoryDto, ProductDto, ProductOptionDto, ProductPriceRangeDto, ProductVariantDto, ProductVariantsCountDto, Profile, ProfileControllerCreateTokenData, ProfileControllerCreateTokenError, ProfileControllerCreateTokenErrors, ProfileControllerCreateTokenResponse, ProfileControllerCreateTokenResponses, ProfileControllerGetProfileData, ProfileControllerGetProfileError, ProfileControllerGetProfileErrors, ProfileControllerGetProfileResponse, ProfileControllerGetProfileResponses, ProfileControllerIdentifyData, ProfileControllerIdentifyError, ProfileControllerIdentifyErrors, ProfileControllerIdentifyResponse, ProfileControllerIdentifyResponses, ProfileControllerUpdateProfileData, ProfileControllerUpdateProfileError, ProfileControllerUpdateProfileErrors, ProfileControllerUpdateProfileResponse, ProfileControllerUpdateProfileResponses, RecentlyViewed, Response, SetItemListsInput, SetListItemsOrderInput, SharedList, SharedListsControllerDeleteByIdData, SharedListsControllerDeleteByIdError, SharedListsControllerDeleteByIdErrors, SharedListsControllerDeleteByIdResponse, SharedListsControllerDeleteByIdResponses, SharedListsControllerFindAllData, SharedListsControllerFindAllError, SharedListsControllerFindAllErrors, SharedListsControllerFindAllResponse, SharedListsControllerFindAllResponses, SharedListsControllerFindByIdData, SharedListsControllerFindByIdError, SharedListsControllerFindByIdErrors, SharedListsControllerFindByIdResponse, SharedListsControllerFindByIdResponses, SharedListsControllerSaveData, SharedListsControllerSaveError, SharedListsControllerSaveErrors, SharedListsControllerSaveResponse, SharedListsControllerSaveResponses, Subscription, SubscriptionQueryDto, SubscriptionsControllerCreateData, SubscriptionsControllerCreateError, SubscriptionsControllerCreateErrors, SubscriptionsControllerCreateResponse, SubscriptionsControllerCreateResponses, SubscriptionsControllerDeleteData, SubscriptionsControllerDeleteError, SubscriptionsControllerDeleteErrors, SubscriptionsControllerDeleteResponse, SubscriptionsControllerDeleteResponses, SubscriptionsControllerFindByIdData, SubscriptionsControllerFindByIdError, SubscriptionsControllerFindByIdErrors, SubscriptionsControllerFindByIdResponse, SubscriptionsControllerFindByIdResponses, SubscriptionsControllerFindData, SubscriptionsControllerFindError, SubscriptionsControllerFindErrors, SubscriptionsControllerFindResponse, SubscriptionsControllerFindResponses, SubscriptionsControllerUpdateData, SubscriptionsControllerUpdateError, SubscriptionsControllerUpdateErrors, SubscriptionsControllerUpdateResponse, SubscriptionsControllerUpdateResponses, TrackingControllerCollectData, TrackingControllerCollectError, TrackingControllerCollectErrors, TrackingControllerCollectResponse, TrackingControllerCollectResponses, TrackingEventRequestDto, TrackingInfo, UpdateItemInput, UpdateListInput, UpdateProfileInput, UpdateSubscriptionInput } from './types.gen';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { AnalyticsControllerLoadNewListsData, AnalyticsControllerLoadNewListsErrors, AnalyticsControllerLoadNewListsResponses, AnalyticsControllerLoadSavedItemsData, AnalyticsControllerLoadSavedItemsErrors, AnalyticsControllerLoadSavedItemsResponses, AnalyticsControllerLoadSessionsData, AnalyticsControllerLoadSessionsErrors, AnalyticsControllerLoadSessionsResponses, ItemControllerCountData, ItemControllerCountErrors, ItemControllerCountResponses, ItemControllerCreateData, ItemControllerCreateErrors, ItemControllerCreateResponses, ItemControllerDeleteByIdData, ItemControllerDeleteByIdErrors, ItemControllerDeleteByIdResponses, ItemControllerDeleteData, ItemControllerDeleteErrors, ItemControllerDeleteResponses, ItemControllerFindByIdData, ItemControllerFindByIdErrors, ItemControllerFindByIdResponses, ItemControllerFindData, ItemControllerFindErrors, ItemControllerFindResponses, ItemControllerGetRecentlyViewedItemsData, ItemControllerGetRecentlyViewedItemsErrors, ItemControllerGetRecentlyViewedItemsResponses, ItemControllerSetListsByIdData, ItemControllerSetListsByIdErrors, ItemControllerSetListsByIdResponses, ItemControllerUpdateByIdData, ItemControllerUpdateByIdErrors, ItemControllerUpdateByIdResponses, ListControllerAddItemsToListData, ListControllerAddItemsToListErrors, ListControllerAddItemsToListResponses, ListControllerCreateData, ListControllerCreateErrors, ListControllerCreateResponses, ListControllerDeleteByIdData, ListControllerDeleteByIdErrors, ListControllerDeleteByIdResponses, ListControllerFindByIdData, ListControllerFindByIdErrors, ListControllerFindByIdResponses, ListControllerFindData, ListControllerFindErrors, ListControllerFindResponses, ListControllerRemoveItemFromListData, ListControllerRemoveItemFromListErrors, ListControllerRemoveItemFromListResponses, ListControllerSetListItemsOrderData, ListControllerSetListItemsOrderErrors, ListControllerSetListItemsOrderResponses, ListControllerUpdateByIdData, ListControllerUpdateByIdErrors, ListControllerUpdateByIdResponses, NotificationsControllerDeleteByIdData, NotificationsControllerDeleteByIdErrors, NotificationsControllerDeleteByIdResponses, NotificationsControllerFindData, NotificationsControllerFindErrors, NotificationsControllerFindResponses, NotificationsControllerGetUnreadCountData, NotificationsControllerGetUnreadCountErrors, NotificationsControllerGetUnreadCountResponses, NotificationsControllerMarkAsReadData, NotificationsControllerMarkAsReadErrors, NotificationsControllerMarkAsReadResponses, OrdersControllerFindData, OrdersControllerFindErrors, OrdersControllerFindOneData, OrdersControllerFindOneErrors, OrdersControllerFindOneResponses, OrdersControllerFindResponses, ProfileControllerCreateTokenData, ProfileControllerCreateTokenErrors, ProfileControllerCreateTokenResponses, ProfileControllerGetProfileData, ProfileControllerGetProfileErrors, ProfileControllerGetProfileResponses, ProfileControllerIdentifyData, ProfileControllerIdentifyErrors, ProfileControllerIdentifyResponses, ProfileControllerUpdateProfileData, ProfileControllerUpdateProfileErrors, ProfileControllerUpdateProfileResponses, SharedListsControllerDeleteByIdData, SharedListsControllerDeleteByIdErrors, SharedListsControllerDeleteByIdResponses, SharedListsControllerFindAllData, SharedListsControllerFindAllErrors, SharedListsControllerFindAllResponses, SharedListsControllerFindByIdData, SharedListsControllerFindByIdErrors, SharedListsControllerFindByIdResponses, SharedListsControllerSaveData, SharedListsControllerSaveErrors, SharedListsControllerSaveResponses, SubscriptionsControllerCreateData, SubscriptionsControllerCreateErrors, SubscriptionsControllerCreateResponses, SubscriptionsControllerDeleteData, SubscriptionsControllerDeleteErrors, SubscriptionsControllerDeleteResponses, SubscriptionsControllerFindByIdData, SubscriptionsControllerFindByIdErrors, SubscriptionsControllerFindByIdResponses, SubscriptionsControllerFindData, SubscriptionsControllerFindErrors, SubscriptionsControllerFindResponses, SubscriptionsControllerUpdateData, SubscriptionsControllerUpdateErrors, SubscriptionsControllerUpdateResponses, TrackingControllerCollectData, TrackingControllerCollectErrors, TrackingControllerCollectResponses } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare const listControllerFind: <ThrowOnError extends boolean = false>(options?: Options<ListControllerFindData, ThrowOnError>) => import("./client").RequestResult<ListControllerFindResponses, ListControllerFindErrors, ThrowOnError, "fields">;
|
|
17
|
+
export declare const listControllerCreate: <ThrowOnError extends boolean = false>(options: Options<ListControllerCreateData, ThrowOnError>) => import("./client").RequestResult<ListControllerCreateResponses, ListControllerCreateErrors, ThrowOnError, "fields">;
|
|
18
|
+
export declare const listControllerDeleteById: <ThrowOnError extends boolean = false>(options: Options<ListControllerDeleteByIdData, ThrowOnError>) => import("./client").RequestResult<ListControllerDeleteByIdResponses, ListControllerDeleteByIdErrors, ThrowOnError, "fields">;
|
|
19
|
+
export declare const listControllerFindById: <ThrowOnError extends boolean = false>(options: Options<ListControllerFindByIdData, ThrowOnError>) => import("./client").RequestResult<ListControllerFindByIdResponses, ListControllerFindByIdErrors, ThrowOnError, "fields">;
|
|
20
|
+
export declare const listControllerUpdateById: <ThrowOnError extends boolean = false>(options: Options<ListControllerUpdateByIdData, ThrowOnError>) => import("./client").RequestResult<ListControllerUpdateByIdResponses, ListControllerUpdateByIdErrors, ThrowOnError, "fields">;
|
|
21
|
+
export declare const listControllerSetListItemsOrder: <ThrowOnError extends boolean = false>(options: Options<ListControllerSetListItemsOrderData, ThrowOnError>) => import("./client").RequestResult<ListControllerSetListItemsOrderResponses, ListControllerSetListItemsOrderErrors, ThrowOnError, "fields">;
|
|
22
|
+
export declare const listControllerAddItemsToList: <ThrowOnError extends boolean = false>(options: Options<ListControllerAddItemsToListData, ThrowOnError>) => import("./client").RequestResult<ListControllerAddItemsToListResponses, ListControllerAddItemsToListErrors, ThrowOnError, "fields">;
|
|
23
|
+
export declare const listControllerRemoveItemFromList: <ThrowOnError extends boolean = false>(options: Options<ListControllerRemoveItemFromListData, ThrowOnError>) => import("./client").RequestResult<ListControllerRemoveItemFromListResponses, ListControllerRemoveItemFromListErrors, ThrowOnError, "fields">;
|
|
24
|
+
export declare const itemControllerDelete: <ThrowOnError extends boolean = false>(options: Options<ItemControllerDeleteData, ThrowOnError>) => import("./client").RequestResult<ItemControllerDeleteResponses, ItemControllerDeleteErrors, ThrowOnError, "fields">;
|
|
25
|
+
export declare const itemControllerFind: <ThrowOnError extends boolean = false>(options?: Options<ItemControllerFindData, ThrowOnError>) => import("./client").RequestResult<ItemControllerFindResponses, ItemControllerFindErrors, ThrowOnError, "fields">;
|
|
26
|
+
export declare const itemControllerCreate: <ThrowOnError extends boolean = false>(options: Options<ItemControllerCreateData, ThrowOnError>) => import("./client").RequestResult<ItemControllerCreateResponses, ItemControllerCreateErrors, ThrowOnError, "fields">;
|
|
27
|
+
export declare const itemControllerGetRecentlyViewedItems: <ThrowOnError extends boolean = false>(options?: Options<ItemControllerGetRecentlyViewedItemsData, ThrowOnError>) => import("./client").RequestResult<ItemControllerGetRecentlyViewedItemsResponses, ItemControllerGetRecentlyViewedItemsErrors, ThrowOnError, "fields">;
|
|
28
|
+
export declare const itemControllerCount: <ThrowOnError extends boolean = false>(options?: Options<ItemControllerCountData, ThrowOnError>) => import("./client").RequestResult<ItemControllerCountResponses, ItemControllerCountErrors, ThrowOnError, "fields">;
|
|
29
|
+
export declare const itemControllerDeleteById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerDeleteByIdData, ThrowOnError>) => import("./client").RequestResult<ItemControllerDeleteByIdResponses, ItemControllerDeleteByIdErrors, ThrowOnError, "fields">;
|
|
30
|
+
export declare const itemControllerFindById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerFindByIdData, ThrowOnError>) => import("./client").RequestResult<ItemControllerFindByIdResponses, ItemControllerFindByIdErrors, ThrowOnError, "fields">;
|
|
31
|
+
export declare const itemControllerUpdateById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerUpdateByIdData, ThrowOnError>) => import("./client").RequestResult<ItemControllerUpdateByIdResponses, ItemControllerUpdateByIdErrors, ThrowOnError, "fields">;
|
|
32
|
+
export declare const itemControllerSetListsById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerSetListsByIdData, ThrowOnError>) => import("./client").RequestResult<ItemControllerSetListsByIdResponses, ItemControllerSetListsByIdErrors, ThrowOnError, "fields">;
|
|
33
|
+
export declare const profileControllerIdentify: <ThrowOnError extends boolean = false>(options: Options<ProfileControllerIdentifyData, ThrowOnError>) => import("./client").RequestResult<ProfileControllerIdentifyResponses, ProfileControllerIdentifyErrors, ThrowOnError, "fields">;
|
|
34
|
+
export declare const profileControllerCreateToken: <ThrowOnError extends boolean = false>(options: Options<ProfileControllerCreateTokenData, ThrowOnError>) => import("./client").RequestResult<ProfileControllerCreateTokenResponses, ProfileControllerCreateTokenErrors, ThrowOnError, "fields">;
|
|
35
|
+
export declare const profileControllerGetProfile: <ThrowOnError extends boolean = false>(options?: Options<ProfileControllerGetProfileData, ThrowOnError>) => import("./client").RequestResult<ProfileControllerGetProfileResponses, ProfileControllerGetProfileErrors, ThrowOnError, "fields">;
|
|
36
|
+
export declare const profileControllerUpdateProfile: <ThrowOnError extends boolean = false>(options: Options<ProfileControllerUpdateProfileData, ThrowOnError>) => import("./client").RequestResult<ProfileControllerUpdateProfileResponses, ProfileControllerUpdateProfileErrors, ThrowOnError, "fields">;
|
|
37
|
+
export declare const analyticsControllerLoadSavedItems: <ThrowOnError extends boolean = false>(options: Options<AnalyticsControllerLoadSavedItemsData, ThrowOnError>) => import("./client").RequestResult<AnalyticsControllerLoadSavedItemsResponses, AnalyticsControllerLoadSavedItemsErrors, ThrowOnError, "fields">;
|
|
38
|
+
export declare const analyticsControllerLoadSessions: <ThrowOnError extends boolean = false>(options: Options<AnalyticsControllerLoadSessionsData, ThrowOnError>) => import("./client").RequestResult<AnalyticsControllerLoadSessionsResponses, AnalyticsControllerLoadSessionsErrors, ThrowOnError, "fields">;
|
|
39
|
+
export declare const analyticsControllerLoadNewLists: <ThrowOnError extends boolean = false>(options: Options<AnalyticsControllerLoadNewListsData, ThrowOnError>) => import("./client").RequestResult<AnalyticsControllerLoadNewListsResponses, AnalyticsControllerLoadNewListsErrors, ThrowOnError, "fields">;
|
|
40
|
+
/**
|
|
41
|
+
* Collect user behavior events
|
|
42
|
+
*
|
|
43
|
+
* Endpoint for collecting user behavior events.
|
|
44
|
+
*/
|
|
45
|
+
export declare const trackingControllerCollect: <ThrowOnError extends boolean = false>(options: Options<TrackingControllerCollectData, ThrowOnError>) => import("./client").RequestResult<TrackingControllerCollectResponses, TrackingControllerCollectErrors, ThrowOnError, "fields">;
|
|
46
|
+
export declare const ordersControllerFind: <ThrowOnError extends boolean = false>(options?: Options<OrdersControllerFindData, ThrowOnError>) => import("./client").RequestResult<OrdersControllerFindResponses, OrdersControllerFindErrors, ThrowOnError, "fields">;
|
|
47
|
+
export declare const ordersControllerFindOne: <ThrowOnError extends boolean = false>(options: Options<OrdersControllerFindOneData, ThrowOnError>) => import("./client").RequestResult<OrdersControllerFindOneResponses, OrdersControllerFindOneErrors, ThrowOnError, "fields">;
|
|
48
|
+
export declare const sharedListsControllerSave: <ThrowOnError extends boolean = false>(options: Options<SharedListsControllerSaveData, ThrowOnError>) => import("./client").RequestResult<SharedListsControllerSaveResponses, SharedListsControllerSaveErrors, ThrowOnError, "fields">;
|
|
49
|
+
export declare const sharedListsControllerDeleteById: <ThrowOnError extends boolean = false>(options: Options<SharedListsControllerDeleteByIdData, ThrowOnError>) => import("./client").RequestResult<SharedListsControllerDeleteByIdResponses, SharedListsControllerDeleteByIdErrors, ThrowOnError, "fields">;
|
|
50
|
+
export declare const sharedListsControllerFindById: <ThrowOnError extends boolean = false>(options: Options<SharedListsControllerFindByIdData, ThrowOnError>) => import("./client").RequestResult<SharedListsControllerFindByIdResponses, SharedListsControllerFindByIdErrors, ThrowOnError, "fields">;
|
|
51
|
+
export declare const sharedListsControllerFindAll: <ThrowOnError extends boolean = false>(options?: Options<SharedListsControllerFindAllData, ThrowOnError>) => import("./client").RequestResult<SharedListsControllerFindAllResponses, SharedListsControllerFindAllErrors, ThrowOnError, "fields">;
|
|
52
|
+
export declare const notificationsControllerFind: <ThrowOnError extends boolean = false>(options?: Options<NotificationsControllerFindData, ThrowOnError>) => import("./client").RequestResult<NotificationsControllerFindResponses, NotificationsControllerFindErrors, ThrowOnError, "fields">;
|
|
53
|
+
export declare const notificationsControllerGetUnreadCount: <ThrowOnError extends boolean = false>(options?: Options<NotificationsControllerGetUnreadCountData, ThrowOnError>) => import("./client").RequestResult<NotificationsControllerGetUnreadCountResponses, NotificationsControllerGetUnreadCountErrors, ThrowOnError, "fields">;
|
|
54
|
+
export declare const notificationsControllerMarkAsRead: <ThrowOnError extends boolean = false>(options: Options<NotificationsControllerMarkAsReadData, ThrowOnError>) => import("./client").RequestResult<NotificationsControllerMarkAsReadResponses, NotificationsControllerMarkAsReadErrors, ThrowOnError, "fields">;
|
|
55
|
+
export declare const notificationsControllerDeleteById: <ThrowOnError extends boolean = false>(options: Options<NotificationsControllerDeleteByIdData, ThrowOnError>) => import("./client").RequestResult<NotificationsControllerDeleteByIdResponses, NotificationsControllerDeleteByIdErrors, ThrowOnError, "fields">;
|
|
56
|
+
export declare const subscriptionsControllerFind: <ThrowOnError extends boolean = false>(options?: Options<SubscriptionsControllerFindData, ThrowOnError>) => import("./client").RequestResult<SubscriptionsControllerFindResponses, SubscriptionsControllerFindErrors, ThrowOnError, "fields">;
|
|
57
|
+
export declare const subscriptionsControllerCreate: <ThrowOnError extends boolean = false>(options: Options<SubscriptionsControllerCreateData, ThrowOnError>) => import("./client").RequestResult<SubscriptionsControllerCreateResponses, SubscriptionsControllerCreateErrors, ThrowOnError, "fields">;
|
|
58
|
+
export declare const subscriptionsControllerDelete: <ThrowOnError extends boolean = false>(options: Options<SubscriptionsControllerDeleteData, ThrowOnError>) => import("./client").RequestResult<SubscriptionsControllerDeleteResponses, SubscriptionsControllerDeleteErrors, ThrowOnError, "fields">;
|
|
59
|
+
export declare const subscriptionsControllerFindById: <ThrowOnError extends boolean = false>(options: Options<SubscriptionsControllerFindByIdData, ThrowOnError>) => import("./client").RequestResult<SubscriptionsControllerFindByIdResponses, SubscriptionsControllerFindByIdErrors, ThrowOnError, "fields">;
|
|
60
|
+
export declare const subscriptionsControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<SubscriptionsControllerUpdateData, ThrowOnError>) => import("./client").RequestResult<SubscriptionsControllerUpdateResponses, SubscriptionsControllerUpdateErrors, ThrowOnError, "fields">;
|