stigg-api-client 3.93.0__tar.gz → 3.96.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-3.93.0 → stigg_api_client-3.96.0}/PKG-INFO +1 -1
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/pyproject.toml +1 -1
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/stigg/generated/operations.py +21 -0
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/stigg/generated/schema.py +42 -1
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/LICENSE +0 -0
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/README.md +0 -0
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/stigg/__init__.py +0 -0
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/stigg/client.py +0 -0
- {stigg_api_client-3.93.0 → stigg_api_client-3.96.0}/stigg/generated/__init__.py +0 -0
|
@@ -1508,6 +1508,18 @@ def fragment_payment_session_fragment():
|
|
|
1508
1508
|
return _frag
|
|
1509
1509
|
|
|
1510
1510
|
|
|
1511
|
+
def fragment_credit_usage_fragment():
|
|
1512
|
+
_frag = sgqlc.operation.Fragment(_schema.CreditUsage, 'CreditUsageFragment')
|
|
1513
|
+
_frag_series = _frag.series()
|
|
1514
|
+
_frag_series.feature_id()
|
|
1515
|
+
_frag_series.feature_name()
|
|
1516
|
+
_frag_series.total_credits()
|
|
1517
|
+
_frag_series_points = _frag_series.points()
|
|
1518
|
+
_frag_series_points.timestamp()
|
|
1519
|
+
_frag_series_points.value()
|
|
1520
|
+
return _frag
|
|
1521
|
+
|
|
1522
|
+
|
|
1511
1523
|
class Fragment:
|
|
1512
1524
|
addon_dependency_fragment = fragment_addon_dependency_fragment()
|
|
1513
1525
|
addon_fragment = fragment_addon_fragment()
|
|
@@ -1517,6 +1529,7 @@ class Fragment:
|
|
|
1517
1529
|
coupon_fragment = fragment_coupon_fragment()
|
|
1518
1530
|
credit_grant_fragment = fragment_credit_grant_fragment()
|
|
1519
1531
|
credit_ledger_fragment = fragment_credit_ledger_fragment()
|
|
1532
|
+
credit_usage_fragment = fragment_credit_usage_fragment()
|
|
1520
1533
|
credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
|
|
1521
1534
|
customer_fragment = fragment_customer_fragment()
|
|
1522
1535
|
customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
|
|
@@ -2015,6 +2028,13 @@ def query_get_credit_ledger():
|
|
|
2015
2028
|
return _op
|
|
2016
2029
|
|
|
2017
2030
|
|
|
2031
|
+
def query_get_credit_usage():
|
|
2032
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditUsage', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditUsageInput))))
|
|
2033
|
+
_op_credit_usage = _op.credit_usage(input=sgqlc.types.Variable('input'))
|
|
2034
|
+
_op_credit_usage.__fragment__(fragment_credit_usage_fragment())
|
|
2035
|
+
return _op
|
|
2036
|
+
|
|
2037
|
+
|
|
2018
2038
|
class Query:
|
|
2019
2039
|
get_active_subscriptions = query_get_active_subscriptions()
|
|
2020
2040
|
get_active_subscriptions_list = query_get_active_subscriptions_list()
|
|
@@ -2023,6 +2043,7 @@ class Query:
|
|
|
2023
2043
|
get_credit_balance = query_get_credit_balance()
|
|
2024
2044
|
get_credit_grants = query_get_credit_grants()
|
|
2025
2045
|
get_credit_ledger = query_get_credit_ledger()
|
|
2046
|
+
get_credit_usage = query_get_credit_usage()
|
|
2026
2047
|
get_customer_by_id = query_get_customer_by_id()
|
|
2027
2048
|
get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
|
|
2028
2049
|
get_customer_statistics = query_get_customer_statistics()
|
|
@@ -136,6 +136,11 @@ class CreditLedgerEventType(sgqlc.types.Enum):
|
|
|
136
136
|
__choices__ = ('CREDITS_CONSUMED', 'CREDITS_EXPIRED', 'CREDITS_GRANTED')
|
|
137
137
|
|
|
138
138
|
|
|
139
|
+
class CreditUsageTimeRange(sgqlc.types.Enum):
|
|
140
|
+
__schema__ = schema
|
|
141
|
+
__choices__ = ('LAST_DAY', 'LAST_MONTH', 'LAST_WEEK', 'LAST_YEAR')
|
|
142
|
+
|
|
143
|
+
|
|
139
144
|
class Currency(sgqlc.types.Enum):
|
|
140
145
|
__schema__ = schema
|
|
141
146
|
__choices__ = ('AED', 'ALL', 'AMD', 'ANG', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BIF', 'BMD', 'BND', 'BRL', 'BSD', 'BWP', 'BYN', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ETB', 'EUR', 'FJD', 'GBP', 'GEL', 'GIP', 'GMD', 'GNF', 'GYD', 'HKD', 'HRK', 'HTG', 'IDR', 'ILS', 'INR', 'ISK', 'JMD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KRW', 'KYD', 'KZT', 'LBP', 'LKR', 'LRD', 'LSL', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NOK', 'NPR', 'NZD', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SEK', 'SGD', 'SLE', 'SLL', 'SOS', 'SZL', 'THB', 'TJS', 'TOP', 'TRY', 'TTD', 'TZS', 'UAH', 'UGX', 'USD', 'UZS', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW')
|
|
@@ -1404,6 +1409,16 @@ class CreditRateInput(sgqlc.types.Input):
|
|
|
1404
1409
|
custom_currency_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='customCurrencyId')
|
|
1405
1410
|
|
|
1406
1411
|
|
|
1412
|
+
class CreditUsageInput(sgqlc.types.Input):
|
|
1413
|
+
__schema__ = schema
|
|
1414
|
+
__field_names__ = ('currency_id', 'customer_id', 'environment_id', 'resource_id', 'time_range')
|
|
1415
|
+
currency_id = sgqlc.types.Field(String, graphql_name='currencyId')
|
|
1416
|
+
customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
|
|
1417
|
+
environment_id = sgqlc.types.Field(UUID, graphql_name='environmentId')
|
|
1418
|
+
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
1419
|
+
time_range = sgqlc.types.Field(CreditUsageTimeRange, graphql_name='timeRange')
|
|
1420
|
+
|
|
1421
|
+
|
|
1407
1422
|
class CursorPaging(sgqlc.types.Input):
|
|
1408
1423
|
__schema__ = schema
|
|
1409
1424
|
__field_names__ = ('after', 'before', 'first', 'last')
|
|
@@ -5830,6 +5845,28 @@ class CreditRate(sgqlc.types.Type):
|
|
|
5830
5845
|
custom_currency_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='customCurrencyId')
|
|
5831
5846
|
|
|
5832
5847
|
|
|
5848
|
+
class CreditUsage(sgqlc.types.Type):
|
|
5849
|
+
__schema__ = schema
|
|
5850
|
+
__field_names__ = ('series',)
|
|
5851
|
+
series = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('CreditUsageSeries'))), graphql_name='series')
|
|
5852
|
+
|
|
5853
|
+
|
|
5854
|
+
class CreditUsagePoint(sgqlc.types.Type):
|
|
5855
|
+
__schema__ = schema
|
|
5856
|
+
__field_names__ = ('timestamp', 'value')
|
|
5857
|
+
timestamp = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='timestamp')
|
|
5858
|
+
value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
|
|
5859
|
+
|
|
5860
|
+
|
|
5861
|
+
class CreditUsageSeries(sgqlc.types.Type):
|
|
5862
|
+
__schema__ = schema
|
|
5863
|
+
__field_names__ = ('feature_id', 'feature_name', 'points', 'total_credits')
|
|
5864
|
+
feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
|
|
5865
|
+
feature_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureName')
|
|
5866
|
+
points = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CreditUsagePoint))), graphql_name='points')
|
|
5867
|
+
total_credits = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalCredits')
|
|
5868
|
+
|
|
5869
|
+
|
|
5833
5870
|
class CustomCurrency(sgqlc.types.Type):
|
|
5834
5871
|
__schema__ = schema
|
|
5835
5872
|
__field_names__ = ('additional_meta_data', 'created_at', 'currency_id', 'description', 'display_name', 'id', 'symbol', 'units', 'updated_at')
|
|
@@ -9610,7 +9647,7 @@ class PublishPackageResult(sgqlc.types.Type):
|
|
|
9610
9647
|
|
|
9611
9648
|
class Query(sgqlc.types.Type):
|
|
9612
9649
|
__schema__ = schema
|
|
9613
|
-
__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')
|
|
9650
|
+
__field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'credit_balance_summary', 'credit_grants', 'credit_usage', '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')
|
|
9614
9651
|
addon_associated_entities = sgqlc.types.Field(sgqlc.types.non_null(AddonAssociatedEntities), graphql_name='addonAssociatedEntities', args=sgqlc.types.ArgDict((
|
|
9615
9652
|
('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonAssociatedEntitiesInput), graphql_name='input', default=None)),
|
|
9616
9653
|
))
|
|
@@ -9649,6 +9686,10 @@ class Query(sgqlc.types.Type):
|
|
|
9649
9686
|
)
|
|
9650
9687
|
credit_grants = sgqlc.types.Field(sgqlc.types.non_null(CreditGrantConnection), graphql_name='creditGrants', args=sgqlc.types.ArgDict((
|
|
9651
9688
|
('input', sgqlc.types.Arg(sgqlc.types.non_null(GetCreditGrantsInput), graphql_name='input', default=None)),
|
|
9689
|
+
))
|
|
9690
|
+
)
|
|
9691
|
+
credit_usage = sgqlc.types.Field(sgqlc.types.non_null(CreditUsage), graphql_name='creditUsage', args=sgqlc.types.ArgDict((
|
|
9692
|
+
('input', sgqlc.types.Arg(sgqlc.types.non_null(CreditUsageInput), graphql_name='input', default=None)),
|
|
9652
9693
|
))
|
|
9653
9694
|
)
|
|
9654
9695
|
credits_ledger = sgqlc.types.Field(sgqlc.types.non_null(CreditLedger), graphql_name='creditsLedger', args=sgqlc.types.ArgDict((
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|