stigg-api-client 3.81.0__tar.gz → 3.88.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: 3.81.0
3
+ Version: 3.88.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 = "3.81.0"
3
+ version = "3.88.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -1471,6 +1471,20 @@ def fragment_credit_grant_fragment():
1471
1471
  return _frag
1472
1472
 
1473
1473
 
1474
+ def fragment_credit_ledger_fragment():
1475
+ _frag = sgqlc.operation.Fragment(_schema.CreditLedgerEvent, 'CreditLedgerFragment')
1476
+ _frag.timestamp()
1477
+ _frag.event_type()
1478
+ _frag.customer_id()
1479
+ _frag.resource_id()
1480
+ _frag.event_id()
1481
+ _frag.feature_id()
1482
+ _frag.amount()
1483
+ _frag.credit_grant_id()
1484
+ _frag.credit_currency_id()
1485
+ return _frag
1486
+
1487
+
1474
1488
  def fragment_credits_balance_summary_fragment():
1475
1489
  _frag = sgqlc.operation.Fragment(_schema.CreditBalanceSummary, 'CreditsBalanceSummaryFragment')
1476
1490
  _frag.customer_id()
@@ -1502,6 +1516,7 @@ class Fragment:
1502
1516
  checkout_state_fragment = fragment_checkout_state_fragment()
1503
1517
  coupon_fragment = fragment_coupon_fragment()
1504
1518
  credit_grant_fragment = fragment_credit_grant_fragment()
1519
+ credit_ledger_fragment = fragment_credit_ledger_fragment()
1505
1520
  credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
1506
1521
  customer_fragment = fragment_customer_fragment()
1507
1522
  customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
@@ -1902,6 +1917,15 @@ def query_get_entitlements():
1902
1917
  return _op
1903
1918
 
1904
1919
 
1920
+ def query_get_entitlements_state():
1921
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlementsState', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementsQuery))))
1922
+ _op_entitlements_state = _op.entitlements_state(query=sgqlc.types.Variable('query'))
1923
+ _op_entitlements_state_entitlements = _op_entitlements_state.entitlements()
1924
+ _op_entitlements_state_entitlements.__fragment__(fragment_entitlement_fragment())
1925
+ _op_entitlements_state.access_denied_reason()
1926
+ return _op
1927
+
1928
+
1905
1929
  def query_get_entitlement():
1906
1930
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlement', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementQuery))))
1907
1931
  _op_entitlement = _op.entitlement(query=sgqlc.types.Variable('query'))
@@ -1978,6 +2002,14 @@ def query_get_credit_grants():
1978
2002
  return _op
1979
2003
 
1980
2004
 
2005
+ def query_get_credit_ledger():
2006
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditLedger', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditLedgerInput))))
2007
+ _op_credits_ledger = _op.credits_ledger(input=sgqlc.types.Variable('input'))
2008
+ _op_credits_ledger_events = _op_credits_ledger.events()
2009
+ _op_credits_ledger_events.__fragment__(fragment_credit_ledger_fragment())
2010
+ return _op
2011
+
2012
+
1981
2013
  class Query:
1982
2014
  get_active_subscriptions = query_get_active_subscriptions()
1983
2015
  get_active_subscriptions_list = query_get_active_subscriptions_list()
@@ -1985,11 +2017,13 @@ class Query:
1985
2017
  get_coupons = query_get_coupons()
1986
2018
  get_credit_balance = query_get_credit_balance()
1987
2019
  get_credit_grants = query_get_credit_grants()
2020
+ get_credit_ledger = query_get_credit_ledger()
1988
2021
  get_customer_by_id = query_get_customer_by_id()
1989
2022
  get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
1990
2023
  get_customer_statistics = query_get_customer_statistics()
1991
2024
  get_entitlement = query_get_entitlement()
1992
2025
  get_entitlements = query_get_entitlements()
2026
+ get_entitlements_state = query_get_entitlements_state()
1993
2027
  get_mock_paywall = query_get_mock_paywall()
1994
2028
  get_paywall = query_get_paywall()
1995
2029
  get_products = query_get_products()
