stigg-api-client 2.25.0__tar.gz → 2.43.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.25.0
3
+ Version: 2.43.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.25.0"
3
+ version = "2.43.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -62,7 +62,7 @@ class BillingCadence(sgqlc.types.Enum):
62
62
 
63
63
  class BillingModel(sgqlc.types.Enum):
64
64
  __schema__ = schema
65
- __choices__ = ('FLAT_FEE', 'PER_UNIT', 'USAGE_BASED')
65
+ __choices__ = ('FLAT_FEE', 'MINIMUM_SPEND', 'PER_UNIT', 'USAGE_BASED')
66
66
 
67
67
 
68
68
  class BillingPeriod(sgqlc.types.Enum):
@@ -256,7 +256,7 @@ class IntegrationSortFields(sgqlc.types.Enum):
256
256
 
257
257
  class InvoiceLineItemType(sgqlc.types.Enum):
258
258
  __schema__ = schema
259
- __choices__ = ('AddonCharge', 'BaseCharge', 'InAdvanceCommitmentCharge', 'MinimumSpendAdjustmentCharge', 'Other', 'OverageCharge', 'PayAsYouGoCharge', 'TierCharge', 'ZeroAmountBaseCharge')
259
+ __choices__ = ('AddonCharge', 'BaseCharge', 'InAdvanceCommitmentCharge', 'MinimumSpendAdjustmentCharge', 'MinimumSpendCharge', 'Other', 'OverageCharge', 'PayAsYouGoCharge', 'TierCharge', 'ZeroAmountBaseCharge')
260
260
 
261
261
 
262
262
  class JSON(sgqlc.types.Scalar):
@@ -1799,9 +1799,10 @@ class EventLogSort(sgqlc.types.Input):
1799
1799
 
1800
1800
  class EventsFieldsInput(sgqlc.types.Input):
1801
1801
  __schema__ = schema
1802
- __field_names__ = ('customer_id', 'environment_id', 'filters', 'meter_id', 'resource_id', 'unique_values_limit')
1802
+ __field_names__ = ('customer_id', 'environment_id', 'feature_id', 'filters', 'meter_id', 'resource_id', 'unique_values_limit')
1803
1803
  customer_id = sgqlc.types.Field(String, graphql_name='customerId')
1804
1804
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
1805
+ feature_id = sgqlc.types.Field(String, graphql_name='featureId')
1805
1806
  filters = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('MeterFilterDefinitionInput')), graphql_name='filters')
1806
1807
  meter_id = sgqlc.types.Field(String, graphql_name='meterId')
1807
1808
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
@@ -3243,9 +3244,10 @@ class RemoveExperimentFromCustomerSubscriptionInput(sgqlc.types.Input):
3243
3244
 
3244
3245
  class ReportUsageBaseInput(sgqlc.types.Input):
3245
3246
  __schema__ = schema
