weflayr 0.22.1 → 0.22.2

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.
@@ -138,11 +138,11 @@ export type KeyMetricOutput = {
138
138
  */
139
139
  export type KeyMetricRow = {
140
140
  /**
141
- * User Defined Id
141
+ * Metric Id
142
142
  *
143
143
  * Your own id for this value. Omit it to book a new value; reuse a previous one to update it (needs "upsert": true, see the "upsert" field).
144
144
  */
145
- user_defined_id?: string | null;
145
+ metric_id?: string | null;
146
146
  /**
147
147
  * User Name
148
148
  */
@@ -154,7 +154,7 @@ export type KeyMetricRow = {
154
154
  /**
155
155
  * Amount
156
156
  */
157
- amount: number | string;
157
+ amount: number;
158
158
  /**
159
159
  * Month
160
160
  */
@@ -174,10 +174,6 @@ export type KeyMetricRow = {
174
174
  * One booked key-metric value.
175
175
  */
176
176
  export type KeyMetricRowOutput = {
177
- /**
178
- * User Defined Id
179
- */
180
- user_defined_id: string;
181
177
  /**
182
178
  * Metric Name
183
179
  */
@@ -189,11 +185,15 @@ export type KeyMetricRowOutput = {
189
185
  /**
190
186
  * Amount
191
187
  */
192
- amount: string;
188
+ amount: number;
193
189
  /**
194
190
  * Source
195
191
  */
196
192
  source: string;
193
+ /**
194
+ * Metric Id
195
+ */
196
+ metric_id: string;
197
197
  /**
198
198
  * User Name
199
199
  */
@@ -256,11 +256,11 @@ export type RevenueOutput = {
256
256
  */
257
257
  export type RevenueRow = {
258
258
  /**
259
- * User Defined Id
259
+ * Revenue Id
260
260
  *
261
261
  * Your own id for this value. Omit it to book a new value; reuse a previous one to update it (needs "upsert": true, see the "upsert" field).
262
262
  */
263
- user_defined_id?: string | null;
263
+ revenue_id?: string | null;
264
264
  /**
265
265
  * Customer Name
266
266
  */
@@ -268,7 +268,7 @@ export type RevenueRow = {
268
268
  /**
269
269
  * Amount
270
270
  */
271
- amount: number | string;
271
+ amount: number;
272
272
  /**
273
273
  * Month
274
274
  */
@@ -288,10 +288,6 @@ export type RevenueRow = {
288
288
  * One booked revenue value.
289
289
  */
290
290
  export type RevenueRowOutput = {
291
- /**
292
- * User Defined Id
293
- */
294
- user_defined_id: string;
295
291
  /**
296
292
  * Metric Name
297
293
  */
@@ -303,11 +299,15 @@ export type RevenueRowOutput = {
303
299
  /**
304
300
  * Amount
305
301
  */
306
- amount: string;
302
+ amount: number;
307
303
  /**
308
304
  * Source
309
305
  */
310
306
  source: string;
307
+ /**
308
+ * Revenue Id
309
+ */
310
+ revenue_id: string;
311
311
  /**
312
312
  * Customer Name
313
313
  */
@@ -335,7 +335,7 @@ export type SetCustomerTagsInput = {
335
335
  *
336
336
  * The key-metric values posted to the public API. A user may have
337
337
  * several lines of the same metric in the same month; rows are only ever
338
- * matched against each other by user_defined_id, never by (user, metric,
338
+ * matched against each other by metric_id, never by (user, metric,
339
339
  * month).
340
340
  */
341
341
  export type SetKeyMetricsInput = {
@@ -346,7 +346,7 @@ export type SetKeyMetricsInput = {
346
346
  /**
347
347
  * Upsert
348
348
  *
349
- * If a row's user_defined_id already exists, overwrite it instead of rejecting the request.
349
+ * If a row's metric_id already exists, overwrite it instead of rejecting the request.
350
350
  */
351
351
  upsert?: boolean;
352
352
  };
@@ -355,7 +355,7 @@ export type SetKeyMetricsInput = {
355
355
  *
356
356
  * The revenue values posted to the public API. A customer may have several
357
357
  * revenue lines in the same month (e.g. one per product or contract); rows
358
- * are only ever matched against each other by user_defined_id, never by
358
+ * are only ever matched against each other by revenue_id, never by
359
359
  * (customer, month).
360
360
  */
361
361
  export type SetRevenueInput = {
@@ -366,7 +366,7 @@ export type SetRevenueInput = {
366
366
  /**
367
367
  * Upsert
368
368
  *
369
- * If a row's user_defined_id already exists, overwrite it instead of rejecting the request.
369
+ * If a row's revenue_id already exists, overwrite it instead of rejecting the request.
370
370
  */
371
371
  upsert?: boolean;
372
372
  };
@@ -385,10 +385,51 @@ export type TagsDeletedOutput = {
385
385
  */
386
386
  tags_deleted: number;
387
387
  };
388
- export type GetAllRevenueData = {
388
+ export type DeleteRevenueData = {
389
+ body?: never;
390
+ path?: never;
391
+ query: {
392
+ /**
393
+ * Delete these customers' API-booked revenue (repeat the param for several).
394
+ */
395
+ customer_names: Array<string>;
396
+ /**
397
+ * First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
398
+ */
399
+ month_start?: string;
400
+ /**
401
+ * Last month to delete (inclusive).
402
+ */
403
+ month_end?: string;
404
+ };
405
+ url: '/revenue/';
406
+ };
407
+ export type DeleteRevenueErrors = {
408
+ /**
409
+ * Missing or invalid API key.
410
+ */
411
+ 401: ApiErrorOutput;
412
+ /**
413
+ * Invalid payload: every offending field is listed and nothing was written.
414
+ */
415
+ 422: InvalidPayloadOutput;
416
+ };
417
+ export type DeleteRevenueError = DeleteRevenueErrors[keyof DeleteRevenueErrors];
418
+ export type DeleteRevenueResponses = {
419
+ /**
420
+ * Success.
421
+ */
422
+ 200: RevenueOrKeyMetricDeletedRowOutput;
423
+ };
424
+ export type DeleteRevenueResponse = DeleteRevenueResponses[keyof DeleteRevenueResponses];
425
+ export type GetRevenueData = {
389
426
  body?: never;
390
427
  path?: never;
391
428
  query?: {
429
+ /**
430
+ * Return only these customers' revenue (repeat the param for several). Omit to return every customer's.
431
+ */
432
+ customer_names?: Array<string>;
392
433
  /**
393
434
  * Opaque cursor from a previous page's next_cursor.
394
435
  */
@@ -397,20 +438,20 @@ export type GetAllRevenueData = {
397
438
  };
398
439
  url: '/revenue/';
399
440
  };
400
- export type GetAllRevenueErrors = {
441
+ export type GetRevenueErrors = {
401
442
  /**
402
443
  * Missing or invalid API key.
403
444
  */
404
445
  401: ApiErrorOutput;
405
446
  };
406
- export type GetAllRevenueError = GetAllRevenueErrors[keyof GetAllRevenueErrors];
407
- export type GetAllRevenueResponses = {
447
+ export type GetRevenueError = GetRevenueErrors[keyof GetRevenueErrors];
448
+ export type GetRevenueResponses = {
408
449
  /**
409
450
  * Success.
410
451
  */
411
452
  200: RevenueOutput;
412
453
  };
413
- export type GetAllRevenueResponse = GetAllRevenueResponses[keyof GetAllRevenueResponses];
454
+ export type GetRevenueResponse = GetRevenueResponses[keyof GetRevenueResponses];
414
455
  export type SetRevenueData = {
415
456
  body: SetRevenueInput;
416
457
  path?: never;
@@ -435,12 +476,14 @@ export type SetRevenueResponses = {
435
476
  200: RevenueOrKeyMetricImportedRowOutput;
436
477
  };
437
478
  export type SetRevenueResponse = SetRevenueResponses[keyof SetRevenueResponses];
438
- export type DeleteCustomerRevenueData = {
479
+ export type DeleteKeyMetricsData = {
439
480
  body?: never;
440
- path: {
441
- customer_name: string;
442
- };
443
- query?: {
481
+ path?: never;
482
+ query: {
483
+ /**
484
+ * Delete these users' API-booked key metrics (repeat the param for several).
485
+ */
486
+ user_names: Array<string>;
444
487
  /**
445
488
  * First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
446
489
  */
@@ -450,9 +493,9 @@ export type DeleteCustomerRevenueData = {
450
493
  */
451
494
  month_end?: string;
452
495
  };
453
- url: '/revenue/{customer_name}/';
496
+ url: '/key-metrics/';
454
497
  };
455
- export type DeleteCustomerRevenueErrors = {
498
+ export type DeleteKeyMetricsErrors = {
456
499
  /**
457
500
  * Missing or invalid API key.
458
501
  */
@@ -462,44 +505,22 @@ export type DeleteCustomerRevenueErrors = {
462
505
  */
463
506
  422: InvalidPayloadOutput;
464
507
  };
465
- export type DeleteCustomerRevenueError = DeleteCustomerRevenueErrors[keyof DeleteCustomerRevenueErrors];
466
- export type DeleteCustomerRevenueResponses = {
508
+ export type DeleteKeyMetricsError = DeleteKeyMetricsErrors[keyof DeleteKeyMetricsErrors];
509
+ export type DeleteKeyMetricsResponses = {
467
510
  /**
468
511
  * Success.
469
512
  */
470
513
  200: RevenueOrKeyMetricDeletedRowOutput;
471
514
  };
472
- export type DeleteCustomerRevenueResponse = DeleteCustomerRevenueResponses[keyof DeleteCustomerRevenueResponses];
473
- export type GetCustomerRevenueData = {
474
- body?: never;
475
- path: {
476
- customer_name: string;
477
- };
478
- query?: never;
479
- url: '/revenue/{customer_name}/';
480
- };
481
- export type GetCustomerRevenueErrors = {
482
- /**
483
- * Missing or invalid API key.
484
- */
485
- 401: ApiErrorOutput;
486
- /**
487
- * Nothing exists for this customer.
488
- */
489
- 404: ApiErrorOutput;
490
- };
491
- export type GetCustomerRevenueError = GetCustomerRevenueErrors[keyof GetCustomerRevenueErrors];
492
- export type GetCustomerRevenueResponses = {
493
- /**
494
- * Success.
495
- */
496
- 200: RevenueOutput;
497
- };
498
- export type GetCustomerRevenueResponse = GetCustomerRevenueResponses[keyof GetCustomerRevenueResponses];
499
- export type GetAllKeyMetricsData = {
515
+ export type DeleteKeyMetricsResponse = DeleteKeyMetricsResponses[keyof DeleteKeyMetricsResponses];
516
+ export type GetKeyMetricsData = {
500
517
  body?: never;
501
518
  path?: never;
502
519
  query?: {
520
+ /**
521
+ * Return only these users' key metrics (repeat the param for several). Omit to return every user's.
522
+ */
523
+ user_names?: Array<string>;
503
524
  /**
504
525
  * Opaque cursor from a previous page's next_cursor.
505
526
  */
@@ -508,20 +529,20 @@ export type GetAllKeyMetricsData = {
508
529
  };
509
530
  url: '/key-metrics/';
510
531
  };
511
- export type GetAllKeyMetricsErrors = {
532
+ export type GetKeyMetricsErrors = {
512
533
  /**
513
534
  * Missing or invalid API key.
514
535
  */
515
536
  401: ApiErrorOutput;
516
537
  };
517
- export type GetAllKeyMetricsError = GetAllKeyMetricsErrors[keyof GetAllKeyMetricsErrors];
518
- export type GetAllKeyMetricsResponses = {
538
+ export type GetKeyMetricsError = GetKeyMetricsErrors[keyof GetKeyMetricsErrors];
539
+ export type GetKeyMetricsResponses = {
519
540
  /**
520
541
  * Success.
521
542
  */
522
543
  200: KeyMetricOutput;
523
544
  };
524
- export type GetAllKeyMetricsResponse = GetAllKeyMetricsResponses[keyof GetAllKeyMetricsResponses];
545
+ export type GetKeyMetricsResponse = GetKeyMetricsResponses[keyof GetKeyMetricsResponses];
525
546
  export type SetKeyMetricsData = {
526
547
  body: SetKeyMetricsInput;
527
548
  path?: never;
@@ -546,24 +567,18 @@ export type SetKeyMetricsResponses = {
546
567
  200: RevenueOrKeyMetricImportedRowOutput;
547
568
  };
548
569
  export type SetKeyMetricsResponse = SetKeyMetricsResponses[keyof SetKeyMetricsResponses];
549
- export type DeleteUserKeyMetricsData = {
570
+ export type DeleteCustomersTagsData = {
550
571
  body?: never;
551
- path: {
552
- user_name: string;
553
- };
554
- query?: {
555
- /**
556
- * First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
557
- */
558
- month_start?: string;
572
+ path?: never;
573
+ query: {
559
574
  /**
560
- * Last month to delete (inclusive).
575
+ * Delete every tag of these customers (repeat the param for several).
561
576
  */
562
- month_end?: string;
577
+ customer_names: Array<string>;
563
578
  };
564
- url: '/key-metrics/{user_name}/';
579
+ url: '/customer-tags/';
565
580
  };
566
- export type DeleteUserKeyMetricsErrors = {
581
+ export type DeleteCustomersTagsErrors = {
567
582
  /**
568
583
  * Missing or invalid API key.
569
584
  */
@@ -573,44 +588,22 @@ export type DeleteUserKeyMetricsErrors = {
573
588
  */
574
589
  422: InvalidPayloadOutput;
575
590
  };
576
- export type DeleteUserKeyMetricsError = DeleteUserKeyMetricsErrors[keyof DeleteUserKeyMetricsErrors];
577
- export type DeleteUserKeyMetricsResponses = {
591
+ export type DeleteCustomersTagsError = DeleteCustomersTagsErrors[keyof DeleteCustomersTagsErrors];
592
+ export type DeleteCustomersTagsResponses = {
578
593
  /**
579
594
  * Success.
580
595
  */
581
- 200: RevenueOrKeyMetricDeletedRowOutput;
582
- };
583
- export type DeleteUserKeyMetricsResponse = DeleteUserKeyMetricsResponses[keyof DeleteUserKeyMetricsResponses];
584
- export type GetUserKeyMetricsData = {
585
- body?: never;
586
- path: {
587
- user_name: string;
588
- };
589
- query?: never;
590
- url: '/key-metrics/{user_name}/';
591
- };
592
- export type GetUserKeyMetricsErrors = {
593
- /**
594
- * Missing or invalid API key.
595
- */
596
- 401: ApiErrorOutput;
597
- /**
598
- * Nothing exists for this customer.
599
- */
600
- 404: ApiErrorOutput;
601
- };
602
- export type GetUserKeyMetricsError = GetUserKeyMetricsErrors[keyof GetUserKeyMetricsErrors];
603
- export type GetUserKeyMetricsResponses = {
604
- /**
605
- * Success.
606
- */
607
- 200: KeyMetricOutput;
596
+ 200: TagsDeletedOutput;
608
597
  };
609
- export type GetUserKeyMetricsResponse = GetUserKeyMetricsResponses[keyof GetUserKeyMetricsResponses];
610
- export type GetAllCustomersTagsData = {
598
+ export type DeleteCustomersTagsResponse = DeleteCustomersTagsResponses[keyof DeleteCustomersTagsResponses];
599
+ export type GetCustomersTagsData = {
611
600
  body?: never;
612
601
  path?: never;
613
602
  query?: {
603
+ /**
604
+ * Return only these customers' tags. Omit to return every customer's.
605
+ */
606
+ customer_names?: Array<string>;
614
607
  /**
615
608
  * Opaque cursor from a previous page's next_cursor.
616
609
  */
@@ -619,20 +612,20 @@ export type GetAllCustomersTagsData = {
619
612
  };
620
613
  url: '/customer-tags/';
621
614
  };
622
- export type GetAllCustomersTagsErrors = {
615
+ export type GetCustomersTagsErrors = {
623
616
  /**
624
617
  * Missing or invalid API key.
625
618
  */
626
619
  401: ApiErrorOutput;
627
620
  };
628
- export type GetAllCustomersTagsError = GetAllCustomersTagsErrors[keyof GetAllCustomersTagsErrors];
629
- export type GetAllCustomersTagsResponses = {
621
+ export type GetCustomersTagsError = GetCustomersTagsErrors[keyof GetCustomersTagsErrors];
622
+ export type GetCustomersTagsResponses = {
630
623
  /**
631
624
  * Success.
632
625
  */
633
626
  200: AllCustomerTagsOutput;
634
627
  };
635
- export type GetAllCustomersTagsResponse = GetAllCustomersTagsResponses[keyof GetAllCustomersTagsResponses];
628
+ export type GetCustomersTagsResponse = GetCustomersTagsResponses[keyof GetCustomersTagsResponses];
636
629
  export type SetCustomersTagsData = {
637
630
  body: SetCustomerTagsInput;
638
631
  path?: never;
@@ -657,55 +650,3 @@ export type SetCustomersTagsResponses = {
657
650
  200: CustomersUpdatedOutput;
658
651
  };
659
652
  export type SetCustomersTagsResponse = SetCustomersTagsResponses[keyof SetCustomersTagsResponses];
660
- export type DeleteCustomerTagsData = {
661
- body?: never;
662
- path: {
663
- customer_name: string;
664
- };
665
- query?: never;
666
- url: '/customer-tags/{customer_name}/';
667
- };
668
- export type DeleteCustomerTagsErrors = {
669
- /**
670
- * Missing or invalid API key.
671
- */
672
- 401: ApiErrorOutput;
673
- /**
674
- * Nothing exists for this customer.
675
- */
676
- 404: ApiErrorOutput;
677
- };
678
- export type DeleteCustomerTagsError = DeleteCustomerTagsErrors[keyof DeleteCustomerTagsErrors];
679
- export type DeleteCustomerTagsResponses = {
680
- /**
681
- * Success.
682
- */
683
- 200: TagsDeletedOutput;
684
- };
685
- export type DeleteCustomerTagsResponse = DeleteCustomerTagsResponses[keyof DeleteCustomerTagsResponses];
686
- export type GetCustomerTagsData = {
687
- body?: never;
688
- path: {
689
- customer_name: string;
690
- };
691
- query?: never;
692
- url: '/customer-tags/{customer_name}/';
693
- };
694
- export type GetCustomerTagsErrors = {
695
- /**
696
- * Missing or invalid API key.
697
- */
698
- 401: ApiErrorOutput;
699
- /**
700
- * Nothing exists for this customer.
701
- */
702
- 404: ApiErrorOutput;
703
- };
704
- export type GetCustomerTagsError = GetCustomerTagsErrors[keyof GetCustomerTagsErrors];
705
- export type GetCustomerTagsResponses = {
706
- /**
707
- * Success.
708
- */
709
- 200: CustomerTagsOutput;
710
- };
711
- export type GetCustomerTagsResponse = GetCustomerTagsResponses[keyof GetCustomerTagsResponses];
@@ -12,7 +12,7 @@
12
12
  * const weflayr = require('weflayr');
13
13
  *
14
14
  * const apiClient = weflayr.client({ apiKey: 'wf-...' });
15
- * const { data } = await weflayr.api.getAllRevenue({ client: apiClient, throwOnError: true });
15
+ * const { data } = await weflayr.api.getRevenue({ client: apiClient, throwOnError: true });
16
16
  */
17
17
  import { type Client } from './generated/client';
18
18
  export declare const DEFAULT_BASE_URL = "https://app.weflayr.com/api";
package/dist/api/index.js CHANGED
@@ -13,7 +13,7 @@
13
13
  * const weflayr = require('weflayr');
14
14
  *
15
15
  * const apiClient = weflayr.client({ apiKey: 'wf-...' });
16
- * const { data } = await weflayr.api.getAllRevenue({ client: apiClient, throwOnError: true });
16
+ * const { data } = await weflayr.api.getRevenue({ client: apiClient, throwOnError: true });
17
17
  */
18
18
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
19
  if (k2 === undefined) k2 = k;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weflayr",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Weflayr Node.js SDK — instrument any LLM client via JS Proxy",
5
5
  "main": "src/index.js",
6
6
  "types": "index.d.ts",
@@ -10,8 +10,8 @@
10
10
  // overwritten on every run.
11
11
  //
12
12
  // @hey-api/openapi-ts names an operation's request/response types after its
13
- // PascalCase operation name (e.g. operation `getAllRevenue` gets types
14
- // `GetAllRevenueData`, `GetAllRevenueResponse`, `GetAllRevenueError`), so the
13
+ // PascalCase operation name (e.g. operation `getRevenue` gets types
14
+ // `GetRevenueData`, `GetRevenueResponse`, `GetRevenueError`), so the
15
15
  // only thing this script needs from the generated source is the list of
16
16
  // operation names - the type names, and the per-endpoint camelCase/snake_case
17
17
  // conversion, follow mechanically from there.
@@ -7,11 +7,17 @@ import * as generated from './sdk.gen.js';
7
7
  import type * as generatedTypes from './types.gen.js';
8
8
 
9
9
 
10
- export const getAllRevenue = makeEndpoint<
11
- CamelCaseDeep<Omit<generatedTypes.GetAllRevenueData, 'url'>>,
12
- CamelCaseDeep<generatedTypes.GetAllRevenueResponse>,
13
- CamelCaseDeep<generatedTypes.GetAllRevenueError>
14
- >(generated.getAllRevenue);
10
+ export const deleteRevenue = makeEndpoint<
11
+ CamelCaseDeep<Omit<generatedTypes.DeleteRevenueData, 'url'>>,
12
+ CamelCaseDeep<generatedTypes.DeleteRevenueResponse>,
13
+ CamelCaseDeep<generatedTypes.DeleteRevenueError>
14
+ >(generated.deleteRevenue);
15
+
16
+ export const getRevenue = makeEndpoint<
17
+ CamelCaseDeep<Omit<generatedTypes.GetRevenueData, 'url'>>,
18
+ CamelCaseDeep<generatedTypes.GetRevenueResponse>,
19
+ CamelCaseDeep<generatedTypes.GetRevenueError>
20
+ >(generated.getRevenue);
15
21
 
16
22
  export const setRevenue = makeEndpoint<
17
23
  CamelCaseDeep<Omit<generatedTypes.SetRevenueData, 'url'>>,
@@ -19,23 +25,17 @@ export const setRevenue = makeEndpoint<
19
25
  CamelCaseDeep<generatedTypes.SetRevenueError>
20
26
  >(generated.setRevenue);
21
27
 
22
- export const deleteCustomerRevenue = makeEndpoint<
23
- CamelCaseDeep<Omit<generatedTypes.DeleteCustomerRevenueData, 'url'>>,
24
- CamelCaseDeep<generatedTypes.DeleteCustomerRevenueResponse>,
25
- CamelCaseDeep<generatedTypes.DeleteCustomerRevenueError>
26
- >(generated.deleteCustomerRevenue);
28
+ export const deleteKeyMetrics = makeEndpoint<
29
+ CamelCaseDeep<Omit<generatedTypes.DeleteKeyMetricsData, 'url'>>,
30
+ CamelCaseDeep<generatedTypes.DeleteKeyMetricsResponse>,
31
+ CamelCaseDeep<generatedTypes.DeleteKeyMetricsError>
32
+ >(generated.deleteKeyMetrics);
27
33
 
28
- export const getCustomerRevenue = makeEndpoint<
29
- CamelCaseDeep<Omit<generatedTypes.GetCustomerRevenueData, 'url'>>,
30
- CamelCaseDeep<generatedTypes.GetCustomerRevenueResponse>,
31
- CamelCaseDeep<generatedTypes.GetCustomerRevenueError>
32
- >(generated.getCustomerRevenue);
33
-
34
- export const getAllKeyMetrics = makeEndpoint<
35
- CamelCaseDeep<Omit<generatedTypes.GetAllKeyMetricsData, 'url'>>,
36
- CamelCaseDeep<generatedTypes.GetAllKeyMetricsResponse>,
37
- CamelCaseDeep<generatedTypes.GetAllKeyMetricsError>
38
- >(generated.getAllKeyMetrics);
34
+ export const getKeyMetrics = makeEndpoint<
35
+ CamelCaseDeep<Omit<generatedTypes.GetKeyMetricsData, 'url'>>,
36
+ CamelCaseDeep<generatedTypes.GetKeyMetricsResponse>,
37
+ CamelCaseDeep<generatedTypes.GetKeyMetricsError>
38
+ >(generated.getKeyMetrics);
39
39
 
40
40
  export const setKeyMetrics = makeEndpoint<
41
41
  CamelCaseDeep<Omit<generatedTypes.SetKeyMetricsData, 'url'>>,
@@ -43,38 +43,20 @@ export const setKeyMetrics = makeEndpoint<
43
43
  CamelCaseDeep<generatedTypes.SetKeyMetricsError>
44
44
  >(generated.setKeyMetrics);
45
45
 
46
- export const deleteUserKeyMetrics = makeEndpoint<
47
- CamelCaseDeep<Omit<generatedTypes.DeleteUserKeyMetricsData, 'url'>>,
48
- CamelCaseDeep<generatedTypes.DeleteUserKeyMetricsResponse>,
49
- CamelCaseDeep<generatedTypes.DeleteUserKeyMetricsError>
50
- >(generated.deleteUserKeyMetrics);
51
-
52
- export const getUserKeyMetrics = makeEndpoint<
53
- CamelCaseDeep<Omit<generatedTypes.GetUserKeyMetricsData, 'url'>>,
54
- CamelCaseDeep<generatedTypes.GetUserKeyMetricsResponse>,
55
- CamelCaseDeep<generatedTypes.GetUserKeyMetricsError>
56
- >(generated.getUserKeyMetrics);
46
+ export const deleteCustomersTags = makeEndpoint<
47
+ CamelCaseDeep<Omit<generatedTypes.DeleteCustomersTagsData, 'url'>>,
48
+ CamelCaseDeep<generatedTypes.DeleteCustomersTagsResponse>,
49
+ CamelCaseDeep<generatedTypes.DeleteCustomersTagsError>
50
+ >(generated.deleteCustomersTags);
57
51
 
58
- export const getAllCustomersTags = makeEndpoint<
59
- CamelCaseDeep<Omit<generatedTypes.GetAllCustomersTagsData, 'url'>>,
60
- CamelCaseDeep<generatedTypes.GetAllCustomersTagsResponse>,
61
- CamelCaseDeep<generatedTypes.GetAllCustomersTagsError>
62
- >(generated.getAllCustomersTags);
52
+ export const getCustomersTags = makeEndpoint<
53
+ CamelCaseDeep<Omit<generatedTypes.GetCustomersTagsData, 'url'>>,
54
+ CamelCaseDeep<generatedTypes.GetCustomersTagsResponse>,
55
+ CamelCaseDeep<generatedTypes.GetCustomersTagsError>
56
+ >(generated.getCustomersTags);
63
57
 
64
58
  export const setCustomersTags = makeEndpoint<
65
59
  CamelCaseDeep<Omit<generatedTypes.SetCustomersTagsData, 'url'>>,
66
60
  CamelCaseDeep<generatedTypes.SetCustomersTagsResponse>,
67
61
  CamelCaseDeep<generatedTypes.SetCustomersTagsError>
68
62
  >(generated.setCustomersTags);
69
-
70
- export const deleteCustomerTags = makeEndpoint<
71
- CamelCaseDeep<Omit<generatedTypes.DeleteCustomerTagsData, 'url'>>,
72
- CamelCaseDeep<generatedTypes.DeleteCustomerTagsResponse>,
73
- CamelCaseDeep<generatedTypes.DeleteCustomerTagsError>
74
- >(generated.deleteCustomerTags);
75
-
76
- export const getCustomerTags = makeEndpoint<
77
- CamelCaseDeep<Omit<generatedTypes.GetCustomerTagsData, 'url'>>,
78
- CamelCaseDeep<generatedTypes.GetCustomerTagsResponse>,
79
- CamelCaseDeep<generatedTypes.GetCustomerTagsError>
80
- >(generated.getCustomerTags);
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export { deleteCustomerRevenue, deleteCustomerTags, deleteUserKeyMetrics, getAllCustomersTags, getAllKeyMetrics, getAllRevenue, getCustomerRevenue, getCustomerTags, getUserKeyMetrics, type Options, setCustomersTags, setKeyMetrics, setRevenue } from './sdk.gen.js';
4
- export type { AllCustomerTagsOutput, ApiErrorOutput, ClientOptions, CustomersUpdatedOutput, CustomerTags, CustomerTagsOutput, DeleteCustomerRevenueData, DeleteCustomerRevenueError, DeleteCustomerRevenueErrors, DeleteCustomerRevenueResponse, DeleteCustomerRevenueResponses, DeleteCustomerTagsData, DeleteCustomerTagsError, DeleteCustomerTagsErrors, DeleteCustomerTagsResponse, DeleteCustomerTagsResponses, DeleteUserKeyMetricsData, DeleteUserKeyMetricsError, DeleteUserKeyMetricsErrors, DeleteUserKeyMetricsResponse, DeleteUserKeyMetricsResponses, GetAllCustomersTagsData, GetAllCustomersTagsError, GetAllCustomersTagsErrors, GetAllCustomersTagsResponse, GetAllCustomersTagsResponses, GetAllKeyMetricsData, GetAllKeyMetricsError, GetAllKeyMetricsErrors, GetAllKeyMetricsResponse, GetAllKeyMetricsResponses, GetAllRevenueData, GetAllRevenueError, GetAllRevenueErrors, GetAllRevenueResponse, GetAllRevenueResponses, GetCustomerRevenueData, GetCustomerRevenueError, GetCustomerRevenueErrors, GetCustomerRevenueResponse, GetCustomerRevenueResponses, GetCustomerTagsData, GetCustomerTagsError, GetCustomerTagsErrors, GetCustomerTagsResponse, GetCustomerTagsResponses, GetUserKeyMetricsData, GetUserKeyMetricsError, GetUserKeyMetricsErrors, GetUserKeyMetricsResponse, GetUserKeyMetricsResponses, InvalidFieldDetail, InvalidPayloadOutput, KeyMetricOutput, KeyMetricRow, KeyMetricRowOutput, RevenueOrKeyMetricDeletedRowOutput, RevenueOrKeyMetricImportedRowOutput, RevenueOutput, RevenueRow, RevenueRowOutput, SetCustomersTagsData, SetCustomersTagsError, SetCustomersTagsErrors, SetCustomersTagsResponse, SetCustomersTagsResponses, SetCustomerTagsInput, SetKeyMetricsData, SetKeyMetricsError, SetKeyMetricsErrors, SetKeyMetricsInput, SetKeyMetricsResponse, SetKeyMetricsResponses, SetRevenueData, SetRevenueError, SetRevenueErrors, SetRevenueInput, SetRevenueResponse, SetRevenueResponses, TagsDeletedOutput } from './types.gen.js';
3
+ export { deleteCustomersTags, deleteKeyMetrics, deleteRevenue, getCustomersTags, getKeyMetrics, getRevenue, type Options, setCustomersTags, setKeyMetrics, setRevenue } from './sdk.gen.js';
4
+ export type { AllCustomerTagsOutput, ApiErrorOutput, ClientOptions, CustomersUpdatedOutput, CustomerTags, CustomerTagsOutput, DeleteCustomersTagsData, DeleteCustomersTagsError, DeleteCustomersTagsErrors, DeleteCustomersTagsResponse, DeleteCustomersTagsResponses, DeleteKeyMetricsData, DeleteKeyMetricsError, DeleteKeyMetricsErrors, DeleteKeyMetricsResponse, DeleteKeyMetricsResponses, DeleteRevenueData, DeleteRevenueError, DeleteRevenueErrors, DeleteRevenueResponse, DeleteRevenueResponses, GetCustomersTagsData, GetCustomersTagsError, GetCustomersTagsErrors, GetCustomersTagsResponse, GetCustomersTagsResponses, GetKeyMetricsData, GetKeyMetricsError, GetKeyMetricsErrors, GetKeyMetricsResponse, GetKeyMetricsResponses, GetRevenueData, GetRevenueError, GetRevenueErrors, GetRevenueResponse, GetRevenueResponses, InvalidFieldDetail, InvalidPayloadOutput, KeyMetricOutput, KeyMetricRow, KeyMetricRowOutput, RevenueOrKeyMetricDeletedRowOutput, RevenueOrKeyMetricImportedRowOutput, RevenueOutput, RevenueRow, RevenueRowOutput, SetCustomersTagsData, SetCustomersTagsError, SetCustomersTagsErrors, SetCustomersTagsResponse, SetCustomersTagsResponses, SetCustomerTagsInput, SetKeyMetricsData, SetKeyMetricsError, SetKeyMetricsErrors, SetKeyMetricsInput, SetKeyMetricsResponse, SetKeyMetricsResponses, SetRevenueData, SetRevenueError, SetRevenueErrors, SetRevenueInput, SetRevenueResponse, SetRevenueResponses, TagsDeletedOutput } from './types.gen.js';