commet 0.8.1 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +11 -10
  2. package/dist/index.js +477 -277
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <p>CLI for Commet billing platform</p>
9
9
 
10
10
  <a href="https://www.npmjs.com/package/commet"><img alt="NPM version" src="https://img.shields.io/npm/v/commet.svg?style=for-the-badge&labelColor=000000"></a>
11
- <a href="https://docs.commet.co/docs/library/cli/overview"><img alt="Documentation" src="https://img.shields.io/badge/docs-CLI-blue.svg?style=for-the-badge&labelColor=000000"></a>
11
+ <a href="https://commet.co/docs/library/cli/overview"><img alt="Documentation" src="https://img.shields.io/badge/docs-CLI-blue.svg?style=for-the-badge&labelColor=000000"></a>
12
12
  </div>
13
13
 
14
14
  <br/>
@@ -42,14 +42,14 @@ import { Commet } from '@commet/node';
42
42
 
43
43
  const commet = new Commet({ apiKey: '...' });
44
44
 
45
- await commet.usage.create({
46
- eventType: 'api_call', // Autocomplete works!
47
- customerId: 'cus_123'
45
+ await commet.usage.track({
46
+ feature: 'api_calls', // Autocomplete works!
47
+ externalId: 'user_123'
48
48
  });
49
49
 
50
50
  await commet.subscriptions.create({
51
- productId: 'prod_xxx', // Autocomplete with your products!
52
- customerId: 'cus_123'
51
+ planCode: 'pro', // Autocomplete with your plans!
52
+ externalId: 'user_123'
53
53
  });
54
54
  ```
55
55
 
@@ -61,13 +61,14 @@ commet logout # Remove credentials
61
61
  commet link # Link project to organization
62
62
  commet pull # Generate TypeScript types
63
63
  commet info # Show project status
64
- commet list events # List event types
64
+ commet list features # List features
65
65
  commet list seats # List seat types
66
+ commet list plans # List plans
66
67
  ```
67
68
 
68
69
  ## Documentation
69
70
 
70
- Visit [docs.commet.co/cli](https://docs.commet.co/cli) for:
71
+ Visit [commet.co/docs/library/cli/overview](https://commet.co/docs/library/cli/overview) for:
71
72
 
72
73
  - Complete command reference
73
74
  - Configuration guide
@@ -76,8 +77,8 @@ Visit [docs.commet.co/cli](https://docs.commet.co/cli) for:
76
77
 
77
78
  ## Resources
78
79
 
79
- - [CLI Documentation](https://docs.commet.co/docs/library/cli/overview)
80
- - [SDK Reference](https://docs.commet.co/docs/library/quickstart)
80
+ - [CLI Documentation](https://commet.co/docs/library/cli/overview)
81
+ - [SDK Reference](https://commet.co/docs/library/quickstart)
81
82
  - [GitHub](https://github.com/commet-labs/commet)
82
83
  - [Issues](https://github.com/commet-labs/commet/issues)
83
84