3246
- __field_names__ = ('created_at', 'customer_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
3247
+ __field_names__ = ('created_at', 'customer_id', 'dimensions', 'feature_id', 'resource_id', 'update_behavior', 'value')
3247
3248
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
3248
3249
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
3250
+ dimensions = sgqlc.types.Field(JSON, graphql_name='dimensions')
3249
3251
  feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
3250
3252
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
3251
3253
  update_behavior = sgqlc.types.Field(UsageUpdateBehavior, graphql_name='updateBehavior')
@@ -3261,9 +3263,10 @@ class ReportUsageBulkInput(sgqlc.types.Input):
3261
3263
 
3262
3264
  class ReportUsageInput(sgqlc.types.Input):
3263
3265
  __schema__ = schema
3264
- __field_names__ = ('created_at', 'customer_id', 'environment_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
3266
+ __field_names__ = ('created_at', 'customer_id', 'dimensions', 'environment_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
3265
3267
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
3266
3268
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
3269
+ dimensions = sgqlc.types.Field(JSON, graphql_name='dimensions')
3267
3270
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
3268
3271
  feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
3269
3272
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
@@ -4184,9 +4187,10 @@ class UsageHistoryInput(sgqlc.types.Input):
4184
4187
 
4185
4188
  class UsageMeasurementCreateInput(sgqlc.types.Input):
4186
4189
  __schema__ = schema
4187
- __field_names__ = ('created_at', 'customer_id', 'environment_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
4190
+ __field_names__ = ('created_at', 'customer_id', 'dimensions', 'environment_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
4188
4191
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
4189
4192
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
4193
+ dimensions = sgqlc.types.Field(JSON, graphql_name='dimensions')
4190
4194
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
4191
4195
  feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
4192
4196
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
@@ -5228,7 +5232,7 @@ class CustomerSubscription(sgqlc.types.Type):
5228
5232
  payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
5229
5233
  plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='plan')
5230
5234
  prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionPrice')), graphql_name='prices', args=sgqlc.types.ArgDict((
5231
- ('filter', sgqlc.types.Arg(SubscriptionPriceFilter, graphql_name='filter', default={})),
5235
+ ('filter', sgqlc.types.Arg(SubscriptionPriceFilter, graphql_name='filter', default={'billingModel': {'neq': 'MINIMUM_SPEND'}})),
5232
5236
  ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionPriceSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
5233
5237
  ))
5234
5238
  )
@@ -6994,6 +6998,14 @@ class NumberChange(sgqlc.types.Type):
6994
6998
  change_type = sgqlc.types.Field(ChangeType, graphql_name='changeType')
6995
6999
 
6996
7000
 
7001
+ class OverageBillingPeriodChange(sgqlc.types.Type):
7002
+ __schema__ = schema
7003
+ __field_names__ = ('after', 'before', 'change_type')
7004
+ after = sgqlc.types.Field(OverageBillingPeriod, graphql_name='after')
7005
+ before = sgqlc.types.Field(OverageBillingPeriod, graphql_name='before')
7006
+ change_type = sgqlc.types.Field(ChangeType, graphql_name='changeType')
7007
+
7008
+
6997
7009
  class PackageAlreadyPublishedError(sgqlc.types.Type):
6998
7010
  __schema__ = schema
6999
7011
  __field_names__ = ('code', 'is_validation_error')
@@ -7003,7 +7015,7 @@ class PackageAlreadyPublishedError(sgqlc.types.Type):
7003
7015
 
7004
7016
  class PackageChanges(sgqlc.types.Type):
7005
7017
  __schema__ = schema
7006
- __field_names__ = ('additional_meta_data', 'base_plan', 'compatible_addons', 'compatible_package_groups', 'default_trial_config', 'dependencies', 'description', 'display_name', 'entitlements', 'hidden_from_widgets', 'max_quantity', 'minimum_spend', 'overage_prices', 'prices', 'pricing_type', 'total_changes')
7018
+ __field_names__ = ('additional_meta_data', 'base_plan', 'compatible_addons', 'compatible_package_groups', 'default_trial_config', 'dependencies', 'description', 'display_name', 'entitlements', 'hidden_from_widgets', 'max_quantity', 'minimum_spend', 'overage_billing_period', 'overage_prices', 'prices', 'pricing_type', 'total_changes')
7007
7019
  additional_meta_data = sgqlc.types.Field(AdditionalMetaDataChange, graphql_name='additionalMetaData')
7008
7020
  base_plan = sgqlc.types.Field(BasePlanChange, graphql_name='basePlan')
7009
7021
  compatible_addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PlanCompatibleAddonChange')), graphql_name='compatibleAddons')
@@ -7016,6 +7028,7 @@ class PackageChanges(sgqlc.types.Type):
7016
7028
  hidden_from_widgets = sgqlc.types.Field(HiddenFromWidgetsChange, graphql_name='hiddenFromWidgets')
7017
7029
  max_quantity = sgqlc.types.Field(NumberChange, graphql_name='maxQuantity')
7018
7030
  minimum_spend = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(MinimumSpendChange)), graphql_name='minimumSpend')
7031
+ overage_billing_period = sgqlc.types.Field(OverageBillingPeriodChange, graphql_name='overageBillingPeriod')
7019
7032
  overage_prices = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('PackagePriceChange'))), graphql_name='overagePrices')
7020
7033
  prices = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('PackagePriceChange'))), graphql_name='prices')
7021
7034
  pricing_type = sgqlc.types.Field('PricingTypeChange', graphql_name='pricingType')
@@ -8783,12 +8796,13 @@ class SubscriptionInvoicePreview(sgqlc.types.Type):
8783
8796
 
8784
8797
  class SubscriptionInvoicePreviewLineItem(sgqlc.types.Type):
8785
8798
  __schema__ = schema
8786
- __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'lines', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8799
+ __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'lines', 'period', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8787
8800
  amount = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amount')
8788
8801
  cost_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='costDescription')
8789
8802
  description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description')
8790
8803
  has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
8791
8804
  lines = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemData')), graphql_name='lines')
8805
+ period = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemPeriod'), graphql_name='period')
8792
8806
  price = sgqlc.types.Field(Price, graphql_name='price')
8793
8807
  proration = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='proration')
8794
8808
  quantity = sgqlc.types.Field(Int, graphql_name='quantity')
@@ -8799,11 +8813,12 @@ class SubscriptionInvoicePreviewLineItem(sgqlc.types.Type):
8799
8813
 
8800
8814
  class SubscriptionInvoicePreviewLineItemData(sgqlc.types.Type):
8801
8815
  __schema__ = schema
8802
- __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8816
+ __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'period', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8803
8817
  amount = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amount')
8804
8818
  cost_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='costDescription')
8805
8819
  description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description')
8806
8820
  has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
8821
+ period = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemPeriod'), graphql_name='period')
8807
8822
  price = sgqlc.types.Field(Price, graphql_name='price')
8808
8823
  proration = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='proration')
8809
8824
  quantity = sgqlc.types.Field(Int, graphql_name='quantity')
@@ -8812,6 +8827,13 @@ class SubscriptionInvoicePreviewLineItemData(sgqlc.types.Type):
8812
8827
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
8813
8828
 
8814
8829
 
8830
+ class SubscriptionInvoicePreviewLineItemPeriod(sgqlc.types.Type):
8831
+ __schema__ = schema
8832
+ __field_names__ = ('end', 'start')
8833
+ end = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='end')
8834
+ start = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='start')
8835
+
8836
+
8815
8837
  class SubscriptionMaximumSpend(sgqlc.types.Type):
8816
8838
  __schema__ = schema
8817
8839
  __field_names__ = ('discount', 'discount_details', 'last_updated_at', 'lines', 'maximum_spend', 'sub_total', 'total')