orb-billing 4.33.0 → 4.47.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/CHANGELOG.md +175 -0
- package/LICENSE +1 -1
- package/README.md +10 -1
- package/core.d.ts +4 -5
- package/core.d.ts.map +1 -1
- package/core.js +16 -11
- package/core.js.map +1 -1
- package/core.mjs +16 -11
- package/core.mjs.map +1 -1
- package/error.d.ts +30 -36
- package/error.d.ts.map +1 -1
- package/error.js +24 -43
- package/error.js.map +1 -1
- package/error.mjs +24 -43
- package/error.mjs.map +1 -1
- package/index.d.mts +43 -109
- package/index.d.ts +43 -109
- package/index.d.ts.map +1 -1
- package/index.js +71 -33
- package/index.js.map +1 -1
- package/index.mjs +43 -32
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +58 -19
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +19 -37
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +19 -14
- package/resources/alerts.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +3 -7
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +3 -5
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +3 -5
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/index.d.ts +2 -2
- package/resources/coupons/index.d.ts.map +1 -1
- package/resources/coupons/index.js.map +1 -1
- package/resources/coupons/index.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +1 -2
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +0 -2
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +0 -2
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-notes.d.ts +29 -4
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +8 -27
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +8 -4
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +1 -6
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js +1 -27
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +1 -4
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +1 -5
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +0 -2
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +0 -2
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +15 -31
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +10 -11
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +10 -11
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/index.d.ts +3 -3
- package/resources/customers/credits/index.d.ts.map +1 -1
- package/resources/customers/credits/index.js.map +1 -1
- package/resources/customers/credits/index.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +15 -23
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +12 -36
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +12 -13
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +1 -11
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js +2 -28
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +2 -5
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +7 -25
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +10 -10
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +10 -10
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.ts +4 -4
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +90 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.js +73 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.js.map +1 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +45 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs.map +1 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +10 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +15 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js.map +1 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +11 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs.map +1 -0
- package/resources/dimensional-price-groups/index.d.ts +3 -0
- package/resources/dimensional-price-groups/index.d.ts.map +1 -0
- package/resources/dimensional-price-groups/index.js +9 -0
- package/resources/dimensional-price-groups/index.js.map +1 -0
- package/resources/dimensional-price-groups/index.mjs +4 -0
- package/resources/dimensional-price-groups/index.mjs.map +1 -0
- package/resources/events/backfills.d.ts +5 -11
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +5 -29
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +5 -6
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +7 -22
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +7 -7
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +7 -7
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/index.d.ts +3 -3
- package/resources/events/index.d.ts.map +1 -1
- package/resources/events/index.js.map +1 -1
- package/resources/events/index.mjs.map +1 -1
- package/resources/events/volume.d.ts +1 -3
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +0 -2
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +0 -2
- package/resources/events/volume.mjs.map +1 -1
- package/resources/index.d.ts +14 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -7
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +1 -3
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +0 -2
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +0 -2
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +78 -13
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +8 -27
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +8 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +1 -6
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +1 -27
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +1 -4
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.d.ts +1 -6
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +1 -27
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +1 -4
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +1 -2
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +0 -2
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +0 -2
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/index.d.ts +2 -2
- package/resources/plans/index.d.ts.map +1 -1
- package/resources/plans/index.js.map +1 -1
- package/resources/plans/index.mjs +1 -1
- package/resources/plans/index.mjs.map +1 -1
- package/resources/plans/plans.d.ts +331 -9
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +3 -5
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +3 -5
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +1 -2
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +0 -2
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +0 -2
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/index.d.ts +2 -2
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js +3 -3
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +339 -13
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +3 -5
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +3 -5
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +7629 -191
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +2 -29
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +2 -6
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/top-level.d.ts +1 -2
- package/resources/top-level.d.ts.map +1 -1
- package/resources/top-level.js +0 -2
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +0 -2
- package/resources/top-level.mjs.map +1 -1
- package/src/core.ts +23 -19
- package/src/error.ts +82 -125
- package/src/index.ts +334 -130
- package/src/resources/alerts.ts +117 -24
- package/src/resources/coupons/coupons.ts +13 -8
- package/src/resources/coupons/index.ts +2 -2
- package/src/resources/coupons/subscriptions.ts +2 -3
- package/src/resources/credit-notes.ts +45 -5
- package/src/resources/customers/balance-transactions.ts +10 -7
- package/src/resources/customers/costs.ts +7 -6
- package/src/resources/customers/credits/credits.ts +82 -32
- package/src/resources/customers/credits/index.ts +20 -20
- package/src/resources/customers/credits/ledger.ts +30 -24
- package/src/resources/customers/credits/top-ups.ts +16 -12
- package/src/resources/customers/customers.ts +68 -26
- package/src/resources/customers/index.ts +17 -17
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +146 -0
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +20 -0
- package/src/resources/dimensional-price-groups/index.ts +10 -0
- package/src/resources/events/backfills.ts +17 -12
- package/src/resources/events/events.ts +42 -23
- package/src/resources/events/index.ts +15 -15
- package/src/resources/events/volume.ts +2 -4
- package/src/resources/index.ts +113 -67
- package/src/resources/invoice-line-items.ts +5 -4
- package/src/resources/invoices.ts +108 -14
- package/src/resources/items.ts +10 -7
- package/src/resources/metrics.ts +10 -7
- package/src/resources/plans/external-plan-id.ts +2 -3
- package/src/resources/plans/index.ts +9 -2
- package/src/resources/plans/plans.ts +424 -9
- package/src/resources/prices/external-price-id.ts +2 -3
- package/src/resources/prices/index.ts +8 -8
- package/src/resources/prices/prices.ts +470 -14
- package/src/resources/subscriptions.ts +9231 -400
- package/src/resources/top-level.ts +2 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as Shared from "../shared.js";
|
|
4
|
+
import * as ExternalDimensionalPriceGroupIDAPI from "./external-dimensional-price-group-id.js";
|
|
5
|
+
import { ExternalDimensionalPriceGroupID } from "./external-dimensional-price-group-id.js";
|
|
6
|
+
import { Page, type PageParams } from "../../pagination.js";
|
|
7
|
+
export declare class DimensionalPriceGroups extends APIResource {
|
|
8
|
+
externalDimensionalPriceGroupId: ExternalDimensionalPriceGroupIDAPI.ExternalDimensionalPriceGroupID;
|
|
9
|
+
/**
|
|
10
|
+
* A dimensional price group is used to partition the result of a billable metric
|
|
11
|
+
* by a set of dimensions. Prices in a price group must specify the parition used
|
|
12
|
+
* to derive their usage.
|
|
13
|
+
*
|
|
14
|
+
* For example, suppose we have a billable metric that measures the number of
|
|
15
|
+
* widgets used and we want to charge differently depending on the color of the
|
|
16
|
+
* widget. We can create a price group with a dimension "color" and two prices: one
|
|
17
|
+
* that charges $10 per red widget and one that charges $20 per blue widget.
|
|
18
|
+
*/
|
|
19
|
+
create(body: DimensionalPriceGroupCreateParams, options?: Core.RequestOptions): Core.APIPromise<DimensionalPriceGroup>;
|
|
20
|
+
/**
|
|
21
|
+
* Fetch dimensional price group
|
|
22
|
+
*/
|
|
23
|
+
retrieve(dimensionalPriceGroupId: string, options?: Core.RequestOptions): Core.APIPromise<DimensionalPriceGroup>;
|
|
24
|
+
/**
|
|
25
|
+
* List dimensional price groups
|
|
26
|
+
*/
|
|
27
|
+
list(query?: DimensionalPriceGroupListParams, options?: Core.RequestOptions): Core.PagePromise<DimensionalPriceGroupsPage, DimensionalPriceGroup>;
|
|
28
|
+
list(options?: Core.RequestOptions): Core.PagePromise<DimensionalPriceGroupsPage, DimensionalPriceGroup>;
|
|
29
|
+
}
|
|
30
|
+
export declare class DimensionalPriceGroupsPage extends Page<DimensionalPriceGroup> {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A dimensional price group is used to partition the result of a billable metric
|
|
34
|
+
* by a set of dimensions. Prices in a price group must specify the parition used
|
|
35
|
+
* to derive their usage.
|
|
36
|
+
*/
|
|
37
|
+
export interface DimensionalPriceGroup {
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The billable metric associated with this dimensional price group. All prices
|
|
41
|
+
* associated with this dimensional price group will be computed using this
|
|
42
|
+
* billable metric.
|
|
43
|
+
*/
|
|
44
|
+
billable_metric_id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The dimensions that this dimensional price group is defined over
|
|
47
|
+
*/
|
|
48
|
+
dimensions: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* An alias for the dimensional price group
|
|
51
|
+
*/
|
|
52
|
+
external_dimensional_price_group_id: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
55
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
56
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
57
|
+
* `null`.
|
|
58
|
+
*/
|
|
59
|
+
metadata: Record<string, string>;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the dimensional price group
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
}
|
|
65
|
+
export interface DimensionalPriceGroups {
|
|
66
|
+
data: Array<DimensionalPriceGroup>;
|
|
67
|
+
pagination_metadata: Shared.PaginationMetadata;
|
|
68
|
+
}
|
|
69
|
+
export interface DimensionalPriceGroupCreateParams {
|
|
70
|
+
billable_metric_id: string;
|
|
71
|
+
/**
|
|
72
|
+
* The set of keys (in order) used to disambiguate prices in the group.
|
|
73
|
+
*/
|
|
74
|
+
dimensions: Array<string>;
|
|
75
|
+
name: string;
|
|
76
|
+
external_dimensional_price_group_id?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
79
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
80
|
+
* by setting `metadata` to `null`.
|
|
81
|
+
*/
|
|
82
|
+
metadata?: Record<string, string | null> | null;
|
|
83
|
+
}
|
|
84
|
+
export interface DimensionalPriceGroupListParams extends PageParams {
|
|
85
|
+
}
|
|
86
|
+
export declare namespace DimensionalPriceGroups {
|
|
87
|
+
export { type DimensionalPriceGroup as DimensionalPriceGroup, type DimensionalPriceGroups as DimensionalPriceGroups, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
|
|
88
|
+
export { ExternalDimensionalPriceGroupID as ExternalDimensionalPriceGroupID };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=dimensional-price-groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensional-price-groups.d.ts","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/dimensional-price-groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,kCAAkC,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEzD,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,+BAA+B,EAAE,kCAAkC,CAAC,+BAA+B,CACZ;IAEvF;;;;;;;;;OASG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIzC;;OAEG;IACH,QAAQ,CACN,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIzC;;OAEG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;IACtE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;CAazG;AAED,qBAAa,0BAA2B,SAAQ,IAAI,CAAC,qBAAqB,CAAC;CAAG;AAE9E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,mCAAmC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnD;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAEnC,mBAAmB,EAAE,MAAM,CAAC,kBAAkB,CAAC;CAChD;AAED,MAAM,WAAW,iCAAiC;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IAEb,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,+BAAgC,SAAQ,UAAU;CAAG;AAKtE,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,0BAA0B,IAAI,0BAA0B,EACxD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,+BAA+B,IAAI,+BAA+B,EAAE,CAAC;CAC/E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.DimensionalPriceGroupsPage = exports.DimensionalPriceGroups = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const core_1 = require("../../core.js");
|
|
30
|
+
const ExternalDimensionalPriceGroupIDAPI = __importStar(require("./external-dimensional-price-group-id.js"));
|
|
31
|
+
const external_dimensional_price_group_id_1 = require("./external-dimensional-price-group-id.js");
|
|
32
|
+
const pagination_1 = require("../../pagination.js");
|
|
33
|
+
class DimensionalPriceGroups extends resource_1.APIResource {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this.externalDimensionalPriceGroupId = new ExternalDimensionalPriceGroupIDAPI.ExternalDimensionalPriceGroupID(this._client);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A dimensional price group is used to partition the result of a billable metric
|
|
40
|
+
* by a set of dimensions. Prices in a price group must specify the parition used
|
|
41
|
+
* to derive their usage.
|
|
42
|
+
*
|
|
43
|
+
* For example, suppose we have a billable metric that measures the number of
|
|
44
|
+
* widgets used and we want to charge differently depending on the color of the
|
|
45
|
+
* widget. We can create a price group with a dimension "color" and two prices: one
|
|
46
|
+
* that charges $10 per red widget and one that charges $20 per blue widget.
|
|
47
|
+
*/
|
|
48
|
+
create(body, options) {
|
|
49
|
+
return this._client.post('/dimensional_price_groups', { body, ...options });
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Fetch dimensional price group
|
|
53
|
+
*/
|
|
54
|
+
retrieve(dimensionalPriceGroupId, options) {
|
|
55
|
+
return this._client.get(`/dimensional_price_groups/${dimensionalPriceGroupId}`, options);
|
|
56
|
+
}
|
|
57
|
+
list(query = {}, options) {
|
|
58
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
59
|
+
return this.list({}, query);
|
|
60
|
+
}
|
|
61
|
+
return this._client.getAPIList('/dimensional_price_groups', DimensionalPriceGroupsPage, {
|
|
62
|
+
query,
|
|
63
|
+
...options,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.DimensionalPriceGroups = DimensionalPriceGroups;
|
|
68
|
+
class DimensionalPriceGroupsPage extends pagination_1.Page {
|
|
69
|
+
}
|
|
70
|
+
exports.DimensionalPriceGroupsPage = DimensionalPriceGroupsPage;
|
|
71
|
+
DimensionalPriceGroups.DimensionalPriceGroupsPage = DimensionalPriceGroupsPage;
|
|
72
|
+
DimensionalPriceGroups.ExternalDimensionalPriceGroupID = external_dimensional_price_group_id_1.ExternalDimensionalPriceGroupID;
|
|
73
|
+
//# sourceMappingURL=dimensional-price-groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensional-price-groups.js","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/dimensional-price-groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,6GAA4F;AAC5F,kGAAwF;AACxF,oDAAyD;AAEzD,MAAa,sBAAuB,SAAQ,sBAAW;IAAvD;;QACE,oCAA+B,GAC7B,IAAI,kCAAkC,CAAC,+BAA+B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiDzF,CAAC;IA/CC;;;;;;;;;OASG;IACH,MAAM,CACJ,IAAuC,EACvC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,uBAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,uBAAuB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAUD,IAAI,CACF,QAA+D,EAAE,EACjE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,0BAA0B,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnDD,wDAmDC;AAED,MAAa,0BAA2B,SAAQ,iBAA2B;CAAG;AAA9E,gEAA8E;AAqE9E,sBAAsB,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;AAC/E,sBAAsB,CAAC,+BAA+B,GAAG,qEAA+B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
import * as ExternalDimensionalPriceGroupIDAPI from "./external-dimensional-price-group-id.mjs";
|
|
5
|
+
import { ExternalDimensionalPriceGroupID } from "./external-dimensional-price-group-id.mjs";
|
|
6
|
+
import { Page } from "../../pagination.mjs";
|
|
7
|
+
export class DimensionalPriceGroups extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.externalDimensionalPriceGroupId = new ExternalDimensionalPriceGroupIDAPI.ExternalDimensionalPriceGroupID(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A dimensional price group is used to partition the result of a billable metric
|
|
14
|
+
* by a set of dimensions. Prices in a price group must specify the parition used
|
|
15
|
+
* to derive their usage.
|
|
16
|
+
*
|
|
17
|
+
* For example, suppose we have a billable metric that measures the number of
|
|
18
|
+
* widgets used and we want to charge differently depending on the color of the
|
|
19
|
+
* widget. We can create a price group with a dimension "color" and two prices: one
|
|
20
|
+
* that charges $10 per red widget and one that charges $20 per blue widget.
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/dimensional_price_groups', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Fetch dimensional price group
|
|
27
|
+
*/
|
|
28
|
+
retrieve(dimensionalPriceGroupId, options) {
|
|
29
|
+
return this._client.get(`/dimensional_price_groups/${dimensionalPriceGroupId}`, options);
|
|
30
|
+
}
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
if (isRequestOptions(query)) {
|
|
33
|
+
return this.list({}, query);
|
|
34
|
+
}
|
|
35
|
+
return this._client.getAPIList('/dimensional_price_groups', DimensionalPriceGroupsPage, {
|
|
36
|
+
query,
|
|
37
|
+
...options,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export class DimensionalPriceGroupsPage extends Page {
|
|
42
|
+
}
|
|
43
|
+
DimensionalPriceGroups.DimensionalPriceGroupsPage = DimensionalPriceGroupsPage;
|
|
44
|
+
DimensionalPriceGroups.ExternalDimensionalPriceGroupID = ExternalDimensionalPriceGroupID;
|
|
45
|
+
//# sourceMappingURL=dimensional-price-groups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensional-price-groups.mjs","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/dimensional-price-groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,kCAAkC;OACvC,EAAE,+BAA+B,EAAE;OACnC,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IAAvD;;QACE,oCAA+B,GAC7B,IAAI,kCAAkC,CAAC,+BAA+B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiDzF,CAAC;IA/CC;;;;;;;;;OASG;IACH,MAAM,CACJ,IAAuC,EACvC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,uBAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,uBAAuB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAUD,IAAI,CACF,QAA+D,EAAE,EACjE,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,0BAA0B,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,IAA2B;CAAG;AAqE9E,sBAAsB,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;AAC/E,sBAAsB,CAAC,+BAA+B,GAAG,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as DimensionalPriceGroupsAPI from "./dimensional-price-groups.js";
|
|
4
|
+
export declare class ExternalDimensionalPriceGroupID extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Fetch dimensional price group by external ID
|
|
7
|
+
*/
|
|
8
|
+
retrieve(externalDimensionalPriceGroupId: string, options?: Core.RequestOptions): Core.APIPromise<DimensionalPriceGroupsAPI.DimensionalPriceGroup>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=external-dimensional-price-group-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-dimensional-price-group-id.d.ts","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,yBAAyB,MAAM,4BAA4B,CAAC;AAExE,qBAAa,+BAAgC,SAAQ,WAAW;IAC9D;;OAEG;IACH,QAAQ,CACN,+BAA+B,EAAE,MAAM,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,qBAAqB,CAAC;CAMpE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExternalDimensionalPriceGroupID = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class ExternalDimensionalPriceGroupID extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Fetch dimensional price group by external ID
|
|
9
|
+
*/
|
|
10
|
+
retrieve(externalDimensionalPriceGroupId, options) {
|
|
11
|
+
return this._client.get(`/dimensional_price_groups/external_dimensional_price_group_id/${externalDimensionalPriceGroupId}`, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ExternalDimensionalPriceGroupID = ExternalDimensionalPriceGroupID;
|
|
15
|
+
//# sourceMappingURL=external-dimensional-price-group-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-dimensional-price-group-id.js","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,+BAAgC,SAAQ,sBAAW;IAC9D;;OAEG;IACH,QAAQ,CACN,+BAAuC,EACvC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,iEAAiE,+BAA+B,EAAE,EAClG,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAbD,0EAaC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class ExternalDimensionalPriceGroupID extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch dimensional price group by external ID
|
|
6
|
+
*/
|
|
7
|
+
retrieve(externalDimensionalPriceGroupId, options) {
|
|
8
|
+
return this._client.get(`/dimensional_price_groups/external_dimensional_price_group_id/${externalDimensionalPriceGroupId}`, options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=external-dimensional-price-group-id.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-dimensional-price-group-id.mjs","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,+BAAgC,SAAQ,WAAW;IAC9D;;OAEG;IACH,QAAQ,CACN,+BAAuC,EACvC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,iEAAiE,+BAA+B,EAAE,EAClG,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DimensionalPriceGroupsPage, type DimensionalPriceGroups, type DimensionalPriceGroup, type DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams, } from "./dimensional-price-groups.js";
|
|
2
|
+
export { ExternalDimensionalPriceGroupID } from "./external-dimensional-price-group-id.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,0BAA0B,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExternalDimensionalPriceGroupID = exports.DimensionalPriceGroupsPage = void 0;
|
|
5
|
+
var dimensional_price_groups_1 = require("./dimensional-price-groups.js");
|
|
6
|
+
Object.defineProperty(exports, "DimensionalPriceGroupsPage", { enumerable: true, get: function () { return dimensional_price_groups_1.DimensionalPriceGroupsPage; } });
|
|
7
|
+
var external_dimensional_price_group_id_1 = require("./external-dimensional-price-group-id.js");
|
|
8
|
+
Object.defineProperty(exports, "ExternalDimensionalPriceGroupID", { enumerable: true, get: function () { return external_dimensional_price_group_id_1.ExternalDimensionalPriceGroupID; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0EAMoC;AALlC,sIAAA,0BAA0B,OAAA;AAM5B,gGAAwF;AAA/E,sJAAA,+BAA+B,OAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { DimensionalPriceGroupsPage, } from "./dimensional-price-groups.mjs";
|
|
3
|
+
export { ExternalDimensionalPriceGroupID } from "./external-dimensional-price-group-id.mjs";
|
|
4
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/dimensional-price-groups/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,0BAA0B,GAK3B;OACM,EAAE,+BAA+B,EAAE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
|
-
import * as BackfillsAPI from "./backfills.js";
|
|
4
3
|
import { Page, type PageParams } from "../../pagination.js";
|
|
5
4
|
export declare class Backfills extends APIResource {
|
|
6
5
|
/**
|
|
@@ -34,8 +33,10 @@ export declare class Backfills extends APIResource {
|
|
|
34
33
|
* only affect events for that customer. If neither is specified, the backfill will
|
|
35
34
|
* affect all customers.
|
|
36
35
|
*
|
|
37
|
-
* When `replace_existing_events` is `true`,
|
|
38
|
-
*
|
|
36
|
+
* When `replace_existing_events` is `true`, this indicates that existing events in
|
|
37
|
+
* the timeframe should no longer be counted towards invoiced usage. In this
|
|
38
|
+
* scenario, the parameter `filter` can be optionally added which enables filtering
|
|
39
|
+
* using
|
|
39
40
|
* [computed properties](../guides/extensibility/advanced-metrics#computed-properties).
|
|
40
41
|
* The expressiveness of computed properties allows you to deprecate existing
|
|
41
42
|
* events based on both a period of time and specific property values.
|
|
@@ -306,13 +307,6 @@ export interface BackfillCreateParams {
|
|
|
306
307
|
export interface BackfillListParams extends PageParams {
|
|
307
308
|
}
|
|
308
309
|
export declare namespace Backfills {
|
|
309
|
-
export
|
|
310
|
-
export import BackfillListResponse = BackfillsAPI.BackfillListResponse;
|
|
311
|
-
export import BackfillCloseResponse = BackfillsAPI.BackfillCloseResponse;
|
|
312
|
-
export import BackfillFetchResponse = BackfillsAPI.BackfillFetchResponse;
|
|
313
|
-
export import BackfillRevertResponse = BackfillsAPI.BackfillRevertResponse;
|
|
314
|
-
export import BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
315
|
-
export import BackfillCreateParams = BackfillsAPI.BackfillCreateParams;
|
|
316
|
-
export import BackfillListParams = BackfillsAPI.BackfillListParams;
|
|
310
|
+
export { type BackfillCreateResponse as BackfillCreateResponse, type BackfillListResponse as BackfillListResponse, type BackfillCloseResponse as BackfillCloseResponse, type BackfillFetchResponse as BackfillFetchResponse, type BackfillRevertResponse as BackfillRevertResponse, BackfillListResponsesPage as BackfillListResponsesPage, type BackfillCreateParams as BackfillCreateParams, type BackfillListParams as BackfillListParams, };
|
|
317
311
|
}
|
|
318
312
|
//# sourceMappingURL=backfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backfills.d.ts","sourceRoot":"","sources":["../../src/resources/events/backfills.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,
|
|
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,GAAG,UAAU,CAAC;IAEhE,aAAa,EAAE,MAAM,CAAC;IAEtB,eAAe,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU;CAAG;AAIzD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,yBAAyB,IAAI,yBAAyB,EACtD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1,33 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
4
|
exports.BackfillListResponsesPage = exports.Backfills = void 0;
|
|
28
5
|
const resource_1 = require("../../resource.js");
|
|
29
6
|
const core_1 = require("../../core.js");
|
|
30
|
-
const BackfillsAPI = __importStar(require("./backfills.js"));
|
|
31
7
|
const pagination_1 = require("../../pagination.js");
|
|
32
8
|
class Backfills extends resource_1.APIResource {
|
|
33
9
|
/**
|
|
@@ -61,8 +37,10 @@ class Backfills extends resource_1.APIResource {
|
|
|
61
37
|
* only affect events for that customer. If neither is specified, the backfill will
|
|
62
38
|
* affect all customers.
|
|
63
39
|
*
|
|
64
|
-
* When `replace_existing_events` is `true`,
|
|
65
|
-
*
|
|
40
|
+
* When `replace_existing_events` is `true`, this indicates that existing events in
|
|
41
|
+
* the timeframe should no longer be counted towards invoiced usage. In this
|
|
42
|
+
* scenario, the parameter `filter` can be optionally added which enables filtering
|
|
43
|
+
* using
|
|
66
44
|
* [computed properties](../guides/extensibility/advanced-metrics#computed-properties).
|
|
67
45
|
* The expressiveness of computed properties allows you to deprecate existing
|
|
68
46
|
* events based on both a period of time and specific property values.
|
|
@@ -108,7 +86,5 @@ exports.Backfills = Backfills;
|
|
|
108
86
|
class BackfillListResponsesPage extends pagination_1.Page {
|
|
109
87
|
}
|
|
110
88
|
exports.BackfillListResponsesPage = BackfillListResponsesPage;
|
|
111
|
-
|
|
112
|
-
Backfills.BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
113
|
-
})(Backfills = exports.Backfills || (exports.Backfills = {}));
|
|
89
|
+
Backfills.BackfillListResponsesPage = BackfillListResponsesPage;
|
|
114
90
|
//# sourceMappingURL=backfills.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backfills.js","sourceRoot":"","sources":["../../src/resources/events/backfills.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"backfills.js","sourceRoot":"","sources":["../../src/resources/events/backfills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAAyD;AAEzD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAgBD,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAkB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,UAAU,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAkB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,UAAkB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,UAAU,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAjGD,8BAiGC;AAED,MAAa,yBAA0B,SAAQ,iBAA0B;CAAG;AAA5E,8DAA4E;AAgS5E,SAAS,CAAC,yBAAyB,GAAG,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
-
import * as BackfillsAPI from "./backfills.mjs";
|
|
5
4
|
import { Page } from "../../pagination.mjs";
|
|
6
5
|
export class Backfills extends APIResource {
|
|
7
6
|
/**
|
|
@@ -35,8 +34,10 @@ export class Backfills extends APIResource {
|
|
|
35
34
|
* only affect events for that customer. If neither is specified, the backfill will
|
|
36
35
|
* affect all customers.
|
|
37
36
|
*
|
|
38
|
-
* When `replace_existing_events` is `true`,
|
|
39
|
-
*
|
|
37
|
+
* When `replace_existing_events` is `true`, this indicates that existing events in
|
|
38
|
+
* the timeframe should no longer be counted towards invoiced usage. In this
|
|
39
|
+
* scenario, the parameter `filter` can be optionally added which enables filtering
|
|
40
|
+
* using
|
|
40
41
|
* [computed properties](../guides/extensibility/advanced-metrics#computed-properties).
|
|
41
42
|
* The expressiveness of computed properties allows you to deprecate existing
|
|
42
43
|
* events based on both a period of time and specific property values.
|
|
@@ -80,7 +81,5 @@ export class Backfills extends APIResource {
|
|
|
80
81
|
}
|
|
81
82
|
export class BackfillListResponsesPage extends Page {
|
|
82
83
|
}
|
|
83
|
-
|
|
84
|
-
Backfills.BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
85
|
-
})(Backfills || (Backfills = {}));
|
|
84
|
+
Backfills.BackfillListResponsesPage = BackfillListResponsesPage;
|
|
86
85
|
//# sourceMappingURL=backfills.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backfills.mjs","sourceRoot":"","sources":["../../src/resources/events/backfills.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,
|
|
1
|
+
{"version":3,"file":"backfills.mjs","sourceRoot":"","sources":["../../src/resources/events/backfills.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAgBD,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAkB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,UAAU,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAkB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,UAAkB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,UAAU,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,IAA0B;CAAG;AAgS5E,SAAS,CAAC,yBAAyB,GAAG,yBAAyB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
|
-
import * as EventsAPI from "./events.js";
|
|
4
3
|
import * as BackfillsAPI from "./backfills.js";
|
|
4
|
+
import { BackfillCloseResponse, BackfillCreateParams, BackfillCreateResponse, BackfillFetchResponse, BackfillListParams, BackfillListResponse, BackfillListResponsesPage, BackfillRevertResponse, Backfills } from "./backfills.js";
|
|
5
5
|
import * as VolumeAPI from "./volume.js";
|
|
6
|
+
import { EventVolumes, Volume, VolumeListParams } from "./volume.js";
|
|
6
7
|
export declare class Events extends APIResource {
|
|
7
8
|
backfills: BackfillsAPI.Backfills;
|
|
8
9
|
volume: VolumeAPI.Volume;
|
|
@@ -70,8 +71,8 @@ export declare class Events extends APIResource {
|
|
|
70
71
|
* call to a payment gateway failed and the user should not be billed)
|
|
71
72
|
*
|
|
72
73
|
* If you want to only change specific properties of an event, but keep the event
|
|
73
|
-
* as part of the billing calculation, use the [Amend
|
|
74
|
-
*
|
|
74
|
+
* as part of the billing calculation, use the [Amend event](amend-event) endpoint
|
|
75
|
+
* instead.
|
|
75
76
|
*
|
|
76
77
|
* This API is always audit-safe. The process will still retain the deprecated
|
|
77
78
|
* event, though it will be ignored for billing calculations. For auditing and data
|
|
@@ -509,24 +510,8 @@ export interface EventSearchParams {
|
|
|
509
510
|
timeframe_start?: string | null;
|
|
510
511
|
}
|
|
511
512
|
export declare namespace Events {
|
|
512
|
-
export
|
|
513
|
-
export
|
|
514
|
-
export
|
|
515
|
-
export import EventSearchResponse = EventsAPI.EventSearchResponse;
|
|
516
|
-
export import EventUpdateParams = EventsAPI.EventUpdateParams;
|
|
517
|
-
export import EventIngestParams = EventsAPI.EventIngestParams;
|
|
518
|
-
export import EventSearchParams = EventsAPI.EventSearchParams;
|
|
519
|
-
export import Backfills = BackfillsAPI.Backfills;
|
|
520
|
-
export import BackfillCreateResponse = BackfillsAPI.BackfillCreateResponse;
|
|
521
|
-
export import BackfillListResponse = BackfillsAPI.BackfillListResponse;
|
|
522
|
-
export import BackfillCloseResponse = BackfillsAPI.BackfillCloseResponse;
|
|
523
|
-
export import BackfillFetchResponse = BackfillsAPI.BackfillFetchResponse;
|
|
524
|
-
export import BackfillRevertResponse = BackfillsAPI.BackfillRevertResponse;
|
|
525
|
-
export import BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
526
|
-
export import BackfillCreateParams = BackfillsAPI.BackfillCreateParams;
|
|
527
|
-
export import BackfillListParams = BackfillsAPI.BackfillListParams;
|
|
528
|
-
export import Volume = VolumeAPI.Volume;
|
|
529
|
-
export import EventVolumes = VolumeAPI.EventVolumes;
|
|
530
|
-
export import VolumeListParams = VolumeAPI.VolumeListParams;
|
|
513
|
+
export { type EventUpdateResponse as EventUpdateResponse, type EventDeprecateResponse as EventDeprecateResponse, type EventIngestResponse as EventIngestResponse, type EventSearchResponse as EventSearchResponse, type EventUpdateParams as EventUpdateParams, type EventIngestParams as EventIngestParams, type EventSearchParams as EventSearchParams, };
|
|
514
|
+
export { Backfills as Backfills, type BackfillCreateResponse as BackfillCreateResponse, type BackfillListResponse as BackfillListResponse, type BackfillCloseResponse as BackfillCloseResponse, type BackfillFetchResponse as BackfillFetchResponse, type BackfillRevertResponse as BackfillRevertResponse, BackfillListResponsesPage as BackfillListResponsesPage, type BackfillCreateParams as BackfillCreateParams, type BackfillListParams as BackfillListParams, };
|
|
515
|
+
export { Volume as Volume, type EventVolumes as EventVolumes, type VolumeListParams as VolumeListParams };
|
|
531
516
|
}
|
|
532
517
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAA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K,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,yBAAyB,IAAI,yBAAyB,EACtD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3G"}
|
|
@@ -27,7 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.Events = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
29
|
const BackfillsAPI = __importStar(require("./backfills.js"));
|
|
30
|
+
const backfills_1 = require("./backfills.js");
|
|
30
31
|
const VolumeAPI = __importStar(require("./volume.js"));
|
|
32
|
+
const volume_1 = require("./volume.js");
|
|
31
33
|
class Events extends resource_1.APIResource {
|
|
32
34
|
constructor() {
|
|
33
35
|
super(...arguments);
|
|
@@ -100,8 +102,8 @@ class Events extends resource_1.APIResource {
|
|
|
100
102
|
* call to a payment gateway failed and the user should not be billed)
|
|
101
103
|
*
|
|
102
104
|
* If you want to only change specific properties of an event, but keep the event
|
|
103
|
-
* as part of the billing calculation, use the [Amend
|
|
104
|
-
*
|
|
105
|
+
* as part of the billing calculation, use the [Amend event](amend-event) endpoint
|
|
106
|
+
* instead.
|
|
105
107
|
*
|
|
106
108
|
* This API is always audit-safe. The process will still retain the deprecated
|
|
107
109
|
* event, though it will be ignored for billing calculations. For auditing and data
|
|
@@ -359,9 +361,7 @@ class Events extends resource_1.APIResource {
|
|
|
359
361
|
}
|
|
360
362
|
}
|
|
361
363
|
exports.Events = Events;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
Events.Volume = VolumeAPI.Volume;
|
|
366
|
-
})(Events = exports.Events || (exports.Events = {}));
|
|
364
|
+
Events.Backfills = backfills_1.Backfills;
|
|
365
|
+
Events.BackfillListResponsesPage = backfills_1.BackfillListResponsesPage;
|
|
366
|
+
Events.Volume = volume_1.Volume;
|
|
367
367
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,6DAA4C;AAC5C,8CAUqB;AACrB,uDAAsC;AACtC,wCAAkE;AAElE,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4UhE,CAAC;IA1UC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,SAAS,CAAC,OAAe,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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