@types/chartmogul-node 2.0.0 → 2.0.2
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/LICENSE +0 -0
- chartmogul-node/README.md +1 -2
- chartmogul-node/common.d.ts +1 -1
- chartmogul-node/index.d.ts +33 -34
- chartmogul-node/package.json +5 -5
chartmogul-node/LICENSE
CHANGED
|
File without changes
|
chartmogul-node/README.md
CHANGED
|
@@ -8,9 +8,8 @@ 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: Tue, 17 Oct 2023 22:10:14 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: none
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [ChartMogul](https://github.com/chartmogul).
|
chartmogul-node/common.d.ts
CHANGED
chartmogul-node/index.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// Project: https://github.com/chartmogul/chartmogul-node
|
|
3
|
-
// Definitions by: ChartMogul <https://github.com/chartmogul>
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
-
|
|
6
|
-
import { Map, Cursor, CursorParams, Strings, Entries, EntriesSummary } from './common';
|
|
1
|
+
import { Cursor, CursorParams, Entries, EntriesSummary, Map, Strings } from "./common";
|
|
7
2
|
|
|
8
3
|
export class Config {
|
|
9
4
|
VERSION: string;
|
|
@@ -51,7 +46,7 @@ export namespace Customer {
|
|
|
51
46
|
name?: string | undefined;
|
|
52
47
|
email?: string | undefined;
|
|
53
48
|
status?: string | undefined;
|
|
54
|
-
[
|
|
49
|
+
["customer-since"]?: string | undefined;
|
|
55
50
|
attributes?: Attributes | undefined;
|
|
56
51
|
address?: {
|
|
57
52
|
address_zip?: string | undefined;
|
|
@@ -61,11 +56,11 @@ export namespace Customer {
|
|
|
61
56
|
} | undefined;
|
|
62
57
|
mrr?: number | undefined;
|
|
63
58
|
arr?: number | undefined;
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
59
|
+
["billing-system-url"]?: string | undefined;
|
|
60
|
+
["chartmogul-url"]?: string | undefined;
|
|
61
|
+
["billing-system-type"]?: string | undefined;
|
|
67
62
|
currency?: string | undefined;
|
|
68
|
-
[
|
|
63
|
+
["currency-sign"]?: string | undefined;
|
|
69
64
|
company?: string | undefined;
|
|
70
65
|
country?: string | undefined;
|
|
71
66
|
state?: string | undefined;
|
|
@@ -208,7 +203,7 @@ export namespace Invoice {
|
|
|
208
203
|
result?: string | undefined;
|
|
209
204
|
type?: string | undefined;
|
|
210
205
|
}
|
|
211
|
-
interface ListInvoicesParams
|
|
206
|
+
interface ListInvoicesParams extends CursorParams {
|
|
212
207
|
data_source_uuid?: string | undefined;
|
|
213
208
|
customer_uuid?: string | undefined;
|
|
214
209
|
external_id?: string | undefined;
|
|
@@ -219,7 +214,7 @@ export namespace Invoice {
|
|
|
219
214
|
}
|
|
220
215
|
|
|
221
216
|
function create(config: Config, uuid: string, data: {
|
|
222
|
-
invoices: Invoice[]
|
|
217
|
+
invoices: Invoice[];
|
|
223
218
|
}): Promise<Invoice>;
|
|
224
219
|
function retrieve(config: Config, uuid: string): Promise<Invoice>;
|
|
225
220
|
function destroy(config: Config, uuid: string): Promise<{}>;
|
|
@@ -298,16 +293,16 @@ export namespace Metrics {
|
|
|
298
293
|
interval?: string | undefined;
|
|
299
294
|
}
|
|
300
295
|
interface ParamsNoInterval {
|
|
301
|
-
[
|
|
302
|
-
[
|
|
296
|
+
["start-date"]: string;
|
|
297
|
+
["end-date"]: string;
|
|
303
298
|
geo?: string | undefined;
|
|
304
299
|
plans?: string | undefined;
|
|
305
300
|
}
|
|
306
301
|
interface All {
|
|
307
302
|
entries: {
|
|
308
303
|
date: string;
|
|
309
|
-
[
|
|
310
|
-
[
|
|
304
|
+
["customer-churn-rate"]: number;
|
|
305
|
+
["mrr-churn-rate"]: number;
|
|
311
306
|
ltv: number;
|
|
312
307
|
customers: number;
|
|
313
308
|
asp: number;
|
|
@@ -320,11 +315,11 @@ export namespace Metrics {
|
|
|
320
315
|
interface MRR {
|
|
321
316
|
date: string;
|
|
322
317
|
mrr: number;
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
318
|
+
["mrr-new-business"]: number;
|
|
319
|
+
["mrr-expansion"]: number;
|
|
320
|
+
["mrr-contraction"]: number;
|
|
321
|
+
["mrr-churn"]: number;
|
|
322
|
+
["mrr-reactivation"]: number;
|
|
328
323
|
}
|
|
329
324
|
interface ARR {
|
|
330
325
|
date: string;
|
|
@@ -344,11 +339,11 @@ export namespace Metrics {
|
|
|
344
339
|
}
|
|
345
340
|
interface CustomerChurnRate {
|
|
346
341
|
date: string;
|
|
347
|
-
[
|
|
342
|
+
["customer-churn-rate"]: number;
|
|
348
343
|
}
|
|
349
344
|
interface MRRChurnRate {
|
|
350
345
|
date: string;
|
|
351
|
-
[
|
|
346
|
+
["mrr-churn-rate"]: number;
|
|
352
347
|
}
|
|
353
348
|
interface LTV {
|
|
354
349
|
date: string;
|
|
@@ -374,26 +369,30 @@ export namespace Metrics {
|
|
|
374
369
|
mrr: number;
|
|
375
370
|
arr: number;
|
|
376
371
|
status: string;
|
|
377
|
-
[
|
|
378
|
-
[
|
|
379
|
-
[
|
|
380
|
-
[
|
|
372
|
+
["billing-cycle"]: string;
|
|
373
|
+
["billing-cycle-count"]: number;
|
|
374
|
+
["start-date"]: string;
|
|
375
|
+
["end-date"]: string;
|
|
381
376
|
currency: string;
|
|
382
|
-
[
|
|
377
|
+
["currency-sign"]: string;
|
|
383
378
|
}
|
|
384
379
|
interface MetricsActivity {
|
|
385
380
|
id: number;
|
|
386
381
|
date: string;
|
|
387
|
-
[
|
|
388
|
-
[
|
|
389
|
-
[
|
|
382
|
+
["activity-arr"]: number;
|
|
383
|
+
["activity-mrr"]: number;
|
|
384
|
+
["activity-mrr-movement"]: number;
|
|
390
385
|
currency: string;
|
|
391
|
-
[
|
|
386
|
+
["currency-sign"]: string;
|
|
392
387
|
description: string;
|
|
393
388
|
type: string;
|
|
394
389
|
}
|
|
395
390
|
|
|
396
|
-
function subscriptions(
|
|
391
|
+
function subscriptions(
|
|
392
|
+
config: Config,
|
|
393
|
+
uuid: string,
|
|
394
|
+
params?: CursorParams,
|
|
395
|
+
): Promise<Entries<MetricsSubscription>>;
|
|
397
396
|
function activities(config: Config, uuid: string, params?: CursorParams): Promise<Entries<MetricsActivity>>;
|
|
398
397
|
}
|
|
399
398
|
}
|
chartmogul-node/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chartmogul-node",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "ChartMogul",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "chartmogul",
|
|
11
|
+
"url": "https://github.com/chartmogul"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"main": "",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {},
|
|
22
22
|
"dependencies": {},
|
|
23
|
-
"typesPublisherContentHash": "
|
|
24
|
-
"typeScriptVersion": "
|
|
23
|
+
"typesPublisherContentHash": "c8fa9a506b23299baf9663c4a1d0dc2fec8e246fb5ebb1f1164b12ef54a91e7c",
|
|
24
|
+
"typeScriptVersion": "4.5"
|
|
25
25
|
}
|