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