stigg-api-client 2.438.2__tar.gz → 2.442.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.438.2
3
+ Version: 2.442.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "stigg-api-client"
3
- version = "2.438.2"
3
+ version = "2.442.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -495,6 +495,11 @@ class SubscriptionPriceSortFields(sgqlc.types.Enum):
495
495
  __choices__ = ('billingModel', 'createdAt', 'featureId', 'hasSoftLimit', 'id', 'updatedAt', 'usageLimit')
496
496
 
497
497
 
498
+ class SubscriptionQuerySortFields(sgqlc.types.Enum):
499
+ __schema__ = schema
500
+ __choices__ = ('createdAt', 'customerId', 'environmentId', 'productId', 'resourceId', 'status')
501
+
502
+
498
503
  class SubscriptionScheduleStatus(sgqlc.types.Enum):
499
504
  __schema__ = schema
500
505
  __choices__ = ('Canceled', 'Done', 'Failed', 'PendingPayment', 'Scheduled')
@@ -4052,6 +4057,27 @@ class SubscriptionPriceSort(sgqlc.types.Input):
4052
4057
  nulls = sgqlc.types.Field(SortNulls, graphql_name='nulls')
4053
4058
 
4054
4059
 
4060
+ class SubscriptionQueryFilter(sgqlc.types.Input):
4061
+ __schema__ = schema
4062
+ __field_names__ = ('and_', 'created_at', 'customer_id', 'environment_id', 'or_', 'product_id', 'resource_id', 'status')
4063
+ and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionQueryFilter')), graphql_name='and')
4064
+ created_at = sgqlc.types.Field(DateFieldComparison, graphql_name='createdAt')
4065
+ customer_id = sgqlc.types.Field(StringFieldComparison, graphql_name='customerId')
4066
+ environment_id = sgqlc.types.Field(StringFieldComparison, graphql_name='environmentId')
4067
+ or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionQueryFilter')), graphql_name='or')
4068
+ product_id = sgqlc.types.Field(StringFieldComparison, graphql_name='productId')
4069
+ resource_id = sgqlc.types.Field(StringFieldComparison, graphql_name='resourceId')
4070
+ status = sgqlc.types.Field('SubscriptionStatusFilterComparison', graphql_name='status')
4071
+
4072
+
4073
+ class SubscriptionQuerySort(sgqlc.types.Input):
4074
+ __schema__ = schema
4075
+ __field_names__ = ('direction', 'field', 'nulls')
4076
+ direction = sgqlc.types.Field(sgqlc.types.non_null(SortDirection), graphql_name='direction')
4077
+ field = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionQuerySortFields), graphql_name='field')
4078
+ nulls = sgqlc.types.Field(SortNulls, graphql_name='nulls')
4079
+
4080
+
4055
4081
  class SubscriptionStatusFilterComparison(sgqlc.types.Input):
4056
4082
  __schema__ = schema
4057
4083
  __field_names__ = ('eq', 'gt', 'gte', 'i_like', 'in_', 'is_', 'is_not', 'like', 'lt', 'lte', 'neq', 'not_ilike', 'not_in', 'not_like')
@@ -8679,7 +8705,7 @@ class PublishPackageResult(sgqlc.types.Type):
8679
8705
 
8680
8706
  class Query(sgqlc.types.Type):
8681
8707
  __schema__ = schema
8682
- __field_names__ = ('addon_associated_entities', '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_auth0_applications', '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', 'trigger_workflow_with_test_event', 'usage_events', 'usage_history', 'usage_history_v2', 'usage_measurements', 'validate_merge_environment', 'verified_account_domains', 'widget_configuration', 'workflow_triggers')
8708
+ __field_names__ = ('addon_associated_entities', '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_auth0_applications', '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', 'subscriptions', 'test_hook_data', 'trigger_workflow_with_test_event', 'usage_events', 'usage_history', 'usage_history_v2', 'usage_measurements', 'validate_merge_environment', 'verified_account_domains', 'widget_configuration', 'workflow_triggers')
8683
8709
  addon_associated_entities = sgqlc.types.Field(sgqlc.types.non_null(AddonAssociatedEntities), graphql_name='addonAssociatedEntities', args=sgqlc.types.ArgDict((
8684
8710
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonAssociatedEntitiesInput), graphql_name='input', default=None)),
8685
8711
  ))
