@quesmed/types-rn 2.6.117 → 2.6.118

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.
@@ -0,0 +1,20 @@
1
+ import { ISubscription } from './Subscription';
2
+ export interface IInvoice {
3
+ id: string;
4
+ amount_due: number;
5
+ amount_paid: number;
6
+ amount_remaining: number;
7
+ status: string;
8
+ subscriptionId: string;
9
+ billing_reason?: string;
10
+ collection_method?: string;
11
+ total?: number;
12
+ tax?: number;
13
+ total_excluding_tax?: number;
14
+ payment_intent?: string;
15
+ metadata?: Record<string, any>;
16
+ createdAt: number | Date;
17
+ updatedAt: number | Date;
18
+ renewed: boolean;
19
+ subscription?: ISubscription;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ import { IInvoice } from './Invoice';
1
2
  import { IProduct } from './Product';
2
3
  import { Id } from './Type';
3
4
  import { IClassYear, IUser } from './User';
@@ -33,4 +34,5 @@ export interface ISubscription {
33
34
  invoiced: number;
34
35
  feedback: ECancelReasons | null;
35
36
  comment: string;
37
+ invoices?: IInvoice[];
36
38
  }
package/models/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './Difficulty';
10
10
  export * from './Feedback';
11
11
  export * from './File';
12
12
  export * from './Highlight';
13
+ export * from './Invoice';
13
14
  export * from './Marksheet';
14
15
  export * from './MockTest';
15
16
  export * from './Note';
package/models/index.js CHANGED
@@ -26,6 +26,7 @@ __exportStar(require("./Difficulty"), exports);
26
26
  __exportStar(require("./Feedback"), exports);
27
27
  __exportStar(require("./File"), exports);
28
28
  __exportStar(require("./Highlight"), exports);
29
+ __exportStar(require("./Invoice"), exports);
29
30
  __exportStar(require("./Marksheet"), exports);
30
31
  __exportStar(require("./MockTest"), exports);
31
32
  __exportStar(require("./Note"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.117",
3
+ "version": "2.6.118",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -19,8 +19,9 @@ export interface IRevenue {
19
19
  entitlement: IEntitlement;
20
20
  duration: number;
21
21
  name: string;
22
- count: number;
23
- total: number;
22
+ subscriptionCount: number;
23
+ totalEarning: number;
24
+ invoiceCount: number;
24
25
  }
25
26
  export declare enum ESubType {
26
27
  ALL = 0,
@@ -37,8 +37,9 @@ exports.EARNINGS = (0, client_1.gql) `
37
37
  }
38
38
  duration
39
39
  name
40
- count
41
- total
40
+ subscriptionCount
41
+ totalEarning
42
+ invoiceCount
42
43
  }
43
44
  }
44
45
  }