@lifeready/core 1.1.24 → 1.1.26

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.
@@ -666,6 +666,8 @@ export interface PromotionalCodeField {
666
666
  currency?: string;
667
667
  percentOff?: number;
668
668
  name?: string;
669
+ duration?: string;
670
+ durationInMonths?: number;
669
671
  }
670
672
  export interface PeriodField {
671
673
  start?: DateTime;
@@ -677,6 +679,7 @@ export interface IssuedPlanNode extends Node, TimeStamped {
677
679
  currentStates?: IssuedPlanStateNode[];
678
680
  currentPeriod?: PeriodField;
679
681
  currentPriceOption?: PriceOptionField;
682
+ upcomingInvoice?: BillingField;
680
683
  alternativePriceOptions?: PriceOptionField[];
681
684
  }
682
685
  export interface IssuedPlanStateNode extends Node, TimeStamped {
@@ -700,4 +703,6 @@ export interface BillingField {
700
703
  periodEnd?: DateTime;
701
704
  finalisedAt?: DateTime;
702
705
  paidAt?: DateTime;
706
+ paid?: boolean;
707
+ nextPaymentAttempt?: DateTime;
703
708
  }
@@ -1,9 +1,4 @@
1
- import { ID, IssuedPlanNode, IssuedPlanStateNode, PaymentCaptureField, PaymentCardField, PaymentMethodNode, PriceOptionField } from '../api/types';
2
- export declare type PlanFieldsResult = Required<IssuedPlanNode> & {
3
- currentStates: Required<IssuedPlanStateNode>[];
4
- currentPriceOption: Required<PriceOptionField>;
5
- alternativePriceOptions: Required<PriceOptionField>;
6
- };
1
+ import { ID, PaymentCaptureField, PaymentCardField, PaymentMethodNode } from '../api/types';
7
2
  export interface InitiateStripePaymentMethodCaptureMutationResult {
8
3
  initiateStripePaymentMethodCapture: {
9
4
  paymentCapture: Required<PaymentCaptureField>;
@@ -42,25 +37,33 @@ export interface RemoveDefaultPaymentMethodMutationResult {
42
37
  export declare const RemoveDefaultPaymentMethodMutation: import("../_common/ast").TypedDocumentNode<RemoveDefaultPaymentMethodMutationResult>;
43
38
  export interface IssuePlanMutationResult {
44
39
  issuePlan: {
45
- plan: PlanFieldsResult;
40
+ plan: {
41
+ id: ID;
42
+ };
46
43
  };
47
44
  }
48
45
  export declare const IssuePlanMutation: import("../_common/ast").TypedDocumentNode<IssuePlanMutationResult>;
49
46
  export interface CancelPlanMutationResult {
50
47
  cancelPlan: {
51
- plan: PlanFieldsResult;
48
+ plan: {
49
+ id: ID;
50
+ };
52
51
  };
53
52
  }
54
53
  export declare const CancelPlanMutation: import("../_common/ast").TypedDocumentNode<CancelPlanMutationResult>;
55
54
  export interface ChangePriceOptionMutationResult {
56
55
  changePriceOption: {
57
- plan: PlanFieldsResult;
56
+ plan: {
57
+ id: ID;
58
+ };
58
59
  };
59
60
  }
60
61
  export declare const ChangePriceOptionMutation: import("../_common/ast").TypedDocumentNode<ChangePriceOptionMutationResult>;
61
62
  export interface ReactivatePlanMutationResult {
62
63
  reactivatePlan: {
63
- plan: PlanFieldsResult;
64
+ plan: {
65
+ id: ID;
66
+ };
64
67
  };
65
68
  }
66
69
  export declare const ReactivatePlanMutation: import("../_common/ast").TypedDocumentNode<ReactivatePlanMutationResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeready/core",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~10.0.5",
6
6
  "@angular/core": "~10.0.5",