@klingis/sdk 0.1.0 → 0.3.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.
Files changed (88) hide show
  1. package/README.md +66 -0
  2. package/dist/generated/checkout-sessions/checkout-sessions.d.ts +37 -1
  3. package/dist/generated/checkout-sessions/checkout-sessions.d.ts.map +1 -1
  4. package/dist/generated/checkout-sessions/checkout-sessions.js +16 -0
  5. package/dist/generated/checkout-sessions/checkout-sessions.js.map +1 -1
  6. package/dist/generated/claims/claims.d.ts +15 -63
  7. package/dist/generated/claims/claims.d.ts.map +1 -1
  8. package/dist/generated/claims/claims.js +0 -9
  9. package/dist/generated/claims/claims.js.map +1 -1
  10. package/dist/generated/customers/customers.d.ts +58 -7
  11. package/dist/generated/customers/customers.d.ts.map +1 -1
  12. package/dist/generated/customers/customers.js +0 -1
  13. package/dist/generated/customers/customers.js.map +1 -1
  14. package/dist/generated/default/default.d.ts +11 -0
  15. package/dist/generated/default/default.d.ts.map +1 -0
  16. package/dist/generated/default/default.js +19 -0
  17. package/dist/generated/default/default.js.map +1 -0
  18. package/dist/generated/delivery/delivery.d.ts +488 -0
  19. package/dist/generated/delivery/delivery.d.ts.map +1 -0
  20. package/dist/generated/delivery/delivery.js +96 -0
  21. package/dist/generated/delivery/delivery.js.map +1 -0
  22. package/dist/generated/device-auth/device-auth.d.ts +45 -0
  23. package/dist/generated/device-auth/device-auth.d.ts.map +1 -0
  24. package/dist/generated/device-auth/device-auth.js +30 -0
  25. package/dist/generated/device-auth/device-auth.js.map +1 -0
  26. package/dist/generated/events/events.d.ts +23 -0
  27. package/dist/generated/events/events.d.ts.map +1 -0
  28. package/dist/generated/events/events.js +19 -0
  29. package/dist/generated/events/events.js.map +1 -0
  30. package/dist/generated/health/health.d.ts +51 -2
  31. package/dist/generated/health/health.d.ts.map +1 -1
  32. package/dist/generated/health/health.js +19 -0
  33. package/dist/generated/health/health.js.map +1 -1
  34. package/dist/generated/index.d.ts +20 -1
  35. package/dist/generated/index.d.ts.map +1 -1
  36. package/dist/generated/index.js +23 -2
  37. package/dist/generated/index.js.map +1 -1
  38. package/dist/generated/klingAPI.schemas.d.ts +28254 -9116
  39. package/dist/generated/klingAPI.schemas.d.ts.map +1 -1
  40. package/dist/generated/merchant/merchant.d.ts +177 -0
  41. package/dist/generated/merchant/merchant.d.ts.map +1 -0
  42. package/dist/generated/merchant/merchant.js +63 -0
  43. package/dist/generated/merchant/merchant.js.map +1 -0
  44. package/dist/generated/open-payment-pages/open-payment-pages.d.ts +277 -0
  45. package/dist/generated/open-payment-pages/open-payment-pages.d.ts.map +1 -0
  46. package/dist/generated/open-payment-pages/open-payment-pages.js +75 -0
  47. package/dist/generated/open-payment-pages/open-payment-pages.js.map +1 -0
  48. package/dist/generated/payment-intents/payment-intents.d.ts +119 -1
  49. package/dist/generated/payment-intents/payment-intents.d.ts.map +1 -1
  50. package/dist/generated/payment-intents/payment-intents.js +36 -0
  51. package/dist/generated/payment-intents/payment-intents.js.map +1 -1
  52. package/dist/generated/pos/pos.d.ts +648 -0
  53. package/dist/generated/pos/pos.d.ts.map +1 -0
  54. package/dist/generated/pos/pos.js +169 -0
  55. package/dist/generated/pos/pos.js.map +1 -0
  56. package/dist/generated/pos-devices/pos-devices.d.ts +178 -0
  57. package/dist/generated/pos-devices/pos-devices.d.ts.map +1 -0
  58. package/dist/generated/pos-devices/pos-devices.js +40 -0
  59. package/dist/generated/pos-devices/pos-devices.js.map +1 -0
  60. package/dist/generated/products/products.d.ts +177 -6
  61. package/dist/generated/products/products.d.ts.map +1 -1
  62. package/dist/generated/products/products.js +36 -0
  63. package/dist/generated/products/products.js.map +1 -1
  64. package/dist/generated/reports/reports.d.ts +100 -0
  65. package/dist/generated/reports/reports.d.ts.map +1 -0
  66. package/dist/generated/reports/reports.js +107 -0
  67. package/dist/generated/reports/reports.js.map +1 -0
  68. package/dist/generated/subscriptions/subscriptions.d.ts +17 -2
  69. package/dist/generated/subscriptions/subscriptions.d.ts.map +1 -1
  70. package/dist/generated/subscriptions/subscriptions.js +0 -1
  71. package/dist/generated/subscriptions/subscriptions.js.map +1 -1
  72. package/dist/generated/terminal/terminal.d.ts +525 -0
  73. package/dist/generated/terminal/terminal.d.ts.map +1 -0
  74. package/dist/generated/terminal/terminal.js +86 -0
  75. package/dist/generated/terminal/terminal.js.map +1 -0
  76. package/dist/generated/testing/testing.d.ts +81 -0
  77. package/dist/generated/testing/testing.d.ts.map +1 -0
  78. package/dist/generated/testing/testing.js +12 -0
  79. package/dist/generated/testing/testing.js.map +1 -0
  80. package/package.json +12 -5
  81. package/dist/generated/-dev-cron/-dev-cron.d.ts +0 -45
  82. package/dist/generated/-dev-cron/-dev-cron.d.ts.map +0 -1
  83. package/dist/generated/-dev-cron/-dev-cron.js +0 -11
  84. package/dist/generated/-dev-cron/-dev-cron.js.map +0 -1
  85. package/dist/generated/-dev-internal/-dev-internal.d.ts +0 -95
  86. package/dist/generated/-dev-internal/-dev-internal.d.ts.map +0 -1
  87. package/dist/generated/-dev-internal/-dev-internal.js +0 -21
  88. package/dist/generated/-dev-internal/-dev-internal.js.map +0 -1
@@ -5,7 +5,7 @@
5
5
  * Payments and subscriptions platform for Iceland.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
