@quesmed/types-rn 2.6.118 → 2.6.119

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.
@@ -13,8 +13,9 @@ export declare enum ECancelReasons {
13
13
  UNUSED = "unused"
14
14
  }
15
15
  export declare enum ESubSource {
16
- STRIPE = 0,
17
- REVENUE_CAT = 1
16
+ ALL = 0,
17
+ STRIPE = 1,
18
+ REVENUE_CAT = 2
18
19
  }
19
20
  export interface ISubscription {
20
21
  id: Id;
@@ -15,6 +15,7 @@ var ECancelReasons;
15
15
  })(ECancelReasons = exports.ECancelReasons || (exports.ECancelReasons = {}));
16
16
  var ESubSource;
17
17
  (function (ESubSource) {
18
- ESubSource[ESubSource["STRIPE"] = 0] = "STRIPE";
19
- ESubSource[ESubSource["REVENUE_CAT"] = 1] = "REVENUE_CAT";
18
+ ESubSource[ESubSource["ALL"] = 0] = "ALL";
19
+ ESubSource[ESubSource["STRIPE"] = 1] = "STRIPE";
20
+ ESubSource[ESubSource["REVENUE_CAT"] = 2] = "REVENUE_CAT";
20
21
  })(ESubSource = exports.ESubSource || (exports.ESubSource = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.118",
3
+ "version": "2.6.119",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,4 +1,4 @@
1
- import { EProductDuration, EProductType, IEntitlement, IProductFeedback, IUser } from '../../../models';
1
+ import { EProductDuration, EProductType, ESubSource, IEntitlement, IProductFeedback, IUser } from '../../../models';
2
2
  import { AdminData } from '../../types';
3
3
  export declare const IMPORT_STATS: import("@apollo/client").DocumentNode;
4
4
  export interface IImportStats {
@@ -34,6 +34,7 @@ export type IEarningsVar = {
34
34
  to: Date | number | null;
35
35
  force: boolean;
36
36
  subType: ESubType;
37
+ source: ESubSource;
37
38
  };
38
39
  export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
39
40
  export declare const USER_STATUS: import("@apollo/client").DocumentNode;
@@ -22,6 +22,7 @@ exports.EARNINGS = (0, client_1.gql) `
22
22
  $from: Date
23
23
  $to: Date
24
24
  $force: Boolean!
25
+ $source: Int
25
26
  ) {
26
27
  admin {
27
28
  earnings(
@@ -30,6 +31,7 @@ exports.EARNINGS = (0, client_1.gql) `
30
31
  from: $from
31
32
  to: $to
32
33
  force: $force
34
+ source: $source
33
35
  ) {
34
36
  entitlement {
35
37
  id