@@ -8935,6 +8961,12 @@ class Query(sgqlc.types.Type):
8935
8961
  ('filter', sgqlc.types.Arg(SubscriptionMigrationTaskFilter, graphql_name='filter', default={})),
8936
8962
  ('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
8937
8963
  ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionMigrationTaskSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
8964
+ ))
8965
+ )
8966
+ subscriptions = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionQueryConnection'), graphql_name='subscriptions', args=sgqlc.types.ArgDict((
8967
+ ('filter', sgqlc.types.Arg(SubscriptionQueryFilter, graphql_name='filter', default={})),
8968
+ ('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
8969
+ ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionQuerySort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
8938
8970
  ))
8939
8971
  )
8940
8972
  test_hook_data = sgqlc.types.Field(sgqlc.types.non_null('TestHook'), graphql_name='testHookData', args=sgqlc.types.ArgDict((
@@ -9685,6 +9717,134 @@ class SubscriptionPricingTypeStatistics(sgqlc.types.Type):
9685
9717
  total_count = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalCount')
9686
9718
 
9687
9719
 
9720
+ class SubscriptionQuery(sgqlc.types.Type):
9721
+ __schema__ = schema
9722
+ __field_names__ = ('additional_meta_data', 'addons', 'billing_cycle_anchor', 'billing_id', 'billing_link_url', 'billing_sync_error', 'budget', 'budget_exceeded', 'cancel_reason', 'cancellation_date', 'coupon', 'coupons', 'created_at', 'crm_id', 'crm_link_url', 'current_billing_period_end', 'current_billing_period_start', 'customer', 'customer_id', 'effective_end_date', 'end_date', 'environment', 'environment_id', 'experiment', 'experiment_info', 'free_items', 'id', 'last_usage_invoice', 'latest_invoice', 'minimum_spend', 'old_billing_id', 'paying_customer', 'paying_customer_id', 'payment_collection', 'payment_collection_method', 'plan', 'prices', 'pricing_type', 'ref_id', 'resource', 'resource_id', 'salesforce_id', 'scheduled_updates', 'start_date', 'status', 'subscription_entitlements', 'subscription_id', 'sync_states', 'total_price', 'trial_configuration', 'trial_end_date', 'was_in_trial')
9723
+ additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
9724
+ addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionAddon)), graphql_name='addons', args=sgqlc.types.ArgDict((
9725
+ ('filter', sgqlc.types.Arg(SubscriptionAddonFilter, graphql_name='filter', default={})),
9726
+ ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionAddonSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
9727
+ ))
9728
+ )
9729
+ billing_cycle_anchor = sgqlc.types.Field(DateTime, graphql_name='billingCycleAnchor')
9730
+ billing_id = sgqlc.types.Field(String, graphql_name='billingId')
9731
+ billing_link_url = sgqlc.types.Field(String, graphql_name='billingLinkUrl')
9732
+ billing_sync_error = sgqlc.types.Field(String, graphql_name='billingSyncError')
9733
+ budget = sgqlc.types.Field(BudgetConfiguration, graphql_name='budget')
9734
+ budget_exceeded = sgqlc.types.Field(Boolean, graphql_name='budgetExceeded')
9735
+ cancel_reason = sgqlc.types.Field(SubscriptionCancelReason, graphql_name='cancelReason')
9736
+ cancellation_date = sgqlc.types.Field(DateTime, graphql_name='cancellationDate')
9737
+ coupon = sgqlc.types.Field(SubscriptionCoupon, graphql_name='coupon')
9738
+ coupons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionCoupon)), graphql_name='coupons')
9739
+ created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
9740
+ crm_id = sgqlc.types.Field(String, graphql_name='crmId')
9741
+ crm_link_url = sgqlc.types.Field(String, graphql_name='crmLinkUrl')
9742
+ current_billing_period_end = sgqlc.types.Field(DateTime, graphql_name='currentBillingPeriodEnd')
9743
+ current_billing_period_start = sgqlc.types.Field(DateTime, graphql_name='currentBillingPeriodStart')
9744
+ customer = sgqlc.types.Field(sgqlc.types.non_null(Customer), graphql_name='customer')
9745
+ customer_id = sgqlc.types.Field(String, graphql_name='customerId')
9746
+ effective_end_date = sgqlc.types.Field(DateTime, graphql_name='effectiveEndDate')
9747
+ end_date = sgqlc.types.Field(DateTime, graphql_name='endDate')
9748
+ environment = sgqlc.types.Field(sgqlc.types.non_null(Environment), graphql_name='environment')
9749
+ environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
9750
+ experiment = sgqlc.types.Field(Experiment, graphql_name='experiment')
9751
+ experiment_info = sgqlc.types.Field('experimentInfo', graphql_name='experimentInfo')
9752
+ free_items = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(FreeSubscriptionItem)), graphql_name='freeItems')
9753
+ id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
9754
+ last_usage_invoice = sgqlc.types.Field(SubscriptionInvoice, graphql_name='lastUsageInvoice')
9755
+ latest_invoice = sgqlc.types.Field(SubscriptionInvoice, graphql_name='latestInvoice')
9756
+ minimum_spend = sgqlc.types.Field(SubscriptionMinimumSpend, graphql_name='minimumSpend')
9757
+ old_billing_id = sgqlc.types.Field(String, graphql_name='oldBillingId')
9758
+ paying_customer = sgqlc.types.Field(Customer, graphql_name='payingCustomer')
9759
+ paying_customer_id = sgqlc.types.Field(String, graphql_name='payingCustomerId')
9760
+ payment_collection = sgqlc.types.Field(sgqlc.types.non_null(PaymentCollection), graphql_name='paymentCollection')
9761
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
9762
+ plan = sgqlc.types.Field(sgqlc.types.non_null(Plan), graphql_name='plan')
9763
+ prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionPrice)), graphql_name='prices', args=sgqlc.types.ArgDict((
9764
+ ('filter', sgqlc.types.Arg(SubscriptionPriceFilter, graphql_name='filter', default={'billingModel': {'neq': 'MINIMUM_SPEND'}})),
9765
+ ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionPriceSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
9766
+ ))
9767
+ )
9768
+ pricing_type = sgqlc.types.Field(sgqlc.types.non_null(PricingType), graphql_name='pricingType')
9769
+ ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
9770
+ resource = sgqlc.types.Field(CustomerResource, graphql_name='resource')
9771
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
9772
+ salesforce_id = sgqlc.types.Field(String, graphql_name='salesforceId')
9773
+ scheduled_updates = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionScheduledUpdate')), graphql_name='scheduledUpdates')
9774
+ start_date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='startDate')
9775
+ status = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionStatus), graphql_name='status')
9776
+ subscription_entitlements = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionEntitlement)), graphql_name='subscriptionEntitlements', args=sgqlc.types.ArgDict((
9777
+ ('filter', sgqlc.types.Arg(SubscriptionEntitlementFilter, graphql_name='filter', default={})),
9778
+ ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionEntitlementSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
9779
+ ))
9780
+ )
9781
+ subscription_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='subscriptionId')
9782
+ sync_states = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('SyncState'))), graphql_name='syncStates')
9783
+ total_price = sgqlc.types.Field(CustomerSubscriptionTotalPrice, graphql_name='totalPrice')
9784
+ trial_configuration = sgqlc.types.Field('TrialConfiguration', graphql_name='trialConfiguration')
9785
+ trial_end_date = sgqlc.types.Field(DateTime, graphql_name='trialEndDate')
9786
+ was_in_trial = sgqlc.types.Field(Boolean, graphql_name='wasInTrial')
9787
+
9788
+
9789
+ class SubscriptionQueryAggregateGroupBy(sgqlc.types.Type):
9790
+ __schema__ = schema
9791
+ __field_names__ = ('created_at', 'customer_id', 'environment_id', 'product_id', 'resource_id', 'status')
9792
+ created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
9793
+ customer_id = sgqlc.types.Field(String, graphql_name='customerId')
9794
+ environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
9795
+ product_id = sgqlc.types.Field(String, graphql_name='productId')
9796
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
9797
+ status = sgqlc.types.Field(SubscriptionStatus, graphql_name='status')
9798
+
9799
+
9800
+ class SubscriptionQueryConnection(sgqlc.types.relay.Connection):
9801
+ __schema__ = schema
9802
+ __field_names__ = ('edges', 'page_info', 'total_count')
9803
+ edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionQueryEdge'))), graphql_name='edges')
9804
+ page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name='pageInfo')
9805
+ total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='totalCount')
9806
+
9807
+
9808
+ class SubscriptionQueryCountAggregate(sgqlc.types.Type):
9809
+ __schema__ = schema
9810
+ __field_names__ = ('created_at', 'customer_id', 'environment_id', 'product_id', 'resource_id', 'status')
9811
+ created_at = sgqlc.types.Field(Int, graphql_name='createdAt')
9812
+ customer_id = sgqlc.types.Field(Int, graphql_name='customerId')
9813
+ environment_id = sgqlc.types.Field(Int, graphql_name='environmentId')
9814
+ product_id = sgqlc.types.Field(Int, graphql_name='productId')
9815
+ resource_id = sgqlc.types.Field(Int, graphql_name='resourceId')
9816
+ status = sgqlc.types.Field(Int, graphql_name='status')
9817
+
9818
+
9819
+ class SubscriptionQueryEdge(sgqlc.types.Type):
9820
+ __schema__ = schema
9821
+ __field_names__ = ('cursor', 'node')
9822
+ cursor = sgqlc.types.Field(sgqlc.types.non_null(ConnectionCursor), graphql_name='cursor')
9823
+ node = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionQuery), graphql_name='node')
9824
+
9825
+
9826
+ class SubscriptionQueryMaxAggregate(sgqlc.types.Type):
9827
+ __schema__ = schema
9828
+ __field_names__ = ('created_at', 'customer_id', 'environment_id', 'product_id', 'resource_id', 'status')
9829
+ created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
9830
+ customer_id = sgqlc.types.Field(String, graphql_name='customerId')
9831
+ environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
9832
+ product_id = sgqlc.types.Field(String, graphql_name='productId')
9833
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
9834
+ status = sgqlc.types.Field(SubscriptionStatus, graphql_name='status')
9835
+
9836
+
9837
+ class SubscriptionQueryMinAggregate(sgqlc.types.Type):
9838
+ __schema__ = schema
9839
+ __field_names__ = ('created_at', 'customer_id', 'environment_id', 'product_id', 'resource_id', 'status')
9840
+ created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
9841
+ customer_id = sgqlc.types.Field(String, graphql_name='customerId')
9842
+ environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
9843
+ product_id = sgqlc.types.Field(String, graphql_name='productId')
9844
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
9845
+ status = sgqlc.types.Field(SubscriptionStatus, graphql_name='status')
9846
+
9847
+
9688
9848
  class SubscriptionScheduledUpdate(sgqlc.types.Type):
9689
9849
  __schema__ = schema
9690
9850
  __field_names__ = ('billing_id', 'created_at', 'schedule_status', 'schedule_variables', 'scheduled_execution_time', 'subscription_schedule_type', 'target_package')