@stigg/api-client-js 0.357.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.
@@ -1,13 +1,14 @@
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.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;
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;
9
9
  (function (AccessDeniedReason) {
10
10
  AccessDeniedReason["CustomerNotFound"] = "CustomerNotFound";
11
+ AccessDeniedReason["CustomerResourceNotFound"] = "CustomerResourceNotFound";
11
12
  AccessDeniedReason["FeatureNotFound"] = "FeatureNotFound";
12
13
  AccessDeniedReason["NoActiveSubscription"] = "NoActiveSubscription";
13
14
  AccessDeniedReason["NoFeatureEntitlementInSubscription"] = "NoFeatureEntitlementInSubscription";
@@ -827,334 +828,356 @@ var ExperimentGroupType;
827
828
  ExperimentGroupType["Variant"] = "VARIANT";
828
829
  })(ExperimentGroupType = exports.ExperimentGroupType || (exports.ExperimentGroupType = {}));
829
830
  exports.PriceFragmentDoc = (0, graphql_tag_1.default) `
830
- fragment PriceFragment on Price {
831
- billingModel
832
- billingPeriod
833
- billingId
834
- minUnitQuantity
835
- maxUnitQuantity
836
- billingCountryCode
837
- price {
838
- amount
839
- currency
840
- }
841
- feature {
842
- featureUnits
843
- featureUnitsPlural
844
- displayName
845
- }
831
+ fragment PriceFragment on Price {
832
+ billingModel
833
+ billingPeriod
834
+ billingId
835
+ minUnitQuantity
836
+ maxUnitQuantity
837
+ billingCountryCode
838
+ price {
839
+ amount
840
+ currency
846
841
  }
847
- `;
842
+ feature {
843
+ featureUnits
844
+ featureUnitsPlural
845
+ displayName
846
+ }
847
+ }
848
+ `;
848
849
  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
- }
850
+ fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
851
+ subTotal {
852
+ amount
853
+ currency
854
+ }
855
+ total {
856
+ amount
857
+ currency
858
858
  }
859
- `;
859
+ }
860
+ `;
860
861
  exports.SlimSubscriptionFragmentDoc = (0, graphql_tag_1.default) `
861
- fragment SlimSubscriptionFragment on CustomerSubscription {
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
862
875
  id
863
- refId
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
- }
876
+ groupName
877
+ groupType
878
+ }
879
+ prices {
880
+ usageLimit
881
+ price {
882
+ ...PriceFragment
896
883
  }
897
- customer {
884
+ }
885
+ totalPrice {
886
+ ...TotalPriceFragment
887
+ }
888
+ plan {
889
+ id
890
+ refId
891
+ }
892
+ addons {
893
+ quantity
894
+ addon {
898
895
  id
899
896
  refId
900
897
  }
901
898
  }
902
- ${exports.PriceFragmentDoc}
903
- ${exports.TotalPriceFragmentDoc}
904
- `;
905
- exports.CouponFragmentDoc = (0, graphql_tag_1.default) `
906
- fragment CouponFragment on Coupon {
899
+ customer {
907
900
  id
908
- discountValue
909
- type
910
- additionalMetaData
911
901
  refId
912
- name
913
- description
914
- createdAt
915
- updatedAt
916
- billingId
917
- billingLinkUrl
918
- type
919
- status
920
- syncStates {
921
- vendorIdentifier
922
- status
923
- }
924
- customers {
925
- id
926
- }
927
902
  }
928
- `;
929
- exports.PromotionalEntitlementFragmentDoc = (0, graphql_tag_1.default) `
930
- fragment PromotionalEntitlementFragment on PromotionalEntitlement {
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
931
935
  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
- }
948
936
  }
949
- `;
950
- exports.PackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
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
- }
969
- }
970
- `;
971
- exports.AddonFragmentDoc = (0, graphql_tag_1.default) `
972
- fragment AddonFragment on Addon {
937
+ customers {
973
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
974
958
  refId
975
- billingId
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
976
977
  displayName
977
978
  description
979
+ refId
978
980
  additionalMetaData
979
- entitlements {
980
- ...PackageEntitlementFragment
981
- }
982
- prices {
983
- ...PriceFragment
984
- }
985
- pricingType
986
981
  }
987
- ${exports.PackageEntitlementFragmentDoc}
988
- ${exports.PriceFragmentDoc}
989
- `;
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}`;
990
1002
  exports.PlanFragmentDoc = (0, graphql_tag_1.default) `
