@lifeready/core 1.1.23 → 1.1.25

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;
@@ -696,4 +698,10 @@ export interface BillingField {
696
698
  currency?: string;
697
699
  documentUrl?: string;
698
700
  status?: string;
701
+ periodStart?: DateTime;
702
+ periodEnd?: DateTime;
703
+ finalisedAt?: DateTime;
704
+ paidAt?: DateTime;
705
+ paid?: boolean;
706
+ nextPaymentAttempt?: DateTime;
699
707
  }
@@ -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>;
@@ -41,10 +41,12 @@ export declare class ContactCardName {
41
41
  export declare class ContactCardAddress {
42
42
  fullAddress: string;
43
43
  streetAddress: string;
44
+ streetAddress2?: string;
44
45
  suburb: string;
45
46
  state: string;
46
47
  postcode: string;
47
48
  country: string;
49
+ countryCode?: string;
48
50
  }
49
51
  export declare class MainContactCardProperty<T> {
50
52
  value: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeready/core",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~10.0.5",
6
6
  "@angular/core": "~10.0.5",