@swishapp/api-client 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/dist/client/sdk.gen.d.ts +19 -16
- package/dist/client/sdk.gen.js +18 -8
- package/dist/client/types.gen.d.ts +382 -360
- package/dist/index.d.ts +19 -18
- package/dist/index.js +13 -12
- package/package.json +1 -1
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ListControllerFindData, ListControllerFindError, ListControllerCreateData, ListControllerCreateError, ListControllerDeleteByIdData, ListControllerDeleteByIdError, ListControllerFindByIdData, ListControllerFindByIdError, ListControllerUpdateByIdData, ListControllerUpdateByIdError, ItemControllerDeleteData, ItemControllerDeleteError, ItemControllerFindData, ItemControllerFindError, ItemControllerCreateData, ItemControllerCreateError, ItemControllerDeleteByIdData, ItemControllerDeleteByIdError, ItemControllerUpdateByIdData, ItemControllerUpdateByIdError, ProfileControllerIdentifyProfileData, ProfileControllerIdentifyProfileError, ProfileControllerCreateTokenData, ProfileControllerCreateTokenError } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -13,30 +13,33 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: Record<string, unknown>;
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const listControllerFind: <ThrowOnError extends boolean = false>(options?: Options<ListControllerFindData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PaginatedResponse & {
|
|
17
17
|
data?: Array<import("./types.gen").List>;
|
|
18
|
-
},
|
|
19
|
-
export declare const
|
|
18
|
+
}, ListControllerFindError, ThrowOnError>;
|
|
19
|
+
export declare const listControllerCreate: <ThrowOnError extends boolean = false>(options: Options<ListControllerCreateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
20
20
|
data?: import("./types.gen").List;
|
|
21
|
-
},
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
21
|
+
}, ListControllerCreateError, ThrowOnError>;
|
|
22
|
+
export declare const listControllerDeleteById: <ThrowOnError extends boolean = false>(options: Options<ListControllerDeleteByIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, ListControllerDeleteByIdError, ThrowOnError>;
|
|
23
|
+
export declare const listControllerFindById: <ThrowOnError extends boolean = false>(options: Options<ListControllerFindByIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
24
24
|
data?: import("./types.gen").List;
|
|
25
|
-
},
|
|
26
|
-
export declare const
|
|
25
|
+
}, ListControllerFindByIdError, ThrowOnError>;
|
|
26
|
+
export declare const listControllerUpdateById: <ThrowOnError extends boolean = false>(options: Options<ListControllerUpdateByIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
27
27
|
data?: import("./types.gen").List;
|
|
28
|
-
},
|
|
28
|
+
}, ListControllerUpdateByIdError, ThrowOnError>;
|
|
29
29
|
export declare const itemControllerDelete: <ThrowOnError extends boolean = false>(options: Options<ItemControllerDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, ItemControllerDeleteError, ThrowOnError>;
|
|
30
|
-
export declare const itemControllerFind: <ThrowOnError extends boolean = false>(options
|
|
30
|
+
export declare const itemControllerFind: <ThrowOnError extends boolean = false>(options?: Options<ItemControllerFindData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PaginatedResponse & {
|
|
31
31
|
data?: Array<import("./types.gen").Item>;
|
|
32
32
|
}, ItemControllerFindError, ThrowOnError>;
|
|
33
|
-
export declare const itemControllerCreate: <ThrowOnError extends boolean = false>(options: Options<ItemControllerCreateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").
|
|
33
|
+
export declare const itemControllerCreate: <ThrowOnError extends boolean = false>(options: Options<ItemControllerCreateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
34
34
|
data?: import("./types.gen").Item;
|
|
35
35
|
}, ItemControllerCreateError, ThrowOnError>;
|
|
36
36
|
export declare const itemControllerDeleteById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerDeleteByIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, ItemControllerDeleteByIdError, ThrowOnError>;
|
|
37
|
-
export declare const itemControllerUpdateById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerUpdateByIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").
|
|
37
|
+
export declare const itemControllerUpdateById: <ThrowOnError extends boolean = false>(options: Options<ItemControllerUpdateByIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
38
38
|
data?: import("./types.gen").Item;
|
|
39
39
|
}, ItemControllerUpdateByIdError, ThrowOnError>;
|
|
40
|
-
export declare const
|
|
41
|
-
data?: import("./types.gen").
|
|
42
|
-
},
|
|
40
|
+
export declare const profileControllerIdentifyProfile: <ThrowOnError extends boolean = false>(options: Options<ProfileControllerIdentifyProfileData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
41
|
+
data?: import("./types.gen").IdentifyProfileResponse;
|
|
42
|
+
}, ProfileControllerIdentifyProfileError, ThrowOnError>;
|
|
43
|
+
export declare const profileControllerCreateToken: <ThrowOnError extends boolean = false>(options: Options<ProfileControllerCreateTokenData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").Response & {
|
|
44
|
+
data?: import("./types.gen").CreateProfileTokenResponse;
|
|
45
|
+
}, ProfileControllerCreateTokenError, ThrowOnError>;
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { client as _heyApiClient } from './client.gen';
|
|
3
|
-
export const
|
|
4
|
-
return (options
|
|
3
|
+
export const listControllerFind = (options) => {
|
|
4
|
+
return (options?.client ?? _heyApiClient).get({
|
|
5
5
|
url: '/lists',
|
|
6
6
|
...options
|
|
7
7
|
});
|
|
8
8
|
};
|
|
9
|
-
export const
|
|
9
|
+
export const listControllerCreate = (options) => {
|
|
10
10
|
return (options.client ?? _heyApiClient).post({
|
|
11
11
|
url: '/lists',
|
|
12
12
|
...options,
|
|
@@ -16,19 +16,19 @@ export const listControllerCreateOne = (options) => {
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
export const
|
|
19
|
+
export const listControllerDeleteById = (options) => {
|
|
20
20
|
return (options.client ?? _heyApiClient).delete({
|
|
21
21
|
url: '/lists/{listId}',
|
|
22
22
|
...options
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
export const
|
|
25
|
+
export const listControllerFindById = (options) => {
|
|
26
26
|
return (options.client ?? _heyApiClient).get({
|
|
27
27
|
url: '/lists/{listId}',
|
|
28
28
|
...options
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
export const
|
|
31
|
+
export const listControllerUpdateById = (options) => {
|
|
32
32
|
return (options.client ?? _heyApiClient).patch({
|
|
33
33
|
url: '/lists/{listId}',
|
|
34
34
|
...options,
|
|
@@ -49,7 +49,7 @@ export const itemControllerDelete = (options) => {
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
export const itemControllerFind = (options) => {
|
|
52
|
-
return (options
|
|
52
|
+
return (options?.client ?? _heyApiClient).get({
|
|
53
53
|
url: '/items',
|
|
54
54
|
...options
|
|
55
55
|
});
|
|
@@ -80,7 +80,7 @@ export const itemControllerUpdateById = (options) => {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
export const
|
|
83
|
+
export const profileControllerIdentifyProfile = (options) => {
|
|
84
84
|
return (options.client ?? _heyApiClient).post({
|
|
85
85
|
url: '/profiles/identify',
|
|
86
86
|
...options,
|
|
@@ -90,3 +90,13 @@ export const profileControllerIdentify = (options) => {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
+
export const profileControllerCreateToken = (options) => {
|
|
94
|
+
return (options.client ?? _heyApiClient).post({
|
|
95
|
+
url: '/profiles/token',
|
|
96
|
+
...options,
|
|
97
|
+
headers: {
|
|
98
|
+
'Content-Type': 'application/json',
|
|
99
|
+
...options?.headers
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
};
|