stigg-api-client 1.230.0__tar.gz → 1.231.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: 1.230.0
3
+ Version: 1.231.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 = "1.230.0"
3
+ version = "1.231.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -203,6 +203,26 @@ def fragment_customer_resource_fragment():
203
203
  return _frag
204
204
 
205
205
 
206
+ def fragment_slim_subscription_fragment_v2():
207
+ _frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SlimSubscriptionFragmentV2')
208
+ _frag.subscription_id()
209
+ _frag.status()
210
+ _frag.pricing_type()
211
+ _frag.start_date()
212
+ _frag.current_billing_period_end()
213
+ _frag_customer = _frag.customer()
214
+ _frag_customer.customer_id()
215
+ _frag_resource = _frag.resource()
216
+ _frag_resource.resource_id()
217
+ _frag_plan = _frag.plan()
218
+ _frag_plan.ref_id(__alias__='plan_id')
219
+ _frag_addons = _frag.addons()
220
+ _frag_addons.quantity()
221
+ _frag_addons_addon = _frag_addons.addon()
222
+ _frag_addons_addon.ref_id(__alias__='addon_id')
223
+ return _frag
224
+
225
+
206
226
  def fragment_slim_subscription_fragment():
207
227
  _frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SlimSubscriptionFragment')
208
228
  _frag.id()
@@ -1252,6 +1272,7 @@ class Fragment:
1252
1272
  schedule_variables_fragment = fragment_schedule_variables_fragment()
1253
1273
  slim_customer_fragment = fragment_slim_customer_fragment()
1254
1274
  slim_subscription_fragment = fragment_slim_subscription_fragment()
1275
+ slim_subscription_fragment_v2 = fragment_slim_subscription_fragment_v2()
1255
1276
  subscription_fragment = fragment_subscription_fragment()
1256
1277
  subscription_future_update_data = fragment_subscription_future_update_data()
1257
1278
  subscription_invoice_fragment = fragment_subscription_invoice_fragment()
@@ -1484,6 +1505,20 @@ def query_get_active_subscriptions():
1484
1505
  return _op
1485
1506
 
1486
1507
 
1508
+ def query_get_active_subscriptions_list():
1509
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetActiveSubscriptionsList', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetActiveSubscriptionsInput))))
1510
+ _op_get_active_subscriptions = _op.get_active_subscriptions(input=sgqlc.types.Variable('input'))
1511
+ _op_get_active_subscriptions.__fragment__(fragment_slim_subscription_fragment_v2())
1512
+ return _op
1513
+
1514
+
1515
+ def query_get_subscription():
1516
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetSubscriptionInput))))
1517
+ _op_get_subscription = _op.get_subscription(input=sgqlc.types.Variable('input'))
1518
+ _op_get_subscription.__fragment__(fragment_subscription_fragment())
1519
+ return _op
1520
+
1521
+
1487
1522
  def query_get_coupons():
1488
1523
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCoupons')
1489
1524
  _op_coupons = _op.coupons(filter={'status': {'eq': 'ACTIVE'}}, paging={'first': 50})
@@ -1564,6 +1599,7 @@ def query_get_usage_history():
1564
1599
 
1565
1600
  class Query:
1566
1601
  get_active_subscriptions = query_get_active_subscriptions()
1602
+ get_active_subscriptions_list = query_get_active_subscriptions_list()
1567
1603
  get_checkout_state = query_get_checkout_state()
1568
1604
  get_coupons = query_get_coupons()
1569
1605
  get_customer_by_id = query_get_customer_by_id()
@@ -1575,6 +1611,7 @@ class Query:
1575
1611
  get_paywall = query_get_paywall()
1576
1612
  get_products = query_get_products()
1577
1613
  get_sdk_configuration = query_get_sdk_configuration()
1614
+ get_subscription = query_get_subscription()
1578
1615
  get_usage_history = query_get_usage_history()
1579
1616
 
1580
1617
 
@@ -2032,6 +2032,13 @@ class GetPaywallInput(sgqlc.types.Input):
2032
2032
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
2033
2033
 
2034
2034
 
2035
+ class GetSubscriptionInput(sgqlc.types.Input):
2036
+ __schema__ = schema
2037
+ __field_names__ = ('environment_id', 'subscription_id')
2038
+ environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
2039
+ subscription_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='subscriptionId')
2040
+
2041
+
2035
2042
  class GetWidgetConfigurationInput(sgqlc.types.Input):
2036
2043
  __schema__ = schema
2037
2044
  __field_names__ = ('environment_id',)
@@ -8151,7 +8158,7 @@ class PublishPackageResult(sgqlc.types.Type):
8151
8158
 
8152
8159
  class Query(sgqlc.types.Type):
8153
8160
  __schema__ = schema
8154
- __field_names__ = ('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_aws_external_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', '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')
8161
+ __field_names__ = ('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_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')
8155
8162
  addons = sgqlc.types.Field(sgqlc.types.non_null(AddonConnection), graphql_name='addons', args=sgqlc.types.ArgDict((
8156
8163
  ('filter', sgqlc.types.Arg(AddonFilter, graphql_name='filter', default={})),
8157
8164
  ('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
@@ -8288,6 +8295,10 @@ class Query(sgqlc.types.Type):
8288
8295
  )
8289
8296
  get_plan_by_ref_id = sgqlc.types.Field(Plan, graphql_name='getPlanByRefId', args=sgqlc.types.ArgDict((
8290
8297
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(GetPackageByRefIdInput), graphql_name='input', default=None)),
8298
+ ))
8299
+ )
8300
+ get_subscription = sgqlc.types.Field(sgqlc.types.non_null(CustomerSubscription), graphql_name='getSubscription', args=sgqlc.types.ArgDict((
8301
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(GetSubscriptionInput), graphql_name='input', default=None)),
8291
8302
  ))
8292
8303
  )
8293
8304
  hook = sgqlc.types.Field(Hook, graphql_name='hook', args=sgqlc.types.ArgDict((