lark-billing 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/LICENSE +1 -1
- package/README.md +9 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/rate-cards.d.mts +9 -0
- package/resources/rate-cards.d.mts.map +1 -1
- package/resources/rate-cards.d.ts +9 -0
- package/resources/rate-cards.d.ts.map +1 -1
- package/resources/rate-catalogs.d.mts +416 -0
- package/resources/rate-catalogs.d.mts.map +1 -0
- package/resources/rate-catalogs.d.ts +416 -0
- package/resources/rate-catalogs.d.ts.map +1 -0
- package/resources/rate-catalogs.js +75 -0
- package/resources/rate-catalogs.js.map +1 -0
- package/resources/rate-catalogs.mjs +71 -0
- package/resources/rate-catalogs.mjs.map +1 -0
- package/resources/usage-events.d.mts +2 -2
- package/resources/usage-events.d.ts +2 -2
- package/resources/usage-events.js +2 -2
- package/resources/usage-events.mjs +2 -2
- package/src/client.ts +27 -0
- package/src/resources/index.ts +12 -0
- package/src/resources/rate-cards.ts +11 -0
- package/src/resources/rate-catalogs.ts +597 -0
- package/src/resources/usage-events.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as InvoicesAPI from "./invoices.mjs";
|
|
3
|
+
import * as RateCardsAPI from "./rate-cards.mjs";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class RateCatalogs extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create Rate Catalog
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const rateCatalog = await client.rateCatalogs.create({
|
|
13
|
+
* description: 'My Catalog Description',
|
|
14
|
+
* name: 'My Catalog',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: RateCatalogCreateParams, options?: RequestOptions): APIPromise<RateCatalogCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get Rate Catalog
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const rateCatalog = await client.rateCatalogs.retrieve(
|
|
25
|
+
* 'rate_catalog_id',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieve(rateCatalogID: string, options?: RequestOptions): APIPromise<RateCatalogRetrieveResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* List Rate Catalogs
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const rateCatalogs = await client.rateCatalogs.list();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(query?: RateCatalogListParams | null | undefined, options?: RequestOptions): APIPromise<RateCatalogListResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Add Rates To Rate Catalog
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response = await client.rateCatalogs.addRates(
|
|
45
|
+
* 'rate_catalog_id',
|
|
46
|
+
* { billing_interval: 'monthly' },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
addRates(rateCatalogID: string, body: RateCatalogAddRatesParams, options?: RequestOptions): APIPromise<RateCatalogAddRatesResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* List Rates In Catalog
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.rateCatalogs.listRates(
|
|
57
|
+
* 'rate_catalog_id',
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
listRates(rateCatalogID: string, query?: RateCatalogListRatesParams | null | undefined, options?: RequestOptions): APIPromise<RateCatalogListRatesResponse>;
|
|
62
|
+
}
|
|
63
|
+
export interface RateCatalogCreateResponse {
|
|
64
|
+
id: string;
|
|
65
|
+
description: string;
|
|
66
|
+
name: string;
|
|
67
|
+
rate_count: number;
|
|
68
|
+
}
|
|
69
|
+
export interface RateCatalogRetrieveResponse {
|
|
70
|
+
id: string;
|
|
71
|
+
description: string;
|
|
72
|
+
name: string;
|
|
73
|
+
rate_count: number;
|
|
74
|
+
}
|
|
75
|
+
export interface RateCatalogListResponse {
|
|
76
|
+
has_more: boolean;
|
|
77
|
+
rate_catalogs: Array<RateCatalogListResponse.RateCatalog>;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace RateCatalogListResponse {
|
|
80
|
+
interface RateCatalog {
|
|
81
|
+
id: string;
|
|
82
|
+
description: string;
|
|
83
|
+
name: string;
|
|
84
|
+
rate_count: number;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export interface RateCatalogAddRatesResponse {
|
|
88
|
+
id: string;
|
|
89
|
+
description: string;
|
|
90
|
+
name: string;
|
|
91
|
+
rate_count: number;
|
|
92
|
+
}
|
|
93
|
+
export interface RateCatalogListRatesResponse {
|
|
94
|
+
has_more: boolean;
|
|
95
|
+
rates: Array<RateCatalogListRatesResponse.Rate>;
|
|
96
|
+
}
|
|
97
|
+
export declare namespace RateCatalogListRatesResponse {
|
|
98
|
+
interface Rate {
|
|
99
|
+
id: string;
|
|
100
|
+
interval: 'monthly' | 'yearly';
|
|
101
|
+
rate_catalog_id: string;
|
|
102
|
+
type: 'fixed' | 'usage_based';
|
|
103
|
+
fixed?: Rate.Fixed | null;
|
|
104
|
+
usage_based?: Rate.SimpleUsageBasedRateTypedDict | Rate.DimensionalUsageBasedRateTypedDict | null;
|
|
105
|
+
}
|
|
106
|
+
namespace Rate {
|
|
107
|
+
interface Fixed {
|
|
108
|
+
id: string;
|
|
109
|
+
code: string | null;
|
|
110
|
+
credit_grants: Array<Fixed.CreditGrant>;
|
|
111
|
+
description: string | null;
|
|
112
|
+
name: string;
|
|
113
|
+
price: Fixed.FlatPriceTypedDict | Fixed.PackagePriceTypedDict;
|
|
114
|
+
quantity_code: string | null;
|
|
115
|
+
}
|
|
116
|
+
namespace Fixed {
|
|
117
|
+
interface CreditGrant {
|
|
118
|
+
amount: InvoicesAPI.AmountOutput;
|
|
119
|
+
expiration: CreditGrant.CreditGrantDurationExpirationModel | CreditGrant.CreditGrantDateTimeExpirationModel | null;
|
|
120
|
+
metadata: {
|
|
121
|
+
[key: string]: string;
|
|
122
|
+
};
|
|
123
|
+
name: string;
|
|
124
|
+
schedule: CreditGrant.CreditGrantScheduleOneTimeModel | CreditGrant.CreditGrantScheduleRateCycleStartModel | null;
|
|
125
|
+
subject_granting_config: CreditGrant.SubjectGrantingConfig | null;
|
|
126
|
+
}
|
|
127
|
+
namespace CreditGrant {
|
|
128
|
+
interface CreditGrantDurationExpirationModel {
|
|
129
|
+
duration: number;
|
|
130
|
+
unit: 'hours' | 'days' | 'weeks' | 'months' | 'years';
|
|
131
|
+
expiration_type?: 'duration';
|
|
132
|
+
}
|
|
133
|
+
interface CreditGrantDateTimeExpirationModel {
|
|
134
|
+
date: string;
|
|
135
|
+
expiration_type?: 'date';
|
|
136
|
+
}
|
|
137
|
+
interface CreditGrantScheduleOneTimeModel {
|
|
138
|
+
scheduled_at: string;
|
|
139
|
+
schedule_type?: 'one_time';
|
|
140
|
+
}
|
|
141
|
+
interface CreditGrantScheduleRateCycleStartModel {
|
|
142
|
+
rate_cycle_start_at: string;
|
|
143
|
+
schedule_type?: 'rate_cycle_start';
|
|
144
|
+
}
|
|
145
|
+
interface SubjectGrantingConfig {
|
|
146
|
+
apply_to_children: boolean;
|
|
147
|
+
apply_to_self: boolean;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
interface FlatPriceTypedDict {
|
|
151
|
+
amount: FlatPriceTypedDict.Amount;
|
|
152
|
+
price_type: 'flat';
|
|
153
|
+
}
|
|
154
|
+
namespace FlatPriceTypedDict {
|
|
155
|
+
interface Amount {
|
|
156
|
+
currency_code: string;
|
|
157
|
+
value: string;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
interface PackagePriceTypedDict {
|
|
161
|
+
amount: PackagePriceTypedDict.Amount;
|
|
162
|
+
package_units: number;
|
|
163
|
+
price_type: 'package';
|
|
164
|
+
rounding_behavior: 'round_up' | 'round_down';
|
|
165
|
+
}
|
|
166
|
+
namespace PackagePriceTypedDict {
|
|
167
|
+
interface Amount {
|
|
168
|
+
currency_code: string;
|
|
169
|
+
value: string;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
interface SimpleUsageBasedRateTypedDict {
|
|
174
|
+
id: string;
|
|
175
|
+
code: string;
|
|
176
|
+
description: string | null;
|
|
177
|
+
included_units: number;
|
|
178
|
+
name: string;
|
|
179
|
+
price: SimpleUsageBasedRateTypedDict.FlatPriceTypedDict | SimpleUsageBasedRateTypedDict.PackagePriceTypedDict;
|
|
180
|
+
pricing_metric_id: string;
|
|
181
|
+
usage_based_rate_type: 'simple';
|
|
182
|
+
}
|
|
183
|
+
namespace SimpleUsageBasedRateTypedDict {
|
|
184
|
+
interface FlatPriceTypedDict {
|
|
185
|
+
amount: FlatPriceTypedDict.Amount;
|
|
186
|
+
price_type: 'flat';
|
|
187
|
+
}
|
|
188
|
+
namespace FlatPriceTypedDict {
|
|
189
|
+
interface Amount {
|
|
190
|
+
currency_code: string;
|
|
191
|
+
value: string;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
interface PackagePriceTypedDict {
|
|
195
|
+
amount: PackagePriceTypedDict.Amount;
|
|
196
|
+
package_units: number;
|
|
197
|
+
price_type: 'package';
|
|
198
|
+
rounding_behavior: 'round_up' | 'round_down';
|
|
199
|
+
}
|
|
200
|
+
namespace PackagePriceTypedDict {
|
|
201
|
+
interface Amount {
|
|
202
|
+
currency_code: string;
|
|
203
|
+
value: string;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
interface DimensionalUsageBasedRateTypedDict {
|
|
208
|
+
id: string;
|
|
209
|
+
code: string;
|
|
210
|
+
description: string | null;
|
|
211
|
+
dimensions: Array<DimensionalUsageBasedRateTypedDict.Dimension>;
|
|
212
|
+
included_units: number;
|
|
213
|
+
name: string;
|
|
214
|
+
pricing_matrix: DimensionalUsageBasedRateTypedDict.PricingMatrix;
|
|
215
|
+
pricing_metric_id: string;
|
|
216
|
+
usage_based_rate_type: 'dimensional';
|
|
217
|
+
}
|
|
218
|
+
namespace DimensionalUsageBasedRateTypedDict {
|
|
219
|
+
interface Dimension {
|
|
220
|
+
description: string | null;
|
|
221
|
+
key: string;
|
|
222
|
+
values: Array<string>;
|
|
223
|
+
}
|
|
224
|
+
interface PricingMatrix {
|
|
225
|
+
cells: Array<PricingMatrix.Cell>;
|
|
226
|
+
}
|
|
227
|
+
namespace PricingMatrix {
|
|
228
|
+
interface Cell {
|
|
229
|
+
dimension_coordinates: {
|
|
230
|
+
[key: string]: string;
|
|
231
|
+
};
|
|
232
|
+
price: Cell.FlatPriceTypedDict | Cell.PackagePriceTypedDict;
|
|
233
|
+
}
|
|
234
|
+
namespace Cell {
|
|
235
|
+
interface FlatPriceTypedDict {
|
|
236
|
+
amount: FlatPriceTypedDict.Amount;
|
|
237
|
+
price_type: 'flat';
|
|
238
|
+
}
|
|
239
|
+
namespace FlatPriceTypedDict {
|
|
240
|
+
interface Amount {
|
|
241
|
+
currency_code: string;
|
|
242
|
+
value: string;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
interface PackagePriceTypedDict {
|
|
246
|
+
amount: PackagePriceTypedDict.Amount;
|
|
247
|
+
package_units: number;
|
|
248
|
+
price_type: 'package';
|
|
249
|
+
rounding_behavior: 'round_up' | 'round_down';
|
|
250
|
+
}
|
|
251
|
+
namespace PackagePriceTypedDict {
|
|
252
|
+
interface Amount {
|
|
253
|
+
currency_code: string;
|
|
254
|
+
value: string;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
export interface RateCatalogCreateParams {
|
|
263
|
+
/**
|
|
264
|
+
* The description of the catalog.
|
|
265
|
+
*/
|
|
266
|
+
description: string;
|
|
267
|
+
/**
|
|
268
|
+
* The name of the catalog.
|
|
269
|
+
*/
|
|
270
|
+
name: string;
|
|
271
|
+
}
|
|
272
|
+
export interface RateCatalogListParams {
|
|
273
|
+
limit?: number;
|
|
274
|
+
offset?: number;
|
|
275
|
+
}
|
|
276
|
+
export interface RateCatalogAddRatesParams {
|
|
277
|
+
/**
|
|
278
|
+
* How often the customer will be billed for these rates.
|
|
279
|
+
*/
|
|
280
|
+
billing_interval: 'monthly' | 'yearly';
|
|
281
|
+
/**
|
|
282
|
+
* The fixed rate to create in the catalog.
|
|
283
|
+
*/
|
|
284
|
+
fixed_rates?: Array<RateCatalogAddRatesParams.FixedRate>;
|
|
285
|
+
/**
|
|
286
|
+
* The usage based rates to create in the catalog.
|
|
287
|
+
*/
|
|
288
|
+
usage_based_rates?: Array<RateCatalogAddRatesParams.CreateSimpleUsageBasedRateRequest | RateCatalogAddRatesParams.CreateDimensionalUsageBasedRateRequest>;
|
|
289
|
+
}
|
|
290
|
+
export declare namespace RateCatalogAddRatesParams {
|
|
291
|
+
interface FixedRate {
|
|
292
|
+
/**
|
|
293
|
+
* Code of this rate to be used for setting quantity and price multipliers. This
|
|
294
|
+
* code must be unique within the rate card.
|
|
295
|
+
*/
|
|
296
|
+
code: string;
|
|
297
|
+
/**
|
|
298
|
+
* The name of the rate displayed to the customer.
|
|
299
|
+
*/
|
|
300
|
+
name: string;
|
|
301
|
+
/**
|
|
302
|
+
* Flat price is a price that linearly scales with the quantity.
|
|
303
|
+
*/
|
|
304
|
+
price: RateCardsAPI.FlatPriceInput | RateCardsAPI.PackagePriceInput;
|
|
305
|
+
/**
|
|
306
|
+
* The description of the rate displayed to the customer.
|
|
307
|
+
*/
|
|
308
|
+
description?: string | null;
|
|
309
|
+
}
|
|
310
|
+
interface CreateSimpleUsageBasedRateRequest {
|
|
311
|
+
/**
|
|
312
|
+
* Code of this rate to be used for price multipliers. This code must be unique
|
|
313
|
+
* within the rate card.
|
|
314
|
+
*/
|
|
315
|
+
code: string;
|
|
316
|
+
/**
|
|
317
|
+
* The name of the rate displayed to the customer.
|
|
318
|
+
*/
|
|
319
|
+
name: string;
|
|
320
|
+
/**
|
|
321
|
+
* Flat price is a price that linearly scales with the quantity.
|
|
322
|
+
*/
|
|
323
|
+
price: RateCardsAPI.FlatPriceInput | RateCardsAPI.PackagePriceInput;
|
|
324
|
+
/**
|
|
325
|
+
* The ID of the pricing metric to use for this rate.
|
|
326
|
+
*/
|
|
327
|
+
pricing_metric_id: string;
|
|
328
|
+
usage_based_rate_type: 'simple';
|
|
329
|
+
/**
|
|
330
|
+
* The description of the rate displayed to the customer.
|
|
331
|
+
*/
|
|
332
|
+
description?: string | null;
|
|
333
|
+
/**
|
|
334
|
+
* The number of units included in the rate before the price is applied.
|
|
335
|
+
*/
|
|
336
|
+
included_units?: number;
|
|
337
|
+
}
|
|
338
|
+
interface CreateDimensionalUsageBasedRateRequest {
|
|
339
|
+
/**
|
|
340
|
+
* Code of this rate to be used for price multipliers. This code must be unique
|
|
341
|
+
* within the rate card.
|
|
342
|
+
*/
|
|
343
|
+
code: string;
|
|
344
|
+
/**
|
|
345
|
+
* The dimensions of the rate.
|
|
346
|
+
*/
|
|
347
|
+
dimensions: Array<CreateDimensionalUsageBasedRateRequest.Dimension>;
|
|
348
|
+
/**
|
|
349
|
+
* The name of the rate displayed to the customer.
|
|
350
|
+
*/
|
|
351
|
+
name: string;
|
|
352
|
+
/**
|
|
353
|
+
* The pricing matrix of the rate.
|
|
354
|
+
*/
|
|
355
|
+
pricing_matrix: CreateDimensionalUsageBasedRateRequest.PricingMatrix;
|
|
356
|
+
/**
|
|
357
|
+
* The ID of the pricing metric to use for this rate.
|
|
358
|
+
*/
|
|
359
|
+
pricing_metric_id: string;
|
|
360
|
+
usage_based_rate_type: 'dimensional';
|
|
361
|
+
/**
|
|
362
|
+
* The description of the rate displayed to the customer.
|
|
363
|
+
*/
|
|
364
|
+
description?: string | null;
|
|
365
|
+
/**
|
|
366
|
+
* The number of units included in the rate before the price is applied.
|
|
367
|
+
*/
|
|
368
|
+
included_units?: number;
|
|
369
|
+
}
|
|
370
|
+
namespace CreateDimensionalUsageBasedRateRequest {
|
|
371
|
+
interface Dimension {
|
|
372
|
+
/**
|
|
373
|
+
* The name of the dimension. This is used to identify the dimension in the pricing
|
|
374
|
+
* matrix.
|
|
375
|
+
*/
|
|
376
|
+
key: string;
|
|
377
|
+
/**
|
|
378
|
+
* A list of possible values for the dimension.
|
|
379
|
+
*/
|
|
380
|
+
values: Array<string>;
|
|
381
|
+
/**
|
|
382
|
+
* The description of the dimension.
|
|
383
|
+
*/
|
|
384
|
+
description?: string | null;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* The pricing matrix of the rate.
|
|
388
|
+
*/
|
|
389
|
+
interface PricingMatrix {
|
|
390
|
+
cells: Array<PricingMatrix.Cell>;
|
|
391
|
+
}
|
|
392
|
+
namespace PricingMatrix {
|
|
393
|
+
interface Cell {
|
|
394
|
+
/**
|
|
395
|
+
* A key-value mapping of dimension keys and values to identify the price for a
|
|
396
|
+
* given set of dimension values.
|
|
397
|
+
*/
|
|
398
|
+
dimension_coordinates: {
|
|
399
|
+
[key: string]: string;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* The price for the cell.
|
|
403
|
+
*/
|
|
404
|
+
price: RateCardsAPI.FlatPriceInput | RateCardsAPI.PackagePriceInput;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
export interface RateCatalogListRatesParams {
|
|
410
|
+
limit?: number;
|
|
411
|
+
offset?: number;
|
|
412
|
+
}
|
|
413
|
+
export declare namespace RateCatalogs {
|
|
414
|
+
export { type RateCatalogCreateResponse as RateCatalogCreateResponse, type RateCatalogRetrieveResponse as RateCatalogRetrieveResponse, type RateCatalogListResponse as RateCatalogListResponse, type RateCatalogAddRatesResponse as RateCatalogAddRatesResponse, type RateCatalogListRatesResponse as RateCatalogListRatesResponse, type RateCatalogCreateParams as RateCatalogCreateParams, type RateCatalogListParams as RateCatalogListParams, type RateCatalogAddRatesParams as RateCatalogAddRatesParams, type RateCatalogListRatesParams as RateCatalogListRatesParams, };
|
|
415
|
+
}
|
|
416
|
+
//# sourceMappingURL=rate-catalogs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-catalogs.d.mts","sourceRoot":"","sources":["../src/resources/rate-catalogs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAItG;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAIlG;;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