991
- fragment PlanFragment on Plan {
992
- id
1003
+ fragment PlanFragment on Plan {
1004
+ id
1005
+ refId
1006
+ displayName
1007
+ description
1008
+ billingId
1009
+ additionalMetaData
1010
+ product {
993
1011
  refId
994
1012
  displayName
995
1013
  description
996
- billingId
997
1014
  additionalMetaData
998
- product {
999
- refId
1000
- displayName
1001
- description
1002
- additionalMetaData
1003
- productSettings {
1004
- downgradePlan {
1005
- refId
1006
- displayName
1007
- }
1015
+ productSettings {
1016
+ downgradePlan {
1017
+ refId
1018
+ displayName
1008
1019
  }
1009
1020
  }
1010
- basePlan {
1011
- refId
1012
- displayName
1013
- }
1014
- entitlements {
1015
- ...PackageEntitlementFragment
1016
- }
1017
- inheritedEntitlements {
1018
- ...PackageEntitlementFragment
1019
- }
1020
- compatibleAddons {
1021
- ...AddonFragment
1022
- }
1023
- prices {
1024
- ...PriceFragment
1025
- }
1026
- pricingType
1027
- defaultTrialConfig {
1028
- duration
1029
- units
1030
- }
1031
1021
  }
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
- }
1022
+ basePlan {
1023
+ refId
1024
+ displayName
1059
1025
  }
1060
- `;
1061
- exports.SubscriptionFragmentDoc = (0, graphql_tag_1.default) `
1062
- fragment SubscriptionFragment on CustomerSubscription {
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 {
1063
1053
  id
1064
- startDate
1065
- endDate
1066
- trialEndDate
1067
- cancellationDate
1068
- effectiveEndDate
1069
- status
1070
1054
  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
- }
1055
+ displayName
1056
+ }
1057
+ scheduleVariables {
1058
+ ... on DowngradeChangeVariables {
1059
+ addonRefIds
1060
+ billingPeriod
1061
+ downgradePlanRefId
1086
1062
  }
1087
- totalPrice {
1088
- ...TotalPriceFragment
1063
+ ... on BillingPeriodChangeVariables {
1064
+ billingPeriod
1089
1065
  }
1090
- pricingType
1091
- plan {
1092
- ...PlanFragment
1066
+ ... on UnitAmountChangeVariables {
1067
+ newUnitAmount
1093
1068
  }
1094
- addons {
1095
- id
1096
- quantity
1097
- addon {
1098
- ...AddonFragment
1099
- }
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
1100
1097
  }
1101
- scheduledUpdates {
1102
- ...SubscriptionScheduledUpdateData
1098
+ }
1099
+ totalPrice {
1100
+ ...TotalPriceFragment
1101
+ }
1102
+ pricingType
1103
+ plan {
1104
+ ...PlanFragment
1105
+ }
1106
+ addons {
1107
+ id
1108
+ quantity
1109
+ addon {
1110
+ ...AddonFragment
1103
1111
  }
1104
1112
  }
1105
- ${exports.PriceFragmentDoc}
1106
- ${exports.TotalPriceFragmentDoc}
1107
- ${exports.PlanFragmentDoc}
1108
- ${exports.AddonFragmentDoc}
1109
- ${exports.SubscriptionScheduledUpdateDataFragmentDoc}
1110
- `;
1113
+ scheduledUpdates {
1114
+ ...SubscriptionScheduledUpdateData
1115
+ }
1116
+ }
1117
+ ${exports.PriceFragmentDoc}
1118
+ ${exports.TotalPriceFragmentDoc}
1119
+ ${exports.PlanFragmentDoc}
1120
+ ${exports.AddonFragmentDoc}
1121
+ ${exports.SubscriptionScheduledUpdateDataFragmentDoc}`;
1111
1122
  exports.CustomerFragmentDoc = (0, graphql_tag_1.default) `
1112
- fragment CustomerFragment on Customer {
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
1113
1138
  id
1114
1139
  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
- }
1151
1140
  }
1152
- ${exports.CouponFragmentDoc}
1153
- ${exports.PromotionalEntitlementFragmentDoc}
1154
- ${exports.SubscriptionFragmentDoc}
1155
- `;
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}`;
1156
1160
  exports.SubscriptionPreviewFragmentDoc = (0, graphql_tag_1.default) `
1157
- fragment SubscriptionPreviewFragment on SubscriptionPreview {
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 {
1158
1181
  subTotal {
1159
1182
  amount
1160
1183
  currency
@@ -1163,379 +1186,349 @@ exports.SubscriptionPreviewFragmentDoc = (0, graphql_tag_1.default) `
1163
1186
  amount
1164
1187
  currency
1165
1188
  }
1166
- billingPeriodRange {
1167
- start
1168
- end
1169
- }
1170
- discount {
1171
- type
1172
- value
1173
- durationType
1174
- durationInMonths
1189
+ }
1190
+ proration {
1191
+ prorationDate
1192
+ credit {
1193
+ amount
1194
+ currency
1175
1195
  }
1176
- subscription {
1177
- subTotal {
1178
- amount
1179
- currency
1180
- }
1181
- total {
1182
- amount
1183
- currency
1184
- }
1196
+ debit {
1197
+ amount
1198
+ currency
1185
1199
  }
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
+ netAmount {
1201
+ amount
1202
+ currency
1200
1203
  }
1201
1204
  }
1202
- `;
1205
+ }
1206
+ `;
1203
1207
  exports.MonthlyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) `
1204
- fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
1205
- monthlyAccordingTo
1206
- }
1207
- `;
1208
+ fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
1209
+ monthlyAccordingTo
1210
+ }
1211
+ `;
1208
1212
  exports.WeeklyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) `
1209
- fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
1210
- weeklyAccordingTo
1211
- }
1212
- `;
1213
+ fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
1214
+ weeklyAccordingTo
1215
+ }
1216
+ `;
1213
1217
  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
- }
1218
+ fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
1219
+ __typename
1220
+ ... on MonthlyResetPeriodConfig {
1221
+ ...MonthlyResetPeriodConfigFragment
1222
1222
  }
1223
- ${exports.MonthlyResetPeriodConfigFragmentDoc}
1224
- ${exports.WeeklyResetPeriodConfigFragmentDoc}
1225
- `;
1223
+ ... on WeeklyResetPeriodConfig {
1224
+ ...WeeklyResetPeriodConfigFragment
1225
+ }
1226
+ }
1227
+ ${exports.MonthlyResetPeriodConfigFragmentDoc}
1228
+ ${exports.WeeklyResetPeriodConfigFragmentDoc}`;
1226
1229
  exports.FeatureFragmentDoc = (0, graphql_tag_1.default) `
1227
- fragment FeatureFragment on EntitlementFeature {
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 {
1228
1269
  featureType
1229
1270
  meterType
1230
1271
  featureUnits
1231
1272
  featureUnitsPlural
1232
- description
1233
1273
  displayName
1274
+ description
1234
1275
  refId
1235
1276
  }
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
- }
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
1256
1288
  }
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
- }
1289
+ prices {
1290
+ ...PriceFragment
1275
1291
  }
1276
- `;
1277
- exports.PaywallAddonFragmentDoc = (0, graphql_tag_1.default) `
1278
- fragment PaywallAddonFragment on Addon {
1279
- id
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 {
1280
1305
  refId
1281
- billingId
1282
1306
  displayName
1283
1307
  description
1284
- entitlements {
1285
- ...PaywallPackageEntitlementFragment
1286
- }
1287
- prices {
1288
- ...PriceFragment
1289
- }
1290
1308
  additionalMetaData
1291
- pricingType
1309
+ productSettings {
1310
+ downgradePlan {
1311
+ refId
1312
+ displayName
1313
+ }
1314
+ }
1292
1315
  }
1293
- ${exports.PaywallPackageEntitlementFragmentDoc}
1294
- ${exports.PriceFragmentDoc}
1295
- `;
1296
- exports.PaywallPlanFragmentDoc = (0, graphql_tag_1.default) `
1297
- fragment PaywallPlanFragment on Plan {
1298
- id
1316
+ basePlan {
1299
1317
  refId
1300
- description
1301
1318
  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
- }
1337
1319
  }
1338
- ${exports.PaywallPackageEntitlementFragmentDoc}
1339
- ${exports.PriceFragmentDoc}
1340
- ${exports.PaywallAddonFragmentDoc}
1341
- `;
1342
- exports.FontVariantFragmentDoc = (0, graphql_tag_1.default) `
1343
- fragment FontVariantFragment on FontVariant {
1344
- fontSize
1345
- fontWeight
1320
+ entitlements {
1321
+ ...PaywallPackageEntitlementFragment
1322
+ }
1323
+ additionalMetaData
1324
+ inheritedEntitlements {
1325
+ ...PaywallPackageEntitlementFragment
1346
1326
  }
1347
- `;
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
+ `;
1348
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
- }
1349
+ fragment TypographyConfigurationFragment on TypographyConfiguration {
1350
+ fontFamily
1351
+ h1 {
1352
+ ...FontVariantFragment
1363
1353
  }
1364
- ${exports.FontVariantFragmentDoc}
1365
- `;
1366
- exports.LayoutConfigurationFragmentDoc = (0, graphql_tag_1.default) `
1367
- fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {
1368
- alignment
1369
- planWidth
1370
- planMargin
1371
- planPadding
1354
+ h2 {
1355
+ ...FontVariantFragment
1356
+ }
1357
+ h3 {
1358
+ ...FontVariantFragment
1359
+ }
1360
+ body {
1361
+ ...FontVariantFragment
1372
1362
  }
1373
- `;
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
+ `;
1374
1373
  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
- }
1374
+ fragment PaywallConfigurationFragment on PaywallConfiguration {
1375
+ palette {
1376
+ primary
1377
+ textColor
1378
+ backgroundColor
1379
+ borderColor
1380
+ currentPlanBackground
1381
+ }
1382
+ typography {
1383
+ ...TypographyConfigurationFragment
1389
1384
  }
1390
- ${exports.TypographyConfigurationFragmentDoc}
1391
- ${exports.LayoutConfigurationFragmentDoc}
1392
- `;
1385
+ layout {
1386
+ ...LayoutConfigurationFragment
1387
+ }
1388
+ }
1389
+ ${exports.TypographyConfigurationFragmentDoc}
1390
+ ${exports.LayoutConfigurationFragmentDoc}`;
1393
1391
  exports.ProvisionCustomerDocument = (0, graphql_tag_1.default) `
1394
- mutation provisionCustomer($input: ProvisionCustomerInput!) {
1395
- provisionCustomer(input: $input) {
1396
- customer {
1397
- ...CustomerFragment
1398
- }
1399
- subscriptionDecisionStrategy
1400
- subscription {
1401
- ...SlimSubscriptionFragment
1402
- }
1392
+ mutation provisionCustomer($input: ProvisionCustomerInput!) {
1393
+ provisionCustomer(input: $input) {
1394
+ customer {
1395
+ ...SlimCustomerFragment
1396
+ }
1397
+ subscriptionDecisionStrategy
1398
+ subscription {
1399
+ ...SlimSubscriptionFragment
1403
1400
  }
1404
1401
  }
1405
- ${exports.CustomerFragmentDoc}
1406
- ${exports.SlimSubscriptionFragmentDoc}
1407
- `;
1402
+ }
1403
+ ${exports.SlimCustomerFragmentDoc}
1404
+ ${exports.SlimSubscriptionFragmentDoc}`;
1408
1405
  exports.ImportCustomerDocument = (0, graphql_tag_1.default) `
1409
- mutation importCustomer($input: ImportCustomerInput!) {
1410
- importCustomer: importOneCustomer(input: $input) {
1411
- ...CustomerFragment
1412
- }
1406
+ mutation importCustomer($input: ImportCustomerInput!) {
1407
+ importCustomer: importOneCustomer(input: $input) {
1408
+ ...CustomerFragment
1413
1409
  }
1414
- ${exports.CustomerFragmentDoc}
1415
- `;
1410
+ }
1411
+ ${exports.CustomerFragmentDoc}`;
1416
1412
  exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
1417
- mutation updateCustomer($input: UpdateCustomerInput!) {
1418
- updateCustomer: updateOneCustomer(input: $input) {
1419
- ...CustomerFragment
1420
- }
1413
+ mutation updateCustomer($input: UpdateCustomerInput!) {
1414
+ updateCustomer: updateOneCustomer(input: $input) {
1415
+ ...CustomerFragment
1421
1416
  }
1422
- ${exports.CustomerFragmentDoc}
1423
- `;
1417
+ }
1418
+ ${exports.CustomerFragmentDoc}`;
1424
1419
  exports.ProvisionSubscriptionDocument = (0, graphql_tag_1.default) `
1425
- mutation provisionSubscription($input: ProvisionSubscriptionInput!) {
1426
- provisionSubscriptionV2(input: $input) {
1427
- checkoutUrl
1428
- status
1429
- subscription {
1430
- ...SlimSubscriptionFragment
1431
- }
1420
+ mutation provisionSubscription($input: ProvisionSubscriptionInput!) {
1421
+ provisionSubscription: provisionSubscriptionV2(input: $input) {
1422
+ checkoutUrl
1423
+ status
1424
+ subscription {
1425
+ ...SlimSubscriptionFragment
1432
1426
  }
1433
1427
  }
1434
- ${exports.SlimSubscriptionFragmentDoc}
1435
- `;
1428
+ }
1429
+ ${exports.SlimSubscriptionFragmentDoc}`;
1436
1430
  exports.UpdateSubscriptionDocument = (0, graphql_tag_1.default) `
1437
- mutation updateSubscription($input: UpdateSubscriptionInput!) {
1438
- updateSubscription: updateOneSubscription(input: $input) {
1439
- ...SlimSubscriptionFragment
1440
- }
1431
+ mutation updateSubscription($input: UpdateSubscriptionInput!) {
1432
+ updateSubscription: updateOneSubscription(input: $input) {
1433
+ ...SlimSubscriptionFragment
1441
1434
  }
1442
- ${exports.SlimSubscriptionFragmentDoc}
1443
- `;
1435
+ }
1436
+ ${exports.SlimSubscriptionFragmentDoc}`;
1444
1437
  exports.CancelSubscriptionDocument = (0, graphql_tag_1.default) `
1445
- mutation cancelSubscription($input: SubscriptionCancellationInput!) {
1446
- cancelSubscription(input: $input) {
1447
- ...SlimSubscriptionFragment
1448
- }
1438
+ mutation cancelSubscription($input: SubscriptionCancellationInput!) {
1439
+ cancelSubscription(input: $input) {
1440
+ ...SlimSubscriptionFragment
1449
1441
  }
1450
- ${exports.SlimSubscriptionFragmentDoc}
1451
- `;
1442
+ }
1443
+ ${exports.SlimSubscriptionFragmentDoc}`;
1452
1444
  exports.InitiateCheckoutDocument = (0, graphql_tag_1.default) `
1453
- mutation initiateCheckout($input: InitiateCheckoutInput!) {
1454
- initiateCheckout(input: $input) {
1455
- checkoutUrl
1456
- checkoutBillingId
1457
- }
1445
+ mutation initiateCheckout($input: InitiateCheckoutInput!) {
1446
+ initiateCheckout(input: $input) {
1447
+ checkoutUrl
1448
+ checkoutBillingId
1458
1449
  }
1459
- `;
1450
+ }
1451
+ `;
1460
1452
  exports.EstimateSubscriptionDocument = (0, graphql_tag_1.default) `
1461
- mutation estimateSubscription($input: EstimateSubscriptionInput!) {
1462
- estimateSubscription(input: $input) {
1463
- ...SubscriptionPreviewFragment
1464
- }
1453
+ mutation estimateSubscription($input: EstimateSubscriptionInput!) {
1454
+ estimateSubscription(input: $input) {
1455
+ ...SubscriptionPreviewFragment
1465
1456
  }
1466
- ${exports.SubscriptionPreviewFragmentDoc}
1467
- `;
1457
+ }
1458
+ ${exports.SubscriptionPreviewFragmentDoc}`;
1468
1459
  exports.EstimateSubscriptionUpdateDocument = (0, graphql_tag_1.default) `
1469
- mutation estimateSubscriptionUpdate(
1470
- $input: EstimateSubscriptionUpdateInput!
1471
- ) {
1472
- estimateSubscriptionUpdate(input: $input) {
1473
- ...SubscriptionPreviewFragment
1474
- }
1460
+ mutation estimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {
1461
+ estimateSubscriptionUpdate(input: $input) {
1462
+ ...SubscriptionPreviewFragment
1475
1463
  }
1476
- ${exports.SubscriptionPreviewFragmentDoc}
1477
- `;
1464
+ }
1465
+ ${exports.SubscriptionPreviewFragmentDoc}`;
1478
1466
  exports.ReportUsageDocument = (0, graphql_tag_1.default) `
1479
- mutation reportUsage($input: UsageMeasurementCreateInput!) {
1480
- createUsageMeasurement(usageMeasurement: $input) {
1481
- id
1482
- }
1467
+ mutation reportUsage($input: UsageMeasurementCreateInput!) {
1468
+ createUsageMeasurement(usageMeasurement: $input) {
1469
+ id
1470
+ currentUsage
1471
+ nextResetDate
1472
+ timestamp
1483
1473
  }
1484
- `;
1474
+ }
1475
+ `;
1476
+ exports.ReportEntitlementCheckRequestedDocument = (0, graphql_tag_1.default) `
1477
+ mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {
1478
+ reportEntitlementCheckRequested(
1479
+ entitlementCheckRequested: $entitlementCheckRequested
1480
+ )
1481
+ }
1482
+ `;
1485
1483
  exports.GetCustomerByIdDocument = (0, graphql_tag_1.default) `
1486
- query getCustomerById($input: GetCustomerByRefIdInput!) {
1487
- getCustomerByRefId(input: $input) {
1488
- ...CustomerFragment
1489
- }
1484
+ query getCustomerById($input: GetCustomerByRefIdInput!) {
1485
+ getCustomerByRefId(input: $input) {
1486
+ ...CustomerFragment
1490
1487
  }
1491
- ${exports.CustomerFragmentDoc}
1492
- `;
1488
+ }
1489
+ ${exports.CustomerFragmentDoc}`;
1493
1490
  exports.GetCouponsDocument = (0, graphql_tag_1.default) `
1494
- query getCoupons {
1495
- coupons(filter: { status: { eq: ACTIVE } }, paging: { first: 50 }) {
1496
- edges {
1497
- node {
1498
- ...CouponFragment
1499
- }
1491
+ query getCoupons {
1492
+ coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 50}) {
1493
+ edges {
1494
+ node {
1495
+ ...CouponFragment
1500
1496
  }
1501
1497
  }
1502
1498
  }
1503
- ${exports.CouponFragmentDoc}
1504
- `;
1499
+ }
1500
+ ${exports.CouponFragmentDoc}`;
1505
1501
  exports.GetPaywallDocument = (0, graphql_tag_1.default) `
1506
- query getPaywall($input: GetPaywallInput!) {
1507
- paywall(input: $input) {
1508
- plans {
1509
- ...PlanFragment
1510
- }
1511
- configuration {
1512
- ...PaywallConfigurationFragment
1513
- }
1514
- customer {
1515
- ...CustomerFragment
1516
- }
1502
+ query getPaywall($input: GetPaywallInput!) {
1503
+ paywall(input: $input) {
1504
+ plans {
1505
+ ...PlanFragment
1506
+ }
1507
+ configuration {
1508
+ ...PaywallConfigurationFragment
1509
+ }
1510
+ customer {
1511
+ ...CustomerFragment
1517
1512
  }
1518
1513
  }
1519
- ${exports.PlanFragmentDoc}
1520
- ${exports.PaywallConfigurationFragmentDoc}
1521
- ${exports.CustomerFragmentDoc}
1522
- `;
1514
+ }
1515
+ ${exports.PlanFragmentDoc}
1516
+ ${exports.PaywallConfigurationFragmentDoc}
1517
+ ${exports.CustomerFragmentDoc}`;
1523
1518
  exports.GetEntitlementsDocument = (0, graphql_tag_1.default) `
1524
- query getEntitlements($query: FetchEntitlementsQuery!) {
1525
- entitlements: cachedEntitlements(query: $query) {
1526
- ...EntitlementFragment
1527
- }
1519
+ query getEntitlements($query: FetchEntitlementsQuery!) {
1520
+ entitlements: cachedEntitlements(query: $query) {
1521
+ ...EntitlementFragment
1528
1522
  }
1529
- ${exports.EntitlementFragmentDoc}
1530
- `;
1523
+ }
1524
+ ${exports.EntitlementFragmentDoc}`;
1531
1525
  exports.GetEntitlementDocument = (0, graphql_tag_1.default) `
1532
- query getEntitlement($query: FetchEntitlementQuery!) {
1533
- entitlement(query: $query) {
1534
- ...EntitlementFragment
1535
- }
1526
+ query getEntitlement($query: FetchEntitlementQuery!) {
1527
+ entitlement(query: $query) {
1528
+ ...EntitlementFragment
1536
1529
  }
1537
- ${exports.EntitlementFragmentDoc}
1538
- `;
1530
+ }
1531
+ ${exports.EntitlementFragmentDoc}`;
1539
1532
  const defaultWrapper = (action, _operationName, _operationType) => action();
1540
1533
  function getSdk(client, withWrapper = defaultWrapper) {
1541
1534
  return {
@@ -1569,6 +1562,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
1569
1562
  reportUsage(variables, requestHeaders) {
1570
1563
  return withWrapper((wrappedRequestHeaders) => client.request(exports.ReportUsageDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'reportUsage', 'mutation');
1571
1564
  },
1565
+ reportEntitlementCheckRequested(variables, requestHeaders) {
1566
+ return withWrapper((wrappedRequestHeaders) => client.request(exports.ReportEntitlementCheckRequestedDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'reportEntitlementCheckRequested', 'mutation');
1567
+ },
1572
1568
  getCustomerById(variables, requestHeaders) {
1573
1569
  return withWrapper((wrappedRequestHeaders) => client.request(exports.GetCustomerByIdDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCustomerById', 'query');
1574
1570
  },
@@ -1583,7 +1579,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
1583
1579
  },
1584
1580
  getEntitlement(variables, requestHeaders) {
1585
1581
  return withWrapper((wrappedRequestHeaders) => client.request(exports.GetEntitlementDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEntitlement', 'query');
1586
- },
1582
+ }
1587
1583
  };
1588
1584
  }
1589
1585
  exports.getSdk = getSdk;