@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.
- package/bundles/lifeready-core.umd.js +4 -5
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/plan2/plan2.gql.js +7 -38
- package/fesm2015/lifeready-core.js +6 -37
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +5 -0
- package/lib/plan2/plan2.gql.d.ts +13 -10
- package/package.json +1 -1
|
@@ -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
|
}
|
package/lib/plan2/plan2.gql.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { ID,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
64
|
+
plan: {
|
|
65
|
+
id: ID;
|
|
66
|
+
};
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
export declare const ReactivatePlanMutation: import("../_common/ast").TypedDocumentNode<ReactivatePlanMutationResult>;
|