stigg-api-client 0.716.0__py3-none-any.whl → 0.721.0__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.

@@ -1235,12 +1235,12 @@ def mutation_cancel_subscription_updates():
1235
1235
 
1236
1236
 
1237
1237
  def mutation_report_usage():
1238
- _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ReportUsage', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.UsageMeasurementCreateInput))))
1239
- _op_create_usage_measurement = _op.create_usage_measurement(usage_measurement=sgqlc.types.Variable('input'))
1240
- _op_create_usage_measurement.id()
1241
- _op_create_usage_measurement.current_usage()
1242
- _op_create_usage_measurement.next_reset_date()
1243
- _op_create_usage_measurement.timestamp()
1238
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ReportUsage', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ReportUsageInput))))
1239
+ _op_report_usage = _op.report_usage(input=sgqlc.types.Variable('input'))
1240
+ _op_report_usage.id()
1241
+ _op_report_usage.current_usage()
1242
+ _op_report_usage.next_reset_date()
1243
+ _op_report_usage.timestamp()
1244
1244
  return _op
1245
1245
 
1246
1246
 
stigg/generated/schema.py CHANGED
@@ -140,7 +140,7 @@ class DiscountType(sgqlc.types.Enum):
140
140
 
141
141
  class EntitlementResetPeriod(sgqlc.types.Enum):
142
142
  __schema__ = schema
143
- __choices__ = ('DAY', 'HOUR', 'MONTH', 'WEEK')
143
+ __choices__ = ('DAY', 'HOUR', 'MONTH', 'WEEK', 'YEAR')
144
144
 
145
145
 
146
146
  class EntitySelectionMode(sgqlc.types.Enum):
@@ -465,6 +465,11 @@ class WidgetType(sgqlc.types.Enum):
465
465
  __choices__ = ('CHECKOUT', 'CUSTOMER_PORTAL', 'PAYWALL')
466
466
 
467
467
 
468
+ class YearlyAccordingTo(sgqlc.types.Enum):
469
+ __schema__ = schema
470
+ __choices__ = ('SubscriptionStart',)
471
+
472
+
468
473
  class experimentGroupType(sgqlc.types.Enum):
469
474
  __schema__ = schema
470
475
  __choices__ = ('CONTROL', 'VARIANT')
@@ -1452,7 +1457,7 @@ class EntitlementCheckRequested(sgqlc.types.Input):
1452
1457
 
1453
1458
  class EntitlementCheckResult(sgqlc.types.Input):
1454
1459
  __schema__ = schema
