@klingis/sdk 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/billing-portal/billing-portal.d.ts +93 -0
- package/dist/generated/billing-portal/billing-portal.d.ts.map +1 -0
- package/dist/generated/billing-portal/billing-portal.js +21 -0
- package/dist/generated/billing-portal/billing-portal.js.map +1 -0
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts +105 -0
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts.map +1 -0
- package/dist/generated/checkout-sessions/checkout-sessions.js +21 -0
- package/dist/generated/checkout-sessions/checkout-sessions.js.map +1 -0
- package/dist/generated/claims/claims.d.ts +258 -0
- package/dist/generated/claims/claims.d.ts.map +1 -0
- package/dist/generated/claims/claims.js +56 -0
- package/dist/generated/claims/claims.js.map +1 -0
- package/dist/generated/coupons/coupons.d.ts +198 -0
- package/dist/generated/coupons/coupons.d.ts.map +1 -0
- package/dist/generated/coupons/coupons.js +57 -0
- package/dist/generated/coupons/coupons.js.map +1 -0
- package/dist/generated/customers/customers.d.ts +234 -0
- package/dist/generated/customers/customers.d.ts.map +1 -0
- package/dist/generated/customers/customers.js +57 -0
- package/dist/generated/customers/customers.js.map +1 -0
- package/dist/generated/device-auth/device-auth.d.ts +45 -0
- package/dist/generated/device-auth/device-auth.d.ts.map +1 -0
- package/dist/generated/device-auth/device-auth.js +30 -0
- package/dist/generated/device-auth/device-auth.js.map +1 -0
- package/dist/generated/events/events.d.ts +23 -0
- package/dist/generated/events/events.d.ts.map +1 -0
- package/dist/generated/events/events.js +19 -0
- package/dist/generated/events/events.js.map +1 -0
- package/dist/generated/health/health.d.ts +30 -0
- package/dist/generated/health/health.d.ts.map +1 -0
- package/dist/generated/health/health.js +12 -0
- package/dist/generated/health/health.js.map +1 -0
- package/dist/generated/index.d.ts +23 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +26 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/klingAPI.schemas.d.ts +17901 -0
- package/dist/generated/klingAPI.schemas.d.ts.map +1 -0
- package/dist/generated/klingAPI.schemas.js +2 -0
- package/dist/generated/klingAPI.schemas.js.map +1 -0
- package/dist/generated/merchant/merchant.d.ts +65 -0
- package/dist/generated/merchant/merchant.d.ts.map +1 -0
- package/dist/generated/merchant/merchant.js +44 -0
- package/dist/generated/merchant/merchant.js.map +1 -0
- package/dist/generated/meta/meta.d.ts +30 -0
- package/dist/generated/meta/meta.d.ts.map +1 -0
- package/dist/generated/meta/meta.js +12 -0
- package/dist/generated/meta/meta.js.map +1 -0
- package/dist/generated/notification-channels/notification-channels.d.ts +255 -0
- package/dist/generated/notification-channels/notification-channels.d.ts.map +1 -0
- package/dist/generated/notification-channels/notification-channels.js +83 -0
- package/dist/generated/notification-channels/notification-channels.js.map +1 -0
- package/dist/generated/payment-intents/payment-intents.d.ts +306 -0
- package/dist/generated/payment-intents/payment-intents.d.ts.map +1 -0
- package/dist/generated/payment-intents/payment-intents.js +76 -0
- package/dist/generated/payment-intents/payment-intents.js.map +1 -0
- package/dist/generated/payment-links/payment-links.d.ts +258 -0
- package/dist/generated/payment-links/payment-links.d.ts.map +1 -0
- package/dist/generated/payment-links/payment-links.js +75 -0
- package/dist/generated/payment-links/payment-links.js.map +1 -0
- package/dist/generated/payment-methods/payment-methods.d.ts +189 -0
- package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -0
- package/dist/generated/payment-methods/payment-methods.js +40 -0
- package/dist/generated/payment-methods/payment-methods.js.map +1 -0
- package/dist/generated/pos-devices/pos-devices.d.ts +129 -0
- package/dist/generated/pos-devices/pos-devices.d.ts.map +1 -0
- package/dist/generated/pos-devices/pos-devices.js +30 -0
- package/dist/generated/pos-devices/pos-devices.js.map +1 -0
- package/dist/generated/products/products.d.ts +222 -0
- package/dist/generated/products/products.d.ts.map +1 -0
- package/dist/generated/products/products.js +57 -0
- package/dist/generated/products/products.js.map +1 -0
- package/dist/generated/promotion-codes/promotion-codes.d.ts +198 -0
- package/dist/generated/promotion-codes/promotion-codes.d.ts.map +1 -0
- package/dist/generated/promotion-codes/promotion-codes.js +58 -0
- package/dist/generated/promotion-codes/promotion-codes.js.map +1 -0
- package/dist/generated/reports/reports.d.ts +100 -0
- package/dist/generated/reports/reports.d.ts.map +1 -0
- package/dist/generated/reports/reports.js +107 -0
- package/dist/generated/reports/reports.js.map +1 -0
- package/dist/generated/subscriptions/subscriptions.d.ts +309 -0
- package/dist/generated/subscriptions/subscriptions.d.ts.map +1 -0
- package/dist/generated/subscriptions/subscriptions.js +75 -0
- package/dist/generated/subscriptions/subscriptions.js.map +1 -0
- package/dist/generated/terminal/terminal.d.ts +168 -0
- package/dist/generated/terminal/terminal.d.ts.map +1 -0
- package/dist/generated/terminal/terminal.js +32 -0
- package/dist/generated/terminal/terminal.js.map +1 -0
- package/dist/generated/testing/testing.d.ts +81 -0
- package/dist/generated/testing/testing.d.ts.map +1 -0
- package/dist/generated/testing/testing.js +12 -0
- package/dist/generated/testing/testing.js.map +1 -0
- package/dist/index.d.ts +3 -97
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -393
- package/dist/index.js.map +1 -1
- package/dist/mutator.d.ts +8 -0
- package/dist/mutator.d.ts.map +1 -0
- package/dist/mutator.js +24 -0
- package/dist/mutator.js.map +1 -0
- package/package.json +14 -13
- package/README.md +0 -62
- package/dist/index.cjs +0 -394
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -97
- package/dist/kling.min.js +0 -395
- package/dist/kling.min.js.map +0 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Kling API
|
|
5
|
+
* Payments and subscriptions platform for Iceland.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { DeleteV1PosDevicesById200One, DeleteV1PosDevicesById200Three, DeleteV1PosDevicesById200Two, DeleteV1PosDevicesById403One, DeleteV1PosDevicesById403Three, DeleteV1PosDevicesById403Two, DeleteV1PosDevicesById404One, DeleteV1PosDevicesById404Three, DeleteV1PosDevicesById404Two, GetV1PosDevices200One, GetV1PosDevices200Three, GetV1PosDevices200Two, GetV1PosDevices403One, GetV1PosDevices403Three, GetV1PosDevices403Two, PostV1PosDevices201One, PostV1PosDevices201Three, PostV1PosDevices201Two, PostV1PosDevices403One, PostV1PosDevices403Three, PostV1PosDevices403Two, PostV1PosDevicesBodyOne, PostV1PosDevicesBodyThree, PostV1PosDevicesBodyTwo } from '../klingAPI.schemas';
|
|
9
|
+
/**
|
|
10
|
+
* Create a locked charge-only payment-device key for a shared phone. Returns the plain key once.
|
|
11
|
+
*/
|
|
12
|
+
export type postV1PosDevicesResponse201ApplicationJson = {
|
|
13
|
+
data: PostV1PosDevices201One;
|
|
14
|
+
status: 201;
|
|
15
|
+
};
|
|
16
|
+
export type postV1PosDevicesResponse201MultipartFormData = {
|
|
17
|
+
data: PostV1PosDevices201Two;
|
|
18
|
+
status: 201;
|
|
19
|
+
};
|
|
20
|
+
export type postV1PosDevicesResponse201TextPlain = {
|
|
21
|
+
data: PostV1PosDevices201Three;
|
|
22
|
+
status: 201;
|
|
23
|
+
};
|
|
24
|
+
export type postV1PosDevicesResponse403ApplicationJson = {
|
|
25
|
+
data: PostV1PosDevices403One;
|
|
26
|
+
status: 403;
|
|
27
|
+
};
|
|
28
|
+
export type postV1PosDevicesResponse403MultipartFormData = {
|
|
29
|
+
data: PostV1PosDevices403Two;
|
|
30
|
+
status: 403;
|
|
31
|
+
};
|
|
32
|
+
export type postV1PosDevicesResponse403TextPlain = {
|
|
33
|
+
data: PostV1PosDevices403Three;
|
|
34
|
+
status: 403;
|
|
35
|
+
};
|
|
36
|
+
export type postV1PosDevicesResponseSuccess = (postV1PosDevicesResponse201ApplicationJson | postV1PosDevicesResponse201MultipartFormData | postV1PosDevicesResponse201TextPlain) & {
|
|
37
|
+
headers: Headers;
|
|
38
|
+
};
|
|
39
|
+
export type postV1PosDevicesResponseError = (postV1PosDevicesResponse403ApplicationJson | postV1PosDevicesResponse403MultipartFormData | postV1PosDevicesResponse403TextPlain) & {
|
|
40
|
+
headers: Headers;
|
|
41
|
+
};
|
|
42
|
+
export type postV1PosDevicesResponse = (postV1PosDevicesResponseSuccess | postV1PosDevicesResponseError);
|
|
43
|
+
export declare const getPostV1PosDevicesUrl: () => string;
|
|
44
|
+
export declare const postV1PosDevices: (postV1PosDevicesBody: PostV1PosDevicesBodyOne | PostV1PosDevicesBodyTwo | PostV1PosDevicesBodyThree, options?: RequestInit) => Promise<postV1PosDevicesResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* List payment devices for the current environment.
|
|
47
|
+
*/
|
|
48
|
+
export type getV1PosDevicesResponse200ApplicationJson = {
|
|
49
|
+
data: GetV1PosDevices200One;
|
|
50
|
+
status: 200;
|
|
51
|
+
};
|
|
52
|
+
export type getV1PosDevicesResponse200MultipartFormData = {
|
|
53
|
+
data: GetV1PosDevices200Two;
|
|
54
|
+
status: 200;
|
|
55
|
+
};
|
|
56
|
+
export type getV1PosDevicesResponse200TextPlain = {
|
|
57
|
+
data: GetV1PosDevices200Three;
|
|
58
|
+
status: 200;
|
|
59
|
+
};
|
|
60
|
+
export type getV1PosDevicesResponse403ApplicationJson = {
|
|
61
|
+
data: GetV1PosDevices403One;
|
|
62
|
+
status: 403;
|
|
63
|
+
};
|
|
64
|
+
export type getV1PosDevicesResponse403MultipartFormData = {
|
|
65
|
+
data: GetV1PosDevices403Two;
|
|
66
|
+
status: 403;
|
|
67
|
+
};
|
|
68
|
+
export type getV1PosDevicesResponse403TextPlain = {
|
|
69
|
+
data: GetV1PosDevices403Three;
|
|
70
|
+
status: 403;
|
|
71
|
+
};
|
|
72
|
+
export type getV1PosDevicesResponseSuccess = (getV1PosDevicesResponse200ApplicationJson | getV1PosDevicesResponse200MultipartFormData | getV1PosDevicesResponse200TextPlain) & {
|
|
73
|
+
headers: Headers;
|
|
74
|
+
};
|
|
75
|
+
export type getV1PosDevicesResponseError = (getV1PosDevicesResponse403ApplicationJson | getV1PosDevicesResponse403MultipartFormData | getV1PosDevicesResponse403TextPlain) & {
|
|
76
|
+
headers: Headers;
|
|
77
|
+
};
|
|
78
|
+
export type getV1PosDevicesResponse = (getV1PosDevicesResponseSuccess | getV1PosDevicesResponseError);
|
|
79
|
+
export declare const getGetV1PosDevicesUrl: () => string;
|
|
80
|
+
export declare const getV1PosDevices: (options?: RequestInit) => Promise<getV1PosDevicesResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Revoke a payment device.
|
|
83
|
+
*/
|
|
84
|
+
export type deleteV1PosDevicesByIdResponse200ApplicationJson = {
|
|
85
|
+
data: DeleteV1PosDevicesById200One;
|
|
86
|
+
status: 200;
|
|
87
|
+
};
|
|
88
|
+
export type deleteV1PosDevicesByIdResponse200MultipartFormData = {
|
|
89
|
+
data: DeleteV1PosDevicesById200Two;
|
|
90
|
+
status: 200;
|
|
91
|
+
};
|
|
92
|
+
export type deleteV1PosDevicesByIdResponse200TextPlain = {
|
|
93
|
+
data: DeleteV1PosDevicesById200Three;
|
|
94
|
+
status: 200;
|
|
95
|
+
};
|
|
96
|
+
export type deleteV1PosDevicesByIdResponse403ApplicationJson = {
|
|
97
|
+
data: DeleteV1PosDevicesById403One;
|
|
98
|
+
status: 403;
|
|
99
|
+
};
|
|
100
|
+
export type deleteV1PosDevicesByIdResponse403MultipartFormData = {
|
|
101
|
+
data: DeleteV1PosDevicesById403Two;
|
|
102
|
+
status: 403;
|
|
103
|
+
};
|
|
104
|
+
export type deleteV1PosDevicesByIdResponse403TextPlain = {
|
|
105
|
+
data: DeleteV1PosDevicesById403Three;
|
|
106
|
+
status: 403;
|
|
107
|
+
};
|
|
108
|
+
export type deleteV1PosDevicesByIdResponse404ApplicationJson = {
|
|
109
|
+
data: DeleteV1PosDevicesById404One;
|
|
110
|
+
status: 404;
|
|
111
|
+
};
|
|
112
|
+
export type deleteV1PosDevicesByIdResponse404MultipartFormData = {
|
|
113
|
+
data: DeleteV1PosDevicesById404Two;
|
|
114
|
+
status: 404;
|
|
115
|
+
};
|
|
116
|
+
export type deleteV1PosDevicesByIdResponse404TextPlain = {
|
|
117
|
+
data: DeleteV1PosDevicesById404Three;
|
|
118
|
+
status: 404;
|
|
119
|
+
};
|
|
120
|
+
export type deleteV1PosDevicesByIdResponseSuccess = (deleteV1PosDevicesByIdResponse200ApplicationJson | deleteV1PosDevicesByIdResponse200MultipartFormData | deleteV1PosDevicesByIdResponse200TextPlain) & {
|
|
121
|
+
headers: Headers;
|
|
122
|
+
};
|
|
123
|
+
export type deleteV1PosDevicesByIdResponseError = (deleteV1PosDevicesByIdResponse403ApplicationJson | deleteV1PosDevicesByIdResponse403MultipartFormData | deleteV1PosDevicesByIdResponse403TextPlain | deleteV1PosDevicesByIdResponse404ApplicationJson | deleteV1PosDevicesByIdResponse404MultipartFormData | deleteV1PosDevicesByIdResponse404TextPlain) & {
|
|
124
|
+
headers: Headers;
|
|
125
|
+
};
|
|
126
|
+
export type deleteV1PosDevicesByIdResponse = (deleteV1PosDevicesByIdResponseSuccess | deleteV1PosDevicesByIdResponseError);
|
|
127
|
+
export declare const getDeleteV1PosDevicesByIdUrl: (id: string) => string;
|
|
128
|
+
export declare const deleteV1PosDevicesById: (id: string, options?: RequestInit) => Promise<deleteV1PosDevicesByIdResponse>;
|
|
129
|
+
//# sourceMappingURL=pos-devices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pos-devices.d.ts","sourceRoot":"","sources":["../../../src/generated/pos-devices/pos-devices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAA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GAAG,kDAAkD,GAAG,0CAA0C,CAAC,GAAG;IAC5V,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,qCAAqC,GAAG,mCAAmC,CAAC,CAAA;AAE1H,eAAO,MAAM,4BAA4B,GAAI,IAAI,MAAM,WAMtD,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,8BAA8B,CASpH,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator';
|
|
2
|
+
export const getPostV1PosDevicesUrl = () => {
|
|
3
|
+
return `http://localhost:3001/v1/pos-devices/`;
|
|
4
|
+
};
|
|
5
|
+
export const postV1PosDevices = async (postV1PosDevicesBody, options) => {
|
|
6
|
+
return customFetch(getPostV1PosDevicesUrl(), {
|
|
7
|
+
...options,
|
|
8
|
+
method: 'POST',
|
|
9
|
+
body: JSON.stringify(postV1PosDevicesBody)
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export const getGetV1PosDevicesUrl = () => {
|
|
13
|
+
return `http://localhost:3001/v1/pos-devices/`;
|
|
14
|
+
};
|
|
15
|
+
export const getV1PosDevices = async (options) => {
|
|
16
|
+
return customFetch(getGetV1PosDevicesUrl(), {
|
|
17
|
+
...options,
|
|
18
|
+
method: 'GET'
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export const getDeleteV1PosDevicesByIdUrl = (id) => {
|
|
22
|
+
return `http://localhost:3001/v1/pos-devices/${id}`;
|
|
23
|
+
};
|
|
24
|
+
export const deleteV1PosDevicesById = async (id, options) => {
|
|
25
|
+
return customFetch(getDeleteV1PosDevicesByIdUrl(id), {
|
|
26
|
+
...options,
|
|
27
|
+
method: 'DELETE'
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=pos-devices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pos-devices.js","sourceRoot":"","sources":["../../../src/generated/pos-devices/pos-devices.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA4C5C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAKzC,OAAO,uCAAuC,CAAA;AAChD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,oBAAmG,EAAE,OAAqB,EAAqC,EAAE;IAEtM,OAAO,WAAW,CAA2B,sBAAsB,EAAE,EACrE;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QAEd,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,oBAAoB,CAAE;KACzB,CACF,CAAC;AAAA,CAAC,CAAA;AA6CH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAKxC,OAAO,uCAAuC,CAAA;AAChD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAG,OAAqB,EAAoC,EAAE;IAEhG,OAAO,WAAW,CAA0B,qBAAqB,EAAE,EACnE;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AA4DH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,EAAU,EAAG,EAAE;IAK1D,OAAO,wCAAwC,EAAE,EAAE,CAAA;AACrD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EAAE,EAAU,EAAE,OAAqB,EAA2C,EAAE;IAEzH,OAAO,WAAW,CAAiC,4BAA4B,CAAC,EAAE,CAAC,EACnF;QACE,GAAG,OAAO;QACV,MAAM,EAAE,QAAQ;KAGjB,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Kling API
|
|
5
|
+
* Payments and subscriptions platform for Iceland.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { GetV1Products200One, GetV1Products200Three, GetV1Products200Two, GetV1ProductsById200One, GetV1ProductsById200Three, GetV1ProductsById200Two, GetV1ProductsById404One, GetV1ProductsById404Three, GetV1ProductsById404Two, GetV1ProductsParams, PatchV1ProductsById200One, PatchV1ProductsById200Three, PatchV1ProductsById200Two, PatchV1ProductsById400One, PatchV1ProductsById400Three, PatchV1ProductsById400Two, PatchV1ProductsById404One, PatchV1ProductsById404Three, PatchV1ProductsById404Two, PatchV1ProductsById409One, PatchV1ProductsById409Three, PatchV1ProductsById409Two, PatchV1ProductsByIdBodyOne, PatchV1ProductsByIdBodyThree, PatchV1ProductsByIdBodyTwo, PostV1Products200One, PostV1Products200Three, PostV1Products200Two, PostV1Products400One, PostV1Products400Three, PostV1Products400Two, PostV1Products409One, PostV1Products409Three, PostV1Products409Two, PostV1ProductsBodyOne, PostV1ProductsBodyThree, PostV1ProductsBodyTwo, PostV1ProductsByIdArchive200One, PostV1ProductsByIdArchive200Three, PostV1ProductsByIdArchive200Two, PostV1ProductsByIdArchive400One, PostV1ProductsByIdArchive400Three, PostV1ProductsByIdArchive400Two, PostV1ProductsByIdArchive404One, PostV1ProductsByIdArchive404Three, PostV1ProductsByIdArchive404Two } from '../klingAPI.schemas';
|
|
9
|
+
/**
|
|
10
|
+
* Create a new product
|
|
11
|
+
*/
|
|
12
|
+
export type postV1ProductsResponse200ApplicationJson = {
|
|
13
|
+
data: PostV1Products200One;
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type postV1ProductsResponse200MultipartFormData = {
|
|
17
|
+
data: PostV1Products200Two;
|
|
18
|
+
status: 200;
|
|
19
|
+
};
|
|
20
|
+
export type postV1ProductsResponse200TextPlain = {
|
|
21
|
+
data: PostV1Products200Three;
|
|
22
|
+
status: 200;
|
|
23
|
+
};
|
|
24
|
+
export type postV1ProductsResponse400ApplicationJson = {
|
|
25
|
+
data: PostV1Products400One;
|
|
26
|
+
status: 400;
|
|
27
|
+
};
|
|
28
|
+
export type postV1ProductsResponse400MultipartFormData = {
|
|
29
|
+
data: PostV1Products400Two;
|
|
30
|
+
status: 400;
|
|
31
|
+
};
|
|
32
|
+
export type postV1ProductsResponse400TextPlain = {
|
|
33
|
+
data: PostV1Products400Three;
|
|
34
|
+
status: 400;
|
|
35
|
+
};
|
|
36
|
+
export type postV1ProductsResponse409ApplicationJson = {
|
|
37
|
+
data: PostV1Products409One;
|
|
38
|
+
status: 409;
|
|
39
|
+
};
|
|
40
|
+
export type postV1ProductsResponse409MultipartFormData = {
|
|
41
|
+
data: PostV1Products409Two;
|
|
42
|
+
status: 409;
|
|
43
|
+
};
|
|
44
|
+
export type postV1ProductsResponse409TextPlain = {
|
|
45
|
+
data: PostV1Products409Three;
|
|
46
|
+
status: 409;
|
|
47
|
+
};
|
|
48
|
+
export type postV1ProductsResponseSuccess = (postV1ProductsResponse200ApplicationJson | postV1ProductsResponse200MultipartFormData | postV1ProductsResponse200TextPlain) & {
|
|
49
|
+
headers: Headers;
|
|
50
|
+
};
|
|
51
|
+
export type postV1ProductsResponseError = (postV1ProductsResponse400ApplicationJson | postV1ProductsResponse400MultipartFormData | postV1ProductsResponse400TextPlain | postV1ProductsResponse409ApplicationJson | postV1ProductsResponse409MultipartFormData | postV1ProductsResponse409TextPlain) & {
|
|
52
|
+
headers: Headers;
|
|
53
|
+
};
|
|
54
|
+
export type postV1ProductsResponse = (postV1ProductsResponseSuccess | postV1ProductsResponseError);
|
|
55
|
+
export declare const getPostV1ProductsUrl: () => string;
|
|
56
|
+
export declare const postV1Products: (postV1ProductsBody: PostV1ProductsBodyOne | PostV1ProductsBodyTwo | PostV1ProductsBodyThree, options?: RequestInit) => Promise<postV1ProductsResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* List all products
|
|
59
|
+
*/
|
|
60
|
+
export type getV1ProductsResponse200ApplicationJson = {
|
|
61
|
+
data: GetV1Products200One;
|
|
62
|
+
status: 200;
|
|
63
|
+
};
|
|
64
|
+
export type getV1ProductsResponse200MultipartFormData = {
|
|
65
|
+
data: GetV1Products200Two;
|
|
66
|
+
status: 200;
|
|
67
|
+
};
|
|
68
|
+
export type getV1ProductsResponse200TextPlain = {
|
|
69
|
+
data: GetV1Products200Three;
|
|
70
|
+
status: 200;
|
|
71
|
+
};
|
|
72
|
+
export type getV1ProductsResponseSuccess = (getV1ProductsResponse200ApplicationJson | getV1ProductsResponse200MultipartFormData | getV1ProductsResponse200TextPlain) & {
|
|
73
|
+
headers: Headers;
|
|
74
|
+
};
|
|
75
|
+
export type getV1ProductsResponse = (getV1ProductsResponseSuccess);
|
|
76
|
+
export declare const getGetV1ProductsUrl: (params: GetV1ProductsParams) => string;
|
|
77
|
+
export declare const getV1Products: (params: GetV1ProductsParams, options?: RequestInit) => Promise<getV1ProductsResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve a product by ID
|
|
80
|
+
*/
|
|
81
|
+
export type getV1ProductsByIdResponse200ApplicationJson = {
|
|
82
|
+
data: GetV1ProductsById200One;
|
|
83
|
+
status: 200;
|
|
84
|
+
};
|
|
85
|
+
export type getV1ProductsByIdResponse200MultipartFormData = {
|
|
86
|
+
data: GetV1ProductsById200Two;
|
|
87
|
+
status: 200;
|
|
88
|
+
};
|
|
89
|
+
export type getV1ProductsByIdResponse200TextPlain = {
|
|
90
|
+
data: GetV1ProductsById200Three;
|
|
91
|
+
status: 200;
|
|
92
|
+
};
|
|
93
|
+
export type getV1ProductsByIdResponse404ApplicationJson = {
|
|
94
|
+
data: GetV1ProductsById404One;
|
|
95
|
+
status: 404;
|
|
96
|
+
};
|
|
97
|
+
export type getV1ProductsByIdResponse404MultipartFormData = {
|
|
98
|
+
data: GetV1ProductsById404Two;
|
|
99
|
+
status: 404;
|
|
100
|
+
};
|
|
101
|
+
export type getV1ProductsByIdResponse404TextPlain = {
|
|
102
|
+
data: GetV1ProductsById404Three;
|
|
103
|
+
status: 404;
|
|
104
|
+
};
|
|
105
|
+
export type getV1ProductsByIdResponseSuccess = (getV1ProductsByIdResponse200ApplicationJson | getV1ProductsByIdResponse200MultipartFormData | getV1ProductsByIdResponse200TextPlain) & {
|
|
106
|
+
headers: Headers;
|
|
107
|
+
};
|
|
108
|
+
export type getV1ProductsByIdResponseError = (getV1ProductsByIdResponse404ApplicationJson | getV1ProductsByIdResponse404MultipartFormData | getV1ProductsByIdResponse404TextPlain) & {
|
|
109
|
+
headers: Headers;
|
|
110
|
+
};
|
|
111
|
+
export type getV1ProductsByIdResponse = (getV1ProductsByIdResponseSuccess | getV1ProductsByIdResponseError);
|
|
112
|
+
export declare const getGetV1ProductsByIdUrl: (id: string) => string;
|
|
113
|
+
export declare const getV1ProductsById: (id: string, options?: RequestInit) => Promise<getV1ProductsByIdResponse>;
|
|
114
|
+
/**
|
|
115
|
+
* Update a product
|
|
116
|
+
*/
|
|
117
|
+
export type patchV1ProductsByIdResponse200ApplicationJson = {
|
|
118
|
+
data: PatchV1ProductsById200One;
|
|
119
|
+
status: 200;
|
|
120
|
+
};
|
|
121
|
+
export type patchV1ProductsByIdResponse200MultipartFormData = {
|
|
122
|
+
data: PatchV1ProductsById200Two;
|
|
123
|
+
status: 200;
|
|
124
|
+
};
|
|
125
|
+
export type patchV1ProductsByIdResponse200TextPlain = {
|
|
126
|
+
data: PatchV1ProductsById200Three;
|
|
127
|
+
status: 200;
|
|
128
|
+
};
|
|
129
|
+
export type patchV1ProductsByIdResponse400ApplicationJson = {
|
|
130
|
+
data: PatchV1ProductsById400One;
|
|
131
|
+
status: 400;
|
|
132
|
+
};
|
|
133
|
+
export type patchV1ProductsByIdResponse400MultipartFormData = {
|
|
134
|
+
data: PatchV1ProductsById400Two;
|
|
135
|
+
status: 400;
|
|
136
|
+
};
|
|
137
|
+
export type patchV1ProductsByIdResponse400TextPlain = {
|
|
138
|
+
data: PatchV1ProductsById400Three;
|
|
139
|
+
status: 400;
|
|
140
|
+
};
|
|
141
|
+
export type patchV1ProductsByIdResponse404ApplicationJson = {
|
|
142
|
+
data: PatchV1ProductsById404One;
|
|
143
|
+
status: 404;
|
|
144
|
+
};
|
|
145
|
+
export type patchV1ProductsByIdResponse404MultipartFormData = {
|
|
146
|
+
data: PatchV1ProductsById404Two;
|
|
147
|
+
status: 404;
|
|
148
|
+
};
|
|
149
|
+
export type patchV1ProductsByIdResponse404TextPlain = {
|
|
150
|
+
data: PatchV1ProductsById404Three;
|
|
151
|
+
status: 404;
|
|
152
|
+
};
|
|
153
|
+
export type patchV1ProductsByIdResponse409ApplicationJson = {
|
|
154
|
+
data: PatchV1ProductsById409One;
|
|
155
|
+
status: 409;
|
|
156
|
+
};
|
|
157
|
+
export type patchV1ProductsByIdResponse409MultipartFormData = {
|
|
158
|
+
data: PatchV1ProductsById409Two;
|
|
159
|
+
status: 409;
|
|
160
|
+
};
|
|
161
|
+
export type patchV1ProductsByIdResponse409TextPlain = {
|
|
162
|
+
data: PatchV1ProductsById409Three;
|
|
163
|
+
status: 409;
|
|
164
|
+
};
|
|
165
|
+
export type patchV1ProductsByIdResponseSuccess = (patchV1ProductsByIdResponse200ApplicationJson | patchV1ProductsByIdResponse200MultipartFormData | patchV1ProductsByIdResponse200TextPlain) & {
|
|
166
|
+
headers: Headers;
|
|
167
|
+
};
|
|
168
|
+
export type patchV1ProductsByIdResponseError = (patchV1ProductsByIdResponse400ApplicationJson | patchV1ProductsByIdResponse400MultipartFormData | patchV1ProductsByIdResponse400TextPlain | patchV1ProductsByIdResponse404ApplicationJson | patchV1ProductsByIdResponse404MultipartFormData | patchV1ProductsByIdResponse404TextPlain | patchV1ProductsByIdResponse409ApplicationJson | patchV1ProductsByIdResponse409MultipartFormData | patchV1ProductsByIdResponse409TextPlain) & {
|
|
169
|
+
headers: Headers;
|
|
170
|
+
};
|
|
171
|
+
export type patchV1ProductsByIdResponse = (patchV1ProductsByIdResponseSuccess | patchV1ProductsByIdResponseError);
|
|
172
|
+
export declare const getPatchV1ProductsByIdUrl: (id: string) => string;
|
|
173
|
+
export declare const patchV1ProductsById: (id: string, patchV1ProductsByIdBody: PatchV1ProductsByIdBodyOne | PatchV1ProductsByIdBodyTwo | PatchV1ProductsByIdBodyThree, options?: RequestInit) => Promise<patchV1ProductsByIdResponse>;
|
|
174
|
+
/**
|
|
175
|
+
* Archive a product
|
|
176
|
+
*/
|
|
177
|
+
export type postV1ProductsByIdArchiveResponse200ApplicationJson = {
|
|
178
|
+
data: PostV1ProductsByIdArchive200One;
|
|
179
|
+
status: 200;
|
|
180
|
+
};
|
|
181
|
+
export type postV1ProductsByIdArchiveResponse200MultipartFormData = {
|
|
182
|
+
data: PostV1ProductsByIdArchive200Two;
|
|
183
|
+
status: 200;
|
|
184
|
+
};
|
|
185
|
+
export type postV1ProductsByIdArchiveResponse200TextPlain = {
|
|
186
|
+
data: PostV1ProductsByIdArchive200Three;
|
|
187
|
+
status: 200;
|
|
188
|
+
};
|
|
189
|
+
export type postV1ProductsByIdArchiveResponse400ApplicationJson = {
|
|
190
|
+
data: PostV1ProductsByIdArchive400One;
|
|
191
|
+
status: 400;
|
|
192
|
+
};
|
|
193
|
+
export type postV1ProductsByIdArchiveResponse400MultipartFormData = {
|
|
194
|
+
data: PostV1ProductsByIdArchive400Two;
|
|
195
|
+
status: 400;
|
|
196
|
+
};
|
|
197
|
+
export type postV1ProductsByIdArchiveResponse400TextPlain = {
|
|
198
|
+
data: PostV1ProductsByIdArchive400Three;
|
|
199
|
+
status: 400;
|
|
200
|
+
};
|
|
201
|
+
export type postV1ProductsByIdArchiveResponse404ApplicationJson = {
|
|
202
|
+
data: PostV1ProductsByIdArchive404One;
|
|
203
|
+
status: 404;
|
|
204
|
+
};
|
|
205
|
+
export type postV1ProductsByIdArchiveResponse404MultipartFormData = {
|
|
206
|
+
data: PostV1ProductsByIdArchive404Two;
|
|
207
|
+
status: 404;
|
|
208
|
+
};
|
|
209
|
+
export type postV1ProductsByIdArchiveResponse404TextPlain = {
|
|
210
|
+
data: PostV1ProductsByIdArchive404Three;
|
|
211
|
+
status: 404;
|
|
212
|
+
};
|
|
213
|
+
export type postV1ProductsByIdArchiveResponseSuccess = (postV1ProductsByIdArchiveResponse200ApplicationJson | postV1ProductsByIdArchiveResponse200MultipartFormData | postV1ProductsByIdArchiveResponse200TextPlain) & {
|
|
214
|
+
headers: Headers;
|
|
215
|
+
};
|
|
216
|
+
export type postV1ProductsByIdArchiveResponseError = (postV1ProductsByIdArchiveResponse400ApplicationJson | postV1ProductsByIdArchiveResponse400MultipartFormData | postV1ProductsByIdArchiveResponse400TextPlain | postV1ProductsByIdArchiveResponse404ApplicationJson | postV1ProductsByIdArchiveResponse404MultipartFormData | postV1ProductsByIdArchiveResponse404TextPlain) & {
|
|
217
|
+
headers: Headers;
|
|
218
|
+
};
|
|
219
|
+
export type postV1ProductsByIdArchiveResponse = (postV1ProductsByIdArchiveResponseSuccess | postV1ProductsByIdArchiveResponseError);
|
|
220
|
+
export declare const getPostV1ProductsByIdArchiveUrl: (id: string) => string;
|
|
221
|
+
export declare const postV1ProductsByIdArchive: (id: string, options?: RequestInit) => Promise<postV1ProductsByIdArchiveResponse>;
|
|
222
|
+
//# sourceMappingURL=products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/generated/products/products.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,y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AAI,EAAE,+BAA+B,CAAA;IACrC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,iCAAiC,CAAA;IACvC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,+BAA+B,CAAA;IACrC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,qDAAqD,GAAG;IAClE,IAAI,EAAE,+BAA+B,CAAA;IACrC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,iCAAiC,CAAA;IACvC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,wCAAwC,GAAG,CAAC,mDAAmD,GAAG,qDAAqD,GAAG,6CAA6C,CAAC,GAAG;IACrN,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,sCAAsC,GAAG,CAAC,mDAAmD,GAAG,qDAAqD,GAAG,6CAA6C,GAAG,mDAAmD,GAAG,qDAAqD,GAAG,6CAA6C,CAAC,GAAG;IACjX,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,wCAAwC,GAAG,sCAAsC,CAAC,CAAA;AAEnI,eAAO,MAAM,+BAA+B,GAAI,IAAI,MAAM,WAMzD,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,iCAAiC,CAS1H,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator';
|
|
2
|
+
export const getPostV1ProductsUrl = () => {
|
|
3
|
+
return `http://localhost:3001/v1/products/`;
|
|
4
|
+
};
|
|
5
|
+
export const postV1Products = async (postV1ProductsBody, options) => {
|
|
6
|
+
return customFetch(getPostV1ProductsUrl(), {
|
|
7
|
+
...options,
|
|
8
|
+
method: 'POST',
|
|
9
|
+
body: JSON.stringify(postV1ProductsBody)
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
;
|
|
13
|
+
export const getGetV1ProductsUrl = (params) => {
|
|
14
|
+
const normalizedParams = new URLSearchParams();
|
|
15
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
16
|
+
if (value !== undefined) {
|
|
17
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const stringifiedParams = normalizedParams.toString();
|
|
21
|
+
return stringifiedParams.length > 0 ? `http://localhost:3001/v1/products/?${stringifiedParams}` : `http://localhost:3001/v1/products/`;
|
|
22
|
+
};
|
|
23
|
+
export const getV1Products = async (params, options) => {
|
|
24
|
+
return customFetch(getGetV1ProductsUrl(params), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'GET'
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export const getGetV1ProductsByIdUrl = (id) => {
|
|
30
|
+
return `http://localhost:3001/v1/products/${id}`;
|
|
31
|
+
};
|
|
32
|
+
export const getV1ProductsById = async (id, options) => {
|
|
33
|
+
return customFetch(getGetV1ProductsByIdUrl(id), {
|
|
34
|
+
...options,
|
|
35
|
+
method: 'GET'
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
export const getPatchV1ProductsByIdUrl = (id) => {
|
|
39
|
+
return `http://localhost:3001/v1/products/${id}`;
|
|
40
|
+
};
|
|
41
|
+
export const patchV1ProductsById = async (id, patchV1ProductsByIdBody, options) => {
|
|
42
|
+
return customFetch(getPatchV1ProductsByIdUrl(id), {
|
|
43
|
+
...options,
|
|
44
|
+
method: 'PATCH',
|
|
45
|
+
body: JSON.stringify(patchV1ProductsByIdBody)
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export const getPostV1ProductsByIdArchiveUrl = (id) => {
|
|
49
|
+
return `http://localhost:3001/v1/products/${id}/archive`;
|
|
50
|
+
};
|
|
51
|
+
export const postV1ProductsByIdArchive = async (id, options) => {
|
|
52
|
+
return customFetch(getPostV1ProductsByIdArchiveUrl(id), {
|
|
53
|
+
...options,
|
|
54
|
+
method: 'POST'
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/generated/products/products.ts"],"names":[],"mappings":"AAwDA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA2D5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAKvC,OAAO,oCAAoC,CAAA;AAC7C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,kBAA2F,EAAE,OAAqB,EAAmC,EAAE;IAE1L,OAAO,WAAW,CAAyB,oBAAoB,EAAE,EACjE;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QAEd,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,kBAAkB,CAAE;KACvB,CACF,CAAC;AAAA,CAAC,CAAA;AAwBH,CAAC;AAID,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA2B,EAAG,EAAE;IAClE,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAEpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,gBAAgB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAA;QAC1E,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,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