lark-billing 0.0.9 → 0.1.1
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/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/checkout/client/requests/CreateSubscriptionCheckoutSessionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customerPortal/client/requests/CreateCustomerPortalSessionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/invoices/client/requests/ListInvoicesInvoicesGetRequest.d.ts +1 -1
- package/dist/cjs/api/resources/pricingMetrics/client/Client.d.ts +25 -6
- package/dist/cjs/api/resources/pricingMetrics/client/Client.js +72 -4
- package/dist/cjs/api/resources/pricingMetrics/client/requests/CreatePricingMetricRequest.d.ts +9 -5
- package/dist/cjs/api/resources/pricingMetrics/client/requests/CreatePricingMetricSummaryRequest.d.ts +20 -0
- package/dist/cjs/api/resources/pricingMetrics/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/pricingMetrics/types/PricingMetricAggregation.d.ts +13 -1
- package/dist/cjs/api/resources/rateCards/client/Client.d.ts +27 -1
- package/dist/cjs/api/resources/rateCards/client/Client.js +27 -1
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardRequest.d.ts +29 -1
- package/dist/cjs/api/resources/subjects/client/Client.d.ts +8 -1
- package/dist/cjs/api/resources/subjects/client/Client.js +8 -1
- package/dist/cjs/api/resources/subjects/client/requests/CreateSubjectRequest.d.ts +8 -1
- package/dist/cjs/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.ts +1 -1
- package/dist/cjs/api/resources/usageEvents/client/Client.d.ts +7 -23
- package/dist/cjs/api/resources/usageEvents/client/Client.js +7 -72
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.ts +9 -6
- package/dist/cjs/api/resources/usageEvents/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/ActiveSubscription.d.ts +7 -0
- package/dist/cjs/api/types/Aggregation.d.ts +10 -1
- package/dist/cjs/api/types/BillingStateResponse.d.ts +7 -0
- package/dist/cjs/api/types/CountAggregationPricingMetricInterface.d.ts +3 -0
- package/dist/cjs/api/types/CreateCustomerPortalSessionResponse.d.ts +2 -0
- package/dist/cjs/api/types/CustomAggregationPricingMetricInterface.d.ts +10 -0
- package/dist/cjs/api/types/LastAggregationPricingMetricInterface.d.ts +10 -0
- package/dist/cjs/api/types/LastAggregationPricingMetricInterface.js +5 -0
- package/dist/cjs/api/types/LastAggregationPricingMetricResource.d.ts +7 -0
- package/dist/cjs/api/types/LastAggregationPricingMetricResource.js +5 -0
- package/dist/cjs/api/types/MaxAggregationPricingMetricInterface.d.ts +10 -0
- package/dist/cjs/api/types/MaxAggregationPricingMetricInterface.js +5 -0
- package/dist/cjs/api/types/MaxAggregationPricingMetricResource.d.ts +7 -0
- package/dist/cjs/api/types/MaxAggregationPricingMetricResource.js +5 -0
- package/dist/cjs/api/types/PricingMetricResource.d.ts +5 -0
- package/dist/cjs/api/types/PricingMetricSummaryResource.d.ts +16 -0
- package/dist/cjs/api/types/PricingMetricSummaryResource.js +5 -0
- package/dist/cjs/api/types/SumAggregationPricingMetricInterface.d.ts +3 -0
- package/dist/cjs/api/types/SumAggregationPricingMetricResource.d.ts +1 -0
- package/dist/cjs/api/types/UsageDataForRate.d.ts +9 -0
- package/dist/cjs/api/types/UsageDataForRate.js +5 -0
- package/dist/cjs/api/types/index.d.ts +9 -4
- package/dist/cjs/api/types/index.js +9 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/checkout/client/requests/CreateSubscriptionCheckoutSessionRequest.d.mts +1 -1
- package/dist/esm/api/resources/customerPortal/client/requests/CreateCustomerPortalSessionRequest.d.mts +1 -1
- package/dist/esm/api/resources/invoices/client/requests/ListInvoicesInvoicesGetRequest.d.mts +1 -1
- package/dist/esm/api/resources/pricingMetrics/client/Client.d.mts +25 -6
- package/dist/esm/api/resources/pricingMetrics/client/Client.mjs +72 -4
- package/dist/esm/api/resources/pricingMetrics/client/requests/CreatePricingMetricRequest.d.mts +9 -5
- package/dist/esm/api/resources/pricingMetrics/client/requests/CreatePricingMetricSummaryRequest.d.mts +20 -0
- package/dist/esm/api/resources/pricingMetrics/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/pricingMetrics/types/PricingMetricAggregation.d.mts +13 -1
- package/dist/esm/api/resources/rateCards/client/Client.d.mts +27 -1
- package/dist/esm/api/resources/rateCards/client/Client.mjs +27 -1
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardRequest.d.mts +29 -1
- package/dist/esm/api/resources/subjects/client/Client.d.mts +8 -1
- package/dist/esm/api/resources/subjects/client/Client.mjs +8 -1
- package/dist/esm/api/resources/subjects/client/requests/CreateSubjectRequest.d.mts +8 -1
- package/dist/esm/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.mts +1 -1
- package/dist/esm/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.mts +1 -1
- package/dist/esm/api/resources/usageEvents/client/Client.d.mts +7 -23
- package/dist/esm/api/resources/usageEvents/client/Client.mjs +7 -72
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.mts +9 -6
- package/dist/esm/api/resources/usageEvents/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/ActiveSubscription.d.mts +7 -0
- package/dist/esm/api/types/Aggregation.d.mts +10 -1
- package/dist/esm/api/types/BillingStateResponse.d.mts +7 -0
- package/dist/esm/api/types/CountAggregationPricingMetricInterface.d.mts +3 -0
- package/dist/esm/api/types/CreateCustomerPortalSessionResponse.d.mts +2 -0
- package/dist/esm/api/types/CustomAggregationPricingMetricInterface.d.mts +10 -0
- package/dist/esm/api/types/LastAggregationPricingMetricInterface.d.mts +10 -0
- package/dist/esm/api/types/LastAggregationPricingMetricInterface.mjs +4 -0
- package/dist/esm/api/types/LastAggregationPricingMetricResource.d.mts +7 -0
- package/dist/esm/api/types/LastAggregationPricingMetricResource.mjs +4 -0
- package/dist/esm/api/types/MaxAggregationPricingMetricInterface.d.mts +10 -0
- package/dist/esm/api/types/MaxAggregationPricingMetricInterface.mjs +4 -0
- package/dist/esm/api/types/MaxAggregationPricingMetricResource.d.mts +7 -0
- package/dist/esm/api/types/MaxAggregationPricingMetricResource.mjs +4 -0
- package/dist/esm/api/types/PricingMetricResource.d.mts +5 -0
- package/dist/esm/api/types/PricingMetricSummaryResource.d.mts +16 -0
- package/dist/esm/api/types/PricingMetricSummaryResource.mjs +4 -0
- package/dist/esm/api/types/SumAggregationPricingMetricInterface.d.mts +3 -0
- package/dist/esm/api/types/SumAggregationPricingMetricResource.d.mts +1 -0
- package/dist/esm/api/types/UsageDataForRate.d.mts +9 -0
- package/dist/esm/api/types/UsageDataForRate.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +9 -4
- package/dist/esm/api/types/index.mjs +9 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +114 -67
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.ts +0 -30
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.js +0 -14
- package/dist/cjs/api/types/CreatePricingMetricResponse.d.ts +0 -11
- package/dist/cjs/api/types/CreateUsageEventSummaryResponse.d.ts +0 -10
- package/dist/cjs/api/types/GetPricingMetricResponse.d.ts +0 -11
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.mts +0 -30
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.mjs +0 -11
- package/dist/esm/api/types/CreatePricingMetricResponse.d.mts +0 -11
- package/dist/esm/api/types/CreateUsageEventSummaryResponse.d.mts +0 -10
- package/dist/esm/api/types/GetPricingMetricResponse.d.mts +0 -11
- /package/dist/cjs/api/{types/CreatePricingMetricResponse.js → resources/pricingMetrics/client/requests/CreatePricingMetricSummaryRequest.js} +0 -0
- /package/dist/cjs/api/types/{CreateUsageEventSummaryResponse.js → ActiveSubscription.js} +0 -0
- /package/dist/cjs/api/types/{GetPricingMetricResponse.js → CustomAggregationPricingMetricInterface.js} +0 -0
- /package/dist/esm/api/{types/CreatePricingMetricResponse.mjs → resources/pricingMetrics/client/requests/CreatePricingMetricSummaryRequest.mjs} +0 -0
- /package/dist/esm/api/types/{CreateUsageEventSummaryResponse.mjs → ActiveSubscription.mjs} +0 -0
- /package/dist/esm/api/types/{GetPricingMetricResponse.mjs → CustomAggregationPricingMetricInterface.mjs} +0 -0
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -173,7 +173,37 @@ await client.rateCards.listRateCards({
|
|
|
173
173
|
```typescript
|
|
174
174
|
await client.rateCards.createRateCard({
|
|
175
175
|
name: "Pro Plan",
|
|
176
|
+
description: "For production applications with moderate usage.",
|
|
176
177
|
billing_interval: "monthly",
|
|
178
|
+
fixed_rates: [
|
|
179
|
+
{
|
|
180
|
+
name: "Base Rate",
|
|
181
|
+
price: {
|
|
182
|
+
price_type: "flat",
|
|
183
|
+
amount: {
|
|
184
|
+
value: "2500",
|
|
185
|
+
currency_code: "usd",
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
usage_based_rates: [
|
|
191
|
+
{
|
|
192
|
+
usage_based_rate_type: "simple",
|
|
193
|
+
name: "name",
|
|
194
|
+
price: {
|
|
195
|
+
price_type: "flat",
|
|
196
|
+
amount: {
|
|
197
|
+
value: "2500",
|
|
198
|
+
currency_code: "usd",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
pricing_metric_id: "pricing_metric_id",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
metadata: {
|
|
205
|
+
key: "value",
|
|
206
|
+
},
|
|
177
207
|
});
|
|
178
208
|
```
|
|
179
209
|
|
|
@@ -273,11 +303,14 @@ await client.rateCards.getRateCard("rate_card_id");
|
|
|
273
303
|
|
|
274
304
|
```typescript
|
|
275
305
|
await client.usageEvents.createUsageEvent({
|
|
276
|
-
idempotency_key: "
|
|
277
|
-
event_name: "
|
|
278
|
-
subject_id: "
|
|
306
|
+
idempotency_key: "f283b3d1-41b2-43b1-9d00-dd7935cb6263",
|
|
307
|
+
event_name: "compute_hours",
|
|
308
|
+
subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
|
|
309
|
+
timestamp: "2025-11-03T18:37:02Z",
|
|
279
310
|
data: {
|
|
280
|
-
|
|
311
|
+
compute_hours: 100,
|
|
312
|
+
instance_type: "t2.micro",
|
|
313
|
+
region: "us-east-1",
|
|
281
314
|
},
|
|
282
315
|
});
|
|
283
316
|
```
|
|
@@ -314,62 +347,6 @@ await client.usageEvents.createUsageEvent({
|
|
|
314
347
|
</dl>
|
|
315
348
|
</details>
|
|
316
349
|
|
|
317
|
-
<details><summary><code>client.usageEvents.<a href="/src/api/resources/usageEvents/client/Client.ts">createUsageEventSummary</a>({ ...params }) -> Lark.CreateUsageEventSummaryResponse</code></summary>
|
|
318
|
-
<dl>
|
|
319
|
-
<dd>
|
|
320
|
-
|
|
321
|
-
#### 🔌 Usage
|
|
322
|
-
|
|
323
|
-
<dl>
|
|
324
|
-
<dd>
|
|
325
|
-
|
|
326
|
-
<dl>
|
|
327
|
-
<dd>
|
|
328
|
-
|
|
329
|
-
```typescript
|
|
330
|
-
await client.usageEvents.createUsageEventSummary({
|
|
331
|
-
event_name: "event_name",
|
|
332
|
-
subject_id: "subject_id",
|
|
333
|
-
period: {
|
|
334
|
-
start: "2024-01-15T09:30:00Z",
|
|
335
|
-
end: "2024-01-15T09:30:00Z",
|
|
336
|
-
},
|
|
337
|
-
aggregation_type: "sum",
|
|
338
|
-
});
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
</dd>
|
|
342
|
-
</dl>
|
|
343
|
-
</dd>
|
|
344
|
-
</dl>
|
|
345
|
-
|
|
346
|
-
#### ⚙️ Parameters
|
|
347
|
-
|
|
348
|
-
<dl>
|
|
349
|
-
<dd>
|
|
350
|
-
|
|
351
|
-
<dl>
|
|
352
|
-
<dd>
|
|
353
|
-
|
|
354
|
-
**request:** `Lark.CreateUsageEventSummaryRequest`
|
|
355
|
-
|
|
356
|
-
</dd>
|
|
357
|
-
</dl>
|
|
358
|
-
|
|
359
|
-
<dl>
|
|
360
|
-
<dd>
|
|
361
|
-
|
|
362
|
-
**requestOptions:** `UsageEvents.RequestOptions`
|
|
363
|
-
|
|
364
|
-
</dd>
|
|
365
|
-
</dl>
|
|
366
|
-
</dd>
|
|
367
|
-
</dl>
|
|
368
|
-
|
|
369
|
-
</dd>
|
|
370
|
-
</dl>
|
|
371
|
-
</details>
|
|
372
|
-
|
|
373
350
|
## Subscriptions
|
|
374
351
|
|
|
375
352
|
<details><summary><code>client.subscriptions.<a href="/src/api/resources/subscriptions/client/Client.ts">listSubscriptions</a>({ ...params }) -> Lark.ListSubscriptionsResponse</code></summary>
|
|
@@ -703,7 +680,14 @@ await client.subjects.listSubjects({
|
|
|
703
680
|
<dd>
|
|
704
681
|
|
|
705
682
|
```typescript
|
|
706
|
-
await client.subjects.createSubject(
|
|
683
|
+
await client.subjects.createSubject({
|
|
684
|
+
external_id: "user_1234567890",
|
|
685
|
+
name: "John Doe",
|
|
686
|
+
email: "john.doe@example.com",
|
|
687
|
+
metadata: {
|
|
688
|
+
key: "value",
|
|
689
|
+
},
|
|
690
|
+
});
|
|
707
691
|
```
|
|
708
692
|
|
|
709
693
|
</dd>
|
|
@@ -942,7 +926,7 @@ await client.pricingMetrics.listPricingMetrics({
|
|
|
942
926
|
</dl>
|
|
943
927
|
</details>
|
|
944
928
|
|
|
945
|
-
<details><summary><code>client.pricingMetrics.<a href="/src/api/resources/pricingMetrics/client/Client.ts">createPricingMetric</a>({ ...params }) -> Lark.
|
|
929
|
+
<details><summary><code>client.pricingMetrics.<a href="/src/api/resources/pricingMetrics/client/Client.ts">createPricingMetric</a>({ ...params }) -> Lark.PricingMetricResource</code></summary>
|
|
946
930
|
<dl>
|
|
947
931
|
<dd>
|
|
948
932
|
|
|
@@ -956,12 +940,13 @@ await client.pricingMetrics.listPricingMetrics({
|
|
|
956
940
|
|
|
957
941
|
```typescript
|
|
958
942
|
await client.pricingMetrics.createPricingMetric({
|
|
959
|
-
name: "
|
|
960
|
-
event_name: "
|
|
943
|
+
name: "Compute Hours",
|
|
944
|
+
event_name: "job_completed",
|
|
961
945
|
aggregation: {
|
|
962
|
-
aggregation_type: "
|
|
946
|
+
aggregation_type: "sum",
|
|
947
|
+
value_field: "value_field",
|
|
963
948
|
},
|
|
964
|
-
unit: "
|
|
949
|
+
unit: "hours",
|
|
965
950
|
});
|
|
966
951
|
```
|
|
967
952
|
|
|
@@ -997,7 +982,7 @@ await client.pricingMetrics.createPricingMetric({
|
|
|
997
982
|
</dl>
|
|
998
983
|
</details>
|
|
999
984
|
|
|
1000
|
-
<details><summary><code>client.pricingMetrics.<a href="/src/api/resources/pricingMetrics/client/Client.ts">getPricingMetric</a>(pricingMetricId) -> Lark.
|
|
985
|
+
<details><summary><code>client.pricingMetrics.<a href="/src/api/resources/pricingMetrics/client/Client.ts">getPricingMetric</a>(pricingMetricId) -> Lark.PricingMetricResource</code></summary>
|
|
1001
986
|
<dl>
|
|
1002
987
|
<dd>
|
|
1003
988
|
|
|
@@ -1045,6 +1030,68 @@ await client.pricingMetrics.getPricingMetric("pricing_metric_id");
|
|
|
1045
1030
|
</dl>
|
|
1046
1031
|
</details>
|
|
1047
1032
|
|
|
1033
|
+
<details><summary><code>client.pricingMetrics.<a href="/src/api/resources/pricingMetrics/client/Client.ts">createPricingMetricSummary</a>(pricingMetricId, { ...params }) -> Lark.PricingMetricSummaryResource</code></summary>
|
|
1034
|
+
<dl>
|
|
1035
|
+
<dd>
|
|
1036
|
+
|
|
1037
|
+
#### 🔌 Usage
|
|
1038
|
+
|
|
1039
|
+
<dl>
|
|
1040
|
+
<dd>
|
|
1041
|
+
|
|
1042
|
+
<dl>
|
|
1043
|
+
<dd>
|
|
1044
|
+
|
|
1045
|
+
```typescript
|
|
1046
|
+
await client.pricingMetrics.createPricingMetricSummary("pricing_metric_id", {
|
|
1047
|
+
subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE",
|
|
1048
|
+
period: {
|
|
1049
|
+
start: "2025-10-01T00:00:00Z",
|
|
1050
|
+
end: "2025-11-01T00:00:00Z",
|
|
1051
|
+
},
|
|
1052
|
+
});
|
|
1053
|
+
```
|
|
1054
|
+
|
|
1055
|
+
</dd>
|
|
1056
|
+
</dl>
|
|
1057
|
+
</dd>
|
|
1058
|
+
</dl>
|
|
1059
|
+
|
|
1060
|
+
#### ⚙️ Parameters
|
|
1061
|
+
|
|
1062
|
+
<dl>
|
|
1063
|
+
<dd>
|
|
1064
|
+
|
|
1065
|
+
<dl>
|
|
1066
|
+
<dd>
|
|
1067
|
+
|
|
1068
|
+
**pricingMetricId:** `string`
|
|
1069
|
+
|
|
1070
|
+
</dd>
|
|
1071
|
+
</dl>
|
|
1072
|
+
|
|
1073
|
+
<dl>
|
|
1074
|
+
<dd>
|
|
1075
|
+
|
|
1076
|
+
**request:** `Lark.CreatePricingMetricSummaryRequest`
|
|
1077
|
+
|
|
1078
|
+
</dd>
|
|
1079
|
+
</dl>
|
|
1080
|
+
|
|
1081
|
+
<dl>
|
|
1082
|
+
<dd>
|
|
1083
|
+
|
|
1084
|
+
**requestOptions:** `PricingMetrics.RequestOptions`
|
|
1085
|
+
|
|
1086
|
+
</dd>
|
|
1087
|
+
</dl>
|
|
1088
|
+
</dd>
|
|
1089
|
+
</dl>
|
|
1090
|
+
|
|
1091
|
+
</dd>
|
|
1092
|
+
</dl>
|
|
1093
|
+
</details>
|
|
1094
|
+
|
|
1048
1095
|
## CustomerAccess
|
|
1049
1096
|
|
|
1050
1097
|
<details><summary><code>client.customerAccess.<a href="/src/api/resources/customerAccess/client/Client.ts">getBillingState</a>(subjectId) -> Lark.BillingStateResponse</code></summary>
|
package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Lark from "../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* event_name: "event_name",
|
|
9
|
-
* subject_id: "subject_id",
|
|
10
|
-
* period: {
|
|
11
|
-
* start: "2024-01-15T09:30:00Z",
|
|
12
|
-
* end: "2024-01-15T09:30:00Z"
|
|
13
|
-
* },
|
|
14
|
-
* aggregation_type: "sum"
|
|
15
|
-
* }
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateUsageEventSummaryRequest {
|
|
18
|
-
event_name: string;
|
|
19
|
-
subject_id: string;
|
|
20
|
-
period: Lark.Period;
|
|
21
|
-
aggregation_type: CreateUsageEventSummaryRequest.AggregationType;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace CreateUsageEventSummaryRequest {
|
|
24
|
-
type AggregationType = "sum" | "count" | "max";
|
|
25
|
-
const AggregationType: {
|
|
26
|
-
readonly Sum: "sum";
|
|
27
|
-
readonly Count: "count";
|
|
28
|
-
readonly Max: "max";
|
|
29
|
-
};
|
|
30
|
-
}
|
package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CreateUsageEventSummaryRequest = void 0;
|
|
7
|
-
var CreateUsageEventSummaryRequest;
|
|
8
|
-
(function (CreateUsageEventSummaryRequest) {
|
|
9
|
-
CreateUsageEventSummaryRequest.AggregationType = {
|
|
10
|
-
Sum: "sum",
|
|
11
|
-
Count: "count",
|
|
12
|
-
Max: "max",
|
|
13
|
-
};
|
|
14
|
-
})(CreateUsageEventSummaryRequest || (exports.CreateUsageEventSummaryRequest = CreateUsageEventSummaryRequest = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Lark from "../index.js";
|
|
5
|
-
export interface CreatePricingMetricResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
event_name: string;
|
|
9
|
-
aggregation: Lark.Aggregation;
|
|
10
|
-
unit: string;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Lark from "../index.js";
|
|
5
|
-
export interface GetPricingMetricResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
event_name: string;
|
|
9
|
-
aggregation: Lark.Aggregation;
|
|
10
|
-
unit: string;
|
|
11
|
-
}
|
package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.mts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Lark from "../../../../index.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* event_name: "event_name",
|
|
9
|
-
* subject_id: "subject_id",
|
|
10
|
-
* period: {
|
|
11
|
-
* start: "2024-01-15T09:30:00Z",
|
|
12
|
-
* end: "2024-01-15T09:30:00Z"
|
|
13
|
-
* },
|
|
14
|
-
* aggregation_type: "sum"
|
|
15
|
-
* }
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateUsageEventSummaryRequest {
|
|
18
|
-
event_name: string;
|
|
19
|
-
subject_id: string;
|
|
20
|
-
period: Lark.Period;
|
|
21
|
-
aggregation_type: CreateUsageEventSummaryRequest.AggregationType;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace CreateUsageEventSummaryRequest {
|
|
24
|
-
type AggregationType = "sum" | "count" | "max";
|
|
25
|
-
const AggregationType: {
|
|
26
|
-
readonly Sum: "sum";
|
|
27
|
-
readonly Count: "count";
|
|
28
|
-
readonly Max: "max";
|
|
29
|
-
};
|
|
30
|
-
}
|
package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export var CreateUsageEventSummaryRequest;
|
|
5
|
-
(function (CreateUsageEventSummaryRequest) {
|
|
6
|
-
CreateUsageEventSummaryRequest.AggregationType = {
|
|
7
|
-
Sum: "sum",
|
|
8
|
-
Count: "count",
|
|
9
|
-
Max: "max",
|
|
10
|
-
};
|
|
11
|
-
})(CreateUsageEventSummaryRequest || (CreateUsageEventSummaryRequest = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Lark from "../index.mjs";
|
|
5
|
-
export interface CreatePricingMetricResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
event_name: string;
|
|
9
|
-
aggregation: Lark.Aggregation;
|
|
10
|
-
unit: string;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Lark from "../index.mjs";
|
|
5
|
-
export interface GetPricingMetricResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
event_name: string;
|
|
9
|
-
aggregation: Lark.Aggregation;
|
|
10
|
-
unit: string;
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|