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.
- package/dist/api/generated/facade.gen.d.ts +39 -94
- package/dist/api/generated/facade.gen.js +7 -10
- package/dist/api/generated/index.d.ts +2 -2
- package/dist/api/generated/index.js +7 -10
- package/dist/api/generated/sdk.gen.d.ts +15 -27
- package/dist/api/generated/sdk.gen.js +27 -54
- package/dist/api/generated/types.gen.d.ts +107 -166
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/package.json +1 -1
- package/scripts/generate_facade.mjs +2 -2
- package/src/api/generated/facade.gen.ts +31 -49
- package/src/api/generated/index.ts +2 -2
- package/src/api/generated/sdk.gen.ts +22 -49
- package/src/api/generated/types.gen.ts +112 -186
- package/src/api/index.ts +1 -1
- package/tests/api/index.test.js +100 -69
|
@@ -138,11 +138,11 @@ export type KeyMetricOutput = {
|
|
|
138
138
|
*/
|
|
139
139
|
export type KeyMetricRow = {
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
441
|
+
export type GetRevenueErrors = {
|
|
401
442
|
/**
|
|
402
443
|
* Missing or invalid API key.
|
|
403
444
|
*/
|
|
404
445
|
401: ApiErrorOutput;
|
|
405
446
|
};
|
|
406
|
-
export type
|
|
407
|
-
export type
|
|
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
|
|
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
|
|
479
|
+
export type DeleteKeyMetricsData = {
|
|
439
480
|
body?: never;
|
|
440
|
-
path
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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: '/
|
|
496
|
+
url: '/key-metrics/';
|
|
454
497
|
};
|
|
455
|
-
export type
|
|
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
|
|
466
|
-
export type
|
|
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
|
|
473
|
-
export type
|
|
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
|
|
532
|
+
export type GetKeyMetricsErrors = {
|
|
512
533
|
/**
|
|
513
534
|
* Missing or invalid API key.
|
|
514
535
|
*/
|
|
515
536
|
401: ApiErrorOutput;
|
|
516
537
|
};
|
|
517
|
-
export type
|
|
518
|
-
export type
|
|
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
|
|
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
|
|
570
|
+
export type DeleteCustomersTagsData = {
|
|
550
571
|
body?: never;
|
|
551
|
-
path
|
|
552
|
-
|
|
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
|
-
*
|
|
575
|
+
* Delete every tag of these customers (repeat the param for several).
|
|
561
576
|
*/
|
|
562
|
-
|
|
577
|
+
customer_names: Array<string>;
|
|
563
578
|
};
|
|
564
|
-
url: '/
|
|
579
|
+
url: '/customer-tags/';
|
|
565
580
|
};
|
|
566
|
-
export type
|
|
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
|
|
577
|
-
export type
|
|
591
|
+
export type DeleteCustomersTagsError = DeleteCustomersTagsErrors[keyof DeleteCustomersTagsErrors];
|
|
592
|
+
export type DeleteCustomersTagsResponses = {
|
|
578
593
|
/**
|
|
579
594
|
* Success.
|
|
580
595
|
*/
|
|
581
|
-
200:
|
|
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
|
|
610
|
-
export type
|
|
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
|
|
615
|
+
export type GetCustomersTagsErrors = {
|
|
623
616
|
/**
|
|
624
617
|
* Missing or invalid API key.
|
|
625
618
|
*/
|
|
626
619
|
401: ApiErrorOutput;
|
|
627
620
|
};
|
|
628
|
-
export type
|
|
629
|
-
export type
|
|
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
|
|
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];
|
package/dist/api/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
@@ -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 `
|
|
14
|
-
// `
|
|
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
|
|
11
|
-
CamelCaseDeep<Omit<generatedTypes.
|
|
12
|
-
CamelCaseDeep<generatedTypes.
|
|
13
|
-
CamelCaseDeep<generatedTypes.
|
|
14
|
-
>(generated.
|
|
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
|
|
23
|
-
CamelCaseDeep<Omit<generatedTypes.
|
|
24
|
-
CamelCaseDeep<generatedTypes.
|
|
25
|
-
CamelCaseDeep<generatedTypes.
|
|
26
|
-
>(generated.
|
|
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
|
|
29
|
-
CamelCaseDeep<Omit<generatedTypes.
|
|
30
|
-
CamelCaseDeep<generatedTypes.
|
|
31
|
-
CamelCaseDeep<generatedTypes.
|
|
32
|
-
>(generated.
|
|
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
|
|
47
|
-
CamelCaseDeep<Omit<generatedTypes.
|
|
48
|
-
CamelCaseDeep<generatedTypes.
|
|
49
|
-
CamelCaseDeep<generatedTypes.
|
|
50
|
-
>(generated.
|
|
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
|
|
59
|
-
CamelCaseDeep<Omit<generatedTypes.
|
|
60
|
-
CamelCaseDeep<generatedTypes.
|
|
61
|
-
CamelCaseDeep<generatedTypes.
|
|
62
|
-
>(generated.
|
|
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 {
|
|
4
|
-
export type { AllCustomerTagsOutput, ApiErrorOutput, ClientOptions, CustomersUpdatedOutput, CustomerTags, CustomerTagsOutput,
|
|
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';
|