stigg-api-client 3.34.1__tar.gz → 3.38.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.34.1 → stigg_api_client-3.38.0}/PKG-INFO +1 -1
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/pyproject.toml +1 -1
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/stigg/generated/operations.py +63 -0
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/stigg/generated/schema.py +11 -6
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/LICENSE +0 -0
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/README.md +0 -0
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/stigg/__init__.py +0 -0
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/stigg/client.py +0 -0
- {stigg_api_client-3.34.1 → stigg_api_client-3.38.0}/stigg/generated/__init__.py +0 -0
|
@@ -1427,6 +1427,43 @@ def fragment_schedule_variables_fragment():
|
|
|
1427
1427
|
return _frag
|
|
1428
1428
|
|
|
1429
1429
|
|
|
1430
|
+
def fragment_credit_grant_fragment():
|
|
1431
|
+
_frag = sgqlc.operation.Fragment(_schema.CreditGrant, 'CreditGrantFragment')
|
|
1432
|
+
_frag.grant_id()
|
|
1433
|
+
_frag.amount()
|
|
1434
|
+
_frag.comment()
|
|
1435
|
+
_frag.currency_id()
|
|
1436
|
+
_frag.customer_id()
|
|
1437
|
+
_frag.display_name()
|
|
1438
|
+
_frag.effective_at()
|
|
1439
|
+
_frag.expire_at()
|
|
1440
|
+
_frag.grant_type()
|
|
1441
|
+
_frag.priority()
|
|
1442
|
+
_frag.consumed_amount()
|
|
1443
|
+
_frag_cost = _frag.cost()
|
|
1444
|
+
_frag_cost.amount()
|
|
1445
|
+
_frag_cost.currency()
|
|
1446
|
+
_frag.created_at()
|
|
1447
|
+
_frag.updated_at()
|
|
1448
|
+
_frag.resource_id()
|
|
1449
|
+
_frag.additional_meta_data()
|
|
1450
|
+
return _frag
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
def fragment_credits_balance_summary_fragment():
|
|
1454
|
+
_frag = sgqlc.operation.Fragment(_schema.CreditBalanceSummary, 'CreditsBalanceSummaryFragment')
|
|
1455
|
+
_frag.customer_id()
|
|
1456
|
+
_frag_balances = _frag.balances()
|
|
1457
|
+
_frag_balances_currency = _frag_balances.currency()
|
|
1458
|
+
_frag_balances_currency.currency_id()
|
|
1459
|
+
_frag_balances_currency.display_name()
|
|
1460
|
+
_frag_balances_currency.symbol()
|
|
1461
|
+
_frag_balances.current_balance()
|
|
1462
|
+
_frag_balances.total_consumed()
|
|
1463
|
+
_frag_balances.total_granted()
|
|
1464
|
+
return _frag
|
|
1465
|
+
|
|
1466
|
+
|
|
1430
1467
|
class Fragment:
|
|
1431
1468
|
addon_dependency_fragment = fragment_addon_dependency_fragment()
|
|
1432
1469
|
addon_fragment = fragment_addon_fragment()
|
|
@@ -1434,6 +1471,8 @@ class Fragment:
|
|
|
1434
1471
|
checkout_configuration_fragment = fragment_checkout_configuration_fragment()
|
|
1435
1472
|
checkout_state_fragment = fragment_checkout_state_fragment()
|
|
1436
1473
|
coupon_fragment = fragment_coupon_fragment()
|
|
1474
|
+
credit_grant_fragment = fragment_credit_grant_fragment()
|
|
1475
|
+
credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
|
|
1437
1476
|
customer_fragment = fragment_customer_fragment()
|
|
1438
1477
|
customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
|
|
1439
1478
|
customer_portal_configuration_fragment = fragment_customer_portal_configuration_fragment()
|
|
@@ -1690,6 +1729,13 @@ def mutation_transfer_subscription_to_resource():
|
|
|
1690
1729
|
return _op
|
|
1691
1730
|
|
|
1692
1731
|
|
|
1732
|
+
def mutation_grant_credits():
|
|
1733
|
+
_op = sgqlc.operation.Operation(_schema_root.mutation_type, name='GrantCredits', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditGrantInput))))
|
|
1734
|
+
_op_create_credit_grant = _op.create_credit_grant(input=sgqlc.types.Variable('input'))
|
|
1735
|
+
_op_create_credit_grant.__fragment__(fragment_credit_grant_fragment())
|
|
1736
|
+
return _op
|
|
1737
|
+
|
|
1738
|
+
|
|
1693
1739
|
class Mutation:
|
|
1694
1740
|
apply_subscription = mutation_apply_subscription()
|
|
1695
1741
|
archive_customer = mutation_archive_customer()
|
|
@@ -1700,6 +1746,7 @@ class Mutation:
|
|
|
1700
1746
|
detach_customer_payment_method = mutation_detach_customer_payment_method()
|
|
1701
1747
|
estimate_subscription = mutation_estimate_subscription()
|
|
1702
1748
|
estimate_subscription_update = mutation_estimate_subscription_update()
|
|
1749
|
+
grant_credits = mutation_grant_credits()
|
|
1703
1750
|
grant_promotional_entitlements = mutation_grant_promotional_entitlements()
|
|
1704
1751
|
import_customer = mutation_import_customer()
|
|
1705
1752
|
import_customer_bulk = mutation_import_customer_bulk()
|
|
@@ -1852,11 +1899,27 @@ def query_get_usage_history_v2():
|
|
|
1852
1899
|
return _op
|
|
1853
1900
|
|
|
1854
1901
|
|
|
1902
|
+
def query_get_credit_balance():
|
|
1903
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditBalance', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditBalanceSummaryInput))))
|
|
1904
|
+
_op_credit_balance_summary = _op.credit_balance_summary(input=sgqlc.types.Variable('input'))
|
|
1905
|
+
_op_credit_balance_summary.__fragment__(fragment_credits_balance_summary_fragment())
|
|
1906
|
+
return _op
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
def query_get_credit_grants():
|
|
1910
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditGrants', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetCreditGrantsInput))))
|
|
1911
|
+
_op_credit_grants = _op.credit_grants(input=sgqlc.types.Variable('input'))
|
|
1912
|
+
_op_credit_grants.__fragment__(fragment_credit_grant_fragment())
|
|
1913
|
+
return _op
|
|
1914
|
+
|
|
1915
|
+
|
|
1855
1916
|
class Query:
|
|
1856
1917
|
get_active_subscriptions = query_get_active_subscriptions()
|
|
1857
1918
|
get_active_subscriptions_list = query_get_active_subscriptions_list()
|
|
1858
1919
|
get_checkout_state = query_get_checkout_state()
|
|
1859
1920
|
get_coupons = query_get_coupons()
|
|
1921
|
+
get_credit_balance = query_get_credit_balance()
|
|
1922
|
+
get_credit_grants = query_get_credit_grants()
|
|
1860
1923
|
get_customer_by_id = query_get_customer_by_id()
|
|
1861
1924
|
get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
|
|
1862
1925
|
get_customer_statistics = query_get_customer_statistics()
|
|
@@ -17,7 +17,7 @@ schema -= sgqlc.types.relay.PageInfo
|
|
|
17
17
|
########################################################################
|
|
18
18
|
class AccessDeniedReason(sgqlc.types.Enum):
|
|
19
19
|
__schema__ = schema
|
|
20
|
-
__choices__ = ('BudgetExceeded', 'CustomerIsArchived', 'CustomerNotFound', 'CustomerResourceNotFound', 'FeatureNotFound', 'FeatureTypeMismatch', 'NoActiveSubscription', 'NoFeatureEntitlementInSubscription', 'RequestedUsageExceedingLimit', 'RequestedValuesMismatch', 'Unknown')
|
|
20
|
+
__choices__ = ('BudgetExceeded', 'CustomerIsArchived', 'CustomerNotFound', 'CustomerResourceNotFound', 'FeatureNotFound', 'FeatureTypeMismatch', 'NoActiveSubscription', 'NoFeatureEntitlementInSubscription', 'RequestedUsageExceedingLimit', 'RequestedValuesMismatch', 'Revoked', 'Unknown')
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class AccountAccessMethod(sgqlc.types.Enum):
|
|
@@ -2800,7 +2800,7 @@ class OpenFGACredentialsInput(sgqlc.types.Input):
|
|
|
2800
2800
|
|
|
2801
2801
|
class OverageEntitlementCreateInput(sgqlc.types.Input):
|
|
2802
2802
|
__schema__ = schema
|
|
2803
|
-
__field_names__ = ('behavior', 'description', 'display_name_override', 'enum_values', 'feature_group_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
|
|
2803
|
+
__field_names__ = ('behavior', 'description', 'display_name_override', 'enum_values', 'feature_group_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'is_granted', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
|
|
2804
2804
|
behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
|
|
2805
2805
|
description = sgqlc.types.Field(String, graphql_name='description')
|
|
2806
2806
|
display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
|
|
@@ -2811,6 +2811,7 @@ class OverageEntitlementCreateInput(sgqlc.types.Input):
|
|
|
2811
2811
|
has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
|
|
2812
2812
|
hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
|
|
2813
2813
|
is_custom = sgqlc.types.Field(Boolean, graphql_name='isCustom')
|
|
2814
|
+
is_granted = sgqlc.types.Field(Boolean, graphql_name='isGranted')
|
|
2814
2815
|
monthly_reset_period_configuration = sgqlc.types.Field(MonthlyResetPeriodConfigInput, graphql_name='monthlyResetPeriodConfiguration')
|
|
2815
2816
|
order = sgqlc.types.Field(Float, graphql_name='order')
|
|
2816
2817
|
reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
|
|
@@ -2910,7 +2911,7 @@ class PackageEntitlementFilterPackageDTOFilter(sgqlc.types.Input):
|
|
|
2910
2911
|
|
|
2911
2912
|
class PackageEntitlementInput(sgqlc.types.Input):
|
|
2912
2913
|
__schema__ = schema
|
|
2913
|
-
__field_names__ = ('behavior', 'description', 'display_name_override', 'enum_values', 'environment_id', 'feature_group_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'package_id', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
|
|
2914
|
+
__field_names__ = ('behavior', 'description', 'display_name_override', 'enum_values', 'environment_id', 'feature_group_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'is_granted', 'monthly_reset_period_configuration', 'order', 'package_id', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
|
|
2914
2915
|
behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
|
|
2915
2916
|
description = sgqlc.types.Field(String, graphql_name='description')
|
|
2916
2917
|
display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
|
|
@@ -2922,6 +2923,7 @@ class PackageEntitlementInput(sgqlc.types.Input):
|
|
|
2922
2923
|
has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
|
|
2923
2924
|
hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
|
|
2924
2925
|
is_custom = sgqlc.types.Field(Boolean, graphql_name='isCustom')
|
|
2926
|
+
is_granted = sgqlc.types.Field(Boolean, graphql_name='isGranted')
|
|
2925
2927
|
monthly_reset_period_configuration = sgqlc.types.Field(MonthlyResetPeriodConfigInput, graphql_name='monthlyResetPeriodConfiguration')
|
|
2926
2928
|
order = sgqlc.types.Field(Float, graphql_name='order')
|
|
2927
2929
|
package_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='packageId')
|
|
@@ -2941,7 +2943,7 @@ class PackageEntitlementSort(sgqlc.types.Input):
|
|
|
2941
2943
|
|
|
2942
2944
|
class PackageEntitlementUpdateInput(sgqlc.types.Input):
|
|
2943
2945
|
__schema__ = schema
|
|
2944
|
-
__field_names__ = ('behavior', 'description', 'display_name_override', 'enum_values', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
|
|
2946
|
+
__field_names__ = ('behavior', 'description', 'display_name_override', 'enum_values', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'is_granted', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
|
|
2945
2947
|
behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
|
|
2946
2948
|
description = sgqlc.types.Field(String, graphql_name='description')
|
|
2947
2949
|
display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
|
|
@@ -2950,6 +2952,7 @@ class PackageEntitlementUpdateInput(sgqlc.types.Input):
|
|
|
2950
2952
|
has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
|
|
2951
2953
|
hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
|
|
2952
2954
|
is_custom = sgqlc.types.Field(Boolean, graphql_name='isCustom')
|
|
2955
|
+
is_granted = sgqlc.types.Field(Boolean, graphql_name='isGranted')
|
|
2953
2956
|
monthly_reset_period_configuration = sgqlc.types.Field(MonthlyResetPeriodConfigInput, graphql_name='monthlyResetPeriodConfiguration')
|
|
2954
2957
|
order = sgqlc.types.Field(Float, graphql_name='order')
|
|
2955
2958
|
reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
|
|
@@ -8080,7 +8083,7 @@ class PackageDraftSummary(sgqlc.types.Type):
|
|
|
8080
8083
|
|
|
8081
8084
|
class PackageEntitlement(sgqlc.types.Type):
|
|
8082
8085
|
__schema__ = schema
|
|
8083
|
-
__field_names__ = ('behavior', 'created_at', 'description', 'display_name_override', 'enum_values', 'environment_id', 'feature', 'feature_group_ids', 'feature_groups', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'meter', 'order', 'package', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
|
|
8086
|
+
__field_names__ = ('behavior', 'created_at', 'description', 'display_name_override', 'enum_values', 'environment_id', 'feature', 'feature_group_ids', 'feature_groups', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'is_granted', 'meter', 'order', 'package', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
|
|
8084
8087
|
behavior = sgqlc.types.Field(sgqlc.types.non_null(EntitlementBehavior), graphql_name='behavior')
|
|
8085
8088
|
created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
|
|
8086
8089
|
description = sgqlc.types.Field(String, graphql_name='description')
|
|
@@ -8096,6 +8099,7 @@ class PackageEntitlement(sgqlc.types.Type):
|
|
|
8096
8099
|
hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
|
|
8097
8100
|
id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='id')
|
|
8098
8101
|
is_custom = sgqlc.types.Field(Boolean, graphql_name='isCustom')
|
|
8102
|
+
is_granted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isGranted')
|
|
8099
8103
|
meter = sgqlc.types.Field(Meter, graphql_name='meter')
|
|
8100
8104
|
order = sgqlc.types.Field(Float, graphql_name='order')
|
|
8101
8105
|
package = sgqlc.types.Field(PackageDTO, graphql_name='package')
|
|
@@ -8144,7 +8148,7 @@ class PackageEntitlementCountAggregate(sgqlc.types.Type):
|
|
|
8144
8148
|
|
|
8145
8149
|
class PackageEntitlementDeleteResponse(sgqlc.types.Type):
|
|
8146
8150
|
__schema__ = schema
|
|
8147
|
-
__field_names__ = ('behavior', 'created_at', 'description', 'display_name_override', 'enum_values', 'environment_id', 'feature_group_ids', 'feature_groups', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'order', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
|
|
8151
|
+
__field_names__ = ('behavior', 'created_at', 'description', 'display_name_override', 'enum_values', 'environment_id', 'feature_group_ids', 'feature_groups', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'is_granted', 'order', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
|
|
8148
8152
|
behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
|
|
8149
8153
|
created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
|
|
8150
8154
|
description = sgqlc.types.Field(String, graphql_name='description')
|
|
@@ -8159,6 +8163,7 @@ class PackageEntitlementDeleteResponse(sgqlc.types.Type):
|
|
|
8159
8163
|
hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
|
|
8160
8164
|
id = sgqlc.types.Field(UUID, graphql_name='id')
|
|
8161
8165
|
is_custom = sgqlc.types.Field(Boolean, graphql_name='isCustom')
|
|
8166
|
+
is_granted = sgqlc.types.Field(Boolean, graphql_name='isGranted')
|
|
8162
8167
|
order = sgqlc.types.Field(Float, graphql_name='order')
|
|
8163
8168
|
package_id = sgqlc.types.Field(String, graphql_name='packageId')
|
|
8164
8169
|
reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|