stigg-api-client 2.233.0__tar.gz → 2.235.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.233.0
3
+ Version: 2.235.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.233.0"
3
+ version = "2.235.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -1258,6 +1258,22 @@ def fragment_usage_history_fragment():
1258
1258
  return _frag
1259
1259
 
1260
1260
 
1261
+ def fragment_usage_history_v2_fragment():
1262
+ _frag = sgqlc.operation.Fragment(_schema.UsageHistoryV2, 'UsageHistoryV2Fragment')
1263
+ _frag_markers = _frag.markers()
1264
+ _frag_markers.type()
1265
+ _frag_markers.timestamp()
1266
+ _frag_series = _frag.series()
1267
+ _frag_series_tags = _frag_series.tags()
1268
+ _frag_series_tags.key()
1269
+ _frag_series_tags.value()
1270
+ _frag_series_points = _frag_series.points()
1271
+ _frag_series_points.timestamp()
1272
+ _frag_series_points.value()
1273
+ _frag_series_points.is_reset_point()
1274
+ return _frag
1275
+
1276
+
1261
1277
  def fragment_provision_customer_fragment():
1262
1278
  _frag = sgqlc.operation.Fragment(_schema.ProvisionedCustomer, 'ProvisionCustomerFragment')
1263
1279
  _frag_customer = _frag.customer()
@@ -1418,6 +1434,7 @@ class Fragment:
1418
1434
  total_price_fragment = fragment_total_price_fragment()
1419
1435
  typography_configuration_fragment = fragment_typography_configuration_fragment()
1420
1436
  usage_history_fragment = fragment_usage_history_fragment()
1437
+ usage_history_v2_fragment = fragment_usage_history_v2_fragment()
1421
1438
  usage_updated_fragment = fragment_usage_updated_fragment()
1422
1439
 
1423
1440
 
@@ -1756,6 +1773,13 @@ def query_get_usage_history():
1756
1773
  return _op
1757
1774
 
1758
1775
 
1776
+ def query_get_usage_history_v2():
1777
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetUsageHistoryV2', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.UsageHistoryV2Input))))
1778
+ _op_usage_history_v2 = _op.usage_history_v2(input=sgqlc.types.Variable('input'))
1779
+ _op_usage_history_v2.__fragment__(fragment_usage_history_v2_fragment())
1780
+ return _op
1781
+
1782
+
1759
1783
  class Query:
1760
1784
  get_active_subscriptions = query_get_active_subscriptions()
1761
1785
  get_active_subscriptions_list = query_get_active_subscriptions_list()
@@ -1772,6 +1796,7 @@ class Query:
1772
1796
  get_sdk_configuration = query_get_sdk_configuration()
1773
1797
  get_subscription = query_get_subscription()
1774
1798
  get_usage_history = query_get_usage_history()
1799
+ get_usage_history_v2 = query_get_usage_history_v2()
1775
1800
 
1776
1801
 
1777
1802
  def subscription_on_entitlements_updated():
@@ -4342,6 +4342,18 @@ class UsageHistoryInput(sgqlc.types.Input):
4342
4342
  yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
4343
4343
 
4344
4344
 
4345
+ class UsageHistoryV2Input(sgqlc.types.Input):
4346
+ __schema__ = schema
4347
+ __field_names__ = ('customer_id', 'end_date', 'environment_id', 'feature_id', 'group_by', 'resource_id', 'start_date')
4348
+ customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
4349
+ end_date = sgqlc.types.Field(DateTime, graphql_name='endDate')
4350
+ environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
4351
+ feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
4352
+ group_by = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name='groupBy')
4353
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
4354
+ start_date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='startDate')
4355
+
4356
+
4345
4357
  class UsageMeasurementCreateInput(sgqlc.types.Input):
4346
4358
  __schema__ = schema
4347
4359
  __field_names__ = ('created_at', 'customer_id', 'dimensions', 'environment_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
@@ -8411,7 +8423,7 @@ class PublishPackageResult(sgqlc.types.Type):
8411
8423
 
8412
8424
  class Query(sgqlc.types.Type):
8413
8425
  __schema__ = schema
8414
- __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'current_environment', 'current_user', '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', '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', 'test_hook_data', 'usage_events', 'usage_history', 'usage_measurements', 'validate_merge_environment', 'widget_configuration')
8426
+ __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'current_environment', 'current_user', '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', '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', 'test_hook_data', 'usage_events', 'usage_history', 'usage_history_v2', 'usage_measurements', 'validate_merge_environment', 'widget_configuration')
8415
8427
  addon_associated_entities = sgqlc.types.Field(sgqlc.types.non_null(AddonAssociatedEntities), graphql_name='addonAssociatedEntities', args=sgqlc.types.ArgDict((
8416
8428
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonAssociatedEntitiesInput), graphql_name='input', default=None)),
8417
8429
  ))
@@ -8679,6 +8691,10 @@ class Query(sgqlc.types.Type):
8679
8691
  )
8680
8692
  usage_history = sgqlc.types.Field(sgqlc.types.non_null('UsageHistory'), graphql_name='usageHistory', args=sgqlc.types.ArgDict((
8681
8693
  ('usage_history_input', sgqlc.types.Arg(sgqlc.types.non_null(UsageHistoryInput), graphql_name='usageHistoryInput', default=None)),
8694
+ ))
8695
+ )
8696
+ usage_history_v2 = sgqlc.types.Field(sgqlc.types.non_null('UsageHistoryV2'), graphql_name='usageHistoryV2', args=sgqlc.types.ArgDict((
8697
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(UsageHistoryV2Input), graphql_name='input', default=None)),
8682
8698
  ))
8683
8699
  )
8684
8700
  usage_measurements = sgqlc.types.Field(sgqlc.types.non_null('UsageMeasurementConnection'), graphql_name='usageMeasurements', args=sgqlc.types.ArgDict((
@@ -9550,6 +9566,35 @@ class UsageHistory(sgqlc.types.Type):
9550
9566
  usage_measurements = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UsageMeasurementPoint'))), graphql_name='usageMeasurements')
9551
9567
 
9552
9568
 
9569
+ class UsageHistoryPoint(sgqlc.types.Type):
9570
+ __schema__ = schema
9571
+ __field_names__ = ('is_reset_point', 'timestamp', 'value')
9572
+ is_reset_point = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isResetPoint')
9573
+ timestamp = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='timestamp')
9574
+ value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
9575
+
9576
+
9577
+ class UsageHistorySeries(sgqlc.types.Type):
9578
+ __schema__ = schema
9579
+ __field_names__ = ('points', 'tags')
9580
+ points = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UsageHistoryPoint))), graphql_name='points')
9581
+ tags = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UsageHistorySeriesTag'))), graphql_name='tags')
9582
+
9583
+
9584
+ class UsageHistorySeriesTag(sgqlc.types.Type):
9585
+ __schema__ = schema
9586
+ __field_names__ = ('key', 'value')
9587
+ key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='key')
9588
+ value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='value')
9589
+
9590
+
9591
+ class UsageHistoryV2(sgqlc.types.Type):
9592
+ __schema__ = schema
9593
+ __field_names__ = ('markers', 'series')
9594
+ markers = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UsageMarker'))), graphql_name='markers')
9595
+ series = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UsageHistorySeries))), graphql_name='series')
9596
+
9597
+
9553
9598
  class UsageMarker(sgqlc.types.Type):
9554
9599
  __schema__ = schema
9555
9600
  __field_names__ = ('timestamp', 'type')