@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.
- package/bundles/lifeready-core.umd.js +56 -56
- 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/esm2015/lib/profile/profile-details.service.js +3 -2
- package/esm2015/lib/profile/profile.types.js +1 -1
- package/fesm2015/lifeready-core.js +8 -38
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +8 -0
- package/lib/plan2/plan2.gql.d.ts +13 -10
- package/lib/profile/profile.types.d.ts +2 -0
- 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;
|
|
@@ -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
|
}
|
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>;
|
|
@@ -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;
|