stigg-api-client 3.81.0__py3-none-any.whl → 3.88.0__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.
- stigg/generated/operations.py +34 -0
- stigg/generated/schema.py +17 -1
- {stigg_api_client-3.81.0.dist-info → stigg_api_client-3.88.0.dist-info}/METADATA +1 -1
- stigg_api_client-3.88.0.dist-info/RECORD +9 -0
- stigg_api_client-3.81.0.dist-info/RECORD +0 -9
- {stigg_api_client-3.81.0.dist-info → stigg_api_client-3.88.0.dist-info}/LICENSE +0 -0
- {stigg_api_client-3.81.0.dist-info → stigg_api_client-3.88.0.dist-info}/WHEEL +0 -0
stigg/generated/operations.py
CHANGED
|
@@ -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()
|
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')
|
|
@@ -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((
|
|
@@ -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=Fh1oPQFjWSQvfstnTw0Ag7JR7hecs9Goq9tjrea32Kw,90706
|
|
5
|
+
stigg/generated/schema.py,sha256=7aTatu0R7i_Rbx9qeSarFV7r5-YjNaSz-mFtMyBe2Gg,725366
|
|
6
|
+
stigg_api_client-3.88.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
|
|
7
|
+
stigg_api_client-3.88.0.dist-info/METADATA,sha256=jdgIh92i5lgAdzxZeKZNC_bWRcxWAMdiTaMKw-JPLvQ,3197
|
|
8
|
+
stigg_api_client-3.88.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
9
|
+
stigg_api_client-3.88.0.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=y8PqzjeAAtG2-PZwfw6M7zhu2Wr2iI7jlxqa-mSLI2g,724529
|
|
6
|
-
stigg_api_client-3.81.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
|
|
7
|
-
stigg_api_client-3.81.0.dist-info/METADATA,sha256=ipGdr6WWNWR18mrXz2FnSTaj8-_uxcQKOVQZThnYjEs,3197
|
|
8
|
-
stigg_api_client-3.81.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
9
|
-
stigg_api_client-3.81.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|