stigg-api-client 2.503.0__tar.gz → 3.6.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.503.0
3
+ Version: 3.6.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 = "2.503.0"
3
+ version = "3.6.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -1303,6 +1303,15 @@ class CreateWorkflowTriggerInput(sgqlc.types.Input):
1303
1303
  trigger_id = sgqlc.types.Field(String, graphql_name='triggerId')
1304
1304
 
1305
1305
 
1306
+ class CreditBalanceSummaryInput(sgqlc.types.Input):
1307
+ __schema__ = schema
1308
+ __field_names__ = ('currency_id', 'customer_id', 'environment_id', 'resource_id')
1309
+ currency_id = sgqlc.types.Field(String, graphql_name='currencyId')
1310
+ customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
1311
+ environment_id = sgqlc.types.Field(UUID, graphql_name='environmentId')
1312
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
1313
+
1314
+
1306
1315
  class CreditGrantInput(sgqlc.types.Input):
1307
1316
  __schema__ = schema
1308
1317
  __field_names__ = ('additional_meta_data', 'amount', 'comment', 'cost', 'currency_id', 'customer_id', 'display_name', 'effective_at', 'environment_id', 'expire_at', 'grant_type', 'priority', 'resource_id')
@@ -2142,6 +2151,13 @@ class FeatureFilter(sgqlc.types.Input):
2142
2151
  updated_at = sgqlc.types.Field(DateFieldComparison, graphql_name='updatedAt')
2143
2152
 
2144
2153
 
2154
+ class FeatureGroupAssociatedLatestPackagesInput(sgqlc.types.Input):
2155
+ __schema__ = schema
2156
+ __field_names__ = ('environment_id', 'feature_group_id')
2157
+ environment_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='environmentId')
2158
+ feature_group_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureGroupId')
2159
+
2160
+
2145
2161
  class FeatureGroupFilter(sgqlc.types.Input):
2146
2162
  __schema__ = schema
2147
2163
  __field_names__ = ('and_', 'created_at', 'display_name', 'environment_id', 'feature_group_id', 'id', 'is_latest', 'or_', 'status', 'updated_at', 'version_number')
@@ -5460,6 +5476,23 @@ class CouponMinAggregate(sgqlc.types.Type):
5460
5476
  updated_at = sgqlc.types.Field(DateTime, graphql_name='updatedAt')
5461
5477
 
5462
5478
 
5479
+ class CreditBalanceDTO(sgqlc.types.Type):
5480
+ __schema__ = schema
5481
+ __field_names__ = ('currency_id', 'current_balance', 'total_consumed', 'total_granted')
5482
+ currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
5483
+ current_balance = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='currentBalance')
5484
+ total_consumed = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalConsumed')
5485
+ total_granted = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalGranted')
5486
+
5487
+
5488
+ class CreditBalanceSummaryDTO(sgqlc.types.Type):
5489
+ __schema__ = schema
5490
+ __field_names__ = ('balances', 'customer_id', 'resource_id')
5491
+ balances = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CreditBalanceDTO))), graphql_name='balances')
5492
+ customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
5493
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
5494
+
5495
+
5463
5496
  class CreditGrant(sgqlc.types.Type):
5464
5497
  __schema__ = schema
5465
5498
  __field_names__ = ('additional_meta_data', 'amount', 'comment', 'cost', 'created_at', 'currency_id', 'current_amount', 'customer_id', 'display_name', 'effective_at', 'expire_at', 'grant_type', 'id', 'priority', 'resource_id', 'updated_at')
@@ -9085,7 +9118,7 @@ class PublishPackageResult(sgqlc.types.Type):
9085
9118
 
9086
9119
  class Query(sgqlc.types.Type):
9087
9120
  __schema__ = schema
9088
- __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'credit_grants', '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_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_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', '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')
9121
+ __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'credit_balance_summary', 'credit_grants', '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_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', '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')
9089
9122
  addon_associated_entities = sgqlc.types.Field(sgqlc.types.non_null(AddonAssociatedEntities), graphql_name='addonAssociatedEntities', args=sgqlc.types.ArgDict((
9090
9123
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonAssociatedEntitiesInput), graphql_name='input', default=None)),
9091
9124
  ))
@@ -9116,6 +9149,10 @@ class Query(sgqlc.types.Type):
9116
9149
  ('filter', sgqlc.types.Arg(CouponFilter, graphql_name='filter', default={})),
9117
9150
  ('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
9118
9151
  ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(CouponSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
9152
+ ))
9153
+ )
9154
+ credit_balance_summary = sgqlc.types.Field(sgqlc.types.non_null(CreditBalanceSummaryDTO), graphql_name='creditBalanceSummary', args=sgqlc.types.ArgDict((
9155
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(CreditBalanceSummaryInput), graphql_name='input', default=None)),
9119
9156
  ))
9120
9157
  )
9121
9158
  credit_grants = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CreditGrant))), graphql_name='creditGrants', args=sgqlc.types.ArgDict((
@@ -9202,6 +9239,10 @@ class Query(sgqlc.types.Type):
9202
9239
  )
9203
9240
  feature_group = sgqlc.types.Field(FeatureGroup, graphql_name='featureGroup', args=sgqlc.types.ArgDict((
9204
9241
  ('id', sgqlc.types.Arg(sgqlc.types.non_null(UUID), graphql_name='id', default=None)),
9242
+ ))
9243
+ )
9244
+ feature_group_associated_latest_packages = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(PackageDTO))), graphql_name='featureGroupAssociatedLatestPackages', args=sgqlc.types.ArgDict((
9245
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(FeatureGroupAssociatedLatestPackagesInput), graphql_name='input', default=None)),
9205
9246
  ))
9206
9247
  )
9207
9248
  feature_groups = sgqlc.types.Field(sgqlc.types.non_null(FeatureGroupConnection), graphql_name='featureGroups', args=sgqlc.types.ArgDict((