@types/chartmogul-node 1.0.2 → 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 +35 -32
- 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
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
// Type definitions for chartmogul-node
|
|
1
|
+
// Type definitions for chartmogul-node 2.0
|
|
2
2
|
// Project: https://github.com/chartmogul/chartmogul-node
|
|
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;
|
|
10
10
|
API_BASE: string;
|
|
11
11
|
retries: number;
|
|
12
12
|
|
|
13
|
-
constructor(token: string,
|
|
13
|
+
constructor(token: string, base?: string);
|
|
14
14
|
getAccountToken(): string;
|
|
15
|
-
getSecretKey(): string;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export namespace Ping {
|
|
@@ -52,7 +51,7 @@ export namespace Customer {
|
|
|
52
51
|
name?: string | undefined;
|
|
53
52
|
email?: string | undefined;
|
|
54
53
|
status?: string | undefined;
|
|
55
|
-
[
|
|
54
|
+
["customer-since"]?: string | undefined;
|
|
56
55
|
attributes?: Attributes | undefined;
|
|
57
56
|
address?: {
|
|
58
57
|
address_zip?: string | undefined;
|
|
@@ -62,11 +61,11 @@ export namespace Customer {
|
|
|
62
61
|
} | undefined;
|
|
63
62
|
mrr?: number | undefined;
|
|
64
63
|
arr?: number | undefined;
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
64
|
+
["billing-system-url"]?: string | undefined;
|
|
65
|
+
["chartmogul-url"]?: string | undefined;
|
|
66
|
+
["billing-system-type"]?: string | undefined;
|
|
68
67
|
currency?: string | undefined;
|
|
69
|
-
[
|
|
68
|
+
["currency-sign"]?: string | undefined;
|
|
70
69
|
company?: string | undefined;
|
|
71
70
|
country?: string | undefined;
|
|
72
71
|
state?: string | undefined;
|
|
@@ -209,7 +208,7 @@ export namespace Invoice {
|
|
|
209
208
|
result?: string | undefined;
|
|
210
209
|
type?: string | undefined;
|
|
211
210
|
}
|
|
212
|
-
interface ListInvoicesParams
|
|
211
|
+
interface ListInvoicesParams extends CursorParams {
|
|
213
212
|
data_source_uuid?: string | undefined;
|
|
214
213
|
customer_uuid?: string | undefined;
|
|
215
214
|
external_id?: string | undefined;
|
|
@@ -220,7 +219,7 @@ export namespace Invoice {
|
|
|
220
219
|
}
|
|
221
220
|
|
|
222
221
|
function create(config: Config, uuid: string, data: {
|
|
223
|
-
invoices: Invoice[]
|
|
222
|
+
invoices: Invoice[];
|
|
224
223
|
}): Promise<Invoice>;
|
|
225
224
|
function retrieve(config: Config, uuid: string): Promise<Invoice>;
|
|
226
225
|
function destroy(config: Config, uuid: string): Promise<{}>;
|
|
@@ -299,16 +298,16 @@ export namespace Metrics {
|
|
|
299
298
|
interval?: string | undefined;
|
|
300
299
|
}
|
|
301
300
|
interface ParamsNoInterval {
|
|
302
|
-
[
|
|
303
|
-
[
|
|
301
|
+
["start-date"]: string;
|
|
302
|
+
["end-date"]: string;
|
|
304
303
|
geo?: string | undefined;
|
|
305
304
|
plans?: string | undefined;
|
|
306
305
|
}
|
|
307
306
|
interface All {
|
|
308
307
|
entries: {
|
|
309
308
|
date: string;
|
|
310
|
-
[
|
|
311
|
-
[
|
|
309
|
+
["customer-churn-rate"]: number;
|
|
310
|
+
["mrr-churn-rate"]: number;
|
|
312
311
|
ltv: number;
|
|
313
312
|
customers: number;
|
|
314
313
|
asp: number;
|
|
@@ -321,11 +320,11 @@ export namespace Metrics {
|
|
|
321
320
|
interface MRR {
|
|
322
321
|
date: string;
|
|
323
322
|
mrr: number;
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
328
|
-
[
|
|
323
|
+
["mrr-new-business"]: number;
|
|
324
|
+
["mrr-expansion"]: number;
|
|
325
|
+
["mrr-contraction"]: number;
|
|
326
|
+
["mrr-churn"]: number;
|
|
327
|
+
["mrr-reactivation"]: number;
|
|
329
328
|
}
|
|
330
329
|
interface ARR {
|
|
331
330
|
date: string;
|
|
@@ -345,11 +344,11 @@ export namespace Metrics {
|
|
|
345
344
|
}
|
|
346
345
|
interface CustomerChurnRate {
|
|
347
346
|
date: string;
|
|
348
|
-
[
|
|
347
|
+
["customer-churn-rate"]: number;
|
|
349
348
|
}
|
|
350
349
|
interface MRRChurnRate {
|
|
351
350
|
date: string;
|
|
352
|
-
[
|
|
351
|
+
["mrr-churn-rate"]: number;
|
|
353
352
|
}
|
|
354
353
|
interface LTV {
|
|
355
354
|
date: string;
|
|
@@ -375,26 +374,30 @@ export namespace Metrics {
|
|
|
375
374
|
mrr: number;
|
|
376
375
|
arr: number;
|
|
377
376
|
status: string;
|
|
378
|
-
[
|
|
379
|
-
[
|
|
380
|
-
[
|
|
381
|
-
[
|
|
377
|
+
["billing-cycle"]: string;
|
|
378
|
+
["billing-cycle-count"]: number;
|
|
379
|
+
["start-date"]: string;
|
|
380
|
+
["end-date"]: string;
|
|
382
381
|
currency: string;
|
|
383
|
-
[
|
|
382
|
+
["currency-sign"]: string;
|
|
384
383
|
}
|
|
385
384
|
interface MetricsActivity {
|
|
386
385
|
id: number;
|
|
387
386
|
date: string;
|
|
388
|
-
[
|
|
389
|
-
[
|
|
390
|
-
[
|
|
387
|
+
["activity-arr"]: number;
|
|
388
|
+
["activity-mrr"]: number;
|
|
389
|
+
["activity-mrr-movement"]: number;
|
|
391
390
|
currency: string;
|
|
392
|
-
[
|
|
391
|
+
["currency-sign"]: string;
|
|
393
392
|
description: string;
|
|
394
393
|
type: string;
|
|
395
394
|
}
|
|
396
395
|
|
|
397
|
-
function subscriptions(
|
|
396
|
+
function subscriptions(
|
|
397
|
+
config: Config,
|
|
398
|
+
uuid: string,
|
|
399
|
+
params?: CursorParams,
|
|
400
|
+
): Promise<Entries<MetricsSubscription>>;
|
|
398
401
|
function activities(config: Config, uuid: string, params?: CursorParams): Promise<Entries<MetricsActivity>>;
|
|
399
402
|
}
|
|
400
403
|
}
|
chartmogul-node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chartmogul-node",
|
|
3
|
-
"version": "
|
|
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
|
}
|