stigg-api-client 1.226.0__tar.gz → 1.229.0__tar.gz
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.
Potentially problematic release.
This version of stigg-api-client might be problematic. Click here for more details.
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/PKG-INFO +1 -1
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/pyproject.toml +1 -1
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/stigg/generated/operations.py +37 -0
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/stigg/generated/schema.py +14 -3
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/LICENSE +0 -0
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/README.md +0 -0
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/stigg/__init__.py +0 -0
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/stigg/client.py +0 -0
- {stigg_api_client-1.226.0 → stigg_api_client-1.229.0}/stigg/generated/__init__.py +0 -0
|
@@ -203,6 +203,26 @@ def fragment_customer_resource_fragment():
|
|
|
203
203
|
return _frag
|
|
204
204
|
|
|
205
205
|
|
|
206
|
+
def fragment_slim_subscription_fragment_v2():
|
|
207
|
+
_frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SlimSubscriptionFragmentV2')
|
|
208
|
+
_frag.subscription_id()
|
|
209
|
+
_frag.status()
|
|
210
|
+
_frag.pricing_type()
|
|
211
|
+
_frag.start_date()
|
|
212
|
+
_frag.current_billing_period_end()
|
|
213
|
+
_frag_customer = _frag.customer()
|
|
214
|
+
_frag_customer.customer_id()
|
|
215
|
+
_frag_resource = _frag.resource()
|
|
216
|
+
_frag_resource.resource_id()
|
|
217
|
+
_frag_plan = _frag.plan()
|
|
218
|
+
_frag_plan.ref_id(__alias__='plan_id')
|
|
219
|
+
_frag_addons = _frag.addons()
|
|
220
|
+
_frag_addons.quantity()
|
|
221
|
+
_frag_addons_addon = _frag_addons.addon()
|
|
222
|
+
_frag_addons_addon.ref_id(__alias__='addon_id')
|
|
223
|
+
return _frag
|
|
224
|
+
|
|
225
|
+
|
|
206
226
|
def fragment_slim_subscription_fragment():
|
|
207
227
|
_frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SlimSubscriptionFragment')
|
|
208
228
|
_frag.id()
|
|
@@ -1252,6 +1272,7 @@ class Fragment:
|
|
|
1252
1272
|
schedule_variables_fragment = fragment_schedule_variables_fragment()
|
|
1253
1273
|
slim_customer_fragment = fragment_slim_customer_fragment()
|
|
1254
1274
|
slim_subscription_fragment = fragment_slim_subscription_fragment()
|
|
1275
|
+
slim_subscription_fragment_v2 = fragment_slim_subscription_fragment_v2()
|
|
1255
1276
|
subscription_fragment = fragment_subscription_fragment()
|
|
1256
1277
|
subscription_future_update_data = fragment_subscription_future_update_data()
|
|
1257
1278
|
subscription_invoice_fragment = fragment_subscription_invoice_fragment()
|
|
@@ -1484,6 +1505,20 @@ def query_get_active_subscriptions():
|
|
|
1484
1505
|
return _op
|
|
1485
1506
|
|
|
1486
1507
|
|
|
1508
|
+
def query_get_active_subscriptions_list():
|
|
1509
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetActiveSubscriptionsList', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetActiveSubscriptionsInput))))
|
|
1510
|
+
_op_get_active_subscriptions = _op.get_active_subscriptions(input=sgqlc.types.Variable('input'))
|
|
1511
|
+
_op_get_active_subscriptions.__fragment__(fragment_slim_subscription_fragment_v2())
|
|
1512
|
+
return _op
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
def query_get_subscription():
|
|
1516
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetSubscriptionInput))))
|
|
1517
|
+
_op_get_subscription = _op.get_subscription(input=sgqlc.types.Variable('input'))
|
|
1518
|
+
_op_get_subscription.__fragment__(fragment_subscription_fragment())
|
|
1519
|
+
return _op
|
|
1520
|
+
|
|
1521
|
+
|
|
1487
1522
|
def query_get_coupons():
|
|
1488
1523
|
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCoupons')
|
|
1489
1524
|
_op_coupons = _op.coupons(filter={'status': {'eq': 'ACTIVE'}}, paging={'first': 50})
|
|
@@ -1564,6 +1599,7 @@ def query_get_usage_history():
|
|
|
1564
1599
|
|
|
1565
1600
|
class Query:
|
|
1566
1601
|
get_active_subscriptions = query_get_active_subscriptions()
|
|
1602
|
+
get_active_subscriptions_list = query_get_active_subscriptions_list()
|
|
1567
1603
|
get_checkout_state = query_get_checkout_state()
|
|
1568
1604
|
get_coupons = query_get_coupons()
|
|
1569
1605
|
get_customer_by_id = query_get_customer_by_id()
|
|
@@ -1575,6 +1611,7 @@ class Query:
|
|
|
1575
1611
|
get_paywall = query_get_paywall()
|
|
1576
1612
|
get_products = query_get_products()
|
|
1577
1613
|
get_sdk_configuration = query_get_sdk_configuration()
|
|
1614
|
+
get_subscription = query_get_subscription()
|
|
1578
1615
|
get_usage_history = query_get_usage_history()
|
|
1579
1616
|
|
|
1580
1617
|
|
|
@@ -175,7 +175,7 @@ class EnvironmentType(sgqlc.types.Enum):
|
|
|
175
175
|
|
|
176
176
|
class ErrorCode(sgqlc.types.Enum):
|
|
177
177
|
__schema__ = schema
|
|
178
|
-
__choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AuthCustomerReadonly', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationAlreadyExistsError', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpdateUnitTransformationError', 'CannotUpsertToPackageThatHasDraft', 'CheckoutIsNotSupported', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'HubspotIntegrationError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'MultiSubscriptionCantBeAutoCancellationSourceError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PreparePaymentMethodFormError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'SingleSubscriptionCantBeAutoCancellationTargetError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionDoesNotHaveBillingPeriod', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManySubscriptionsPerCustomer', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError')
|
|
178
|
+
__choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AuthCustomerReadonly', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationAlreadyExistsError', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpdateUnitTransformationError', 'CannotUpsertToPackageThatHasDraft', 'CheckoutIsNotSupported', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'HubspotIntegrationError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'MultiSubscriptionCantBeAutoCancellationSourceError', 'NoFeatureEntitlementError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PreparePaymentMethodFormError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'SingleSubscriptionCantBeAutoCancellationTargetError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionDoesNotHaveBillingPeriod', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManySubscriptionsPerCustomer', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError')
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
class EventActor(sgqlc.types.Enum):
|
|
@@ -2032,6 +2032,13 @@ class GetPaywallInput(sgqlc.types.Input):
|
|
|
2032
2032
|
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
2033
2033
|
|
|
2034
2034
|
|
|
2035
|
+
class GetSubscriptionInput(sgqlc.types.Input):
|
|
2036
|
+
__schema__ = schema
|
|
2037
|
+
__field_names__ = ('environment_id', 'subscription_id')
|
|
2038
|
+
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
2039
|
+
subscription_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='subscriptionId')
|
|
2040
|
+
|
|
2041
|
+
|
|
2035
2042
|
class GetWidgetConfigurationInput(sgqlc.types.Input):
|
|
2036
2043
|
__schema__ = schema
|
|
2037
2044
|
__field_names__ = ('environment_id',)
|
|
@@ -5252,7 +5259,7 @@ class CustomerSubscription(sgqlc.types.Type):
|
|
|
5252
5259
|
sync_states = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SyncState')), graphql_name='syncStates')
|
|
5253
5260
|
total_price = sgqlc.types.Field('CustomerSubscriptionTotalPrice', graphql_name='totalPrice')
|
|
5254
5261
|
trial_end_date = sgqlc.types.Field(DateTime, graphql_name='trialEndDate')
|
|
5255
|
-
was_in_trial = sgqlc.types.Field(Boolean, graphql_name='wasInTrial')
|
|
5262
|
+
was_in_trial = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='wasInTrial')
|
|
5256
5263
|
|
|
5257
5264
|
|
|
5258
5265
|
class CustomerSubscriptionAggregateGroupBy(sgqlc.types.Type):
|
|
@@ -8151,7 +8158,7 @@ class PublishPackageResult(sgqlc.types.Type):
|
|
|
8151
8158
|
|
|
8152
8159
|
class Query(sgqlc.types.Type):
|
|
8153
8160
|
__schema__ = schema
|
|
8154
|
-
__field_names__ = ('addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'current_environment', 'current_user', 'customer_portal', 'customer_resources', 'customer_subscriptions', 'customers', 'does_feature_exist', 'dump_environment_for_merge_comparison', 'dump_environment_product_catalog', 'entitlement', 'entitlements', 'environments', 'event_logs', 'events_fields', 'experiment', 'experiments', 'feature_associated_latest_packages', 'features', 'fetch_account', 'get_active_subscriptions', 'get_addon_by_ref_id', 'get_aws_external_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', 'package_entitlements', 'package_group', 'package_groups', 'paywall', 'plans', 'products', 'promotional_entitlements', 'sdk_configuration', 'send_test_hook', 'stripe_customers', 'stripe_products', 'stripe_subscriptions', 'subscription_entitlements', 'subscription_migration_tasks', 'test_hook_data', 'usage_events', 'usage_history', 'usage_measurements', 'validate_merge_environment', 'widget_configuration')
|
|
8161
|
+
__field_names__ = ('addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'current_environment', 'current_user', 'customer_portal', 'customer_resources', 'customer_subscriptions', 'customers', 'does_feature_exist', 'dump_environment_for_merge_comparison', 'dump_environment_product_catalog', 'entitlement', 'entitlements', 'environments', 'event_logs', 'events_fields', 'experiment', 'experiments', 'feature_associated_latest_packages', 'features', 'fetch_account', 'get_active_subscriptions', 'get_addon_by_ref_id', 'get_aws_external_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', 'package_entitlements', 'package_group', 'package_groups', 'paywall', 'plans', 'products', 'promotional_entitlements', 'sdk_configuration', 'send_test_hook', 'stripe_customers', 'stripe_products', 'stripe_subscriptions', 'subscription_entitlements', 'subscription_migration_tasks', 'test_hook_data', 'usage_events', 'usage_history', 'usage_measurements', 'validate_merge_environment', 'widget_configuration')
|
|
8155
8162
|
addons = sgqlc.types.Field(sgqlc.types.non_null(AddonConnection), graphql_name='addons', args=sgqlc.types.ArgDict((
|
|
8156
8163
|
('filter', sgqlc.types.Arg(AddonFilter, graphql_name='filter', default={})),
|
|
8157
8164
|
('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
|
|
@@ -8288,6 +8295,10 @@ class Query(sgqlc.types.Type):
|
|
|
8288
8295
|
)
|
|
8289
8296
|
get_plan_by_ref_id = sgqlc.types.Field(Plan, graphql_name='getPlanByRefId', args=sgqlc.types.ArgDict((
|
|
8290
8297
|
('input', sgqlc.types.Arg(sgqlc.types.non_null(GetPackageByRefIdInput), graphql_name='input', default=None)),
|
|
8298
|
+
))
|
|
8299
|
+
)
|
|
8300
|
+
get_subscription = sgqlc.types.Field(sgqlc.types.non_null(CustomerSubscription), graphql_name='getSubscription', args=sgqlc.types.ArgDict((
|
|
8301
|
+
('input', sgqlc.types.Arg(sgqlc.types.non_null(GetSubscriptionInput), graphql_name='input', default=None)),
|
|
8291
8302
|
))
|
|
8292
8303
|
)
|
|
8293
8304
|
hook = sgqlc.types.Field(Hook, graphql_name='hook', args=sgqlc.types.ArgDict((
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|