- import type { GetV1Products200One, GetV1Products200Three, GetV1Products200Two, GetV1ProductsById200One, GetV1ProductsById200Three, GetV1ProductsById200Two, GetV1ProductsById404One, GetV1ProductsById404Three, GetV1ProductsById404Two, GetV1ProductsParams, PatchV1ProductsById200One, PatchV1ProductsById200Three, PatchV1ProductsById200Two, PatchV1ProductsById400One, PatchV1ProductsById400Three, PatchV1ProductsById400Two, PatchV1ProductsById404One, PatchV1ProductsById404Three, PatchV1ProductsById404Two, 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';
8
+ import type { GetV1Products200One, GetV1Products200Three, GetV1Products200Two, GetV1ProductsById200One, GetV1ProductsById200Three, GetV1ProductsById200Two, GetV1ProductsById404One, GetV1ProductsById404Three, GetV1ProductsById404Two, GetV1ProductsByIdVariants200One, GetV1ProductsByIdVariants200Three, GetV1ProductsByIdVariants200Two, GetV1ProductsByIdVariants404One, GetV1ProductsByIdVariants404Three, GetV1ProductsByIdVariants404Two, GetV1ProductsByIdVariantsParams, GetV1ProductsParams, PatchV1ProductsById200One, PatchV1ProductsById200Three, PatchV1ProductsById200Two, PatchV1ProductsById400One, PatchV1ProductsById400Three, PatchV1ProductsById400Two, PatchV1ProductsById404One, PatchV1ProductsById404Three, PatchV1ProductsById404Two, PatchV1ProductsById409One, PatchV1ProductsById409Three, PatchV1ProductsById409Two, PatchV1ProductsByIdBodyOne, PatchV1ProductsByIdBodyThree, PatchV1ProductsByIdBodyTwo, PatchV1ProductsByIdVariantsByVariantId200One, PatchV1ProductsByIdVariantsByVariantId200Three, PatchV1ProductsByIdVariantsByVariantId200Two, PatchV1ProductsByIdVariantsByVariantId400One, PatchV1ProductsByIdVariantsByVariantId400Three, PatchV1ProductsByIdVariantsByVariantId400Two, PatchV1ProductsByIdVariantsByVariantId404One, PatchV1ProductsByIdVariantsByVariantId404Three, PatchV1ProductsByIdVariantsByVariantId404Two, PatchV1ProductsByIdVariantsByVariantId409One, PatchV1ProductsByIdVariantsByVariantId409Three, PatchV1ProductsByIdVariantsByVariantId409Two, PatchV1ProductsByIdVariantsByVariantIdBodyOne, PatchV1ProductsByIdVariantsByVariantIdBodyThree, PatchV1ProductsByIdVariantsByVariantIdBodyTwo, PostV1Products200One, PostV1Products200Three, PostV1Products200Two, PostV1Products400One, PostV1Products400Three, PostV1Products400Two, PostV1Products409One, PostV1Products409Three, PostV1Products409Two, PostV1ProductsBodyOne, PostV1ProductsBodyThree, PostV1ProductsBodyTwo, PostV1ProductsByIdArchive200One, PostV1ProductsByIdArchive200Three, PostV1ProductsByIdArchive200Two, PostV1ProductsByIdArchive400One, PostV1ProductsByIdArchive400Three, PostV1ProductsByIdArchive400Two, PostV1ProductsByIdArchive404One, PostV1ProductsByIdArchive404Three, PostV1ProductsByIdArchive404Two, PostV1ProductsByIdVariants200One, PostV1ProductsByIdVariants200Three, PostV1ProductsByIdVariants200Two, PostV1ProductsByIdVariants400One, PostV1ProductsByIdVariants400Three, PostV1ProductsByIdVariants400Two, PostV1ProductsByIdVariants404One, PostV1ProductsByIdVariants404Three, PostV1ProductsByIdVariants404Two, PostV1ProductsByIdVariants409One, PostV1ProductsByIdVariants409Three, PostV1ProductsByIdVariants409Two, PostV1ProductsByIdVariantsBodyOne, PostV1ProductsByIdVariantsBodyThree, PostV1ProductsByIdVariantsBodyTwo } from '../klingAPI.schemas';
9
9
  /**
10
10
  * Create a new product
11
11
  */
@@ -55,7 +55,7 @@ export type postV1ProductsResponse = (postV1ProductsResponseSuccess | postV1Prod
55
55
  export declare const getPostV1ProductsUrl: () => string;
56
56
  export declare const postV1Products: (postV1ProductsBody: PostV1ProductsBodyOne | PostV1ProductsBodyTwo | PostV1ProductsBodyThree, options?: RequestInit) => Promise<postV1ProductsResponse>;
57
57
  /**
58
- * List all products
58
+ * List all products. Includes any product Kling created for its own use, such as the billing product behind a recurring contribution page, so that every product_id on a subscription resolves here. Those are not editable: see the update and archive endpoints. When the Lager (stock) app is enabled for the merchant, every product also carries a stock object with quantity, low_stock_threshold and low; without the app there is no stock key at all.
59
59
  */
60
60
  export type getV1ProductsResponse200ApplicationJson = {
61
61
  data: GetV1Products200One;
@@ -76,7 +76,7 @@ export type getV1ProductsResponse = (getV1ProductsResponseSuccess);
76
76
  export declare const getGetV1ProductsUrl: (params: GetV1ProductsParams) => string;
77
77
  export declare const getV1Products: (params: GetV1ProductsParams, options?: RequestInit) => Promise<getV1ProductsResponse>;
78
78
  /**
79
- * Retrieve a product by ID
79
+ * Retrieve a product by ID, with its options and active variants. Carries the same stock object as the list when the Lager (stock) app is enabled.
80
80
  */
81
81
  export type getV1ProductsByIdResponse200ApplicationJson = {
82
82
  data: GetV1ProductsById200One;
@@ -112,7 +112,7 @@ export type getV1ProductsByIdResponse = (getV1ProductsByIdResponseSuccess | getV
112
112
  export declare const getGetV1ProductsByIdUrl: (id: string) => string;
113
113
  export declare const getV1ProductsById: (id: string, options?: RequestInit) => Promise<getV1ProductsByIdResponse>;
114
114
  /**
115
- * Update a product
115
+ * Update a product. options replaces the product's options (one-time products only; null or [] clears them): a variant whose values no longer fit is archived, not deleted. amount and vat_rate can be changed on a one-time product at any time, and on a subscription product only while no trialing, active or past-due subscription bills it (otherwise 409 product_amount_locked). Products Kling created for its own use are rejected with product_is_managed: a recurring contribution page bills through a product carrying its cadence and VAT rate, shared by every page with the same combination and by every subscription on them, so editing or archiving one would change what existing supporters are billed and what their receipts say.
116
116
  */
117
117
  export type patchV1ProductsByIdResponse200ApplicationJson = {
118
118
  data: PatchV1ProductsById200One;
@@ -150,17 +150,29 @@ export type patchV1ProductsByIdResponse404TextPlain = {
150
150
  data: PatchV1ProductsById404Three;
151
151
  status: 404;
152
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
+ };
153
165
  export type patchV1ProductsByIdResponseSuccess = (patchV1ProductsByIdResponse200ApplicationJson | patchV1ProductsByIdResponse200MultipartFormData | patchV1ProductsByIdResponse200TextPlain) & {
154
166
  headers: Headers;
155
167
  };
156
- export type patchV1ProductsByIdResponseError = (patchV1ProductsByIdResponse400ApplicationJson | patchV1ProductsByIdResponse400MultipartFormData | patchV1ProductsByIdResponse400TextPlain | patchV1ProductsByIdResponse404ApplicationJson | patchV1ProductsByIdResponse404MultipartFormData | patchV1ProductsByIdResponse404TextPlain) & {
168
+ export type patchV1ProductsByIdResponseError = (patchV1ProductsByIdResponse400ApplicationJson | patchV1ProductsByIdResponse400MultipartFormData | patchV1ProductsByIdResponse400TextPlain | patchV1ProductsByIdResponse404ApplicationJson | patchV1ProductsByIdResponse404MultipartFormData | patchV1ProductsByIdResponse404TextPlain | patchV1ProductsByIdResponse409ApplicationJson | patchV1ProductsByIdResponse409MultipartFormData | patchV1ProductsByIdResponse409TextPlain) & {
157
169
  headers: Headers;
158
170
  };
159
171
  export type patchV1ProductsByIdResponse = (patchV1ProductsByIdResponseSuccess | patchV1ProductsByIdResponseError);
160
172
  export declare const getPatchV1ProductsByIdUrl: (id: string) => string;
161
173
  export declare const patchV1ProductsById: (id: string, patchV1ProductsByIdBody: PatchV1ProductsByIdBodyOne | PatchV1ProductsByIdBodyTwo | PatchV1ProductsByIdBodyThree, options?: RequestInit) => Promise<patchV1ProductsByIdResponse>;
162
174
  /**
163
- * Archive a product
175
+ * Archive a product. Products Kling created for its own use are rejected with product_is_managed: a recurring contribution page bills through a product carrying its cadence and VAT rate, shared by every page with the same combination and by every subscription on them, so editing or archiving one would change what existing supporters are billed and what their receipts say.
164
176
  */
165
177
  export type postV1ProductsByIdArchiveResponse200ApplicationJson = {
166
178
  data: PostV1ProductsByIdArchive200One;
@@ -207,4 +219,163 @@ export type postV1ProductsByIdArchiveResponseError = (postV1ProductsByIdArchiveR
207
219
  export type postV1ProductsByIdArchiveResponse = (postV1ProductsByIdArchiveResponseSuccess | postV1ProductsByIdArchiveResponseError);
208
220
  export declare const getPostV1ProductsByIdArchiveUrl: (id: string) => string;
209
221
  export declare const postV1ProductsByIdArchive: (id: string, options?: RequestInit) => Promise<postV1ProductsByIdArchiveResponse>;
222
+ /**
223
+ * The product's variants in display order. Active by default; archived variants are kept so old checkout lines and payments still resolve.
224
+ * @summary List a product's variants
225
+ */
226
+ export type getV1ProductsByIdVariantsResponse200ApplicationJson = {
227
+ data: GetV1ProductsByIdVariants200One;
228
+ status: 200;
229
+ };
230
+ export type getV1ProductsByIdVariantsResponse200MultipartFormData = {
231
+ data: GetV1ProductsByIdVariants200Two;
232
+ status: 200;
233
+ };
234
+ export type getV1ProductsByIdVariantsResponse200TextPlain = {
235
+ data: GetV1ProductsByIdVariants200Three;
236
+ status: 200;
237
+ };
238
+ export type getV1ProductsByIdVariantsResponse404ApplicationJson = {
239
+ data: GetV1ProductsByIdVariants404One;
240
+ status: 404;
241
+ };
242
+ export type getV1ProductsByIdVariantsResponse404MultipartFormData = {
243
+ data: GetV1ProductsByIdVariants404Two;
244
+ status: 404;
245
+ };
246
+ export type getV1ProductsByIdVariantsResponse404TextPlain = {
247
+ data: GetV1ProductsByIdVariants404Three;
248
+ status: 404;
249
+ };
250
+ export type getV1ProductsByIdVariantsResponseSuccess = (getV1ProductsByIdVariantsResponse200ApplicationJson | getV1ProductsByIdVariantsResponse200MultipartFormData | getV1ProductsByIdVariantsResponse200TextPlain) & {
251
+ headers: Headers;
252
+ };
253
+ export type getV1ProductsByIdVariantsResponseError = (getV1ProductsByIdVariantsResponse404ApplicationJson | getV1ProductsByIdVariantsResponse404MultipartFormData | getV1ProductsByIdVariantsResponse404TextPlain) & {
254
+ headers: Headers;
255
+ };
256
+ export type getV1ProductsByIdVariantsResponse = (getV1ProductsByIdVariantsResponseSuccess | getV1ProductsByIdVariantsResponseError);
257
+ export declare const getGetV1ProductsByIdVariantsUrl: (id: string, params?: GetV1ProductsByIdVariantsParams) => string;
258
+ export declare const getV1ProductsByIdVariants: (id: string, params?: GetV1ProductsByIdVariantsParams, options?: RequestInit) => Promise<getV1ProductsByIdVariantsResponse>;
259
+ /**
260
+ * Add a sellable combination of the product's options (set the options first with PATCH /v1/products/{id}). 409 variant_exists when an active variant already has these values, 409 variant_sku_taken for a used sku, 400 variants_not_supported_for_subscriptions on a subscription product. Stock is counted by the Lager app, not here.
261
+ * @summary Create a variant
262
+ */
263
+ export type postV1ProductsByIdVariantsResponse200ApplicationJson = {
264
+ data: PostV1ProductsByIdVariants200One;
265
+ status: 200;
266
+ };
267
+ export type postV1ProductsByIdVariantsResponse200MultipartFormData = {
268
+ data: PostV1ProductsByIdVariants200Two;
269
+ status: 200;
270
+ };
271
+ export type postV1ProductsByIdVariantsResponse200TextPlain = {
272
+ data: PostV1ProductsByIdVariants200Three;
273
+ status: 200;
274
+ };
275
+ export type postV1ProductsByIdVariantsResponse400ApplicationJson = {
276
+ data: PostV1ProductsByIdVariants400One;
277
+ status: 400;
278
+ };
279
+ export type postV1ProductsByIdVariantsResponse400MultipartFormData = {
280
+ data: PostV1ProductsByIdVariants400Two;
281
+ status: 400;
282
+ };
283
+ export type postV1ProductsByIdVariantsResponse400TextPlain = {
284
+ data: PostV1ProductsByIdVariants400Three;
285
+ status: 400;
286
+ };
287
+ export type postV1ProductsByIdVariantsResponse404ApplicationJson = {
288
+ data: PostV1ProductsByIdVariants404One;
289
+ status: 404;
290
+ };
291
+ export type postV1ProductsByIdVariantsResponse404MultipartFormData = {
292
+ data: PostV1ProductsByIdVariants404Two;
293
+ status: 404;
294
+ };
295
+ export type postV1ProductsByIdVariantsResponse404TextPlain = {
296
+ data: PostV1ProductsByIdVariants404Three;
297
+ status: 404;
298
+ };
299
+ export type postV1ProductsByIdVariantsResponse409ApplicationJson = {
300
+ data: PostV1ProductsByIdVariants409One;
301
+ status: 409;
302
+ };
303
+ export type postV1ProductsByIdVariantsResponse409MultipartFormData = {
304
+ data: PostV1ProductsByIdVariants409Two;
305
+ status: 409;
306
+ };
307
+ export type postV1ProductsByIdVariantsResponse409TextPlain = {
308
+ data: PostV1ProductsByIdVariants409Three;
309
+ status: 409;
310
+ };
311
+ export type postV1ProductsByIdVariantsResponseSuccess = (postV1ProductsByIdVariantsResponse200ApplicationJson | postV1ProductsByIdVariantsResponse200MultipartFormData | postV1ProductsByIdVariantsResponse200TextPlain) & {
312
+ headers: Headers;
313
+ };
314
+ export type postV1ProductsByIdVariantsResponseError = (postV1ProductsByIdVariantsResponse400ApplicationJson | postV1ProductsByIdVariantsResponse400MultipartFormData | postV1ProductsByIdVariantsResponse400TextPlain | postV1ProductsByIdVariantsResponse404ApplicationJson | postV1ProductsByIdVariantsResponse404MultipartFormData | postV1ProductsByIdVariantsResponse404TextPlain | postV1ProductsByIdVariantsResponse409ApplicationJson | postV1ProductsByIdVariantsResponse409MultipartFormData | postV1ProductsByIdVariantsResponse409TextPlain) & {
315
+ headers: Headers;
316
+ };
317
+ export type postV1ProductsByIdVariantsResponse = (postV1ProductsByIdVariantsResponseSuccess | postV1ProductsByIdVariantsResponseError);
318
+ export declare const getPostV1ProductsByIdVariantsUrl: (id: string) => string;
319
+ export declare const postV1ProductsByIdVariants: (id: string, postV1ProductsByIdVariantsBody: PostV1ProductsByIdVariantsBodyOne | PostV1ProductsByIdVariantsBodyTwo | PostV1ProductsByIdVariantsBodyThree, options?: RequestInit) => Promise<postV1ProductsByIdVariantsResponse>;
320
+ /**
321
+ * Change a variant's price, sku, order or status. Only the fields sent change. Restoring an archived variant whose values are no longer among the product's options is refused with variant_options_changed.
322
+ * @summary Update a variant
323
+ */
324
+ export type patchV1ProductsByIdVariantsByVariantIdResponse200ApplicationJson = {
325
+ data: PatchV1ProductsByIdVariantsByVariantId200One;
326
+ status: 200;
327
+ };
328
+ export type patchV1ProductsByIdVariantsByVariantIdResponse200MultipartFormData = {
329
+ data: PatchV1ProductsByIdVariantsByVariantId200Two;
330
+ status: 200;
331
+ };
332
+ export type patchV1ProductsByIdVariantsByVariantIdResponse200TextPlain = {
333
+ data: PatchV1ProductsByIdVariantsByVariantId200Three;
334
+ status: 200;
335
+ };
336
+ export type patchV1ProductsByIdVariantsByVariantIdResponse400ApplicationJson = {
337
+ data: PatchV1ProductsByIdVariantsByVariantId400One;
338
+ status: 400;
339
+ };
340
+ export type patchV1ProductsByIdVariantsByVariantIdResponse400MultipartFormData = {
341
+ data: PatchV1ProductsByIdVariantsByVariantId400Two;
342
+ status: 400;
343
+ };
344
+ export type patchV1ProductsByIdVariantsByVariantIdResponse400TextPlain = {
345
+ data: PatchV1ProductsByIdVariantsByVariantId400Three;
346
+ status: 400;
347
+ };
348
+ export type patchV1ProductsByIdVariantsByVariantIdResponse404ApplicationJson = {
349
+ data: PatchV1ProductsByIdVariantsByVariantId404One;
350
+ status: 404;
351
+ };
352
+ export type patchV1ProductsByIdVariantsByVariantIdResponse404MultipartFormData = {
353
+ data: PatchV1ProductsByIdVariantsByVariantId404Two;
354
+ status: 404;
355
+ };
356
+ export type patchV1ProductsByIdVariantsByVariantIdResponse404TextPlain = {
357
+ data: PatchV1ProductsByIdVariantsByVariantId404Three;
358
+ status: 404;
359
+ };
360
+ export type patchV1ProductsByIdVariantsByVariantIdResponse409ApplicationJson = {
361
+ data: PatchV1ProductsByIdVariantsByVariantId409One;
362
+ status: 409;
363
+ };
364
+ export type patchV1ProductsByIdVariantsByVariantIdResponse409MultipartFormData = {
365
+ data: PatchV1ProductsByIdVariantsByVariantId409Two;
366
+ status: 409;
367
+ };
368
+ export type patchV1ProductsByIdVariantsByVariantIdResponse409TextPlain = {
369
+ data: PatchV1ProductsByIdVariantsByVariantId409Three;
370
+ status: 409;
371
+ };
372
+ export type patchV1ProductsByIdVariantsByVariantIdResponseSuccess = (patchV1ProductsByIdVariantsByVariantIdResponse200ApplicationJson | patchV1ProductsByIdVariantsByVariantIdResponse200MultipartFormData | patchV1ProductsByIdVariantsByVariantIdResponse200TextPlain) & {
373
+ headers: Headers;
374
+ };
375
+ export type patchV1ProductsByIdVariantsByVariantIdResponseError = (patchV1ProductsByIdVariantsByVariantIdResponse400ApplicationJson | patchV1ProductsByIdVariantsByVariantIdResponse400MultipartFormData | patchV1ProductsByIdVariantsByVariantIdResponse400TextPlain | patchV1ProductsByIdVariantsByVariantIdResponse404ApplicationJson | patchV1ProductsByIdVariantsByVariantIdResponse404MultipartFormData | patchV1ProductsByIdVariantsByVariantIdResponse404TextPlain | patchV1ProductsByIdVariantsByVariantIdResponse409ApplicationJson | patchV1ProductsByIdVariantsByVariantIdResponse409MultipartFormData | patchV1ProductsByIdVariantsByVariantIdResponse409TextPlain) & {
376
+ headers: Headers;
377
+ };
378
+ export type patchV1ProductsByIdVariantsByVariantIdResponse = (patchV1ProductsByIdVariantsByVariantIdResponseSuccess | patchV1ProductsByIdVariantsByVariantIdResponseError);
379
+ export declare const getPatchV1ProductsByIdVariantsByVariantIdUrl: (id: string, variantId: string) => string;
380
+ export declare const patchV1ProductsByIdVariantsByVariantId: (id: string, variantId: string, patchV1ProductsByIdVariantsByVariantIdBody: PatchV1ProductsByIdVariantsByVariantIdBodyOne | PatchV1ProductsByIdVariantsByVariantIdBodyTwo | PatchV1ProductsByIdVariantsByVariantIdBodyThree, options?: RequestInit) => Promise<patchV1ProductsByIdVariantsByVariantIdResponse>;
210
381
  //# sourceMappingURL=products.d.ts.map
@@ -1 +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,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,E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C1D,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"}
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,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAC/B,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4CAA4C,EAC5C,8CAA8C,EAC9C,4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AAG,CAAC,qDAAqD,GAAG,mDAAmD,CAAC,CAAA;AAE1K,eAAO,MAAM,4CAA4C,GAAI,IAAI,MAAM,EACnE,WAAW,MAAM,WAMpB,CAAA;AAED,eAAO,MAAM,sCAAsC,GAAU,IAAI,MAAM,EACnE,WAAW,MAAM,EACjB,4CAA4C,6CAA6C,GAAG,6CAA6C,GAAG,+CAA+C,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,8CAA8C,CAU5Q,CAAA"}
@@ -54,4 +54,40 @@ export const postV1ProductsByIdArchive = async (id, options) => {
54
54
  method: 'POST'
55
55
  });
56
56
  };
57
+ export const getGetV1ProductsByIdVariantsUrl = (id, params) => {
58
+ const normalizedParams = new URLSearchParams();
59
+ Object.entries(params || {}).forEach(([key, value]) => {
60
+ if (value !== undefined) {
61
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
62
+ }
63
+ });
64
+ const stringifiedParams = normalizedParams.toString();
65
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/products/${id}/variants?${stringifiedParams}` : `http://localhost:3001/v1/products/${id}/variants`;
66
+ };
67
+ export const getV1ProductsByIdVariants = async (id, params, options) => {
68
+ return customFetch(getGetV1ProductsByIdVariantsUrl(id, params), {
69
+ ...options,
70
+ method: 'GET'
71
+ });
72
+ };
73
+ export const getPostV1ProductsByIdVariantsUrl = (id) => {
74
+ return `http://localhost:3001/v1/products/${id}/variants`;
75
+ };
76
+ export const postV1ProductsByIdVariants = async (id, postV1ProductsByIdVariantsBody, options) => {
77
+ return customFetch(getPostV1ProductsByIdVariantsUrl(id), {
78
+ ...options,
79
+ method: 'POST',
80
+ body: JSON.stringify(postV1ProductsByIdVariantsBody)
81
+ });
82
+ };
83
+ export const getPatchV1ProductsByIdVariantsByVariantIdUrl = (id, variantId) => {
84
+ return `http://localhost:3001/v1/products/${id}/variants/${variantId}`;
85
+ };
86
+ export const patchV1ProductsByIdVariantsByVariantId = async (id, variantId, patchV1ProductsByIdVariantsByVariantIdBody, options) => {
87
+ return customFetch(getPatchV1ProductsByIdVariantsByVariantIdUrl(id, variantId), {
88
+ ...options,
89
+ method: 'PATCH',
90
+ body: JSON.stringify(patchV1ProductsByIdVariantsByVariantIdBody)
91
+ });
92
+ };
57
93
  //# sourceMappingURL=products.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/generated/products/products.ts"],"names":[],"mappings":"AAqDA,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,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM,GAAG,C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AG,KAAK,EAAE,EAAU,EACvD,8BAA2I,EAAE,OAAqB,EAA+C,EAAE;IAErN,OAAO,WAAW,CAAqC,gCAAgC,CAAC,EAAE,CAAC,EAC3F;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QAEd,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,8BAA8B,CAAE;KACnC,CACF,CAAC;AAAA,CAAC,CAAA;AA4EH,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,EAAU,EACnE,SAAiB,EAAG,EAAE;IAKxB,OAAO,qCAAqC,EAAE,aAAa,SAAS,EAAE,CAAA;AACxE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,sCAAsC,GAAG,KAAK,EAAE,EAAU,EACnE,SAAiB,EACjB,0CAA2L,EAAE,OAAqB,EAA2D,EAAE;IAEjR,OAAO,WAAW,CAAiD,4CAA4C,CAAC,EAAE,EAAC,SAAS,CAAC,EAC7H;QACE,GAAG,OAAO;QACV,MAAM,EAAE,OAAO;QAEf,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,0CAA0C,CAAE;KAC/C,CACF,CAAC;AAAA,CAAC,CAAA"}
@@ -0,0 +1,100 @@
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 { GetV1ReportsCohortRetentionParams, GetV1ReportsPaymentOutcomesParams, GetV1ReportsRevenueParams, GetV1ReportsSubscriptionMovementParams, GetV1ReportsTopCustomersParams } from '../klingAPI.schemas';
9
+ /**
10
+ * @summary Revenue by period
11
+ */
12
+ export type getV1ReportsRevenueResponse200 = {
13
+ data: void;
14
+ status: 200;
15
+ };
16
+ export type getV1ReportsRevenueResponseSuccess = (getV1ReportsRevenueResponse200) & {
17
+ headers: Headers;
18
+ };
19
+ export type getV1ReportsRevenueResponse = (getV1ReportsRevenueResponseSuccess);
20
+ export declare const getGetV1ReportsRevenueUrl: (params?: GetV1ReportsRevenueParams) => string;
21
+ export declare const getV1ReportsRevenue: (params?: GetV1ReportsRevenueParams, options?: RequestInit) => Promise<getV1ReportsRevenueResponse>;
22
+ /**
23
+ * @summary Monthly recurring revenue
24
+ */
25
+ export type getV1ReportsMrrResponse200 = {
26
+ data: void;
27
+ status: 200;
28
+ };
29
+ export type getV1ReportsMrrResponseSuccess = (getV1ReportsMrrResponse200) & {
30
+ headers: Headers;
31
+ };
32
+ export type getV1ReportsMrrResponse = (getV1ReportsMrrResponseSuccess);
33
+ export declare const getGetV1ReportsMrrUrl: () => string;
34
+ export declare const getV1ReportsMrr: (options?: RequestInit) => Promise<getV1ReportsMrrResponse>;
35
+ /**
36
+ * @summary Subscription base breakdown
37
+ */
38
+ export type getV1ReportsSubscriptionsResponse200 = {
39
+ data: void;
40
+ status: 200;
41
+ };
42
+ export type getV1ReportsSubscriptionsResponseSuccess = (getV1ReportsSubscriptionsResponse200) & {
43
+ headers: Headers;
44
+ };
45
+ export type getV1ReportsSubscriptionsResponse = (getV1ReportsSubscriptionsResponseSuccess);
46
+ export declare const getGetV1ReportsSubscriptionsUrl: () => string;
47
+ export declare const getV1ReportsSubscriptions: (options?: RequestInit) => Promise<getV1ReportsSubscriptionsResponse>;
48
+ /**
49
+ * @summary Subscription base movement by month
50
+ */
51
+ export type getV1ReportsSubscriptionMovementResponse200 = {
52
+ data: void;
53
+ status: 200;
54
+ };
55
+ export type getV1ReportsSubscriptionMovementResponseSuccess = (getV1ReportsSubscriptionMovementResponse200) & {
56
+ headers: Headers;
57
+ };
58
+ export type getV1ReportsSubscriptionMovementResponse = (getV1ReportsSubscriptionMovementResponseSuccess);
59
+ export declare const getGetV1ReportsSubscriptionMovementUrl: (params?: GetV1ReportsSubscriptionMovementParams) => string;
60
+ export declare const getV1ReportsSubscriptionMovement: (params?: GetV1ReportsSubscriptionMovementParams, options?: RequestInit) => Promise<getV1ReportsSubscriptionMovementResponse>;
61
+ /**
62
+ * @summary Retention by signup cohort
63
+ */
64
+ export type getV1ReportsCohortRetentionResponse200 = {
65
+ data: void;
66
+ status: 200;
67
+ };
68
+ export type getV1ReportsCohortRetentionResponseSuccess = (getV1ReportsCohortRetentionResponse200) & {
69
+ headers: Headers;
70
+ };
71
+ export type getV1ReportsCohortRetentionResponse = (getV1ReportsCohortRetentionResponseSuccess);
72
+ export declare const getGetV1ReportsCohortRetentionUrl: (params?: GetV1ReportsCohortRetentionParams) => string;
73
+ export declare const getV1ReportsCohortRetention: (params?: GetV1ReportsCohortRetentionParams, options?: RequestInit) => Promise<getV1ReportsCohortRetentionResponse>;
74
+ /**
75
+ * @summary Payment success vs failure by month
76
+ */
77
+ export type getV1ReportsPaymentOutcomesResponse200 = {
78
+ data: void;
79
+ status: 200;
80
+ };
81
+ export type getV1ReportsPaymentOutcomesResponseSuccess = (getV1ReportsPaymentOutcomesResponse200) & {
82
+ headers: Headers;
83
+ };
84
+ export type getV1ReportsPaymentOutcomesResponse = (getV1ReportsPaymentOutcomesResponseSuccess);
85
+ export declare const getGetV1ReportsPaymentOutcomesUrl: (params?: GetV1ReportsPaymentOutcomesParams) => string;
86
+ export declare const getV1ReportsPaymentOutcomes: (params?: GetV1ReportsPaymentOutcomesParams, options?: RequestInit) => Promise<getV1ReportsPaymentOutcomesResponse>;
87
+ /**
88
+ * @summary Top customers by net volume
89
+ */
90
+ export type getV1ReportsTopCustomersResponse200 = {
91
+ data: void;
92
+ status: 200;
93
+ };
94
+ export type getV1ReportsTopCustomersResponseSuccess = (getV1ReportsTopCustomersResponse200) & {
95
+ headers: Headers;
96
+ };
97
+ export type getV1ReportsTopCustomersResponse = (getV1ReportsTopCustomersResponseSuccess);
98
+ export declare const getGetV1ReportsTopCustomersUrl: (params?: GetV1ReportsTopCustomersParams) => string;
99
+ export declare const getV1ReportsTopCustomers: (params?: GetV1ReportsTopCustomersParams, options?: RequestInit) => Promise<getV1ReportsTopCustomersResponse>;
100
+ //# sourceMappingURL=reports.d.ts.map
@@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MAAM,0CAA0C,GAAG,CAAC,sCAAsC,CAAC,GAAG;IAClG,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,mCAAmC,GAAG,CAAC,0CAA0C,CAAC,CAAA;AAE9F,eAAO,MAAM,iCAAiC,GAAI,SAAS,iCAAiC,WAa3F,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAU,SAAS,iCAAiC,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,mCAAmC,CAS9J,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,uCAAuC,GAAG,CAAC,mCAAmC,CAAC,GAAG;IAC5F,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,gCAAgC,GAAG,CAAC,uCAAuC,CAAC,CAAA;AAExF,eAAO,MAAM,8BAA8B,GAAI,SAAS,8BAA8B,WAarF,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAU,SAAS,8BAA8B,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,gCAAgC,CASrJ,CAAA"}
@@ -0,0 +1,107 @@
1
+ import { customFetch } from '../../mutator';
2
+ ;
3
+ export const getGetV1ReportsRevenueUrl = (params) => {
4
+ const normalizedParams = new URLSearchParams();
5
+ Object.entries(params || {}).forEach(([key, value]) => {
6
+ if (value !== undefined) {
7
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
8
+ }
9
+ });
10
+ const stringifiedParams = normalizedParams.toString();
11
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/reports/revenue?${stringifiedParams}` : `http://localhost:3001/v1/reports/revenue`;
12
+ };
13
+ export const getV1ReportsRevenue = async (params, options) => {
14
+ return customFetch(getGetV1ReportsRevenueUrl(params), {
15
+ ...options,
16
+ method: 'GET'
17
+ });
18
+ };
19
+ ;
20
+ export const getGetV1ReportsMrrUrl = () => {
21
+ return `http://localhost:3001/v1/reports/mrr`;
22
+ };
23
+ export const getV1ReportsMrr = async (options) => {
24
+ return customFetch(getGetV1ReportsMrrUrl(), {
25
+ ...options,
26
+ method: 'GET'
27
+ });
28
+ };
29
+ ;
30
+ export const getGetV1ReportsSubscriptionsUrl = () => {
31
+ return `http://localhost:3001/v1/reports/subscriptions`;
32
+ };
33
+ export const getV1ReportsSubscriptions = async (options) => {
34
+ return customFetch(getGetV1ReportsSubscriptionsUrl(), {
35
+ ...options,
36
+ method: 'GET'
37
+ });
38
+ };
39
+ ;
40
+ export const getGetV1ReportsSubscriptionMovementUrl = (params) => {
41
+ const normalizedParams = new URLSearchParams();
42
+ Object.entries(params || {}).forEach(([key, value]) => {
43
+ if (value !== undefined) {
44
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
45
+ }
46
+ });
47
+ const stringifiedParams = normalizedParams.toString();
48
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/reports/subscription-movement?${stringifiedParams}` : `http://localhost:3001/v1/reports/subscription-movement`;
49
+ };
50
+ export const getV1ReportsSubscriptionMovement = async (params, options) => {
51
+ return customFetch(getGetV1ReportsSubscriptionMovementUrl(params), {
52
+ ...options,
53
+ method: 'GET'
54
+ });
55
+ };
56
+ ;
57
+ export const getGetV1ReportsCohortRetentionUrl = (params) => {
58
+ const normalizedParams = new URLSearchParams();
59
+ Object.entries(params || {}).forEach(([key, value]) => {
60
+ if (value !== undefined) {
61
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
62
+ }
63
+ });
64
+ const stringifiedParams = normalizedParams.toString();
65
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/reports/cohort-retention?${stringifiedParams}` : `http://localhost:3001/v1/reports/cohort-retention`;
66
+ };
67
+ export const getV1ReportsCohortRetention = async (params, options) => {
68
+ return customFetch(getGetV1ReportsCohortRetentionUrl(params), {
69
+ ...options,
70
+ method: 'GET'
71
+ });
72
+ };
73
+ ;
74
+ export const getGetV1ReportsPaymentOutcomesUrl = (params) => {
75
+ const normalizedParams = new URLSearchParams();
76
+ Object.entries(params || {}).forEach(([key, value]) => {
77
+ if (value !== undefined) {
78
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
79
+ }
80
+ });
81
+ const stringifiedParams = normalizedParams.toString();
82
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/reports/payment-outcomes?${stringifiedParams}` : `http://localhost:3001/v1/reports/payment-outcomes`;
83
+ };
84
+ export const getV1ReportsPaymentOutcomes = async (params, options) => {
85
+ return customFetch(getGetV1ReportsPaymentOutcomesUrl(params), {
86
+ ...options,
87
+ method: 'GET'
88
+ });
89
+ };
90
+ ;
91
+ export const getGetV1ReportsTopCustomersUrl = (params) => {
92
+ const normalizedParams = new URLSearchParams();
93
+ Object.entries(params || {}).forEach(([key, value]) => {
94
+ if (value !== undefined) {
95
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
96
+ }
97
+ });
98
+ const stringifiedParams = normalizedParams.toString();
99
+ return stringifiedParams.length > 0 ? `http://localhost:3001/v1/reports/top-customers?${stringifiedParams}` : `http://localhost:3001/v1/reports/top-customers`;
100
+ };
101
+ export const getV1ReportsTopCustomers = async (params, options) => {
102
+ return customFetch(getGetV1ReportsTopCustomersUrl(params), {
103
+ ...options,
104
+ method: 'GET'
105
+ });
106
+ };
107
+ //# sourceMappingURL=reports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../src/generated/reports/reports.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAa5C,CAAC;AAID,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAkC,EAAG,EAAE;IAC/E,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,EAA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BAA2B,GAAG,KAAK,EAAE,MAA0C,EAAE,OAAqB,EAAgD,EAAE;IAEnK,OAAO,WAAW,CAAsC,iCAAiC,CAAC,MAAM,CAAC,EACjG;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AAcH,CAAC;AAID,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAuC,EAAG,EAAE;IACzF,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,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kDAAkD,iBAAiB,EAAE,CAAC,CAAC,CAAC,gDAAgD,CAAA;AAChK,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAAE,MAAuC,EAAE,OAAqB,EAA6C,EAAE;IAE1J,OAAO,WAAW,CAAmC,8BAA8B,CAAC,MAAM,CAAC,EAC3F;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
@@ -5,7 +5,7 @@
5
5
  * Payments and subscriptions platform for Iceland.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
- import type { DeleteV1SubscriptionsByIdDiscount200One, DeleteV1SubscriptionsByIdDiscount200Three, DeleteV1SubscriptionsByIdDiscount200Two, DeleteV1SubscriptionsByIdDiscount404One, DeleteV1SubscriptionsByIdDiscount404Three, DeleteV1SubscriptionsByIdDiscount404Two, GetV1Subscriptions200One, GetV1Subscriptions200Three, GetV1Subscriptions200Two, GetV1SubscriptionsById200One, GetV1SubscriptionsById200Three, GetV1SubscriptionsById200Two, GetV1SubscriptionsById404One, GetV1SubscriptionsById404Three, GetV1SubscriptionsById404Two, GetV1SubscriptionsParams, PostV1Subscriptions200One, PostV1Subscriptions200Three, PostV1Subscriptions200Two, PostV1Subscriptions400One, PostV1Subscriptions400Three, PostV1Subscriptions400Two, PostV1Subscriptions404One, PostV1Subscriptions404Three, PostV1Subscriptions404Two, PostV1SubscriptionsBodyOne, PostV1SubscriptionsBodyThree, PostV1SubscriptionsBodyTwo, PostV1SubscriptionsByIdCancel200One, PostV1SubscriptionsByIdCancel200Three, PostV1SubscriptionsByIdCancel200Two, PostV1SubscriptionsByIdCancel400One, PostV1SubscriptionsByIdCancel400Three, PostV1SubscriptionsByIdCancel400Two, PostV1SubscriptionsByIdCancel404One, PostV1SubscriptionsByIdCancel404Three, PostV1SubscriptionsByIdCancel404Two, PostV1SubscriptionsByIdCancelBodyOne, PostV1SubscriptionsByIdCancelBodyThree, PostV1SubscriptionsByIdCancelBodyTwo, PostV1SubscriptionsByIdDiscount200One, PostV1SubscriptionsByIdDiscount200Three, PostV1SubscriptionsByIdDiscount200Two, PostV1SubscriptionsByIdDiscount400One, PostV1SubscriptionsByIdDiscount400Three, PostV1SubscriptionsByIdDiscount400Two, PostV1SubscriptionsByIdDiscount404One, PostV1SubscriptionsByIdDiscount404Three, PostV1SubscriptionsByIdDiscount404Two, PostV1SubscriptionsByIdDiscountBodyOne, PostV1SubscriptionsByIdDiscountBodyThree, PostV1SubscriptionsByIdDiscountBodyTwo, PostV1SubscriptionsByIdReactivate200One, PostV1SubscriptionsByIdReactivate200Three, PostV1SubscriptionsByIdReactivate200Two, PostV1SubscriptionsByIdReactivate400One, PostV1SubscriptionsByIdReactivate400Three, PostV1SubscriptionsByIdReactivate400Two, PostV1SubscriptionsByIdReactivate404One, PostV1SubscriptionsByIdReactivate404Three, PostV1SubscriptionsByIdReactivate404Two } from '../klingAPI.schemas';
8
+ import type { DeleteV1SubscriptionsByIdDiscount200One, DeleteV1SubscriptionsByIdDiscount200Three, DeleteV1SubscriptionsByIdDiscount200Two, DeleteV1SubscriptionsByIdDiscount404One, DeleteV1SubscriptionsByIdDiscount404Three, DeleteV1SubscriptionsByIdDiscount404Two, GetV1Subscriptions200One, GetV1Subscriptions200Three, GetV1Subscriptions200Two, GetV1Subscriptions400One, GetV1Subscriptions400Three, GetV1Subscriptions400Two, GetV1SubscriptionsById200One, GetV1SubscriptionsById200Three, GetV1SubscriptionsById200Two, GetV1SubscriptionsById404One, GetV1SubscriptionsById404Three, GetV1SubscriptionsById404Two, GetV1SubscriptionsParams, PostV1Subscriptions200One, PostV1Subscriptions200Three, PostV1Subscriptions200Two, PostV1Subscriptions400One, PostV1Subscriptions400Three, PostV1Subscriptions400Two, PostV1Subscriptions404One, PostV1Subscriptions404Three, PostV1Subscriptions404Two, PostV1SubscriptionsBodyOne, PostV1SubscriptionsBodyThree, PostV1SubscriptionsBodyTwo, PostV1SubscriptionsByIdCancel200One, PostV1SubscriptionsByIdCancel200Three, PostV1SubscriptionsByIdCancel200Two, PostV1SubscriptionsByIdCancel400One, PostV1SubscriptionsByIdCancel400Three, PostV1SubscriptionsByIdCancel400Two, PostV1SubscriptionsByIdCancel404One, PostV1SubscriptionsByIdCancel404Three, PostV1SubscriptionsByIdCancel404Two, PostV1SubscriptionsByIdCancelBodyOne, PostV1SubscriptionsByIdCancelBodyThree, PostV1SubscriptionsByIdCancelBodyTwo, PostV1SubscriptionsByIdDiscount200One, PostV1SubscriptionsByIdDiscount200Three, PostV1SubscriptionsByIdDiscount200Two, PostV1SubscriptionsByIdDiscount400One, PostV1SubscriptionsByIdDiscount400Three, PostV1SubscriptionsByIdDiscount400Two, PostV1SubscriptionsByIdDiscount404One, PostV1SubscriptionsByIdDiscount404Three, PostV1SubscriptionsByIdDiscount404Two, PostV1SubscriptionsByIdDiscountBodyOne, PostV1SubscriptionsByIdDiscountBodyThree, PostV1SubscriptionsByIdDiscountBodyTwo, PostV1SubscriptionsByIdReactivate200One, PostV1SubscriptionsByIdReactivate200Three, PostV1SubscriptionsByIdReactivate200Two, PostV1SubscriptionsByIdReactivate400One, PostV1SubscriptionsByIdReactivate400Three, PostV1SubscriptionsByIdReactivate400Two, PostV1SubscriptionsByIdReactivate404One, PostV1SubscriptionsByIdReactivate404Three, PostV1SubscriptionsByIdReactivate404Two } from '../klingAPI.schemas';
9
9
  /**
10
10
  * Create a new subscription
11
11
  */
@@ -69,10 +69,25 @@ export type getV1SubscriptionsResponse200TextPlain = {
69
69
  data: GetV1Subscriptions200Three;
70
70
  status: 200;
71
71
  };
72
+ export type getV1SubscriptionsResponse400ApplicationJson = {
73
+ data: GetV1Subscriptions400One;
74
+ status: 400;
75
+ };
76
+ export type getV1SubscriptionsResponse400MultipartFormData = {
77
+ data: GetV1Subscriptions400Two;
78
+ status: 400;
79
+ };
80
+ export type getV1SubscriptionsResponse400TextPlain = {
81
+ data: GetV1Subscriptions400Three;
82
+ status: 400;
83
+ };
72
84
  export type getV1SubscriptionsResponseSuccess = (getV1SubscriptionsResponse200ApplicationJson | getV1SubscriptionsResponse200MultipartFormData | getV1SubscriptionsResponse200TextPlain) & {
73
85
  headers: Headers;
74
86
  };
75
- export type getV1SubscriptionsResponse = (getV1SubscriptionsResponseSuccess);
87
+ export type getV1SubscriptionsResponseError = (getV1SubscriptionsResponse400ApplicationJson | getV1SubscriptionsResponse400MultipartFormData | getV1SubscriptionsResponse400TextPlain) & {
88
+ headers: Headers;
89
+ };
90
+ export type getV1SubscriptionsResponse = (getV1SubscriptionsResponseSuccess | getV1SubscriptionsResponseError);
76
91
  export declare const getGetV1SubscriptionsUrl: (params: GetV1SubscriptionsParams) => string;
77
92
  export declare const getV1Subscriptions: (params: GetV1SubscriptionsParams, options?: RequestInit) => Promise<getV1SubscriptionsResponse>;
78
93
  /**