@types/chartmogul-node 2.0.0 → 2.0.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.
- chartmogul-node/README.md +1 -1
- chartmogul-node/common.d.ts +1 -1
- chartmogul-node/index.d.ts +33 -29
- chartmogul-node/package.json +3 -3
chartmogul-node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for chartmogul-node (https://github.com/c
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartmogul-node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 04 Sep 2023 15:40:44 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
chartmogul-node/common.d.ts
CHANGED
chartmogul-node/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Definitions by: ChartMogul <https://github.com/chartmogul>
|
|
4
4
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { Cursor, CursorParams, Entries, EntriesSummary, Map, Strings } from "./common";
|
|
7
7
|
|
|
8
8
|
export class Config {
|
|
9
9
|
VERSION: string;
|
|
@@ -51,7 +51,7 @@ export namespace Customer {
|
|
|
51
51
|
name?: string | undefined;
|
|
52
52
|
email?: string | undefined;
|
|
53
53
|
status?: string | undefined;
|
|
54
|
-
[
|
|
54
|
+
["customer-since"]?: string | undefined;
|
|
55
55
|
attributes?: Attributes | undefined;
|
|
56
56
|
address?: {
|
|
57
57
|
address_zip?: string | undefined;
|
|
@@ -61,11 +61,11 @@ export namespace Customer {
|
|
|
61
61
|
} | undefined;
|
|
62
62
|
mrr?: number | undefined;
|
|
63
63
|
arr?: number | undefined;
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
64
|
+
["billing-system-url"]?: string | undefined;
|
|
65
|
+
["chartmogul-url"]?: string | undefined;
|
|
66
|
+
["billing-system-type"]?: string | undefined;
|
|
67
67
|
currency?: string | undefined;
|
|
68
|
-
[
|
|
68
|
+
["currency-sign"]?: string | undefined;
|
|
69
69
|
company?: string | undefined;
|
|
70
70
|
country?: string | undefined;
|
|
71
71
|
state?: string | undefined;
|
|
@@ -208,7 +208,7 @@ export namespace Invoice {
|
|
|
208
208
|
result?: string | undefined;
|
|
209
209
|
type?: string | undefined;
|
|
210
210
|
}
|
|
211
|
-
interface ListInvoicesParams
|
|
211
|
+
interface ListInvoicesParams extends CursorParams {
|
|
212
212
|
data_source_uuid?: string | undefined;
|
|
213
213
|
customer_uuid?: string | undefined;
|
|
214
214
|
external_id?: string | undefined;
|
|
@@ -219,7 +219,7 @@ export namespace Invoice {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
function create(config: Config, uuid: string, data: {
|
|
222
|
-
invoices: Invoice[]
|
|
222
|
+
invoices: Invoice[];
|
|
223
223
|
}): Promise<Invoice>;
|
|
224
224
|
function retrieve(config: Config, uuid: string): Promise<Invoice>;
|
|
225
225
|
function destroy(config: Config, uuid: string): Promise<{}>;
|
|
@@ -298,16 +298,16 @@ export namespace Metrics {
|
|
|
298
298
|
interval?: string | undefined;
|
|
299
299
|
}
|
|
300
300
|
interface ParamsNoInterval {
|
|
301
|
-
[
|
|
302
|
-
[
|
|
301
|
+
["start-date"]: string;
|
|
302
|
+
["end-date"]: string;
|
|
303
303
|
geo?: string | undefined;
|
|
304
304
|
plans?: string | undefined;
|
|
305
305
|
}
|
|
306
306
|
interface All {
|
|
307
307
|
entries: {
|
|
308
308
|
date: string;
|
|
309
|
-
[
|
|
310
|
-
[
|
|
309
|
+
["customer-churn-rate"]: number;
|
|
310
|
+
["mrr-churn-rate"]: number;
|
|
311
311
|
ltv: number;
|
|
312
312
|
customers: number;
|
|
313
313
|
asp: number;
|
|
@@ -320,11 +320,11 @@ export namespace Metrics {
|
|
|
320
320
|
interface MRR {
|
|
321
321
|
date: string;
|
|
322
322
|
mrr: number;
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
323
|
+
["mrr-new-business"]: number;
|
|
324
|
+
["mrr-expansion"]: number;
|
|
325
|
+
["mrr-contraction"]: number;
|
|
326
|
+
["mrr-churn"]: number;
|
|
327
|
+
["mrr-reactivation"]: number;
|
|
328
328
|
}
|
|
329
329
|
interface ARR {
|
|
330
330
|
date: string;
|
|
@@ -344,11 +344,11 @@ export namespace Metrics {
|
|
|
344
344
|
}
|
|
345
345
|
interface CustomerChurnRate {
|
|
346
346
|
date: string;
|
|
347
|
-
[
|
|
347
|
+
["customer-churn-rate"]: number;
|
|
348
348
|
}
|
|
349
349
|
interface MRRChurnRate {
|
|
350
350
|
date: string;
|
|
351
|
-
[
|
|
351
|
+
["mrr-churn-rate"]: number;
|
|
352
352
|
}
|
|
353
353
|
interface LTV {
|
|
354
354
|
date: string;
|
|
@@ -374,26 +374,30 @@ export namespace Metrics {
|
|
|
374
374
|
mrr: number;
|
|
375
375
|
arr: number;
|
|
376
376
|
status: string;
|
|
377
|
-
[
|
|
378
|
-
[
|
|
379
|
-
[
|
|
380
|
-
[
|
|
377
|
+
["billing-cycle"]: string;
|
|
378
|
+
["billing-cycle-count"]: number;
|
|
379
|
+
["start-date"]: string;
|
|
380
|
+
["end-date"]: string;
|
|
381
381
|
currency: string;
|
|
382
|
-
[
|
|
382
|
+
["currency-sign"]: string;
|
|
383
383
|
}
|
|
384
384
|
interface MetricsActivity {
|
|
385
385
|
id: number;
|
|
386
386
|
date: string;
|
|
387
|
-
[
|
|
388
|
-
[
|
|
389
|
-
[
|
|
387
|
+
["activity-arr"]: number;
|
|
388
|
+
["activity-mrr"]: number;
|
|
389
|
+
["activity-mrr-movement"]: number;
|
|
390
390
|
currency: string;
|
|
391
|
-
[
|
|
391
|
+
["currency-sign"]: string;
|
|
392
392
|
description: string;
|
|
393
393
|
type: string;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
function subscriptions(
|
|
396
|
+
function subscriptions(
|
|
397
|
+
config: Config,
|
|
398
|
+
uuid: string,
|
|
399
|
+
params?: CursorParams,
|
|
400
|
+
): Promise<Entries<MetricsSubscription>>;
|
|
397
401
|
function activities(config: Config, uuid: string, params?: CursorParams): Promise<Entries<MetricsActivity>>;
|
|
398
402
|
}
|
|
399
403
|
}
|
chartmogul-node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chartmogul-node",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "TypeScript definitions for chartmogul-node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartmogul-node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {},
|
|
22
22
|
"dependencies": {},
|
|
23
|
-
"typesPublisherContentHash": "
|
|
24
|
-
"typeScriptVersion": "3
|
|
23
|
+
"typesPublisherContentHash": "21155ed9260a6e7714242e19df99958026bcd4e58023d1003ffdf2d3957e678a",
|
|
24
|
+
"typeScriptVersion": "4.3"
|
|
25
25
|
}
|