stigg-api-client 0.3.0__py3-none-any.whl → 0.5.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.
- stigg/client.py +6 -0
- stigg/generated/operations.py +15 -1
- stigg/generated/schema.py +182 -9
- {stigg_api_client-0.3.0.dist-info → stigg_api_client-0.5.0.dist-info}/METADATA +2 -1
- stigg_api_client-0.5.0.dist-info/RECORD +8 -0
- {stigg_api_client-0.3.0.dist-info → stigg_api_client-0.5.0.dist-info}/WHEEL +1 -1
- stigg_api_client-0.3.0.dist-info/RECORD +0 -8
stigg/client.py
CHANGED
|
@@ -12,6 +12,12 @@ class StiggClient:
|
|
|
12
12
|
data = self._endpoint(operation, variables)
|
|
13
13
|
if raw_response:
|
|
14
14
|
return data
|
|
15
|
+
|
|
16
|
+
# clean up data to so an exepction will be raised
|
|
17
|
+
errors = data.get('errors')
|
|
18
|
+
if errors:
|
|
19
|
+
data.pop('data')
|
|
20
|
+
|
|
15
21
|
# interpret results into native Python objects
|
|
16
22
|
return operation + data
|
|
17
23
|
|
stigg/generated/operations.py
CHANGED
|
@@ -829,10 +829,16 @@ def mutation_provision_customer():
|
|
|
829
829
|
return _op
|
|
830
830
|
|
|
831
831
|
|
|
832
|
+
def mutation_import_customer_bulk():
|
|
833
|
+
_op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ImportCustomerBulk', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ImportCustomerBulk))))
|
|
834
|
+
_op.import_customers_bulk(input=sgqlc.types.Variable('input'))
|
|
835
|
+
return _op
|
|
836
|
+
|
|
837
|
+
|
|
832
838
|
def mutation_import_customer():
|
|
833
839
|
_op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ImportCustomer', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ImportCustomerInput))))
|
|
834
840
|
_op_import_customer = _op.import_one_customer(input=sgqlc.types.Variable('input'), __alias__='import_customer')
|
|
835
|
-
_op_import_customer.__fragment__(
|
|
841
|
+
_op_import_customer.__fragment__(fragment_slim_customer_fragment())
|
|
836
842
|
return _op
|
|
837
843
|
|
|
838
844
|
|
|
@@ -853,6 +859,12 @@ def mutation_provision_subscription():
|
|
|
853
859
|
return _op
|
|
854
860
|
|
|
855
861
|
|
|
862
|
+
def mutation_import_subscriptions_bulk():
|
|
863
|
+
_op = sgqlc.operation.Operation(_schema_root.mutation_type, name='ImportSubscriptionsBulk', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.ImportSubscriptionsBulk))))
|
|
864
|
+
_op.import_subscriptions_bulk(input=sgqlc.types.Variable('input'))
|
|
865
|
+
return _op
|
|
866
|
+
|
|
867
|
+
|
|
856
868
|
def mutation_update_subscription():
|
|
857
869
|
_op = sgqlc.operation.Operation(_schema_root.mutation_type, name='UpdateSubscription', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.UpdateSubscriptionInput))))
|
|
858
870
|
_op_update_subscription = _op.update_one_subscription(input=sgqlc.types.Variable('input'), __alias__='update_subscription')
|
|
@@ -925,6 +937,8 @@ class Mutation:
|
|
|
925
937
|
estimate_subscription = mutation_estimate_subscription()
|
|
926
938
|
estimate_subscription_update = mutation_estimate_subscription_update()
|
|
927
939
|
import_customer = mutation_import_customer()
|
|
940
|
+
import_customer_bulk = mutation_import_customer_bulk()
|
|
941
|
+
import_subscriptions_bulk = mutation_import_subscriptions_bulk()
|
|
928
942
|
initiate_checkout = mutation_initiate_checkout()
|
|
929
943
|
provision_customer = mutation_provision_customer()
|
|
930
944
|
provision_subscription = mutation_provision_subscription()
|
stigg/generated/schema.py
CHANGED
|
@@ -91,6 +91,11 @@ class Currency(sgqlc.types.Enum):
|
|
|
91
91
|
__choices__ = ('AED', 'ALL', 'AMD', 'ANG', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BIF', 'BMD', 'BND', 'BSD', 'BWP', 'BYN', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ETB', 'EUR', 'FJD', 'GBP', 'GEL', 'GIP', 'GMD', 'GNF', 'GYD', 'HKD', 'HRK', 'HTG', 'IDR', 'ILS', 'INR', 'ISK', 'JMD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KRW', 'KYD', 'KZT', 'LBP', 'LKR', 'LRD', 'LSL', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NOK', 'NPR', 'NZD', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SEK', 'SGD', 'SLE', 'SLL', 'SOS', 'SZL', 'THB', 'TJS', 'TOP', 'TRY', 'TTD', 'TZS', 'UAH', 'UGX', 'USD', 'UZS', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW')
|
|
92
92
|
|
|
93
93
|
|
|
94
|
+
class CustomerResourceSortFields(sgqlc.types.Enum):
|
|
95
|
+
__schema__ = schema
|
|
96
|
+
__choices__ = ('createdAt', 'environmentId', 'resourceId')
|
|
97
|
+
|
|
98
|
+
|
|
94
99
|
class CustomerSortFields(sgqlc.types.Enum):
|
|
95
100
|
__schema__ = schema
|
|
96
101
|
__choices__ = ('billingId', 'createdAt', 'crmHubspotCompanyId', 'crmHubspotCompanyUrl', 'crmId', 'customerId', 'email', 'environmentId', 'id', 'name', 'refId', 'updatedAt')
|
|
@@ -140,12 +145,12 @@ class EnvironmentSortFields(sgqlc.types.Enum):
|
|
|
140
145
|
|
|
141
146
|
class ErrorCode(sgqlc.types.Enum):
|
|
142
147
|
__schema__ = schema
|
|
143
|
-
__choices__ = ('AccountNotFoundError', 'AddonHasToHavePriceError', 'AddonNotFound', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'BadUserInput', 'BillingPeriodMissingError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotEditPackageInNonDraftMode', 'CheckoutIsNotSupported', 'CheckoutOptionsMissing', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoPaymentMethod', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'IdentityForbidden', 'ImportAlreadyInProgress', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'InvalidUsageValueForIncrementalFeatureError', 'MemberInvitationError', 'MemberNotFound', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackagePricingTypeNotSet', 'PlanAlreadyExtended', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PriceNotFound', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'RateLimitExceeded', 'ResyncAlreadyInProgress', 'SelectedBillingModelDoesntMatchImportedItemError', 'StripeCustomerIsDeleted', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNotFound', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier')
|
|
148
|
+
__choices__ = ('AccountNotFoundError', 'AddonHasToHavePriceError', 'AddonNotFound', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'BadUserInput', 'BillingPeriodMissingError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CheckoutIsNotSupported', 'CheckoutOptionsMissing', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoPaymentMethod', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'IdentityForbidden', 'ImportAlreadyInProgress', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'InvalidUsageValueForIncrementalFeatureError', 'MemberInvitationError', 'MemberNotFound', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackagePricingTypeNotSet', 'PlanAlreadyExtended', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PriceNotFound', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'RateLimitExceeded', 'ResyncAlreadyInProgress', 'SelectedBillingModelDoesntMatchImportedItemError', 'StripeCustomerIsDeleted', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNotFound', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier')
|
|
144
149
|
|
|
145
150
|
|
|
146
151
|
class EventLogType(sgqlc.types.Enum):
|
|
147
152
|
__schema__ = schema
|
|
148
|
-
__choices__ = ('ADDON_CREATED', 'ADDON_DELETED', 'ADDON_UPDATED', 'COUPON_ARCHIVED', 'COUPON_CREATED', 'COUPON_UPDATED', 'CREATE_SUBSCRIPTION_FAILED', 'CUSTOMER_CREATED', 'CUSTOMER_DELETED', 'CUSTOMER_PAYMENT_FAILED', 'CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_UPDATED', 'EDGE_API_DATA_RESYNC', 'ENTITLEMENTS_UPDATED', 'ENTITLEMENT_DENIED', 'ENTITLEMENT_GRANTED', 'ENTITLEMENT_REQUESTED', 'ENVIRONMENT_DELETED', 'FEATURE_CREATED', 'FEATURE_DELETED', 'FEATURE_UPDATED', 'IMPORT_INTEGRATION_CATALOG_TRIGGERED', 'IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED', 'MEASUREMENT_REPORTED', 'PACKAGE_PUBLISHED', 'PLAN_CREATED', 'PLAN_DELETED', 'PLAN_UPDATED', 'PRODUCT_CREATED', 'PRODUCT_DELETED', 'PRODUCT_UPDATED', 'PROMOTIONAL_ENTITLEMENT_EXPIRED', 'PROMOTIONAL_ENTITLEMENT_GRANTED', 'PROMOTIONAL_ENTITLEMENT_REVOKED', 'PROMOTIONAL_ENTITLEMENT_UPDATED', 'RESYNC_INTEGRATION_TRIGGERED', 'SUBSCRIPTION_CANCELED', 'SUBSCRIPTION_CREATED', 'SUBSCRIPTION_EXPIRED', 'SUBSCRIPTION_TRIAL_CONVERTED', 'SUBSCRIPTION_TRIAL_ENDS_SOON', 'SUBSCRIPTION_TRIAL_EXPIRED', 'SUBSCRIPTION_TRIAL_STARTED', 'SUBSCRIPTION_UPDATED', 'SUBSCRIPTION_USAGE_UPDATED', 'SYNC_FAILED', 'WIDGET_CONFIGURATION_UPDATED')
|
|
153
|
+
__choices__ = ('ADDON_CREATED', 'ADDON_DELETED', 'ADDON_UPDATED', 'COUPON_ARCHIVED', 'COUPON_CREATED', 'COUPON_UPDATED', 'CREATE_SUBSCRIPTION_FAILED', 'CUSTOMER_CREATED', 'CUSTOMER_DELETED', 'CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_PAYMENT_FAILED', 'CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED', 'CUSTOMER_UPDATED', 'EDGE_API_DATA_RESYNC', 'ENTITLEMENTS_UPDATED', 'ENTITLEMENT_DENIED', 'ENTITLEMENT_GRANTED', 'ENTITLEMENT_REQUESTED', 'ENVIRONMENT_DELETED', 'FEATURE_CREATED', 'FEATURE_DELETED', 'FEATURE_UPDATED', 'IMPORT_INTEGRATION_CATALOG_TRIGGERED', 'IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED', 'MEASUREMENT_REPORTED', 'PACKAGE_PUBLISHED', 'PLAN_CREATED', 'PLAN_DELETED', 'PLAN_UPDATED', 'PRODUCT_CREATED', 'PRODUCT_DELETED', 'PRODUCT_UPDATED', 'PROMOTIONAL_ENTITLEMENT_EXPIRED', 'PROMOTIONAL_ENTITLEMENT_GRANTED', 'PROMOTIONAL_ENTITLEMENT_REVOKED', 'PROMOTIONAL_ENTITLEMENT_UPDATED', 'RESYNC_INTEGRATION_TRIGGERED', 'SUBSCRIPTION_CANCELED', 'SUBSCRIPTION_CREATED', 'SUBSCRIPTION_EXPIRED', 'SUBSCRIPTION_TRIAL_CONVERTED', 'SUBSCRIPTION_TRIAL_ENDS_SOON', 'SUBSCRIPTION_TRIAL_EXPIRED', 'SUBSCRIPTION_TRIAL_STARTED', 'SUBSCRIPTION_UPDATED', 'SUBSCRIPTION_USAGE_UPDATED', 'SYNC_FAILED', 'WIDGET_CONFIGURATION_UPDATED')
|
|
149
154
|
|
|
150
155
|
|
|
151
156
|
class ExperimentSortFields(sgqlc.types.Enum):
|
|
@@ -400,6 +405,11 @@ class UsageMeasurementSortFields(sgqlc.types.Enum):
|
|
|
400
405
|
__choices__ = ('createdAt', 'environmentId', 'id')
|
|
401
406
|
|
|
402
407
|
|
|
408
|
+
class UsageUpdateBehavior(sgqlc.types.Enum):
|
|
409
|
+
__schema__ = schema
|
|
410
|
+
__choices__ = ('DELTA', 'SET')
|
|
411
|
+
|
|
412
|
+
|
|
403
413
|
class VendorIdentifier(sgqlc.types.Enum):
|
|
404
414
|
__schema__ = schema
|
|
405
415
|
__choices__ = ('HUBSPOT', 'STRIPE', 'ZUORA')
|
|
@@ -919,6 +929,69 @@ class CustomerPortalInput(sgqlc.types.Input):
|
|
|
919
929
|
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
920
930
|
|
|
921
931
|
|
|
932
|
+
class CustomerResourceFilter(sgqlc.types.Input):
|
|
933
|
+
__schema__ = schema
|
|
934
|
+
__field_names__ = ('and_', 'created_at', 'customer', 'environment_id', 'or_', 'resource_id', 'subscriptions')
|
|
935
|
+
and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceFilter')), graphql_name='and')
|
|
936
|
+
created_at = sgqlc.types.Field('DateFieldComparison', graphql_name='createdAt')
|
|
937
|
+
customer = sgqlc.types.Field('CustomerResourceFilterCustomerFilter', graphql_name='customer')
|
|
938
|
+
environment_id = sgqlc.types.Field('StringFieldComparison', graphql_name='environmentId')
|
|
939
|
+
or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceFilter')), graphql_name='or')
|
|
940
|
+
resource_id = sgqlc.types.Field('StringFieldComparison', graphql_name='resourceId')
|
|
941
|
+
subscriptions = sgqlc.types.Field('CustomerResourceFilterCustomerSubscriptionFilter', graphql_name='subscriptions')
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
class CustomerResourceFilterCustomerFilter(sgqlc.types.Input):
|
|
945
|
+
__schema__ = schema
|
|
946
|
+
__field_names__ = ('and_', 'billing_id', 'created_at', 'crm_hubspot_company_id', 'crm_hubspot_company_url', 'crm_id', 'customer_id', 'email', 'environment_id', 'id', 'name', 'or_', 'ref_id', 'updated_at')
|
|
947
|
+
and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceFilterCustomerFilter')), graphql_name='and')
|
|
948
|
+
billing_id = sgqlc.types.Field('StringFieldComparison', graphql_name='billingId')
|
|
949
|
+
created_at = sgqlc.types.Field('DateFieldComparison', graphql_name='createdAt')
|
|
950
|
+
crm_hubspot_company_id = sgqlc.types.Field('StringFieldComparison', graphql_name='crmHubspotCompanyId')
|
|
951
|
+
crm_hubspot_company_url = sgqlc.types.Field('StringFieldComparison', graphql_name='crmHubspotCompanyUrl')
|
|
952
|
+
crm_id = sgqlc.types.Field('StringFieldComparison', graphql_name='crmId')
|
|
953
|
+
customer_id = sgqlc.types.Field('StringFieldComparison', graphql_name='customerId')
|
|
954
|
+
email = sgqlc.types.Field('StringFieldComparison', graphql_name='email')
|
|
955
|
+
environment_id = sgqlc.types.Field('StringFieldComparison', graphql_name='environmentId')
|
|
956
|
+
id = sgqlc.types.Field('StringFieldComparison', graphql_name='id')
|
|
957
|
+
name = sgqlc.types.Field('StringFieldComparison', graphql_name='name')
|
|
958
|
+
or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceFilterCustomerFilter')), graphql_name='or')
|
|
959
|
+
ref_id = sgqlc.types.Field('StringFieldComparison', graphql_name='refId')
|
|
960
|
+
updated_at = sgqlc.types.Field('DateFieldComparison', graphql_name='updatedAt')
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
class CustomerResourceFilterCustomerSubscriptionFilter(sgqlc.types.Input):
|
|
964
|
+
__schema__ = schema
|
|
965
|
+
__field_names__ = ('and_', 'billing_id', 'cancel_reason', 'cancellation_date', 'created_at', 'crm_id', 'crm_link_url', 'effective_end_date', 'end_date', 'environment_id', 'id', 'old_billing_id', 'or_', 'pricing_type', 'ref_id', 'start_date', 'status', 'subscription_id', 'trial_end_date')
|
|
966
|
+
and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceFilterCustomerSubscriptionFilter')), graphql_name='and')
|
|
967
|
+
billing_id = sgqlc.types.Field('StringFieldComparison', graphql_name='billingId')
|
|
968
|
+
cancel_reason = sgqlc.types.Field('SubscriptionCancelReasonFilterComparison', graphql_name='cancelReason')
|
|
969
|
+
cancellation_date = sgqlc.types.Field('DateFieldComparison', graphql_name='cancellationDate')
|
|
970
|
+
created_at = sgqlc.types.Field('DateFieldComparison', graphql_name='createdAt')
|
|
971
|
+
crm_id = sgqlc.types.Field('StringFieldComparison', graphql_name='crmId')
|
|
972
|
+
crm_link_url = sgqlc.types.Field('StringFieldComparison', graphql_name='crmLinkUrl')
|
|
973
|
+
effective_end_date = sgqlc.types.Field('DateFieldComparison', graphql_name='effectiveEndDate')
|
|
974
|
+
end_date = sgqlc.types.Field('DateFieldComparison', graphql_name='endDate')
|
|
975
|
+
environment_id = sgqlc.types.Field('StringFieldComparison', graphql_name='environmentId')
|
|
976
|
+
id = sgqlc.types.Field('StringFieldComparison', graphql_name='id')
|
|
977
|
+
old_billing_id = sgqlc.types.Field('StringFieldComparison', graphql_name='oldBillingId')
|
|
978
|
+
or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceFilterCustomerSubscriptionFilter')), graphql_name='or')
|
|
979
|
+
pricing_type = sgqlc.types.Field('PricingTypeFilterComparison', graphql_name='pricingType')
|
|
980
|
+
ref_id = sgqlc.types.Field('StringFieldComparison', graphql_name='refId')
|
|
981
|
+
start_date = sgqlc.types.Field('DateFieldComparison', graphql_name='startDate')
|
|
982
|
+
status = sgqlc.types.Field('SubscriptionStatusFilterComparison', graphql_name='status')
|
|
983
|
+
subscription_id = sgqlc.types.Field('StringFieldComparison', graphql_name='subscriptionId')
|
|
984
|
+
trial_end_date = sgqlc.types.Field('DateFieldComparison', graphql_name='trialEndDate')
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
class CustomerResourceSort(sgqlc.types.Input):
|
|
988
|
+
__schema__ = schema
|
|
989
|
+
__field_names__ = ('direction', 'field', 'nulls')
|
|
990
|
+
direction = sgqlc.types.Field(sgqlc.types.non_null(SortDirection), graphql_name='direction')
|
|
991
|
+
field = sgqlc.types.Field(sgqlc.types.non_null(CustomerResourceSortFields), graphql_name='field')
|
|
992
|
+
nulls = sgqlc.types.Field(SortNulls, graphql_name='nulls')
|
|
993
|
+
|
|
994
|
+
|
|
922
995
|
class CustomerSort(sgqlc.types.Input):
|
|
923
996
|
__schema__ = schema
|
|
924
997
|
__field_names__ = ('direction', 'field', 'nulls')
|
|
@@ -1463,15 +1536,23 @@ class HubspotCredentialsInput(sgqlc.types.Input):
|
|
|
1463
1536
|
refresh_token = sgqlc.types.Field(String, graphql_name='refreshToken')
|
|
1464
1537
|
|
|
1465
1538
|
|
|
1539
|
+
class ImportCustomerBulk(sgqlc.types.Input):
|
|
1540
|
+
__schema__ = schema
|
|
1541
|
+
__field_names__ = ('customers', 'environment_id')
|
|
1542
|
+
customers = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('ImportCustomerInput'))), graphql_name='customers')
|
|
1543
|
+
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
1544
|
+
|
|
1545
|
+
|
|
1466
1546
|
class ImportCustomerInput(sgqlc.types.Input):
|
|
1467
1547
|
__schema__ = schema
|
|
1468
|
-
__field_names__ = ('additional_meta_data', 'billing_id', 'customer_id', 'email', 'environment_id', 'name', 'ref_id')
|
|
1548
|
+
__field_names__ = ('additional_meta_data', 'billing_id', 'customer_id', 'email', 'environment_id', 'name', 'payment_method_id', 'ref_id')
|
|
1469
1549
|
additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
|
|
1470
|
-
billing_id = sgqlc.types.Field(
|
|
1550
|
+
billing_id = sgqlc.types.Field(String, graphql_name='billingId')
|
|
1471
1551
|
customer_id = sgqlc.types.Field(String, graphql_name='customerId')
|
|
1472
1552
|
email = sgqlc.types.Field(String, graphql_name='email')
|
|
1473
1553
|
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
1474
1554
|
name = sgqlc.types.Field(String, graphql_name='name')
|
|
1555
|
+
payment_method_id = sgqlc.types.Field(String, graphql_name='paymentMethodId')
|
|
1475
1556
|
ref_id = sgqlc.types.Field(String, graphql_name='refId')
|
|
1476
1557
|
|
|
1477
1558
|
|
|
@@ -1521,6 +1602,26 @@ class ImportIntegrationTaskSort(sgqlc.types.Input):
|
|
|
1521
1602
|
nulls = sgqlc.types.Field(SortNulls, graphql_name='nulls')
|
|
1522
1603
|
|
|
1523
1604
|
|
|
1605
|
+
class ImportSubscriptionInput(sgqlc.types.Input):
|
|
1606
|
+
__schema__ = schema
|
|
1607
|
+
__field_names__ = ('additional_meta_data', 'billing_id', 'billing_period', 'customer_id', 'plan_id', 'resource_id', 'start_date', 'unit_quantity')
|
|
1608
|
+
additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
|
|
1609
|
+
billing_id = sgqlc.types.Field(String, graphql_name='billingId')
|
|
1610
|
+
billing_period = sgqlc.types.Field(BillingPeriod, graphql_name='billingPeriod')
|
|
1611
|
+
customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
|
|
1612
|
+
plan_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planId')
|
|
1613
|
+
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
1614
|
+
start_date = sgqlc.types.Field(DateTime, graphql_name='startDate')
|
|
1615
|
+
unit_quantity = sgqlc.types.Field(Float, graphql_name='unitQuantity')
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
class ImportSubscriptionsBulk(sgqlc.types.Input):
|
|
1619
|
+
__schema__ = schema
|
|
1620
|
+
__field_names__ = ('environment_id', 'subscriptions')
|
|
1621
|
+
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
1622
|
+
subscriptions = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ImportSubscriptionInput))), graphql_name='subscriptions')
|
|
1623
|
+
|
|
1624
|
+
|
|
1524
1625
|
class InitAddStripeCustomerPaymentMethodInput(sgqlc.types.Input):
|
|
1525
1626
|
__schema__ = schema
|
|
1526
1627
|
__field_names__ = ('customer_ref_id', 'environment_id')
|
|
@@ -2993,12 +3094,13 @@ class UsageHistoryInput(sgqlc.types.Input):
|
|
|
2993
3094
|
|
|
2994
3095
|
class UsageMeasurementCreateInput(sgqlc.types.Input):
|
|
2995
3096
|
__schema__ = schema
|
|
2996
|
-
__field_names__ = ('created_at', 'customer_id', 'environment_id', 'feature_id', 'resource_id', 'value')
|
|
3097
|
+
__field_names__ = ('created_at', 'customer_id', 'environment_id', 'feature_id', 'resource_id', 'update_behavior', 'value')
|
|
2997
3098
|
created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
|
|
2998
3099
|
customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
|
|
2999
3100
|
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
3000
3101
|
feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
|
|
3001
3102
|
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
3103
|
+
update_behavior = sgqlc.types.Field(UsageUpdateBehavior, graphql_name='updateBehavior')
|
|
3002
3104
|
value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
|
|
3003
3105
|
|
|
3004
3106
|
|
|
@@ -3460,7 +3562,7 @@ class CouponSumAggregate(sgqlc.types.Type):
|
|
|
3460
3562
|
|
|
3461
3563
|
class Customer(sgqlc.types.Type):
|
|
3462
3564
|
__schema__ = schema
|
|
3463
|
-
__field_names__ = ('additional_meta_data', 'billing_currency', 'billing_id', 'billing_link_url', 'coupon', 'created_at', 'crm_hubspot_company_id', 'crm_hubspot_company_url', 'crm_id', 'customer_id', 'default_payment_expiration_month', 'default_payment_expiration_year', 'default_payment_method_id', 'default_payment_method_last4_digits', 'default_payment_method_type', 'eligible_for_trial', 'email', 'environment', 'environment_id', 'exclude_from_experiment', 'experiment', 'experiment_info', 'has_active_subscription', 'has_payment_method', 'id', 'name', 'promotional_entitlements', 'ref_id', 'subscriptions', 'sync_states', 'trialed_plans', 'updated_at')
|
|
3565
|
+
__field_names__ = ('additional_meta_data', 'billing_currency', 'billing_id', 'billing_link_url', 'coupon', 'created_at', 'crm_hubspot_company_id', 'crm_hubspot_company_url', 'crm_id', 'customer_id', 'default_payment_expiration_month', 'default_payment_expiration_year', 'default_payment_method_id', 'default_payment_method_last4_digits', 'default_payment_method_type', 'eligible_for_trial', 'email', 'environment', 'environment_id', 'exclude_from_experiment', 'experiment', 'experiment_info', 'has_active_resource', 'has_active_subscription', 'has_payment_method', 'id', 'name', 'promotional_entitlements', 'ref_id', 'subscriptions', 'sync_states', 'total_active_subscription', 'trialed_plans', 'updated_at')
|
|
3464
3566
|
additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
|
|
3465
3567
|
billing_currency = sgqlc.types.Field(Currency, graphql_name='billingCurrency')
|
|
3466
3568
|
billing_id = sgqlc.types.Field(String, graphql_name='billingId')
|
|
@@ -3483,6 +3585,7 @@ class Customer(sgqlc.types.Type):
|
|
|
3483
3585
|
exclude_from_experiment = sgqlc.types.Field(Boolean, graphql_name='excludeFromExperiment')
|
|
3484
3586
|
experiment = sgqlc.types.Field('Experiment', graphql_name='experiment')
|
|
3485
3587
|
experiment_info = sgqlc.types.Field('experimentInfo', graphql_name='experimentInfo')
|
|
3588
|
+
has_active_resource = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasActiveResource')
|
|
3486
3589
|
has_active_subscription = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasActiveSubscription')
|
|
3487
3590
|
has_payment_method = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasPaymentMethod')
|
|
3488
3591
|
id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
|
|
@@ -3499,6 +3602,7 @@ class Customer(sgqlc.types.Type):
|
|
|
3499
3602
|
))
|
|
3500
3603
|
)
|
|
3501
3604
|
sync_states = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SyncState')), graphql_name='syncStates')
|
|
3605
|
+
total_active_subscription = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalActiveSubscription')
|
|
3502
3606
|
trialed_plans = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('TrialedPlan')), graphql_name='trialedPlans')
|
|
3503
3607
|
updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='updatedAt')
|
|
3504
3608
|
|
|
@@ -3709,8 +3813,63 @@ class CustomerPortalSubscriptionPricing(sgqlc.types.Type):
|
|
|
3709
3813
|
|
|
3710
3814
|
class CustomerResource(sgqlc.types.Type):
|
|
3711
3815
|
__schema__ = schema
|
|
3712
|
-
__field_names__ = ('resource_id',)
|
|
3816
|
+
__field_names__ = ('created_at', 'customer', 'environment_id', 'resource_id', 'subscriptions')
|
|
3817
|
+
created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='createdAt')
|
|
3818
|
+
customer = sgqlc.types.Field(sgqlc.types.non_null(Customer), graphql_name='customer')
|
|
3819
|
+
environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
|
|
3713
3820
|
resource_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='resourceId')
|
|
3821
|
+
subscriptions = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('CustomerSubscription'))), graphql_name='subscriptions', args=sgqlc.types.ArgDict((
|
|
3822
|
+
('filter', sgqlc.types.Arg(CustomerSubscriptionFilter, graphql_name='filter', default={'status': {'in': ['ACTIVE', 'IN_TRIAL']}})),
|
|
3823
|
+
('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(CustomerSubscriptionSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
|
|
3824
|
+
))
|
|
3825
|
+
)
|
|
3826
|
+
|
|
3827
|
+
|
|
3828
|
+
class CustomerResourceAggregateGroupBy(sgqlc.types.Type):
|
|
3829
|
+
__schema__ = schema
|
|
3830
|
+
__field_names__ = ('created_at', 'environment_id', 'resource_id')
|
|
3831
|
+
created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
|
|
3832
|
+
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
3833
|
+
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
3834
|
+
|
|
3835
|
+
|
|
3836
|
+
class CustomerResourceConnection(sgqlc.types.relay.Connection):
|
|
3837
|
+
__schema__ = schema
|
|
3838
|
+
__field_names__ = ('edges', 'page_info', 'total_count')
|
|
3839
|
+
edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('CustomerResourceEdge'))), graphql_name='edges')
|
|
3840
|
+
page_info = sgqlc.types.Field(sgqlc.types.non_null('PageInfo'), graphql_name='pageInfo')
|
|
3841
|
+
total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='totalCount')
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
class CustomerResourceCountAggregate(sgqlc.types.Type):
|
|
3845
|
+
__schema__ = schema
|
|
3846
|
+
__field_names__ = ('created_at', 'environment_id', 'resource_id')
|
|
3847
|
+
created_at = sgqlc.types.Field(Int, graphql_name='createdAt')
|
|
3848
|
+
environment_id = sgqlc.types.Field(Int, graphql_name='environmentId')
|
|
3849
|
+
resource_id = sgqlc.types.Field(Int, graphql_name='resourceId')
|
|
3850
|
+
|
|
3851
|
+
|
|
3852
|
+
class CustomerResourceEdge(sgqlc.types.Type):
|
|
3853
|
+
__schema__ = schema
|
|
3854
|
+
__field_names__ = ('cursor', 'node')
|
|
3855
|
+
cursor = sgqlc.types.Field(sgqlc.types.non_null(ConnectionCursor), graphql_name='cursor')
|
|
3856
|
+
node = sgqlc.types.Field(sgqlc.types.non_null(CustomerResource), graphql_name='node')
|
|
3857
|
+
|
|
3858
|
+
|
|
3859
|
+
class CustomerResourceMaxAggregate(sgqlc.types.Type):
|
|
3860
|
+
__schema__ = schema
|
|
3861
|
+
__field_names__ = ('created_at', 'environment_id', 'resource_id')
|
|
3862
|
+
created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
|
|
3863
|
+
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
3864
|
+
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
3865
|
+
|
|
3866
|
+
|
|
3867
|
+
class CustomerResourceMinAggregate(sgqlc.types.Type):
|
|
3868
|
+
__schema__ = schema
|
|
3869
|
+
__field_names__ = ('created_at', 'environment_id', 'resource_id')
|
|
3870
|
+
created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
|
|
3871
|
+
environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
|
|
3872
|
+
resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
|
|
3714
3873
|
|
|
3715
3874
|
|
|
3716
3875
|
class CustomerSubscription(sgqlc.types.Type):
|
|
@@ -4807,7 +4966,7 @@ class MonthlyResetPeriodConfig(sgqlc.types.Type):
|
|
|
4807
4966
|
|
|
4808
4967
|
class Mutation(sgqlc.types.Type):
|
|
4809
4968
|
__schema__ = schema
|
|
4810
|
-
__field_names__ = ('add_compatible_addons_to_plan', 'archive_one_coupon', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'create_account', 'create_addon_draft', 'create_feature', 'create_many_package_entitlements', 'create_many_promotional_entitlements', 'create_one_addon', 'create_one_coupon', 'create_one_customer', 'create_one_environment', 'create_one_experiment', 'create_one_feature', 'create_one_hook', 'create_one_integration', 'create_one_plan', 'create_one_product', 'create_plan_draft', 'create_subscription', 'create_usage_measurement', 'delete_environment', 'delete_feature', 'delete_one_addon', 'delete_one_customer', 'delete_one_environment', 'delete_one_feature', 'delete_one_hook', 'delete_one_integration', 'delete_one_package_entitlement', 'delete_one_price', 'delete_one_product', 'delete_one_promotional_entitlement', 'estimate_subscription', 'estimate_subscription_update', 'hide_getting_started_page', 'import_one_customer', 'init_add_stripe_customer_payment_method', 'initiate_checkout', 'invite_members', 'migrate_subscription_to_latest', 'provision_customer', 'provision_sandbox', 'provision_subscription', 'provision_subscription_v2', 'publish_addon', 'publish_plan', 'purge_customer_cache', 'register_member', 'remove_addon_draft', 'remove_base_plan_from_plan', 'remove_compatible_addons_from_plan', 'remove_coupon_from_customer', 'remove_coupon_from_customer_subscription', 'remove_experiment_from_customer', 'remove_experiment_from_customer_subscription', 'remove_member', 'remove_plan_draft', 'report_entitlement_check_requested', 'resend_email_verification', 'resync_integration', 'set_base_plan_on_plan', 'set_compatible_addons_on_plan', 'set_coupon_on_customer', 'set_coupon_on_customer_subscription', 'set_experiment_on_customer', 'set_experiment_on_customer_subscription', 'set_package_pricing', 'set_widget_configuration', 'start_experiment', 'stop_experiment', 'trigger_import_catalog', 'trigger_import_customers', 'update_account', 'update_entitlements_order', 'update_feature', 'update_one_addon', 'update_one_coupon', 'update_one_customer', 'update_one_environment', 'update_one_experiment', 'update_one_feature', 'update_one_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
|
|
4969
|
+
__field_names__ = ('add_compatible_addons_to_plan', 'archive_one_coupon', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'create_account', 'create_addon_draft', 'create_feature', 'create_many_package_entitlements', 'create_many_promotional_entitlements', 'create_one_addon', 'create_one_coupon', 'create_one_customer', 'create_one_environment', 'create_one_experiment', 'create_one_feature', 'create_one_hook', 'create_one_integration', 'create_one_plan', 'create_one_product', 'create_plan_draft', 'create_subscription', 'create_usage_measurement', 'delete_environment', 'delete_feature', 'delete_one_addon', 'delete_one_customer', 'delete_one_environment', 'delete_one_feature', 'delete_one_hook', 'delete_one_integration', 'delete_one_package_entitlement', 'delete_one_price', 'delete_one_product', 'delete_one_promotional_entitlement', 'estimate_subscription', 'estimate_subscription_update', 'hide_getting_started_page', 'import_customers_bulk', 'import_one_customer', 'import_subscriptions_bulk', 'init_add_stripe_customer_payment_method', 'initiate_checkout', 'invite_members', 'migrate_subscription_to_latest', 'provision_customer', 'provision_sandbox', 'provision_subscription', 'provision_subscription_v2', 'publish_addon', 'publish_plan', 'purge_customer_cache', 'register_member', 'remove_addon_draft', 'remove_base_plan_from_plan', 'remove_compatible_addons_from_plan', 'remove_coupon_from_customer', 'remove_coupon_from_customer_subscription', 'remove_experiment_from_customer', 'remove_experiment_from_customer_subscription', 'remove_member', 'remove_plan_draft', 'report_entitlement_check_requested', 'resend_email_verification', 'resync_integration', 'set_base_plan_on_plan', 'set_compatible_addons_on_plan', 'set_coupon_on_customer', 'set_coupon_on_customer_subscription', 'set_experiment_on_customer', 'set_experiment_on_customer_subscription', 'set_package_pricing', 'set_widget_configuration', 'start_experiment', 'stop_experiment', 'trigger_import_catalog', 'trigger_import_customers', 'update_account', 'update_entitlements_order', 'update_feature', 'update_one_addon', 'update_one_coupon', 'update_one_customer', 'update_one_environment', 'update_one_experiment', 'update_one_feature', 'update_one_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
|
|
4811
4970
|
add_compatible_addons_to_plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='addCompatibleAddonsToPlan', args=sgqlc.types.ArgDict((
|
|
4812
4971
|
('input', sgqlc.types.Arg(sgqlc.types.non_null(AddCompatibleAddonsToPlanInput), graphql_name='input', default=None)),
|
|
4813
4972
|
))
|
|
@@ -4962,10 +5121,18 @@ class Mutation(sgqlc.types.Type):
|
|
|
4962
5121
|
)
|
|
4963
5122
|
hide_getting_started_page = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='hideGettingStartedPage', args=sgqlc.types.ArgDict((
|
|
4964
5123
|
('member_id', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='memberId', default=None)),
|
|
5124
|
+
))
|
|
5125
|
+
)
|
|
5126
|
+
import_customers_bulk = sgqlc.types.Field(String, graphql_name='importCustomersBulk', args=sgqlc.types.ArgDict((
|
|
5127
|
+
('input', sgqlc.types.Arg(sgqlc.types.non_null(ImportCustomerBulk), graphql_name='input', default=None)),
|
|
4965
5128
|
))
|
|
4966
5129
|
)
|
|
4967
5130
|
import_one_customer = sgqlc.types.Field(sgqlc.types.non_null(Customer), graphql_name='importOneCustomer', args=sgqlc.types.ArgDict((
|
|
4968
5131
|
('input', sgqlc.types.Arg(sgqlc.types.non_null(ImportCustomerInput), graphql_name='input', default=None)),
|
|
5132
|
+
))
|
|
5133
|
+
)
|
|
5134
|
+
import_subscriptions_bulk = sgqlc.types.Field(String, graphql_name='importSubscriptionsBulk', args=sgqlc.types.ArgDict((
|
|
5135
|
+
('input', sgqlc.types.Arg(sgqlc.types.non_null(ImportSubscriptionsBulk), graphql_name='input', default=None)),
|
|
4969
5136
|
))
|
|
4970
5137
|
)
|
|
4971
5138
|
init_add_stripe_customer_payment_method = sgqlc.types.Field(sgqlc.types.non_null(InitAddStripeCustomerPaymentMethod), graphql_name='initAddStripeCustomerPaymentMethod', args=sgqlc.types.ArgDict((
|
|
@@ -6046,7 +6213,7 @@ class PublishPackageResult(sgqlc.types.Type):
|
|
|
6046
6213
|
|
|
6047
6214
|
class Query(sgqlc.types.Type):
|
|
6048
6215
|
__schema__ = schema
|
|
6049
|
-
__field_names__ = ('addons', 'cached_entitlements', 'coupon', 'coupons', 'current_environment', 'current_user', 'customer_portal', 'customer_subscriptions', 'customers', 'entitlement', 'entitlements', 'environments', 'experiment', 'experiments', 'features', 'fetch_account', 'get_active_subscriptions', 'get_addon_by_ref_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_paywall', 'get_plan_by_ref_id', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'members', 'mock_paywall', 'package_entitlements', '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_history', 'usage_measurements', 'widget_configuration')
|
|
6216
|
+
__field_names__ = ('addons', 'cached_entitlements', 'coupon', 'coupons', 'current_environment', 'current_user', 'customer_portal', 'customer_resources', 'customer_subscriptions', 'customers', 'entitlement', 'entitlements', 'environments', 'experiment', 'experiments', 'features', 'fetch_account', 'get_active_subscriptions', 'get_addon_by_ref_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_paywall', 'get_plan_by_ref_id', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'members', 'mock_paywall', 'package_entitlements', '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_history', 'usage_measurements', 'widget_configuration')
|
|
6050
6217
|
addons = sgqlc.types.Field(sgqlc.types.non_null(AddonConnection), graphql_name='addons', args=sgqlc.types.ArgDict((
|
|
6051
6218
|
('filter', sgqlc.types.Arg(AddonFilter, graphql_name='filter', default={})),
|
|
6052
6219
|
('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
|
|
@@ -6071,6 +6238,12 @@ class Query(sgqlc.types.Type):
|
|
|
6071
6238
|
current_user = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='currentUser')
|
|
6072
6239
|
customer_portal = sgqlc.types.Field(sgqlc.types.non_null(CustomerPortal), graphql_name='customerPortal', args=sgqlc.types.ArgDict((
|
|
6073
6240
|
('input', sgqlc.types.Arg(sgqlc.types.non_null(CustomerPortalInput), graphql_name='input', default=None)),
|
|
6241
|
+
))
|
|
6242
|
+
)
|
|
6243
|
+
customer_resources = sgqlc.types.Field(sgqlc.types.non_null(CustomerResourceConnection), graphql_name='customerResources', args=sgqlc.types.ArgDict((
|
|
6244
|
+
('filter', sgqlc.types.Arg(CustomerResourceFilter, graphql_name='filter', default={})),
|
|
6245
|
+
('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
|
|
6246
|
+
('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(CustomerResourceSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
|
|
6074
6247
|
))
|
|
6075
6248
|
)
|
|
6076
6249
|
customer_subscriptions = sgqlc.types.Field(sgqlc.types.non_null(CustomerSubscriptionConnection), graphql_name='customerSubscriptions', args=sgqlc.types.ArgDict((
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stigg-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Stigg
|
|
6
6
|
Author-email: support@stigg.io
|
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.7
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.8
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
14
|
Requires-Dist: black (>=22.8.0,<23.0.0)
|
|
14
15
|
Requires-Dist: flake8 (>=5.0.4,<6.0.0)
|
|
15
16
|
Requires-Dist: graphql-core (==3.1.6)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
|
|
2
|
+
stigg/client.py,sha256=yJWbqm6yjLFGxtTHJxHX2mLqkCYMtOKxMDsN9vyFNcg,1141
|
|
3
|
+
stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
stigg/generated/operations.py,sha256=fzKzvELWq4PtUafQUAI5qyEcIWsdjpRGDivNXNyPk-4,44689
|
|
5
|
+
stigg/generated/schema.py,sha256=voFZ4rmJ18tvshQr5q8m7c0RxK9VTNz0y1FkswsSIIU,443944
|
|
6
|
+
stigg_api_client-0.5.0.dist-info/METADATA,sha256=4Dy2vTsFMq3lZ0wTDfGH-Ni7pkWlcRmM1pWFUOjU628,3159
|
|
7
|
+
stigg_api_client-0.5.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
8
|
+
stigg_api_client-0.5.0.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
|
|
2
|
-
stigg/client.py,sha256=oYTyG9vNVwNLntPVNpQHPnr3B5_nQCsevdtA-hBcsuI,997
|
|
3
|
-
stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
stigg/generated/operations.py,sha256=v4eTRQBHvdqFHnquwKdzMWMdSeOu9s0Cb2w8Z720-JE,43935
|
|
5
|
-
stigg/generated/schema.py,sha256=2_4ZE27PDhcMS80m7n6DorV885kj3doPW-1wbh4AEc4,432273
|
|
6
|
-
stigg_api_client-0.3.0.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
|
|
7
|
-
stigg_api_client-0.3.0.dist-info/METADATA,sha256=EZzzC-si2Yg7cJrTiSFERF-jYZ8n00d7lw2UcBYfY0w,3108
|
|
8
|
-
stigg_api_client-0.3.0.dist-info/RECORD,,
|