@@ -183,6 +183,11 @@ class EntitlementResetPeriod(sgqlc.types.Enum):
183
183
  __choices__ = ('DAY', 'HOUR', 'MONTH', 'WEEK', 'YEAR')
184
184
 
185
185
 
186
+ class EntitlementsStateAccessDeniedReason(sgqlc.types.Enum):
187
+ __schema__ = schema
188
+ __choices__ = ('CustomerNotFound', 'NoActiveSubscription')
189
+
190
+
186
191
  class EntitySelectionMode(sgqlc.types.Enum):
187
192
  __schema__ = schema
188
193
  __choices__ = ('BLACK_LIST', 'WHITE_LIST')
@@ -6558,6 +6563,13 @@ class EntitlementWithSummary(sgqlc.types.Type):
6558
6563
  usage_updated_at = sgqlc.types.Field(DateTime, graphql_name='usageUpdatedAt')
6559
6564
 
6560
6565
 
6566
+ class EntitlementsState(sgqlc.types.Type):
6567
+ __schema__ = schema
6568
+ __field_names__ = ('access_denied_reason', 'entitlements')
6569
+ access_denied_reason = sgqlc.types.Field(EntitlementsStateAccessDeniedReason, graphql_name='accessDeniedReason')
6570
+ entitlements = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(Entitlement))), graphql_name='entitlements')
6571
+
6572
+
6561
6573
  class EntitlementsUpdated(sgqlc.types.Type):
6562
6574
  __schema__ = schema
6563
6575
  __field_names__ = ('account_id', 'customer_id', 'entitlements', 'environment_id', 'resource_id')
@@ -9582,7 +9594,7 @@ class PublishPackageResult(sgqlc.types.Type):
9582
9594
 
9583
9595
  class Query(sgqlc.types.Type):
9584
9596
  __schema__ = schema
9585
- __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'credit_balance_summary', 'credit_grants', 'credits_ledger', 'current_environment', 'current_user', 'custom_currencies', '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', 'feature_group', 'feature_group_associated_latest_packages', 'feature_groups', '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_offer', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'is_account_email_domain_taken', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', 'offers', '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')
9597
+ __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'credit_balance_summary', 'credit_grants', 'credits_ledger', 'current_environment', 'current_user', 'custom_currencies', 'customer_portal', 'customer_resources', 'customer_subscriptions', 'customers', 'does_feature_exist', 'dump_environment_for_merge_comparison', 'dump_environment_product_catalog', 'entitlement', 'entitlements', 'entitlements_state', 'environments', 'event_logs', 'events_fields', 'experiment', 'experiments', 'feature_associated_latest_packages', 'feature_group', 'feature_group_associated_latest_packages', 'feature_groups', '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_offer', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'is_account_email_domain_taken', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', 'offers', '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')
9586
9598
  addon_associated_entities = sgqlc.types.Field(sgqlc.types.non_null(AddonAssociatedEntities), graphql_name='addonAssociatedEntities', args=sgqlc.types.ArgDict((
9587
9599
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonAssociatedEntitiesInput), graphql_name='input', default=None)),
9588
9600
  ))
@@ -9673,6 +9685,10 @@ class Query(sgqlc.types.Type):
9673
9685
  )
9674
9686
  entitlements = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(EntitlementWithSummary))), graphql_name='entitlements', args=sgqlc.types.ArgDict((
9675
9687
  ('query', sgqlc.types.Arg(sgqlc.types.non_null(FetchEntitlementsQuery), graphql_name='query', default=None)),
9688
+ ))
9689
+ )
9690
+ entitlements_state = sgqlc.types.Field(sgqlc.types.non_null(EntitlementsState), graphql_name='entitlementsState', args=sgqlc.types.ArgDict((
9691
+ ('query', sgqlc.types.Arg(sgqlc.types.non_null(FetchEntitlementsQuery), graphql_name='query', default=None)),
9676
9692
  ))
9677
9693
  )
9678
9694
  environments = sgqlc.types.Field(sgqlc.types.non_null(EnvironmentConnection), graphql_name='environments', args=sgqlc.types.ArgDict((