stigg-api-client 2.442.0__py3-none-any.whl → 2.446.1__py3-none-any.whl

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.

@@ -208,6 +208,41 @@ def fragment_customer_resource_fragment():
208
208
  return _frag
209
209
 
210
210
 
211
+ def fragment_page_info_fragment():
212
+ _frag = sgqlc.operation.Fragment(_schema.PageInfo, 'PageInfoFragment')
213
+ _frag.start_cursor()
214
+ _frag.end_cursor()
215
+ _frag.has_next_page()
216
+ _frag.has_previous_page()
217
+ return _frag
218
+
219
+
220
+ def fragment_subscription_query_fragment():
221
+ _frag = sgqlc.operation.Fragment(_schema.SubscriptionQuery, 'SubscriptionQueryFragment')
222
+ _frag.subscription_id()
223
+ _frag.status()
224
+ _frag.pricing_type()
225
+ _frag.start_date()
226
+ _frag.current_billing_period_end()
227
+ _frag_customer = _frag.customer()
228
+ _frag_customer.customer_id()
229
+ _frag_paying_customer = _frag.paying_customer()
230
+ _frag_paying_customer.customer_id()
231
+ _frag_resource = _frag.resource()
232
+ _frag_resource.resource_id()
233
+ _frag_plan = _frag.plan()
234
+ _frag_plan.ref_id(__alias__='plan_id')
235
+ _frag_plan.display_name()
236
+ _frag_addons = _frag.addons()
237
+ _frag_addons.quantity()
238
+ _frag_addons_addon = _frag_addons.addon()
239
+ _frag_addons_addon.ref_id(__alias__='addon_id')
240
+ _frag_trial_configuration = _frag.trial_configuration()
241
+ _frag_trial_configuration.trial_end_behavior()
242
+ _frag.trial_end_date()
243
+ return _frag
244
+
245
+
211
246
  def fragment_slim_subscription_fragment_v2():
212
247
  _frag = sgqlc.operation.Fragment(_schema.CustomerSubscription, 'SlimSubscriptionFragmentV2')
213
248
  _frag.subscription_id()
@@ -1407,6 +1442,7 @@ class Fragment:
1407
1442
  overage_price_fragment = fragment_overage_price_fragment()
1408
1443
  package_entitlement_fragment = fragment_package_entitlement_fragment()
1409
1444
  package_published_payload = fragment_package_published_payload()
1445
+ page_info_fragment = fragment_page_info_fragment()
1410
1446
  paywall_calculated_price_points_fragment = fragment_paywall_calculated_price_points_fragment()
1411
1447
  paywall_configuration_fragment = fragment_paywall_configuration_fragment()
1412
1448
  paywall_currency_fragment = fragment_paywall_currency_fragment()
@@ -1432,6 +1468,7 @@ class Fragment:
1432
1468
  subscription_preview_fragment = fragment_subscription_preview_fragment()
1433
1469
  subscription_preview_invoice_fragment = fragment_subscription_preview_invoice_fragment()
1434
1470
  subscription_preview_v2_fragment = fragment_subscription_preview_v2_fragment()
1471
+ subscription_query_fragment = fragment_subscription_query_fragment()
1435
1472
  subscription_scheduled_update_data = fragment_subscription_scheduled_update_data()
1436
1473
  subscription_trial_configuration_fragment = fragment_subscription_trial_configuration_fragment()
1437
1474
  total_price_fragment = fragment_total_price_fragment()
@@ -1691,6 +1728,17 @@ def query_get_active_subscriptions_list():
1691
1728
  return _op
1692
1729
 
1693
1730
 
1731
+ def query_subscriptions():
1732
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='Subscriptions', variables=dict(filter=sgqlc.types.Arg(_schema.SubscriptionQueryFilter), paging=sgqlc.types.Arg(_schema.CursorPaging), sorting=sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_schema.SubscriptionQuerySort)))))
1733
+ _op_subscriptions = _op.subscriptions(filter=sgqlc.types.Variable('filter'), paging=sgqlc.types.Variable('paging'), sorting=sgqlc.types.Variable('sorting'))
1734
+ _op_subscriptions_edges = _op_subscriptions.edges()
1735
+ _op_subscriptions_edges_node = _op_subscriptions_edges.node()
1736
+ _op_subscriptions_edges_node.__fragment__(fragment_subscription_query_fragment())
1737
+ _op_subscriptions_page_info = _op_subscriptions.page_info()
1738
+ _op_subscriptions_page_info.__fragment__(fragment_page_info_fragment())
1739
+ return _op
1740
+
1741
+
1694
1742
  def query_get_subscription():
1695
1743
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetSubscriptionInput))))
1696
1744
  _op_get_subscription = _op.get_subscription(input=sgqlc.types.Variable('input'))
@@ -1800,6 +1848,7 @@ class Query:
1800
1848
  get_subscription = query_get_subscription()
1801
1849
  get_usage_history = query_get_usage_history()
1802
1850
  get_usage_history_v2 = query_get_usage_history_v2()
1851
+ subscriptions = query_subscriptions()
1803
1852
 
1804
1853
 
1805
1854
  def subscription_on_entitlements_updated():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.442.0
3
+ Version: 2.446.1
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -1,9 +1,9 @@
1
1
  stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
2
  stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
3
  stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- stigg/generated/operations.py,sha256=dmuLeEUaRmjXstY8j9gOMC6qMbgGvABsjbmr8IoI304,79586
4
+ stigg/generated/operations.py,sha256=Vgaywmu1X8Ob-emRvO_kKE5jP0wWMuZbUVkpc_BC1uA,81768
5
5
  stigg/generated/schema.py,sha256=7e4mcgLjPfvqiutgFyLlT7iZMsL9A1vzcsmKifkoc6k,662908
6
- stigg_api_client-2.442.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-2.442.0.dist-info/METADATA,sha256=migT0CPEihLeqAirTZgsrnaAcC7O-zK9YC1uFWI7vnU,3198
8
- stigg_api_client-2.442.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-2.442.0.dist-info/RECORD,,
6
+ stigg_api_client-2.446.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-2.446.1.dist-info/METADATA,sha256=zYME16GmWgevEYv3EIk2IFlFbrRTF5qh90m3A4YYVu8,3198
8
+ stigg_api_client-2.446.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-2.446.1.dist-info/RECORD,,