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