stigg-api-client 3.80.0__py3-none-any.whl → 3.84.1__py3-none-any.whl

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.

@@ -1902,6 +1902,15 @@ def query_get_entitlements():
1902
1902
  return _op
1903
1903
 
1904
1904
 
1905
+ def query_get_entitlements_state():
1906
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlementsState', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementsQuery))))
1907
+ _op_entitlements_state = _op.entitlements_state(query=sgqlc.types.Variable('query'))
1908
+ _op_entitlements_state_entitlements = _op_entitlements_state.entitlements()
1909
+ _op_entitlements_state_entitlements.__fragment__(fragment_entitlement_fragment())
1910
+ _op_entitlements_state.access_denied_reason()
1911
+ return _op
1912
+
1913
+
1905
1914
  def query_get_entitlement():
1906
1915
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlement', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementQuery))))
1907
1916
  _op_entitlement = _op.entitlement(query=sgqlc.types.Variable('query'))
@@ -1990,6 +1999,7 @@ class Query:
1990
1999
  get_customer_statistics = query_get_customer_statistics()
1991
2000
  get_entitlement = query_get_entitlement()
1992
2001
  get_entitlements = query_get_entitlements()
2002
+ get_entitlements_state = query_get_entitlements_state()
1993
2003
  get_mock_paywall = query_get_mock_paywall()
1994
2004
  get_paywall = query_get_paywall()
1995
2005
  get_products = query_get_products()
stigg/generated/schema.py CHANGED
@@ -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')
@@ -220,7 +225,7 @@ class EventActor(sgqlc.types.Enum):
220
225
 
221
226
  class EventEntityType(sgqlc.types.Enum):
222
227
  __schema__ = schema
223
- __choices__ = ('ADDON', 'COUPON', 'CUSTOMER', 'ENTITLEMENT', 'FEATURE', 'FEATURE_GROUP', 'IMPORT', 'MEASUREMENT', 'PACKAGE', 'PACKAGE_GROUP', 'PLAN', 'PRODUCT', 'PROMOTIONAL_ENTITLEMENT', 'SUBSCRIPTION')
228
+ __choices__ = ('ADDON', 'COUPON', 'CREDIT', 'CUSTOMER', 'ENTITLEMENT', 'FEATURE', 'FEATURE_GROUP', 'IMPORT', 'MEASUREMENT', 'PACKAGE', 'PACKAGE_GROUP', 'PLAN', 'PRODUCT', 'PROMOTIONAL_ENTITLEMENT', 'SUBSCRIPTION')
224
229
 
225
230
 
226
231
  class EventLogSortFields(sgqlc.types.Enum):
@@ -230,7 +235,7 @@ class EventLogSortFields(sgqlc.types.Enum):
230
235
 
231
236
  class EventLogType(sgqlc.types.Enum):
232
237
  __schema__ = schema
