@stigg/api-client-js 0.358.0 → 0.359.0
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/package.json +1 -1
- package/src/generated/sdk.d.ts +98 -80
- package/src/generated/sdk.js +589 -594
- package/src/generated/sdk.js.map +1 -1
package/src/generated/sdk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProvisionSubscriptionStatus = exports.ProrationBehavior = exports.PromotionalEntitlementStatus = exports.PromotionalEntitlementSortFields = exports.PromotionalEntitlementPeriod = exports.ProductSortFields = exports.PricingType = exports.PlanSortFields = exports.PaymentMethodType = exports.PackageStatus = exports.PackageEntitlementSortFields = exports.PackageDtoSortFields = exports.MonthlyAccordingTo = exports.MeterType = exports.MemberStatus = exports.MemberSortFields = exports.IntegrationSortFields = exports.ImportIntegrationTaskSortFields = exports.HookStatus = exports.HookSortFields = exports.FontWeight = exports.FeatureType = exports.FeatureStatus = exports.FeatureSortFields = exports.ExperimentStatus = exports.ExperimentSortFields = exports.EventLogType = exports.ErrorCode = exports.EnvironmentSortFields = exports.EnvironmentProvisionStatus = exports.EntitySelectionMode = exports.EntitlementResetPeriod = exports.DiscountType = exports.DiscountDurationType = exports.CustomerSubscriptionSortFields = exports.CustomerSortFields = exports.Currency = exports.CouponType = exports.CouponStatus = exports.CouponSortFields = exports.ChangeType = exports.BillingPeriod = exports.BillingModel = exports.BillingAnchor = exports.ApiKeyType = exports.ApiKeySortFields = exports.Alignment = exports.AddonSortFields = exports.AccountStatus = exports.AccessDeniedReason = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.getSdk = exports.GetEntitlementDocument = exports.GetEntitlementsDocument = exports.GetPaywallDocument = exports.GetCouponsDocument = exports.GetCustomerByIdDocument = exports.ReportUsageDocument = exports.EstimateSubscriptionUpdateDocument = exports.EstimateSubscriptionDocument = exports.InitiateCheckoutDocument = exports.CancelSubscriptionDocument = exports.UpdateSubscriptionDocument = exports.ProvisionSubscriptionDocument = exports.UpdateCustomerDocument = exports.ImportCustomerDocument = void 0;
|
|
4
|
+
exports.PaywallConfigurationFragmentDoc = exports.LayoutConfigurationFragmentDoc = exports.TypographyConfigurationFragmentDoc = exports.FontVariantFragmentDoc = exports.PaywallPlanFragmentDoc = exports.PaywallAddonFragmentDoc = exports.PaywallPackageEntitlementFragmentDoc = exports.EntitlementFragmentDoc = exports.FeatureFragmentDoc = exports.ResetPeriodConfigurationFragmentDoc = exports.WeeklyResetPeriodConfigFragmentDoc = exports.MonthlyResetPeriodConfigFragmentDoc = exports.SubscriptionPreviewFragmentDoc = exports.CustomerFragmentDoc = exports.SubscriptionFragmentDoc = exports.SubscriptionScheduledUpdateDataFragmentDoc = exports.PlanFragmentDoc = exports.AddonFragmentDoc = exports.PackageEntitlementFragmentDoc = exports.PromotionalEntitlementFragmentDoc = exports.CouponFragmentDoc = exports.SlimCustomerFragmentDoc = exports.SlimSubscriptionFragmentDoc = exports.TotalPriceFragmentDoc = exports.PriceFragmentDoc = exports.ExperimentGroupType = exports.WidgetType = exports.WeeklyAccordingTo = exports.VendorIdentifier = exports.UsageMeasurementSortFields = exports.TrialPeriodUnits = exports.TaskType = exports.TaskStatus = exports.SyncStatus = exports.SubscriptionStatus = exports.SubscriptionStartSetup = exports.SubscriptionScheduleType = exports.SubscriptionScheduleStatus = exports.SubscriptionPriceSortFields = exports.SubscriptionMigrationTaskSortFields = exports.SubscriptionEntitlementSortFields = exports.SubscriptionEndSetup = exports.SubscriptionDecisionStrategy = exports.SubscriptionCancellationTime = exports.SubscriptionCancelReason = exports.SubscriptionAddonSortFields = exports.SourceType = exports.SortNulls = exports.SortDirection = exports.PublishMigrationType = void 0;
|
|
5
|
+
exports.getSdk = exports.GetEntitlementDocument = exports.GetEntitlementsDocument = exports.GetPaywallDocument = exports.GetCouponsDocument = exports.GetCustomerByIdDocument = exports.ReportEntitlementCheckRequestedDocument = exports.ReportUsageDocument = exports.EstimateSubscriptionUpdateDocument = exports.EstimateSubscriptionDocument = exports.InitiateCheckoutDocument = exports.CancelSubscriptionDocument = exports.UpdateSubscriptionDocument = exports.ProvisionSubscriptionDocument = exports.UpdateCustomerDocument = exports.ImportCustomerDocument = exports.ProvisionCustomerDocument = void 0;
|
|
6
6
|
const graphql_tag_1 = require("graphql-tag");
|
|
7
7
|
/** DenyReason of get access policy */
|
|
8
8
|
var AccessDeniedReason;
|
|
@@ -828,334 +828,356 @@ var ExperimentGroupType;
|
|
|
828
828
|
ExperimentGroupType["Variant"] = "VARIANT";
|
|
829
829
|
})(ExperimentGroupType = exports.ExperimentGroupType || (exports.ExperimentGroupType = {}));
|
|
830
830
|
exports.PriceFragmentDoc = (0, graphql_tag_1.default) `
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
}
|
|
842
|
-
feature {
|
|
843
|
-
featureUnits
|
|
844
|
-
featureUnitsPlural
|
|
845
|
-
displayName
|
|
846
|
-
}
|
|
831
|
+
fragment PriceFragment on Price {
|
|
832
|
+
billingModel
|
|
833
|
+
billingPeriod
|
|
834
|
+
billingId
|
|
835
|
+
minUnitQuantity
|
|
836
|
+
maxUnitQuantity
|
|
837
|
+
billingCountryCode
|
|
838
|
+
price {
|
|
839
|
+
amount
|
|
840
|
+
currency
|
|
847
841
|
}
|
|
848
|
-
|
|
842
|
+
feature {
|
|
843
|
+
featureUnits
|
|
844
|
+
featureUnitsPlural
|
|
845
|
+
displayName
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
`;
|
|
849
849
|
exports.TotalPriceFragmentDoc = (0, graphql_tag_1.default) `
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
}
|
|
850
|
+
fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
|
|
851
|
+
subTotal {
|
|
852
|
+
amount
|
|
853
|
+
currency
|
|
854
|
+
}
|
|
855
|
+
total {
|
|
856
|
+
amount
|
|
857
|
+
currency
|
|
859
858
|
}
|
|
860
|
-
|
|
859
|
+
}
|
|
860
|
+
`;
|
|
861
861
|
exports.SlimSubscriptionFragmentDoc = (0, graphql_tag_1.default) `
|
|
862
|
-
|
|
862
|
+
fragment SlimSubscriptionFragment on CustomerSubscription {
|
|
863
|
+
id
|
|
864
|
+
refId
|
|
865
|
+
resourceId
|
|
866
|
+
status
|
|
867
|
+
additionalMetaData
|
|
868
|
+
billingId
|
|
869
|
+
billingLinkUrl
|
|
870
|
+
effectiveEndDate
|
|
871
|
+
currentBillingPeriodEnd
|
|
872
|
+
pricingType
|
|
873
|
+
experimentInfo {
|
|
874
|
+
name
|
|
863
875
|
id
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
pricingType
|
|
872
|
-
experimentInfo {
|
|
873
|
-
name
|
|
874
|
-
id
|
|
875
|
-
groupName
|
|
876
|
-
groupType
|
|
877
|
-
}
|
|
878
|
-
prices {
|
|
879
|
-
usageLimit
|
|
880
|
-
price {
|
|
881
|
-
...PriceFragment
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
totalPrice {
|
|
885
|
-
...TotalPriceFragment
|
|
886
|
-
}
|
|
887
|
-
plan {
|
|
888
|
-
id
|
|
889
|
-
refId
|
|
890
|
-
}
|
|
891
|
-
addons {
|
|
892
|
-
quantity
|
|
893
|
-
addon {
|
|
894
|
-
id
|
|
895
|
-
refId
|
|
896
|
-
}
|
|
876
|
+
groupName
|
|
877
|
+
groupType
|
|
878
|
+
}
|
|
879
|
+
prices {
|
|
880
|
+
usageLimit
|
|
881
|
+
price {
|
|
882
|
+
...PriceFragment
|
|
897
883
|
}
|
|
898
|
-
|
|
884
|
+
}
|
|
885
|
+
totalPrice {
|
|
886
|
+
...TotalPriceFragment
|
|
887
|
+
}
|
|
888
|
+
plan {
|
|
889
|
+
id
|
|
890
|
+
refId
|
|
891
|
+
}
|
|
892
|
+
addons {
|
|
893
|
+
quantity
|
|
894
|
+
addon {
|
|
899
895
|
id
|
|
900
896
|
refId
|
|
901
897
|
}
|
|
902
898
|
}
|
|
903
|
-
|
|
904
|
-
${exports.TotalPriceFragmentDoc}
|
|
905
|
-
`;
|
|
906
|
-
exports.CouponFragmentDoc = (0, graphql_tag_1.default) `
|
|
907
|
-
fragment CouponFragment on Coupon {
|
|
899
|
+
customer {
|
|
908
900
|
id
|
|
909
|
-
discountValue
|
|
910
|
-
type
|
|
911
|
-
additionalMetaData
|
|
912
901
|
refId
|
|
913
|
-
name
|
|
914
|
-
description
|
|
915
|
-
createdAt
|
|
916
|
-
updatedAt
|
|
917
|
-
billingId
|
|
918
|
-
billingLinkUrl
|
|
919
|
-
type
|
|
920
|
-
status
|
|
921
|
-
syncStates {
|
|
922
|
-
vendorIdentifier
|
|
923
|
-
status
|
|
924
|
-
}
|
|
925
|
-
customers {
|
|
926
|
-
id
|
|
927
|
-
}
|
|
928
902
|
}
|
|
929
|
-
|
|
930
|
-
exports.
|
|
931
|
-
|
|
903
|
+
}
|
|
904
|
+
${exports.PriceFragmentDoc}
|
|
905
|
+
${exports.TotalPriceFragmentDoc}`;
|
|
906
|
+
exports.SlimCustomerFragmentDoc = (0, graphql_tag_1.default) `
|
|
907
|
+
fragment SlimCustomerFragment on Customer {
|
|
908
|
+
id
|
|
909
|
+
name
|
|
910
|
+
email
|
|
911
|
+
createdAt
|
|
912
|
+
updatedAt
|
|
913
|
+
refId
|
|
914
|
+
billingId
|
|
915
|
+
additionalMetaData
|
|
916
|
+
}
|
|
917
|
+
`;
|
|
918
|
+
exports.CouponFragmentDoc = (0, graphql_tag_1.default) `
|
|
919
|
+
fragment CouponFragment on Coupon {
|
|
920
|
+
id
|
|
921
|
+
discountValue
|
|
922
|
+
type
|
|
923
|
+
additionalMetaData
|
|
924
|
+
refId
|
|
925
|
+
name
|
|
926
|
+
description
|
|
927
|
+
createdAt
|
|
928
|
+
updatedAt
|
|
929
|
+
billingId
|
|
930
|
+
billingLinkUrl
|
|
931
|
+
type
|
|
932
|
+
status
|
|
933
|
+
syncStates {
|
|
934
|
+
vendorIdentifier
|
|
932
935
|
status
|
|
933
|
-
usageLimit
|
|
934
|
-
featureId
|
|
935
|
-
hasUnlimitedUsage
|
|
936
|
-
resetPeriod
|
|
937
|
-
endDate
|
|
938
|
-
isVisible
|
|
939
|
-
feature {
|
|
940
|
-
featureType
|
|
941
|
-
meterType
|
|
942
|
-
featureUnits
|
|
943
|
-
featureUnitsPlural
|
|
944
|
-
displayName
|
|
945
|
-
description
|
|
946
|
-
refId
|
|
947
|
-
additionalMetaData
|
|
948
|
-
}
|
|
949
936
|
}
|
|
950
|
-
|
|
951
|
-
exports.PackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
952
|
-
fragment PackageEntitlementFragment on PackageEntitlement {
|
|
953
|
-
usageLimit
|
|
954
|
-
hasUnlimitedUsage
|
|
955
|
-
featureId
|
|
956
|
-
resetPeriod
|
|
957
|
-
hiddenFromWidgets
|
|
958
|
-
isCustom
|
|
959
|
-
displayNameOverride
|
|
960
|
-
feature {
|
|
961
|
-
featureType
|
|
962
|
-
meterType
|
|
963
|
-
featureUnits
|
|
964
|
-
featureUnitsPlural
|
|
965
|
-
displayName
|
|
966
|
-
description
|
|
967
|
-
refId
|
|
968
|
-
additionalMetaData
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
`;
|
|
972
|
-
exports.AddonFragmentDoc = (0, graphql_tag_1.default) `
|
|
973
|
-
fragment AddonFragment on Addon {
|
|
937
|
+
customers {
|
|
974
938
|
id
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
`;
|
|
942
|
+
exports.PromotionalEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
943
|
+
fragment PromotionalEntitlementFragment on PromotionalEntitlement {
|
|
944
|
+
status
|
|
945
|
+
usageLimit
|
|
946
|
+
featureId
|
|
947
|
+
hasUnlimitedUsage
|
|
948
|
+
resetPeriod
|
|
949
|
+
endDate
|
|
950
|
+
isVisible
|
|
951
|
+
feature {
|
|
952
|
+
featureType
|
|
953
|
+
meterType
|
|
954
|
+
featureUnits
|
|
955
|
+
featureUnitsPlural
|
|
956
|
+
displayName
|
|
957
|
+
description
|
|
975
958
|
refId
|
|
976
|
-
|
|
959
|
+
additionalMetaData
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
`;
|
|
963
|
+
exports.PackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
964
|
+
fragment PackageEntitlementFragment on PackageEntitlement {
|
|
965
|
+
usageLimit
|
|
966
|
+
hasUnlimitedUsage
|
|
967
|
+
featureId
|
|
968
|
+
resetPeriod
|
|
969
|
+
hiddenFromWidgets
|
|
970
|
+
isCustom
|
|
971
|
+
displayNameOverride
|
|
972
|
+
feature {
|
|
973
|
+
featureType
|
|
974
|
+
meterType
|
|
975
|
+
featureUnits
|
|
976
|
+
featureUnitsPlural
|
|
977
977
|
displayName
|
|
978
978
|
description
|
|
979
|
+
refId
|
|
979
980
|
additionalMetaData
|
|
980
|
-
entitlements {
|
|
981
|
-
...PackageEntitlementFragment
|
|
982
|
-
}
|
|
983
|
-
prices {
|
|
984
|
-
...PriceFragment
|
|
985
|
-
}
|
|
986
|
-
pricingType
|
|
987
981
|
}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
982
|
+
}
|
|
983
|
+
`;
|
|
984
|
+
exports.AddonFragmentDoc = (0, graphql_tag_1.default) `
|
|
985
|
+
fragment AddonFragment on Addon {
|
|
986
|
+
id
|
|
987
|
+
refId
|
|
988
|
+
billingId
|
|
989
|
+
displayName
|
|
990
|
+
description
|
|
991
|
+
additionalMetaData
|
|
992
|
+
entitlements {
|
|
993
|
+
...PackageEntitlementFragment
|
|
994
|
+
}
|
|
995
|
+
prices {
|
|
996
|
+
...PriceFragment
|
|
997
|
+
}
|
|
998
|
+
pricingType
|
|
999
|
+
}
|
|
1000
|
+
${exports.PackageEntitlementFragmentDoc}
|
|
1001
|
+
${exports.PriceFragmentDoc}`;
|
|
991
1002
|
exports.PlanFragmentDoc = (0, graphql_tag_1.default) `
|
|
992
|
-
|
|
993
|
-
|
|
1003
|
+
fragment PlanFragment on Plan {
|
|
1004
|
+
id
|
|
1005
|
+
refId
|
|
1006
|
+
displayName
|
|
1007
|
+
description
|
|
1008
|
+
billingId
|
|
1009
|
+
additionalMetaData
|
|
1010
|
+
product {
|
|
994
1011
|
refId
|
|
995
1012
|
displayName
|
|
996
1013
|
description
|
|
997
|
-
billingId
|
|
998
1014
|
additionalMetaData
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
additionalMetaData
|
|
1004
|
-
productSettings {
|
|
1005
|
-
downgradePlan {
|
|
1006
|
-
refId
|
|
1007
|
-
displayName
|
|
1008
|
-
}
|
|
1015
|
+
productSettings {
|
|
1016
|
+
downgradePlan {
|
|
1017
|
+
refId
|
|
1018
|
+
displayName
|
|
1009
1019
|
}
|
|
1010
1020
|
}
|
|
1011
|
-
basePlan {
|
|
1012
|
-
refId
|
|
1013
|
-
displayName
|
|
1014
|
-
}
|
|
1015
|
-
entitlements {
|
|
1016
|
-
...PackageEntitlementFragment
|
|
1017
|
-
}
|
|
1018
|
-
inheritedEntitlements {
|
|
1019
|
-
...PackageEntitlementFragment
|
|
1020
|
-
}
|
|
1021
|
-
compatibleAddons {
|
|
1022
|
-
...AddonFragment
|
|
1023
|
-
}
|
|
1024
|
-
prices {
|
|
1025
|
-
...PriceFragment
|
|
1026
|
-
}
|
|
1027
|
-
pricingType
|
|
1028
|
-
defaultTrialConfig {
|
|
1029
|
-
duration
|
|
1030
|
-
units
|
|
1031
|
-
}
|
|
1032
1021
|
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
`;
|
|
1037
|
-
exports.SubscriptionScheduledUpdateDataFragmentDoc = (0, graphql_tag_1.default) `
|
|
1038
|
-
fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
|
|
1039
|
-
subscriptionScheduleType
|
|
1040
|
-
scheduleStatus
|
|
1041
|
-
scheduledExecutionTime
|
|
1042
|
-
targetPackage {
|
|
1043
|
-
id
|
|
1044
|
-
refId
|
|
1045
|
-
displayName
|
|
1046
|
-
}
|
|
1047
|
-
scheduleVariables {
|
|
1048
|
-
... on DowngradeChangeVariables {
|
|
1049
|
-
addonRefIds
|
|
1050
|
-
billingPeriod
|
|
1051
|
-
downgradePlanRefId
|
|
1052
|
-
}
|
|
1053
|
-
... on BillingPeriodChangeVariables {
|
|
1054
|
-
billingPeriod
|
|
1055
|
-
}
|
|
1056
|
-
... on UnitAmountChangeVariables {
|
|
1057
|
-
newUnitAmount
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1022
|
+
basePlan {
|
|
1023
|
+
refId
|
|
1024
|
+
displayName
|
|
1060
1025
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1026
|
+
entitlements {
|
|
1027
|
+
...PackageEntitlementFragment
|
|
1028
|
+
}
|
|
1029
|
+
inheritedEntitlements {
|
|
1030
|
+
...PackageEntitlementFragment
|
|
1031
|
+
}
|
|
1032
|
+
compatibleAddons {
|
|
1033
|
+
...AddonFragment
|
|
1034
|
+
}
|
|
1035
|
+
prices {
|
|
1036
|
+
...PriceFragment
|
|
1037
|
+
}
|
|
1038
|
+
pricingType
|
|
1039
|
+
defaultTrialConfig {
|
|
1040
|
+
duration
|
|
1041
|
+
units
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
${exports.PackageEntitlementFragmentDoc}
|
|
1045
|
+
${exports.AddonFragmentDoc}
|
|
1046
|
+
${exports.PriceFragmentDoc}`;
|
|
1047
|
+
exports.SubscriptionScheduledUpdateDataFragmentDoc = (0, graphql_tag_1.default) `
|
|
1048
|
+
fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
|
|
1049
|
+
subscriptionScheduleType
|
|
1050
|
+
scheduleStatus
|
|
1051
|
+
scheduledExecutionTime
|
|
1052
|
+
targetPackage {
|
|
1064
1053
|
id
|
|
1065
|
-
startDate
|
|
1066
|
-
endDate
|
|
1067
|
-
trialEndDate
|
|
1068
|
-
cancellationDate
|
|
1069
|
-
effectiveEndDate
|
|
1070
|
-
status
|
|
1071
1054
|
refId
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
groupName
|
|
1080
|
-
id
|
|
1081
|
-
}
|
|
1082
|
-
prices {
|
|
1083
|
-
usageLimit
|
|
1084
|
-
price {
|
|
1085
|
-
...PriceFragment
|
|
1086
|
-
}
|
|
1055
|
+
displayName
|
|
1056
|
+
}
|
|
1057
|
+
scheduleVariables {
|
|
1058
|
+
... on DowngradeChangeVariables {
|
|
1059
|
+
addonRefIds
|
|
1060
|
+
billingPeriod
|
|
1061
|
+
downgradePlanRefId
|
|
1087
1062
|
}
|
|
1088
|
-
|
|
1089
|
-
|
|
1063
|
+
... on BillingPeriodChangeVariables {
|
|
1064
|
+
billingPeriod
|
|
1090
1065
|
}
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
...PlanFragment
|
|
1066
|
+
... on UnitAmountChangeVariables {
|
|
1067
|
+
newUnitAmount
|
|
1094
1068
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
`;
|
|
1072
|
+
exports.SubscriptionFragmentDoc = (0, graphql_tag_1.default) `
|
|
1073
|
+
fragment SubscriptionFragment on CustomerSubscription {
|
|
1074
|
+
id
|
|
1075
|
+
startDate
|
|
1076
|
+
endDate
|
|
1077
|
+
trialEndDate
|
|
1078
|
+
cancellationDate
|
|
1079
|
+
effectiveEndDate
|
|
1080
|
+
status
|
|
1081
|
+
refId
|
|
1082
|
+
resourceId
|
|
1083
|
+
currentBillingPeriodEnd
|
|
1084
|
+
additionalMetaData
|
|
1085
|
+
billingId
|
|
1086
|
+
billingLinkUrl
|
|
1087
|
+
experimentInfo {
|
|
1088
|
+
name
|
|
1089
|
+
groupType
|
|
1090
|
+
groupName
|
|
1091
|
+
id
|
|
1092
|
+
}
|
|
1093
|
+
prices {
|
|
1094
|
+
usageLimit
|
|
1095
|
+
price {
|
|
1096
|
+
...PriceFragment
|
|
1101
1097
|
}
|
|
1102
|
-
|
|
1103
|
-
|
|
1098
|
+
}
|
|
1099
|
+
totalPrice {
|
|
1100
|
+
...TotalPriceFragment
|
|
1101
|
+
}
|
|
1102
|
+
pricingType
|
|
1103
|
+
plan {
|
|
1104
|
+
...PlanFragment
|
|
1105
|
+
}
|
|
1106
|
+
addons {
|
|
1107
|
+
id
|
|
1108
|
+
quantity
|
|
1109
|
+
addon {
|
|
1110
|
+
...AddonFragment
|
|
1104
1111
|
}
|
|
1105
1112
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1113
|
+
scheduledUpdates {
|
|
1114
|
+
...SubscriptionScheduledUpdateData
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
${exports.PriceFragmentDoc}
|
|
1118
|
+
${exports.TotalPriceFragmentDoc}
|
|
1119
|
+
${exports.PlanFragmentDoc}
|
|
1120
|
+
${exports.AddonFragmentDoc}
|
|
1121
|
+
${exports.SubscriptionScheduledUpdateDataFragmentDoc}`;
|
|
1112
1122
|
exports.CustomerFragmentDoc = (0, graphql_tag_1.default) `
|
|
1113
|
-
|
|
1123
|
+
fragment CustomerFragment on Customer {
|
|
1124
|
+
...SlimCustomerFragment
|
|
1125
|
+
hasPaymentMethod
|
|
1126
|
+
defaultPaymentExpirationMonth
|
|
1127
|
+
defaultPaymentExpirationYear
|
|
1128
|
+
defaultPaymentMethodLast4Digits
|
|
1129
|
+
trialedPlans {
|
|
1130
|
+
productId
|
|
1131
|
+
productRefId
|
|
1132
|
+
planRefId
|
|
1133
|
+
planId
|
|
1134
|
+
}
|
|
1135
|
+
experimentInfo {
|
|
1136
|
+
groupType
|
|
1137
|
+
groupName
|
|
1114
1138
|
id
|
|
1115
1139
|
name
|
|
1116
|
-
email
|
|
1117
|
-
createdAt
|
|
1118
|
-
updatedAt
|
|
1119
|
-
hasPaymentMethod
|
|
1120
|
-
refId
|
|
1121
|
-
billingId
|
|
1122
|
-
defaultPaymentExpirationMonth
|
|
1123
|
-
defaultPaymentExpirationYear
|
|
1124
|
-
defaultPaymentMethodLast4Digits
|
|
1125
|
-
additionalMetaData
|
|
1126
|
-
trialedPlans {
|
|
1127
|
-
productId
|
|
1128
|
-
productRefId
|
|
1129
|
-
planRefId
|
|
1130
|
-
planId
|
|
1131
|
-
}
|
|
1132
|
-
experimentInfo {
|
|
1133
|
-
groupType
|
|
1134
|
-
groupName
|
|
1135
|
-
id
|
|
1136
|
-
name
|
|
1137
|
-
}
|
|
1138
|
-
coupon {
|
|
1139
|
-
...CouponFragment
|
|
1140
|
-
}
|
|
1141
|
-
eligibleForTrial {
|
|
1142
|
-
productId
|
|
1143
|
-
productRefId
|
|
1144
|
-
eligible
|
|
1145
|
-
}
|
|
1146
|
-
promotionalEntitlements {
|
|
1147
|
-
...PromotionalEntitlementFragment
|
|
1148
|
-
}
|
|
1149
|
-
subscriptions {
|
|
1150
|
-
...SubscriptionFragment
|
|
1151
|
-
}
|
|
1152
1140
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1141
|
+
coupon {
|
|
1142
|
+
...CouponFragment
|
|
1143
|
+
}
|
|
1144
|
+
eligibleForTrial {
|
|
1145
|
+
productId
|
|
1146
|
+
productRefId
|
|
1147
|
+
eligible
|
|
1148
|
+
}
|
|
1149
|
+
promotionalEntitlements {
|
|
1150
|
+
...PromotionalEntitlementFragment
|
|
1151
|
+
}
|
|
1152
|
+
subscriptions {
|
|
1153
|
+
...SubscriptionFragment
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
${exports.SlimCustomerFragmentDoc}
|
|
1157
|
+
${exports.CouponFragmentDoc}
|
|
1158
|
+
${exports.PromotionalEntitlementFragmentDoc}
|
|
1159
|
+
${exports.SubscriptionFragmentDoc}`;
|
|
1157
1160
|
exports.SubscriptionPreviewFragmentDoc = (0, graphql_tag_1.default) `
|
|
1158
|
-
|
|
1161
|
+
fragment SubscriptionPreviewFragment on SubscriptionPreview {
|
|
1162
|
+
subTotal {
|
|
1163
|
+
amount
|
|
1164
|
+
currency
|
|
1165
|
+
}
|
|
1166
|
+
total {
|
|
1167
|
+
amount
|
|
1168
|
+
currency
|
|
1169
|
+
}
|
|
1170
|
+
billingPeriodRange {
|
|
1171
|
+
start
|
|
1172
|
+
end
|
|
1173
|
+
}
|
|
1174
|
+
discount {
|
|
1175
|
+
type
|
|
1176
|
+
value
|
|
1177
|
+
durationType
|
|
1178
|
+
durationInMonths
|
|
1179
|
+
}
|
|
1180
|
+
subscription {
|
|
1159
1181
|
subTotal {
|
|
1160
1182
|
amount
|
|
1161
1183
|
currency
|
|
@@ -1164,379 +1186,349 @@ exports.SubscriptionPreviewFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
1164
1186
|
amount
|
|
1165
1187
|
currency
|
|
1166
1188
|
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
value
|
|
1174
|
-
durationType
|
|
1175
|
-
durationInMonths
|
|
1189
|
+
}
|
|
1190
|
+
proration {
|
|
1191
|
+
prorationDate
|
|
1192
|
+
credit {
|
|
1193
|
+
amount
|
|
1194
|
+
currency
|
|
1176
1195
|
}
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
currency
|
|
1181
|
-
}
|
|
1182
|
-
total {
|
|
1183
|
-
amount
|
|
1184
|
-
currency
|
|
1185
|
-
}
|
|
1196
|
+
debit {
|
|
1197
|
+
amount
|
|
1198
|
+
currency
|
|
1186
1199
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
amount
|
|
1191
|
-
currency
|
|
1192
|
-
}
|
|
1193
|
-
debit {
|
|
1194
|
-
amount
|
|
1195
|
-
currency
|
|
1196
|
-
}
|
|
1197
|
-
netAmount {
|
|
1198
|
-
amount
|
|
1199
|
-
currency
|
|
1200
|
-
}
|
|
1200
|
+
netAmount {
|
|
1201
|
+
amount
|
|
1202
|
+
currency
|
|
1201
1203
|
}
|
|
1202
1204
|
}
|
|
1203
|
-
|
|
1205
|
+
}
|
|
1206
|
+
`;
|
|
1204
1207
|
exports.MonthlyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) `
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
`;
|
|
1208
|
+
fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
|
|
1209
|
+
monthlyAccordingTo
|
|
1210
|
+
}
|
|
1211
|
+
`;
|
|
1209
1212
|
exports.WeeklyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) `
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
`;
|
|
1213
|
+
fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
|
|
1214
|
+
weeklyAccordingTo
|
|
1215
|
+
}
|
|
1216
|
+
`;
|
|
1214
1217
|
exports.ResetPeriodConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}
|
|
1220
|
-
... on WeeklyResetPeriodConfig {
|
|
1221
|
-
...WeeklyResetPeriodConfigFragment
|
|
1222
|
-
}
|
|
1218
|
+
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
|
1219
|
+
__typename
|
|
1220
|
+
... on MonthlyResetPeriodConfig {
|
|
1221
|
+
...MonthlyResetPeriodConfigFragment
|
|
1223
1222
|
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1223
|
+
... on WeeklyResetPeriodConfig {
|
|
1224
|
+
...WeeklyResetPeriodConfigFragment
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
${exports.MonthlyResetPeriodConfigFragmentDoc}
|
|
1228
|
+
${exports.WeeklyResetPeriodConfigFragmentDoc}`;
|
|
1227
1229
|
exports.FeatureFragmentDoc = (0, graphql_tag_1.default) `
|
|
1228
|
-
|
|
1230
|
+
fragment FeatureFragment on EntitlementFeature {
|
|
1231
|
+
featureType
|
|
1232
|
+
meterType
|
|
1233
|
+
featureUnits
|
|
1234
|
+
featureUnitsPlural
|
|
1235
|
+
description
|
|
1236
|
+
displayName
|
|
1237
|
+
refId
|
|
1238
|
+
}
|
|
1239
|
+
`;
|
|
1240
|
+
exports.EntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
1241
|
+
fragment EntitlementFragment on Entitlement {
|
|
1242
|
+
isGranted
|
|
1243
|
+
accessDeniedReason
|
|
1244
|
+
customerId
|
|
1245
|
+
usageLimit
|
|
1246
|
+
hasUnlimitedUsage
|
|
1247
|
+
currentUsage
|
|
1248
|
+
requestedUsage
|
|
1249
|
+
entitlementUpdatedAt
|
|
1250
|
+
usageUpdatedAt
|
|
1251
|
+
nextResetDate
|
|
1252
|
+
resetPeriod
|
|
1253
|
+
resetPeriodConfiguration {
|
|
1254
|
+
...ResetPeriodConfigurationFragment
|
|
1255
|
+
}
|
|
1256
|
+
feature {
|
|
1257
|
+
...FeatureFragment
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
${exports.ResetPeriodConfigurationFragmentDoc}
|
|
1261
|
+
${exports.FeatureFragmentDoc}`;
|
|
1262
|
+
exports.PaywallPackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
1263
|
+
fragment PaywallPackageEntitlementFragment on PackageEntitlement {
|
|
1264
|
+
usageLimit
|
|
1265
|
+
hasUnlimitedUsage
|
|
1266
|
+
featureId
|
|
1267
|
+
resetPeriod
|
|
1268
|
+
feature {
|
|
1229
1269
|
featureType
|
|
1230
1270
|
meterType
|
|
1231
1271
|
featureUnits
|
|
1232
1272
|
featureUnitsPlural
|
|
1233
|
-
description
|
|
1234
1273
|
displayName
|
|
1274
|
+
description
|
|
1235
1275
|
refId
|
|
1236
1276
|
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
usageUpdatedAt
|
|
1249
|
-
nextResetDate
|
|
1250
|
-
resetPeriod
|
|
1251
|
-
resetPeriodConfiguration {
|
|
1252
|
-
...ResetPeriodConfigurationFragment
|
|
1253
|
-
}
|
|
1254
|
-
feature {
|
|
1255
|
-
...FeatureFragment
|
|
1256
|
-
}
|
|
1277
|
+
}
|
|
1278
|
+
`;
|
|
1279
|
+
exports.PaywallAddonFragmentDoc = (0, graphql_tag_1.default) `
|
|
1280
|
+
fragment PaywallAddonFragment on Addon {
|
|
1281
|
+
id
|
|
1282
|
+
refId
|
|
1283
|
+
billingId
|
|
1284
|
+
displayName
|
|
1285
|
+
description
|
|
1286
|
+
entitlements {
|
|
1287
|
+
...PaywallPackageEntitlementFragment
|
|
1257
1288
|
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
`;
|
|
1261
|
-
exports.PaywallPackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
1262
|
-
fragment PaywallPackageEntitlementFragment on PackageEntitlement {
|
|
1263
|
-
usageLimit
|
|
1264
|
-
hasUnlimitedUsage
|
|
1265
|
-
featureId
|
|
1266
|
-
resetPeriod
|
|
1267
|
-
feature {
|
|
1268
|
-
featureType
|
|
1269
|
-
meterType
|
|
1270
|
-
featureUnits
|
|
1271
|
-
featureUnitsPlural
|
|
1272
|
-
displayName
|
|
1273
|
-
description
|
|
1274
|
-
refId
|
|
1275
|
-
}
|
|
1289
|
+
prices {
|
|
1290
|
+
...PriceFragment
|
|
1276
1291
|
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1292
|
+
additionalMetaData
|
|
1293
|
+
pricingType
|
|
1294
|
+
}
|
|
1295
|
+
${exports.PaywallPackageEntitlementFragmentDoc}
|
|
1296
|
+
${exports.PriceFragmentDoc}`;
|
|
1297
|
+
exports.PaywallPlanFragmentDoc = (0, graphql_tag_1.default) `
|
|
1298
|
+
fragment PaywallPlanFragment on Plan {
|
|
1299
|
+
id
|
|
1300
|
+
refId
|
|
1301
|
+
description
|
|
1302
|
+
displayName
|
|
1303
|
+
billingId
|
|
1304
|
+
product {
|
|
1281
1305
|
refId
|
|
1282
|
-
billingId
|
|
1283
1306
|
displayName
|
|
1284
1307
|
description
|
|
1285
|
-
entitlements {
|
|
1286
|
-
...PaywallPackageEntitlementFragment
|
|
1287
|
-
}
|
|
1288
|
-
prices {
|
|
1289
|
-
...PriceFragment
|
|
1290
|
-
}
|
|
1291
1308
|
additionalMetaData
|
|
1292
|
-
|
|
1309
|
+
productSettings {
|
|
1310
|
+
downgradePlan {
|
|
1311
|
+
refId
|
|
1312
|
+
displayName
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1293
1315
|
}
|
|
1294
|
-
|
|
1295
|
-
${exports.PriceFragmentDoc}
|
|
1296
|
-
`;
|
|
1297
|
-
exports.PaywallPlanFragmentDoc = (0, graphql_tag_1.default) `
|
|
1298
|
-
fragment PaywallPlanFragment on Plan {
|
|
1299
|
-
id
|
|
1316
|
+
basePlan {
|
|
1300
1317
|
refId
|
|
1301
|
-
description
|
|
1302
1318
|
displayName
|
|
1303
|
-
billingId
|
|
1304
|
-
product {
|
|
1305
|
-
refId
|
|
1306
|
-
displayName
|
|
1307
|
-
description
|
|
1308
|
-
additionalMetaData
|
|
1309
|
-
productSettings {
|
|
1310
|
-
downgradePlan {
|
|
1311
|
-
refId
|
|
1312
|
-
displayName
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
basePlan {
|
|
1317
|
-
refId
|
|
1318
|
-
displayName
|
|
1319
|
-
}
|
|
1320
|
-
entitlements {
|
|
1321
|
-
...PaywallPackageEntitlementFragment
|
|
1322
|
-
}
|
|
1323
|
-
additionalMetaData
|
|
1324
|
-
inheritedEntitlements {
|
|
1325
|
-
...PaywallPackageEntitlementFragment
|
|
1326
|
-
}
|
|
1327
|
-
prices {
|
|
1328
|
-
...PriceFragment
|
|
1329
|
-
}
|
|
1330
|
-
pricingType
|
|
1331
|
-
defaultTrialConfig {
|
|
1332
|
-
duration
|
|
1333
|
-
units
|
|
1334
|
-
}
|
|
1335
|
-
compatibleAddons {
|
|
1336
|
-
...PaywallAddonFragment
|
|
1337
|
-
}
|
|
1338
1319
|
}
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
fontSize
|
|
1346
|
-
fontWeight
|
|
1320
|
+
entitlements {
|
|
1321
|
+
...PaywallPackageEntitlementFragment
|
|
1322
|
+
}
|
|
1323
|
+
additionalMetaData
|
|
1324
|
+
inheritedEntitlements {
|
|
1325
|
+
...PaywallPackageEntitlementFragment
|
|
1347
1326
|
}
|
|
1348
|
-
|
|
1327
|
+
prices {
|
|
1328
|
+
...PriceFragment
|
|
1329
|
+
}
|
|
1330
|
+
pricingType
|
|
1331
|
+
defaultTrialConfig {
|
|
1332
|
+
duration
|
|
1333
|
+
units
|
|
1334
|
+
}
|
|
1335
|
+
compatibleAddons {
|
|
1336
|
+
...PaywallAddonFragment
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
${exports.PaywallPackageEntitlementFragmentDoc}
|
|
1340
|
+
${exports.PriceFragmentDoc}
|
|
1341
|
+
${exports.PaywallAddonFragmentDoc}`;
|
|
1342
|
+
exports.FontVariantFragmentDoc = (0, graphql_tag_1.default) `
|
|
1343
|
+
fragment FontVariantFragment on FontVariant {
|
|
1344
|
+
fontSize
|
|
1345
|
+
fontWeight
|
|
1346
|
+
}
|
|
1347
|
+
`;
|
|
1349
1348
|
exports.TypographyConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
}
|
|
1355
|
-
h2 {
|
|
1356
|
-
...FontVariantFragment
|
|
1357
|
-
}
|
|
1358
|
-
h3 {
|
|
1359
|
-
...FontVariantFragment
|
|
1360
|
-
}
|
|
1361
|
-
body {
|
|
1362
|
-
...FontVariantFragment
|
|
1363
|
-
}
|
|
1349
|
+
fragment TypographyConfigurationFragment on TypographyConfiguration {
|
|
1350
|
+
fontFamily
|
|
1351
|
+
h1 {
|
|
1352
|
+
...FontVariantFragment
|
|
1364
1353
|
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1354
|
+
h2 {
|
|
1355
|
+
...FontVariantFragment
|
|
1356
|
+
}
|
|
1357
|
+
h3 {
|
|
1358
|
+
...FontVariantFragment
|
|
1359
|
+
}
|
|
1360
|
+
body {
|
|
1361
|
+
...FontVariantFragment
|
|
1373
1362
|
}
|
|
1374
|
-
|
|
1363
|
+
}
|
|
1364
|
+
${exports.FontVariantFragmentDoc}`;
|
|
1365
|
+
exports.LayoutConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1366
|
+
fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {
|
|
1367
|
+
alignment
|
|
1368
|
+
planWidth
|
|
1369
|
+
planMargin
|
|
1370
|
+
planPadding
|
|
1371
|
+
}
|
|
1372
|
+
`;
|
|
1375
1373
|
exports.PaywallConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
}
|
|
1387
|
-
layout {
|
|
1388
|
-
...LayoutConfigurationFragment
|
|
1389
|
-
}
|
|
1374
|
+
fragment PaywallConfigurationFragment on PaywallConfiguration {
|
|
1375
|
+
palette {
|
|
1376
|
+
primary
|
|
1377
|
+
textColor
|
|
1378
|
+
backgroundColor
|
|
1379
|
+
borderColor
|
|
1380
|
+
currentPlanBackground
|
|
1381
|
+
}
|
|
1382
|
+
typography {
|
|
1383
|
+
...TypographyConfigurationFragment
|
|
1390
1384
|
}
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1385
|
+
layout {
|
|
1386
|
+
...LayoutConfigurationFragment
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
${exports.TypographyConfigurationFragmentDoc}
|
|
1390
|
+
${exports.LayoutConfigurationFragmentDoc}`;
|
|
1394
1391
|
exports.ProvisionCustomerDocument = (0, graphql_tag_1.default) `
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
}
|
|
1392
|
+
mutation provisionCustomer($input: ProvisionCustomerInput!) {
|
|
1393
|
+
provisionCustomer(input: $input) {
|
|
1394
|
+
customer {
|
|
1395
|
+
...SlimCustomerFragment
|
|
1396
|
+
}
|
|
1397
|
+
subscriptionDecisionStrategy
|
|
1398
|
+
subscription {
|
|
1399
|
+
...SlimSubscriptionFragment
|
|
1404
1400
|
}
|
|
1405
1401
|
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
`;
|
|
1402
|
+
}
|
|
1403
|
+
${exports.SlimCustomerFragmentDoc}
|
|
1404
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1409
1405
|
exports.ImportCustomerDocument = (0, graphql_tag_1.default) `
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1406
|
+
mutation importCustomer($input: ImportCustomerInput!) {
|
|
1407
|
+
importCustomer: importOneCustomer(input: $input) {
|
|
1408
|
+
...CustomerFragment
|
|
1414
1409
|
}
|
|
1415
|
-
|
|
1416
|
-
`;
|
|
1410
|
+
}
|
|
1411
|
+
${exports.CustomerFragmentDoc}`;
|
|
1417
1412
|
exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
}
|
|
1413
|
+
mutation updateCustomer($input: UpdateCustomerInput!) {
|
|
1414
|
+
updateCustomer: updateOneCustomer(input: $input) {
|
|
1415
|
+
...CustomerFragment
|
|
1422
1416
|
}
|
|
1423
|
-
|
|
1424
|
-
`;
|
|
1417
|
+
}
|
|
1418
|
+
${exports.CustomerFragmentDoc}`;
|
|
1425
1419
|
exports.ProvisionSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1420
|
+
mutation provisionSubscription($input: ProvisionSubscriptionInput!) {
|
|
1421
|
+
provisionSubscription: provisionSubscriptionV2(input: $input) {
|
|
1422
|
+
checkoutUrl
|
|
1423
|
+
status
|
|
1424
|
+
subscription {
|
|
1425
|
+
...SlimSubscriptionFragment
|
|
1433
1426
|
}
|
|
1434
1427
|
}
|
|
1435
|
-
|
|
1436
|
-
`;
|
|
1428
|
+
}
|
|
1429
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1437
1430
|
exports.UpdateSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
}
|
|
1431
|
+
mutation updateSubscription($input: UpdateSubscriptionInput!) {
|
|
1432
|
+
updateSubscription: updateOneSubscription(input: $input) {
|
|
1433
|
+
...SlimSubscriptionFragment
|
|
1442
1434
|
}
|
|
1443
|
-
|
|
1444
|
-
`;
|
|
1435
|
+
}
|
|
1436
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1445
1437
|
exports.CancelSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1438
|
+
mutation cancelSubscription($input: SubscriptionCancellationInput!) {
|
|
1439
|
+
cancelSubscription(input: $input) {
|
|
1440
|
+
...SlimSubscriptionFragment
|
|
1450
1441
|
}
|
|
1451
|
-
|
|
1452
|
-
`;
|
|
1442
|
+
}
|
|
1443
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1453
1444
|
exports.InitiateCheckoutDocument = (0, graphql_tag_1.default) `
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1445
|
+
mutation initiateCheckout($input: InitiateCheckoutInput!) {
|
|
1446
|
+
initiateCheckout(input: $input) {
|
|
1447
|
+
checkoutUrl
|
|
1448
|
+
checkoutBillingId
|
|
1459
1449
|
}
|
|
1460
|
-
|
|
1450
|
+
}
|
|
1451
|
+
`;
|
|
1461
1452
|
exports.EstimateSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
}
|
|
1453
|
+
mutation estimateSubscription($input: EstimateSubscriptionInput!) {
|
|
1454
|
+
estimateSubscription(input: $input) {
|
|
1455
|
+
...SubscriptionPreviewFragment
|
|
1466
1456
|
}
|
|
1467
|
-
|
|
1468
|
-
`;
|
|
1457
|
+
}
|
|
1458
|
+
${exports.SubscriptionPreviewFragmentDoc}`;
|
|
1469
1459
|
exports.EstimateSubscriptionUpdateDocument = (0, graphql_tag_1.default) `
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
estimateSubscriptionUpdate(input: $input) {
|
|
1474
|
-
...SubscriptionPreviewFragment
|
|
1475
|
-
}
|
|
1460
|
+
mutation estimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {
|
|
1461
|
+
estimateSubscriptionUpdate(input: $input) {
|
|
1462
|
+
...SubscriptionPreviewFragment
|
|
1476
1463
|
}
|
|
1477
|
-
|
|
1478
|
-
`;
|
|
1464
|
+
}
|
|
1465
|
+
${exports.SubscriptionPreviewFragmentDoc}`;
|
|
1479
1466
|
exports.ReportUsageDocument = (0, graphql_tag_1.default) `
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1467
|
+
mutation reportUsage($input: UsageMeasurementCreateInput!) {
|
|
1468
|
+
createUsageMeasurement(usageMeasurement: $input) {
|
|
1469
|
+
id
|
|
1470
|
+
currentUsage
|
|
1471
|
+
nextResetDate
|
|
1472
|
+
timestamp
|
|
1484
1473
|
}
|
|
1485
|
-
|
|
1474
|
+
}
|
|
1475
|
+
`;
|
|
1476
|
+
exports.ReportEntitlementCheckRequestedDocument = (0, graphql_tag_1.default) `
|
|
1477
|
+
mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {
|
|
1478
|
+
reportEntitlementCheckRequested(
|
|
1479
|
+
entitlementCheckRequested: $entitlementCheckRequested
|
|
1480
|
+
)
|
|
1481
|
+
}
|
|
1482
|
+
`;
|
|
1486
1483
|
exports.GetCustomerByIdDocument = (0, graphql_tag_1.default) `
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1484
|
+
query getCustomerById($input: GetCustomerByRefIdInput!) {
|
|
1485
|
+
getCustomerByRefId(input: $input) {
|
|
1486
|
+
...CustomerFragment
|
|
1491
1487
|
}
|
|
1492
|
-
|
|
1493
|
-
`;
|
|
1488
|
+
}
|
|
1489
|
+
${exports.CustomerFragmentDoc}`;
|
|
1494
1490
|
exports.GetCouponsDocument = (0, graphql_tag_1.default) `
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1491
|
+
query getCoupons {
|
|
1492
|
+
coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 50}) {
|
|
1493
|
+
edges {
|
|
1494
|
+
node {
|
|
1495
|
+
...CouponFragment
|
|
1501
1496
|
}
|
|
1502
1497
|
}
|
|
1503
1498
|
}
|
|
1504
|
-
|
|
1505
|
-
`;
|
|
1499
|
+
}
|
|
1500
|
+
${exports.CouponFragmentDoc}`;
|
|
1506
1501
|
exports.GetPaywallDocument = (0, graphql_tag_1.default) `
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
}
|
|
1502
|
+
query getPaywall($input: GetPaywallInput!) {
|
|
1503
|
+
paywall(input: $input) {
|
|
1504
|
+
plans {
|
|
1505
|
+
...PlanFragment
|
|
1506
|
+
}
|
|
1507
|
+
configuration {
|
|
1508
|
+
...PaywallConfigurationFragment
|
|
1509
|
+
}
|
|
1510
|
+
customer {
|
|
1511
|
+
...CustomerFragment
|
|
1518
1512
|
}
|
|
1519
1513
|
}
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
`;
|
|
1514
|
+
}
|
|
1515
|
+
${exports.PlanFragmentDoc}
|
|
1516
|
+
${exports.PaywallConfigurationFragmentDoc}
|
|
1517
|
+
${exports.CustomerFragmentDoc}`;
|
|
1524
1518
|
exports.GetEntitlementsDocument = (0, graphql_tag_1.default) `
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
}
|
|
1519
|
+
query getEntitlements($query: FetchEntitlementsQuery!) {
|
|
1520
|
+
entitlements: cachedEntitlements(query: $query) {
|
|
1521
|
+
...EntitlementFragment
|
|
1529
1522
|
}
|
|
1530
|
-
|
|
1531
|
-
`;
|
|
1523
|
+
}
|
|
1524
|
+
${exports.EntitlementFragmentDoc}`;
|
|
1532
1525
|
exports.GetEntitlementDocument = (0, graphql_tag_1.default) `
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}
|
|
1526
|
+
query getEntitlement($query: FetchEntitlementQuery!) {
|
|
1527
|
+
entitlement(query: $query) {
|
|
1528
|
+
...EntitlementFragment
|
|
1537
1529
|
}
|
|
1538
|
-
|
|
1539
|
-
`;
|
|
1530
|
+
}
|
|
1531
|
+
${exports.EntitlementFragmentDoc}`;
|
|
1540
1532
|
const defaultWrapper = (action, _operationName, _operationType) => action();
|
|
1541
1533
|
function getSdk(client, withWrapper = defaultWrapper) {
|
|
1542
1534
|
return {
|
|
@@ -1570,6 +1562,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1570
1562
|
reportUsage(variables, requestHeaders) {
|
|
1571
1563
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.ReportUsageDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'reportUsage', 'mutation');
|
|
1572
1564
|
},
|
|
1565
|
+
reportEntitlementCheckRequested(variables, requestHeaders) {
|
|
1566
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.ReportEntitlementCheckRequestedDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'reportEntitlementCheckRequested', 'mutation');
|
|
1567
|
+
},
|
|
1573
1568
|
getCustomerById(variables, requestHeaders) {
|
|
1574
1569
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetCustomerByIdDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCustomerById', 'query');
|
|
1575
1570
|
},
|
|
@@ -1584,7 +1579,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1584
1579
|
},
|
|
1585
1580
|
getEntitlement(variables, requestHeaders) {
|
|
1586
1581
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetEntitlementDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEntitlement', 'query');
|
|
1587
|
-
}
|
|
1582
|
+
}
|
|
1588
1583
|
};
|
|
1589
1584
|
}
|
|
1590
1585
|
exports.getSdk = getSdk;
|