1455
- __field_names__ = ('access_denied_reason', 'current_usage', 'has_access', 'has_unlimited_usage', 'monthly_reset_period_configuration', 'next_reset_date', 'requested_usage', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
1460
+ __field_names__ = ('access_denied_reason', 'current_usage', 'has_access', 'has_unlimited_usage', 'monthly_reset_period_configuration', 'next_reset_date', 'requested_usage', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
1456
1461
  access_denied_reason = sgqlc.types.Field(AccessDeniedReason, graphql_name='accessDeniedReason')
1457
1462
  current_usage = sgqlc.types.Field(Float, graphql_name='currentUsage')
1458
1463
  has_access = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasAccess')
@@ -1463,6 +1468,7 @@ class EntitlementCheckResult(sgqlc.types.Input):
1463
1468
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
1464
1469
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
1465
1470
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
1471
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
1466
1472
 
1467
1473
 
1468
1474
  class EntitlementOptions(sgqlc.types.Input):
@@ -1764,7 +1770,7 @@ class GetWidgetConfigurationInput(sgqlc.types.Input):
1764
1770
 
1765
1771
  class GrantPromotionalEntitlementInput(sgqlc.types.Input):
1766
1772
  __schema__ = schema
1767
- __field_names__ = ('custom_end_date', 'feature_id', 'has_unlimited_usage', 'is_visible', 'monthly_reset_period_configuration', 'period', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
1773
+ __field_names__ = ('custom_end_date', 'feature_id', 'has_unlimited_usage', 'is_visible', 'monthly_reset_period_configuration', 'period', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
1768
1774
  custom_end_date = sgqlc.types.Field(DateTime, graphql_name='customEndDate')
1769
1775
  feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
1770
1776
  has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
@@ -1774,6 +1780,7 @@ class GrantPromotionalEntitlementInput(sgqlc.types.Input):
1774
1780
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
1775
1781
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
1776
1782
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
1783
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
1777
1784
 
1778
1785
 
1779
1786
  class GrantPromotionalEntitlementsInput(sgqlc.types.Input):
@@ -2154,7 +2161,7 @@ class PackageEntitlementFilterPackageDTOFilter(sgqlc.types.Input):
2154
2161
 
2155
2162
  class PackageEntitlementInput(sgqlc.types.Input):
2156
2163
  __schema__ = schema
2157
- __field_names__ = ('description', 'display_name_override', 'environment_id', 'feature_id', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'package_id', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
2164
+ __field_names__ = ('description', 'display_name_override', 'environment_id', 'feature_id', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'package_id', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2158
2165
  description = sgqlc.types.Field(String, graphql_name='description')
2159
2166
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
2160
2167
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
@@ -2168,6 +2175,7 @@ class PackageEntitlementInput(sgqlc.types.Input):
2168
2175
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
2169
2176
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
2170
2177
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
2178
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
2171
2179
 
2172
2180
 
2173
2181
  class PackageEntitlementSort(sgqlc.types.Input):
@@ -2180,7 +2188,7 @@ class PackageEntitlementSort(sgqlc.types.Input):
2180
2188
 
2181
2189
  class PackageEntitlementUpdateInput(sgqlc.types.Input):
2182
2190
  __schema__ = schema
2183
- __field_names__ = ('description', 'display_name_override', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
2191
+ __field_names__ = ('description', 'display_name_override', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2184
2192
  description = sgqlc.types.Field(String, graphql_name='description')
2185
2193
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
2186
2194
  has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
@@ -2191,6 +2199,7 @@ class PackageEntitlementUpdateInput(sgqlc.types.Input):
2191
2199
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
2192
2200
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
2193
2201
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
2202
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
2194
2203
 
2195
2204
 
2196
2205
  class PackagePricingInput(sgqlc.types.Input):
@@ -2550,7 +2559,7 @@ class PromotionalEntitlementFilter(sgqlc.types.Input):
2550
2559
 
2551
2560
  class PromotionalEntitlementInput(sgqlc.types.Input):
2552
2561
  __schema__ = schema
2553
- __field_names__ = ('customer_id', 'description', 'end_date', 'environment_id', 'feature_id', 'has_unlimited_usage', 'is_visible', 'monthly_reset_period_configuration', 'period', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
2562
+ __field_names__ = ('customer_id', 'description', 'end_date', 'environment_id', 'feature_id', 'has_unlimited_usage', 'is_visible', 'monthly_reset_period_configuration', 'period', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2554
2563
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
2555
2564
  description = sgqlc.types.Field(String, graphql_name='description')
2556
2565
  end_date = sgqlc.types.Field(DateTime, graphql_name='endDate')
@@ -2563,6 +2572,7 @@ class PromotionalEntitlementInput(sgqlc.types.Input):
2563
2572
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
2564
2573
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
2565
2574
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
2575
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
2566
2576
 
2567
2577
 
2568
2578
  class PromotionalEntitlementSort(sgqlc.types.Input):
@@ -3084,7 +3094,7 @@ class SubscriptionEntitlementFilterFeatureFilter(sgqlc.types.Input):
3084
3094
 
3085
3095
  class SubscriptionEntitlementInput(sgqlc.types.Input):
3086
3096
  __schema__ = schema
3087
- __field_names__ = ('description', 'feature_id', 'has_unlimited_usage', 'monthly_reset_period_configuration', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
3097
+ __field_names__ = ('description', 'feature_id', 'has_unlimited_usage', 'monthly_reset_period_configuration', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
3088
3098
  description = sgqlc.types.Field(String, graphql_name='description')
3089
3099
  feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
3090
3100
  has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
@@ -3092,6 +3102,7 @@ class SubscriptionEntitlementInput(sgqlc.types.Input):
3092
3102
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
3093
3103
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
3094
3104
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
3105
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
3095
3106
 
3096
3107
 
3097
3108
  class SubscriptionEntitlementSort(sgqlc.types.Input):
@@ -3544,7 +3555,7 @@ class UpdatePackageEntitlementOrderItemInput(sgqlc.types.Input):
3544
3555
 
3545
3556
  class UpdateSubscriptionEntitlementInput(sgqlc.types.Input):
3546
3557
  __schema__ = schema
3547
- __field_names__ = ('feature_id', 'has_unlimited_usage', 'id', 'monthly_reset_period_configuration', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration')
3558
+ __field_names__ = ('feature_id', 'has_unlimited_usage', 'id', 'monthly_reset_period_configuration', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
3548
3559
  feature_id = sgqlc.types.Field(String, graphql_name='featureId')
3549
3560
  has_unlimited_usage = sgqlc.types.Field(Boolean, graphql_name='hasUnlimitedUsage')
3550
3561
  id = sgqlc.types.Field(String, graphql_name='id')
@@ -3552,6 +3563,7 @@ class UpdateSubscriptionEntitlementInput(sgqlc.types.Input):
3552
3563
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
3553
3564
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
3554
3565
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
3566
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
3555
3567
 
3556
3568
 
3557
3569
  class UpdateSubscriptionInput(sgqlc.types.Input):
@@ -3606,7 +3618,7 @@ class UsageEventsReportInput(sgqlc.types.Input):
3606
3618
 
3607
3619
  class UsageHistoryInput(sgqlc.types.Input):
3608
3620
  __schema__ = schema
3609
- __field_names__ = ('customer_ref_id', 'end_date', 'environment_id', 'feature_ref_id', 'monthly_reset_period_configuration', 'reset_period', 'resource_ref_id', 'start_date', 'weekly_reset_period_configuration')
3621
+ __field_names__ = ('customer_ref_id', 'end_date', 'environment_id', 'feature_ref_id', 'monthly_reset_period_configuration', 'reset_period', 'resource_ref_id', 'start_date', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
3610
3622
  customer_ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerRefId')
3611
3623
  end_date = sgqlc.types.Field(DateTime, graphql_name='endDate')
3612
3624
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
@@ -3616,6 +3628,7 @@ class UsageHistoryInput(sgqlc.types.Input):
3616
3628
  resource_ref_id = sgqlc.types.Field(String, graphql_name='resourceRefId')
3617
3629
  start_date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='startDate')
3618
3630
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
3631
+ yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
3619
3632
 
3620
3633
 
3621
3634
  class UsageMeasurementCreateInput(sgqlc.types.Input):
@@ -3722,6 +3735,12 @@ class WidgetConfigurationUpdateInput(sgqlc.types.Input):
3722
3735
  paywall_configuration = sgqlc.types.Field(PaywallConfigurationInput, graphql_name='paywallConfiguration')
3723
3736
 
3724
3737
 
3738
+ class YearlyResetPeriodConfigInput(sgqlc.types.Input):
3739
+ __schema__ = schema
3740
+ __field_names__ = ('according_to',)
3741
+ according_to = sgqlc.types.Field(sgqlc.types.non_null(YearlyAccordingTo), graphql_name='accordingTo')
3742
+
3743
+
3725
3744
  class ZuoraCredentialsInput(sgqlc.types.Input):
3726
3745
  __schema__ = schema
3727
3746
  __field_names__ = ('base_url', 'client_id', 'client_secret')
@@ -8183,6 +8202,12 @@ class WidgetConfiguration(sgqlc.types.Type):
8183
8202
  paywall = sgqlc.types.Field(PaywallConfiguration, graphql_name='paywall')
8184
8203
 
8185
8204
 
8205
+ class YearlyResetPeriodConfig(sgqlc.types.Type):
8206
+ __schema__ = schema
8207
+ __field_names__ = ('yearly_according_to',)
8208
+ yearly_according_to = sgqlc.types.Field(YearlyAccordingTo, graphql_name='yearlyAccordingTo')
8209
+
8210
+
8186
8211
  class ZuoraCredentials(sgqlc.types.Type):
8187
8212
  __schema__ = schema
8188
8213
  __field_names__ = ('base_url', 'client_id', 'client_secret')
@@ -8212,7 +8237,7 @@ class Credentials(sgqlc.types.Union):
8212
8237
 
8213
8238
  class ResetPeriodConfiguration(sgqlc.types.Union):
8214
8239
  __schema__ = schema
8215
- __types__ = (MonthlyResetPeriodConfig, WeeklyResetPeriodConfig)
8240
+ __types__ = (MonthlyResetPeriodConfig, WeeklyResetPeriodConfig, YearlyResetPeriodConfig)
8216
8241
 
8217
8242
 
8218
8243
  class ScheduleVariables(sgqlc.types.Union):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 0.716.0
3
+ Version: 0.721.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -0,0 +1,9 @@
1
+ stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
+ stigg/client.py,sha256=wSb0yyW13mWMr_4pooJArTtCa2fL5079ho9jGaZTdpE,3699
3
+ stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ stigg/generated/operations.py,sha256=CG17a-uzu2_o7MA0dlLt71CRJzgzbLt3iniGC2zmJ2A,64159
5
+ stigg/generated/schema.py,sha256=tQymopFLY6izwJv5RYTXtkworpF1oGarVQYZwbkjJ6o,520405
6
+ stigg_api_client-0.721.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-0.721.0.dist-info/METADATA,sha256=7GYUGCDSMHIAjava_0v7Ecz_g4Um13jSwQka6W6K7zw,3198
8
+ stigg_api_client-0.721.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-0.721.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
- stigg/client.py,sha256=wSb0yyW13mWMr_4pooJArTtCa2fL5079ho9jGaZTdpE,3699
3
- stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- stigg/generated/operations.py,sha256=dD5JE7JIBR018-ek7L6kPlACphmmp1wJtdsKSXhwWBo,64254
5
- stigg/generated/schema.py,sha256=3n-7qhchr-L6M-n3JarfwrutNXQ4cYVatduNgjoJ_Oo,518424
6
- stigg_api_client-0.716.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-0.716.0.dist-info/METADATA,sha256=-5m7KabNmIGN_2Zi0gtcRZnHjpxHyp7aLrRidTpPcvo,3198
8
- stigg_api_client-0.716.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-0.716.0.dist-info/RECORD,,