stigg-api-client-v2 3.95.0__py3-none-any.whl → 3.97.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-v2 might be problematic. Click here for more details.
- stigg/generated/__init__.py +9 -0
- stigg/generated/async_client.py +33 -0
- stigg/generated/client.py +33 -0
- stigg/generated/fragments.py +456 -439
- stigg/generated/get_credit_usage.py +18 -0
- stigg/generated/input_types.py +6 -0
- {stigg_api_client_v2-3.95.0.dist-info → stigg_api_client_v2-3.97.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.95.0.dist-info → stigg_api_client_v2-3.97.0.dist-info}/RECORD +10 -9
- {stigg_api_client_v2-3.95.0.dist-info → stigg_api_client_v2-3.97.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.95.0.dist-info → stigg_api_client_v2-3.97.0.dist-info}/WHEEL +0 -0
stigg/generated/__init__.py
CHANGED
|
@@ -200,6 +200,9 @@ from .fragments import (
|
|
|
200
200
|
CreditsBalanceSummaryFragmentBalances,
|
|
201
201
|
CreditsBalanceSummaryFragmentBalancesCurrency,
|
|
202
202
|
CreditsBalanceSummaryFragmentBalancesCurrencyUnits,
|
|
203
|
+
CreditUsageFragment,
|
|
204
|
+
CreditUsageFragmentSeries,
|
|
205
|
+
CreditUsageFragmentSeriesPoints,
|
|
203
206
|
CustomerFragment,
|
|
204
207
|
CustomerFragmentCoupon,
|
|
205
208
|
CustomerFragmentEligibleForTrial,
|
|
@@ -562,6 +565,7 @@ from .get_credit_ledger import (
|
|
|
562
565
|
GetCreditLedgerCreditsLedger,
|
|
563
566
|
GetCreditLedgerCreditsLedgerEvents,
|
|
564
567
|
)
|
|
568
|
+
from .get_credit_usage import GetCreditUsage, GetCreditUsageCreditUsage
|
|
565
569
|
from .get_customer_by_id import GetCustomerById, GetCustomerByIdGetCustomerByRefId
|
|
566
570
|
from .get_customer_portal_by_ref_id import (
|
|
567
571
|
GetCustomerPortalByRefId,
|
|
@@ -1196,6 +1200,9 @@ __all__ = [
|
|
|
1196
1200
|
"CreditLedgerFragment",
|
|
1197
1201
|
"CreditLedgerInput",
|
|
1198
1202
|
"CreditRateInput",
|
|
1203
|
+
"CreditUsageFragment",
|
|
1204
|
+
"CreditUsageFragmentSeries",
|
|
1205
|
+
"CreditUsageFragmentSeriesPoints",
|
|
1199
1206
|
"CreditUsageInput",
|
|
1200
1207
|
"CreditUsageTimeRange",
|
|
1201
1208
|
"CreditsBalanceSummaryFragment",
|
|
@@ -1419,6 +1426,8 @@ __all__ = [
|
|
|
1419
1426
|
"GetCreditLedger",
|
|
1420
1427
|
"GetCreditLedgerCreditsLedger",
|
|
1421
1428
|
"GetCreditLedgerCreditsLedgerEvents",
|
|
1429
|
+
"GetCreditUsage",
|
|
1430
|
+
"GetCreditUsageCreditUsage",
|
|
1422
1431
|
"GetCustomerById",
|
|
1423
1432
|
"GetCustomerByIdGetCustomerByRefId",
|
|
1424
1433
|
"GetCustomerByRefIdInput",
|
stigg/generated/async_client.py
CHANGED
|
@@ -22,6 +22,7 @@ from .get_coupons import GetCoupons
|
|
|
22
22
|
from .get_credit_balance import GetCreditBalance
|
|
23
23
|
from .get_credit_grants import GetCreditGrants
|
|
24
24
|
from .get_credit_ledger import GetCreditLedger
|
|
25
|
+
from .get_credit_usage import GetCreditUsage
|
|
25
26
|
from .get_customer_by_id import GetCustomerById
|
|
26
27
|
from .get_customer_portal_by_ref_id import GetCustomerPortalByRefId
|
|
27
28
|
from .get_customer_statistics import GetCustomerStatistics
|
|
@@ -49,6 +50,7 @@ from .input_types import (
|
|
|
49
50
|
CreditBalanceSummaryInput,
|
|
50
51
|
CreditGrantInput,
|
|
51
52
|
CreditLedgerInput,
|
|
53
|
+
CreditUsageInput,
|
|
52
54
|
CursorPaging,
|
|
53
55
|
CustomerPortalInput,
|
|
54
56
|
DelegateSubscriptionToCustomerInput,
|
|
@@ -6809,3 +6811,34 @@ class AsyncClient(AsyncBaseClient):
|
|
|
6809
6811
|
)
|
|
6810
6812
|
data = self.get_data(response)
|
|
6811
6813
|
return GetCreditLedger.model_validate(data)
|
|
6814
|
+
|
|
6815
|
+
async def get_credit_usage(
|
|
6816
|
+
self, input: CreditUsageInput, **kwargs: Any
|
|
6817
|
+
) -> GetCreditUsage:
|
|
6818
|
+
query = gql(
|
|
6819
|
+
"""
|
|
6820
|
+
query GetCreditUsage($input: CreditUsageInput!) {
|
|
6821
|
+
creditUsage(input: $input) {
|
|
6822
|
+
...CreditUsageFragment
|
|
6823
|
+
}
|
|
6824
|
+
}
|
|
6825
|
+
|
|
6826
|
+
fragment CreditUsageFragment on CreditUsage {
|
|
6827
|
+
series {
|
|
6828
|
+
featureId
|
|
6829
|
+
featureName
|
|
6830
|
+
totalCredits
|
|
6831
|
+
points {
|
|
6832
|
+
timestamp
|
|
6833
|
+
value
|
|
6834
|
+
}
|
|
6835
|
+
}
|
|
6836
|
+
}
|
|
6837
|
+
"""
|
|
6838
|
+
)
|
|
6839
|
+
variables: Dict[str, object] = {"input": input}
|
|
6840
|
+
response = await self.execute(
|
|
6841
|
+
query=query, operation_name="GetCreditUsage", variables=variables, **kwargs
|
|
6842
|
+
)
|
|
6843
|
+
data = self.get_data(response)
|
|
6844
|
+
return GetCreditUsage.model_validate(data)
|
stigg/generated/client.py
CHANGED
|
@@ -22,6 +22,7 @@ from .get_coupons import GetCoupons
|
|
|
22
22
|
from .get_credit_balance import GetCreditBalance
|
|
23
23
|
from .get_credit_grants import GetCreditGrants
|
|
24
24
|
from .get_credit_ledger import GetCreditLedger
|
|
25
|
+
from .get_credit_usage import GetCreditUsage
|
|
25
26
|
from .get_customer_by_id import GetCustomerById
|
|
26
27
|
from .get_customer_portal_by_ref_id import GetCustomerPortalByRefId
|
|
27
28
|
from .get_customer_statistics import GetCustomerStatistics
|
|
@@ -49,6 +50,7 @@ from .input_types import (
|
|
|
49
50
|
CreditBalanceSummaryInput,
|
|
50
51
|
CreditGrantInput,
|
|
51
52
|
CreditLedgerInput,
|
|
53
|
+
CreditUsageInput,
|
|
52
54
|
CursorPaging,
|
|
53
55
|
CustomerPortalInput,
|
|
54
56
|
DelegateSubscriptionToCustomerInput,
|
|
@@ -6803,3 +6805,34 @@ class Client(BaseClient):
|
|
|
6803
6805
|
)
|
|
6804
6806
|
data = self.get_data(response)
|
|
6805
6807
|
return GetCreditLedger.model_validate(data)
|
|
6808
|
+
|
|
6809
|
+
def get_credit_usage(
|
|
6810
|
+
self, input: CreditUsageInput, **kwargs: Any
|
|
6811
|
+
) -> GetCreditUsage:
|
|
6812
|
+
query = gql(
|
|
6813
|
+
"""
|
|
6814
|
+
query GetCreditUsage($input: CreditUsageInput!) {
|
|
6815
|
+
creditUsage(input: $input) {
|
|
6816
|
+
...CreditUsageFragment
|
|
6817
|
+
}
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6820
|
+
fragment CreditUsageFragment on CreditUsage {
|
|
6821
|
+
series {
|
|
6822
|
+
featureId
|
|
6823
|
+
featureName
|
|
6824
|
+
totalCredits
|
|
6825
|
+
points {
|
|
6826
|
+
timestamp
|
|
6827
|
+
value
|
|
6828
|
+
}
|
|
6829
|
+
}
|
|
6830
|
+
}
|
|
6831
|
+
"""
|
|
6832
|
+
)
|
|
6833
|
+
variables: Dict[str, object] = {"input": input}
|
|
6834
|
+
response = self.execute(
|
|
6835
|
+
query=query, operation_name="GetCreditUsage", variables=variables, **kwargs
|
|
6836
|
+
)
|
|
6837
|
+
data = self.get_data(response)
|
|
6838
|
+
return GetCreditUsage.model_validate(data)
|