@stigg/api-client-js
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@stigg/api-client-js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PublishMigrationType = exports.ProvisionSubscriptionStatus = exports.ProrationBehavior = exports.PromotionalEntitlementStatus = exports.PromotionalEntitlementSortFields = exports.PromotionalEntitlementPeriod = exports.ProductSortFields = exports.PricingType = exports.PriceSortFields = 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.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; | ||
exports.ReportUsageDocument = exports.EstimateSubscriptionUpdateDocument = exports.EstimateSubscriptionDocument = exports.InitiateCheckoutDocument = exports.CancelSubscriptionDocument = exports.UpdateSubscriptionDocument = exports.ProvisionSubscriptionDocument = exports.UpdateCustomerDocument = exports.ImportCustomerDocument = exports.ProvisionCustomerDocument = exports.PaywallPlanFragmentDoc = exports.PaywallAddonFragmentDoc = exports.PaywallPackageEntitlementFragmentDoc = exports.EntitlementFragmentDoc = exports.FeatureFragmentDoc = exports.SubscriptionPreviewFragmentDoc = exports.CustomerFragmentDoc = exports.SubscriptionFragmentDoc = 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 = void 0; | ||
exports.getSdk = exports.GetEntitlementDocument = exports.GetEntitlementsDocument = exports.GetPaywallDocument = exports.GetCouponsDocument = exports.GetCustomerByIdDocument = void 0; | ||
exports.UpdateCustomerDocument = exports.ImportCustomerDocument = 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.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 = void 0; | ||
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 = void 0; | ||
const graphql_tag_1 = require("graphql-tag"); | ||
@@ -833,2 +833,5 @@ /** DenyReason of get access policy */ | ||
resetPeriod | ||
hiddenFromWidgets | ||
isCustom | ||
displayNameOverride | ||
feature { | ||
@@ -842,2 +845,3 @@ featureType | ||
refId | ||
additionalMetaData | ||
} | ||
@@ -857,5 +861,9 @@ } | ||
} | ||
prices { | ||
...PriceFragment | ||
} | ||
pricingType | ||
} | ||
${exports.PackageEntitlementFragmentDoc}`; | ||
${exports.PackageEntitlementFragmentDoc} | ||
${exports.PriceFragmentDoc}`; | ||
exports.PlanFragmentDoc = (0, graphql_tag_1.default) ` | ||
@@ -967,4 +975,6 @@ fragment PlanFragment on Plan { | ||
trialedPlans { | ||
productId | ||
productRefId | ||
planRefId | ||
planId | ||
} | ||
@@ -1017,2 +1027,24 @@ experimentInfo { | ||
`; | ||
exports.MonthlyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig { | ||
monthlyAccordingTo | ||
} | ||
`; | ||
exports.WeeklyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig { | ||
weeklyAccordingTo | ||
} | ||
`; | ||
exports.ResetPeriodConfigurationFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration { | ||
__typename | ||
... on MonthlyResetPeriodConfig { | ||
...MonthlyResetPeriodConfigFragment | ||
} | ||
... on WeeklyResetPeriodConfig { | ||
...WeeklyResetPeriodConfigFragment | ||
} | ||
} | ||
${exports.MonthlyResetPeriodConfigFragmentDoc} | ||
${exports.WeeklyResetPeriodConfigFragmentDoc}`; | ||
exports.FeatureFragmentDoc = (0, graphql_tag_1.default) ` | ||
@@ -1024,2 +1056,4 @@ fragment FeatureFragment on EntitlementFeature { | ||
featureUnitsPlural | ||
description | ||
displayName | ||
refId | ||
@@ -1040,8 +1074,3 @@ } | ||
resetPeriodConfiguration { | ||
... on MonthlyResetPeriodConfig { | ||
monthlyAccordingTo | ||
} | ||
... on WeeklyResetPeriodConfig { | ||
weeklyAccordingTo | ||
} | ||
...ResetPeriodConfigurationFragment | ||
} | ||
@@ -1052,3 +1081,4 @@ feature { | ||
} | ||
${exports.FeatureFragmentDoc}`; | ||
${exports.ResetPeriodConfigurationFragmentDoc} | ||
${exports.FeatureFragmentDoc}`; | ||
exports.PaywallPackageEntitlementFragmentDoc = (0, graphql_tag_1.default) ` | ||
@@ -1135,2 +1165,51 @@ fragment PaywallPackageEntitlementFragment on PackageEntitlement { | ||
${exports.PaywallAddonFragmentDoc}`; | ||
exports.FontVariantFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment FontVariantFragment on FontVariant { | ||
fontSize | ||
fontWeight | ||
} | ||
`; | ||
exports.TypographyConfigurationFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment TypographyConfigurationFragment on TypographyConfiguration { | ||
fontFamily | ||
h1 { | ||
...FontVariantFragment | ||
} | ||
h2 { | ||
...FontVariantFragment | ||
} | ||
h3 { | ||
...FontVariantFragment | ||
} | ||
body { | ||
...FontVariantFragment | ||
} | ||
} | ||
${exports.FontVariantFragmentDoc}`; | ||
exports.LayoutConfigurationFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment LayoutConfigurationFragment on PaywallLayoutConfiguration { | ||
alignment | ||
planWidth | ||
planMargin | ||
planPadding | ||
} | ||
`; | ||
exports.PaywallConfigurationFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment PaywallConfigurationFragment on PaywallConfiguration { | ||
palette { | ||
primary | ||
textColor | ||
backgroundColor | ||
borderColor | ||
currentPlanBackground | ||
} | ||
typography { | ||
...TypographyConfigurationFragment | ||
} | ||
layout { | ||
...LayoutConfigurationFragment | ||
} | ||
} | ||
${exports.TypographyConfigurationFragmentDoc} | ||
${exports.LayoutConfigurationFragmentDoc}`; | ||
exports.ProvisionCustomerDocument = (0, graphql_tag_1.default) ` | ||
@@ -1238,7 +1317,17 @@ mutation provisionCustomer($input: ProvisionCustomerInput!) { | ||
query getPaywall($input: GetPaywallInput!) { | ||
getPaywall(input: $input) { | ||
...PaywallPlanFragment | ||
paywall(input: $input) { | ||
plans { | ||
...PlanFragment | ||
} | ||
configuration { | ||
...PaywallConfigurationFragment | ||
} | ||
customer { | ||
...CustomerFragment | ||
} | ||
} | ||
} | ||
${exports.PaywallPlanFragmentDoc}`; | ||
${exports.PlanFragmentDoc} | ||
${exports.PaywallConfigurationFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
exports.GetEntitlementsDocument = (0, graphql_tag_1.default) ` | ||
@@ -1245,0 +1334,0 @@ query getEntitlements($query: FetchEntitlementsQuery!) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
213259
4794