@shipstatic/types 0.1.5 → 0.1.7

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/dist/index.d.ts CHANGED
@@ -48,6 +48,8 @@ export interface Alias {
48
48
  createdAt: number;
49
49
  /** Unix timestamp (seconds) when alias was confirmed */
50
50
  confirmedAt?: number;
51
+ /** Whether this was a create operation (true) or update operation (false). Optional - only present in set operations */
52
+ isCreate?: boolean;
51
53
  }
52
54
  /**
53
55
  * Response for listing aliases
@@ -81,11 +83,11 @@ export interface Account {
81
83
  name: string;
82
84
  /** User profile picture URL */
83
85
  picture?: string;
84
- /** Account subscription status */
85
- subscription: 'free' | 'active' | 'suspended';
86
+ /** Account plan status */
87
+ plan: 'free' | 'active' | 'suspended';
86
88
  /** Unix timestamp (seconds) when account was created */
87
89
  createdAt: number;
88
- /** Unix timestamp (seconds) when subscription started */
90
+ /** Unix timestamp (seconds) when plan started */
89
91
  subscribedAt?: number;
90
92
  /** Unix timestamp (seconds) when account was suspended */
91
93
  suspendedAt?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -60,6 +60,8 @@ export interface Alias {
60
60
  createdAt: number;
61
61
  /** Unix timestamp (seconds) when alias was confirmed */
62
62
  confirmedAt?: number;
63
+ /** Whether this was a create operation (true) or update operation (false). Optional - only present in set operations */
64
+ isCreate?: boolean;
63
65
  }
64
66
 
65
67
  /**
@@ -100,11 +102,11 @@ export interface Account {
100
102
  name: string;
101
103
  /** User profile picture URL */
102
104
  picture?: string;
103
- /** Account subscription status */
104
- subscription: 'free' | 'active' | 'suspended';
105
+ /** Account plan status */
106
+ plan: 'free' | 'active' | 'suspended';
105
107
  /** Unix timestamp (seconds) when account was created */
106
108
  createdAt: number;
107
- /** Unix timestamp (seconds) when subscription started */
109
+ /** Unix timestamp (seconds) when plan started */
108
110
  subscribedAt?: number;
109
111
  /** Unix timestamp (seconds) when account was suspended */
110
112
  suspendedAt?: number;