233
- __choices__ = ('ADDON_CREATED', 'ADDON_DELETED', 'ADDON_UPDATED', 'COUPON_ARCHIVED', 'COUPON_CREATED', 'COUPON_UPDATED', 'CREATE_SUBSCRIPTION_FAILED', 'CREDITS_EXPIRED', 'CREDITS_GRANTED', 'CUSTOMER_CREATED', 'CUSTOMER_DELETED', 'CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_PAYMENT_FAILED', 'CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_UPDATED', 'EDGE_API_CUSTOMER_DATA_RESYNC', 'EDGE_API_DATA_RESYNC', 'EDGE_API_DOGGO_RESYNC', 'EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC', 'EDGE_API_SUBSCRIPTIONS_DATA_RESYNC', 'ENTITLEMENTS_UPDATED', 'ENTITLEMENT_DENIED', 'ENTITLEMENT_GRANTED', 'ENTITLEMENT_REQUESTED', 'ENTITLEMENT_USAGE_EXCEEDED', 'ENVIRONMENT_DELETED', 'FEATURE_ARCHIVED', 'FEATURE_CREATED', 'FEATURE_DELETED', 'FEATURE_GROUP_ARCHIVED', 'FEATURE_GROUP_CREATED', 'FEATURE_GROUP_UN_ARCHIVED', 'FEATURE_GROUP_UPDATED', 'FEATURE_UPDATED', 'IMPORT_INTEGRATION_CATALOG_TRIGGERED', 'IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED', 'IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED', 'MEASUREMENT_REPORTED', 'PACKAGE_GROUP_CREATED', 'PACKAGE_GROUP_UPDATED', 'PACKAGE_PUBLISHED', 'PLAN_CREATED', 'PLAN_DELETED', 'PLAN_UPDATED', 'PRODUCT_CREATED', 'PRODUCT_DELETED', 'PRODUCT_UPDATED', 'PROMOTIONAL_ENTITLEMENT_EXPIRED', 'PROMOTIONAL_ENTITLEMENT_GRANTED', 'PROMOTIONAL_ENTITLEMENT_REVOKED', 'PROMOTIONAL_ENTITLEMENT_UPDATED', 'RECALCULATE_ENTITLEMENTS_TRIGGERED', 'RESYNC_INTEGRATION_TRIGGERED', 'SUBSCRIPTIONS_MIGRATED', 'SUBSCRIPTIONS_MIGRATION_TRIGGERED', 'SUBSCRIPTION_BILLING_MONTH_ENDS_SOON', 'SUBSCRIPTION_CANCELED', 'SUBSCRIPTION_CREATED', 'SUBSCRIPTION_EXPIRED', 'SUBSCRIPTION_SPENT_LIMIT_EXCEEDED', 'SUBSCRIPTION_TRIAL_CONVERTED', 'SUBSCRIPTION_TRIAL_ENDS_SOON', 'SUBSCRIPTION_TRIAL_EXPIRED', 'SUBSCRIPTION_TRIAL_STARTED', 'SUBSCRIPTION_UPDATED', 'SUBSCRIPTION_USAGE_CHARGE_TRIGGERED', 'SUBSCRIPTION_USAGE_UPDATED', 'SYNC_FAILED', 'WIDGET_CONFIGURATION_UPDATED')
238
+ __choices__ = ('ADDON_CREATED', 'ADDON_DELETED', 'ADDON_UPDATED', 'COUPON_ARCHIVED', 'COUPON_CREATED', 'COUPON_UPDATED', 'CREATE_SUBSCRIPTION_FAILED', 'CREDITS_BALANCE_DEPLETED', 'CREDITS_BALANCE_USAGE_LOW', 'CREDITS_GRANT_DEPLETED', 'CREDITS_GRANT_EXPIRED', 'CREDITS_GRANT_GRANTED', 'CREDITS_GRANT_UPDATED', 'CREDITS_GRANT_USAGE_LOW', 'CUSTOMER_CREATED', 'CUSTOMER_DELETED', 'CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_PAYMENT_FAILED', 'CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_UPDATED', 'EDGE_API_CUSTOMER_DATA_RESYNC', 'EDGE_API_DATA_RESYNC', 'EDGE_API_DOGGO_RESYNC', 'EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC', 'EDGE_API_SUBSCRIPTIONS_DATA_RESYNC', 'ENTITLEMENTS_UPDATED', 'ENTITLEMENT_DENIED', 'ENTITLEMENT_GRANTED', 'ENTITLEMENT_REQUESTED', 'ENTITLEMENT_USAGE_EXCEEDED', 'ENVIRONMENT_DELETED', 'FEATURE_ARCHIVED', 'FEATURE_CREATED', 'FEATURE_DELETED', 'FEATURE_GROUP_ARCHIVED', 'FEATURE_GROUP_CREATED', 'FEATURE_GROUP_UN_ARCHIVED', 'FEATURE_GROUP_UPDATED', 'FEATURE_UPDATED', 'IMPORT_INTEGRATION_CATALOG_TRIGGERED', 'IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED', 'IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED', 'MEASUREMENT_REPORTED', 'PACKAGE_GROUP_CREATED', 'PACKAGE_GROUP_UPDATED', 'PACKAGE_PUBLISHED', 'PLAN_CREATED', 'PLAN_DELETED', 'PLAN_UPDATED', 'PRODUCT_CREATED', 'PRODUCT_DELETED', 'PRODUCT_UPDATED', 'PROMOTIONAL_ENTITLEMENT_EXPIRED', 'PROMOTIONAL_ENTITLEMENT_GRANTED', 'PROMOTIONAL_ENTITLEMENT_REVOKED', 'PROMOTIONAL_ENTITLEMENT_UPDATED', 'RECALCULATE_ENTITLEMENTS_TRIGGERED', 'RESYNC_INTEGRATION_TRIGGERED', 'SUBSCRIPTIONS_MIGRATED', 'SUBSCRIPTIONS_MIGRATION_TRIGGERED', 'SUBSCRIPTION_BILLING_MONTH_ENDS_SOON', 'SUBSCRIPTION_CANCELED', 'SUBSCRIPTION_CREATED', 'SUBSCRIPTION_EXPIRED', 'SUBSCRIPTION_SPENT_LIMIT_EXCEEDED', 'SUBSCRIPTION_TRIAL_CONVERTED', 'SUBSCRIPTION_TRIAL_ENDS_SOON', 'SUBSCRIPTION_TRIAL_EXPIRED', 'SUBSCRIPTION_TRIAL_STARTED', 'SUBSCRIPTION_UPDATED', 'SUBSCRIPTION_USAGE_CHARGE_TRIGGERED', 'SUBSCRIPTION_USAGE_UPDATED', 'SYNC_FAILED', 'WIDGET_CONFIGURATION_UPDATED')
234
239
 
235
240
 
236
241
  class ExperimentSortFields(sgqlc.types.Enum):
@@ -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((
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 3.80.0
3
+ Version: 3.84.1
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -0,0 +1,9 @@
1
+ stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
+ stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
+ stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ stigg/generated/operations.py,sha256=Bb8r4BqUxHn0OR4B5N9RepOBAogZCEgBF_kVMfvyMa4,89792
5
+ stigg/generated/schema.py,sha256=7aTatu0R7i_Rbx9qeSarFV7r5-YjNaSz-mFtMyBe2Gg,725366
6
+ stigg_api_client-3.84.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-3.84.1.dist-info/METADATA,sha256=-qdobCENDfbkeRMFHyGKGwopZwfGxdcM9MVNF09AwYU,3197
8
+ stigg_api_client-3.84.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-3.84.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
- stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
- stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- stigg/generated/operations.py,sha256=XtxE-2iRj1U7Ui86c8MlfCt385_6iwrQBFOH0cxRcnI,89191
5
- stigg/generated/schema.py,sha256=zSJDbsAjajR99GHhnpIsVQEbtmiZf_woROcj1nx85T0,724372
6
- stigg_api_client-3.80.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-3.80.0.dist-info/METADATA,sha256=E74ANqbTWdixy-JF0rBXjnRhlS_iyH1lv9N9-irLKrk,3197
8
- stigg_api_client-3.80.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-3.80.0.dist-info/RECORD,,