@wix/auto_sdk_premium_google-subscriptions 1.0.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.ts","../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.http.ts","../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.public.ts","../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * A Google subscription is a Google Workspace subscription, such as Business Email, that a Wix account purchased for one of its domains.\n * It holds the number of licensed seats, the subscription's status, and the IDs Google uses for the customer and the subscription.\n */\nexport interface GoogleSubscription {\n /**\n * Google subscription ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Google subscription is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Google subscription.\n *\n * Ignored when creating a Google subscription.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Google subscription was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Google subscription was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Number of licensed seats in the subscription. Each seat is 1 user account.\n * @readonly\n * @min 1\n */\n seats?: number;\n /**\n * ID of the Wix premium subscription this Google subscription belongs to.\n * @format GUID\n * @readonly\n */\n subscriptionId?: string;\n /**\n * Domain the subscription is for. For example, `my-domain.com`.\n * @format HOSTNAME\n * @readonly\n */\n domainName?: string;\n /**\n * Subscription status.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * IDs Google uses for this subscription.\n * @readonly\n */\n googleData?: GoogleData;\n}\n\nexport enum Status {\n /** Unknown subscription status. */\n UNKNOWN = 'UNKNOWN',\n /** Subscription is live and its mailboxes work. */\n ACTIVE = 'ACTIVE',\n /** Subscription ended and wasn't renewed. */\n EXPIRED = 'EXPIRED',\n /** Subscription was purchased, but its administrator account isn't set up yet. */\n INCOMPLETE_SETUP = 'INCOMPLETE_SETUP',\n /** Google suspended the subscription until the customer accepts Google's terms of service. */\n SUSPENDED_TOS = 'SUSPENDED_TOS',\n /** Wix suspended the subscription, for example after a failed payment. */\n SUSPENDED_BY_WIX = 'SUSPENDED_BY_WIX',\n /** Subscription was transferred to another Google reseller. */\n TRANSFERRED_OUT = 'TRANSFERRED_OUT',\n /** Purchase is in progress and the subscription isn't created at Google yet. */\n PENDING = 'PENDING',\n /** Purchase couldn't be delivered, so no subscription was created at Google. */\n NOT_DELIVERED = 'NOT_DELIVERED',\n /** Purchase is waiting for the customer's Google Workspace to become available, for example until the customer accepts Google's terms of service. */\n PENDING_GWS = 'PENDING_GWS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN'\n | 'ACTIVE'\n | 'EXPIRED'\n | 'INCOMPLETE_SETUP'\n | 'SUSPENDED_TOS'\n | 'SUSPENDED_BY_WIX'\n | 'TRANSFERRED_OUT'\n | 'PENDING'\n | 'NOT_DELIVERED'\n | 'PENDING_GWS';\n\nexport interface GoogleData {\n /**\n * Google customer ID of the Google Workspace that owns the subscription.\n * @readonly\n * @maxLength 16\n */\n googleCustomerId?: string | null;\n /**\n * Subscription ID at Google.\n * @readonly\n * @maxLength 16\n */\n googleSubscriptionId?: string | null;\n /**\n * ID of the Google product SKU the subscription is for, such as a specific Google Workspace edition.\n * @readonly\n * @maxLength 16\n */\n googleSkuId?: string;\n}\n\nexport interface IsEligibleRequest {\n /**\n * Domain to check. For example, `my-domain.com`.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * ID of the product to check eligibility for.\n *\n * Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n * @format GUID\n */\n productTypeId?: string;\n /** Not-eligible reasons to ignore when calculating the result. */\n postEligibility?: PostEligibilityActions;\n /**\n * Premium subscription ID of an existing Business Email subscription, when checking eligibility to upgrade it.\n * @format GUID\n */\n existingSubscriptionPremiumId?: string | null;\n}\n\nexport interface PostEligibilityActions {\n /**\n * Not-eligible reasons to ignore.\n *\n * A reason is ignored only when it exactly matches a reason the check returns, including its fields, such as `domainName`.\n * @maxSize 10\n * @minSize 1\n */\n ignoreReasons?: NotEligibleReason[];\n}\n\nexport interface NotEligibleReason extends NotEligibleReasonReasonOneOf {\n /** Requested number of seats isn't valid. Reserved, and currently not returned. */\n invalidRequestedSeats?: InvalidRequestedSeats;\n /** The account has no active Business Email subscription, which the product requires. */\n noGwsFound?: NoGWSFound;\n /** The account's current Google Workspace product isn't compatible with the product. Reserved, and currently not returned. */\n incompatibleGws?: IncompatibleWithCurrentGWSProduct;\n /** The customer must accept Google's terms of service first. Reserved, and currently not returned. */\n acceptTosRequired?: AcceptTosRequired;\n /** Another Google customer already uses the domain. Reserved, and currently not returned. */\n alreadyTaken?: GoogleCustomerAlreadyTakenOnGoogle;\n /** The domain already has a Business Email package. */\n emailPackageAlreadyExists?: EmailPackageAlreadyExists;\n /** The caller's account doesn't own the domain. */\n domainNotOwnedByUser?: DomainNotOwnedByUser;\n /** Couldn't find the domain. */\n domainNotFound?: DomainNotFound;\n /** No products are available to purchase for the domain. Reserved, and currently not returned. */\n noPurchasableSkus?: NoPurchasableSkus;\n /** The account already has the add-on. */\n addonAlreadyExists?: AddonAlreadyExists;\n /** The product isn't available in the customer's country. */\n notEligibleCountry?: NotEligibleCountry;\n /** Google can't set up a Google Workspace for the domain, for example because a Google customer already exists for it. */\n notEligibleCloudIdentityType?: NotEligibleCloudIdentityType;\n /** The domain name isn't valid. */\n invalidDomainName?: InvalidDomainName;\n /** The domain already has a Google Workspace subscription. Reserved, and currently not returned. */\n workspaceSubscriptionAlreadyExists?: WorkspaceSubscriptionAlreadyExists;\n /** Google Workspace can't be set up on the domain, for example because it's a subdomain or contains a Google trademark. */\n restrictedDomainName?: RestrictedDomainName;\n /** Another check failed. `reason` describes the check. */\n validationFailure?: GoogleWorkspaceValidationFailure;\n /** Requested number of seats isn't compatible with the current subscription. Reserved, and currently not returned. */\n incompatibleSeats?: IncompatibleGWSSeats;\n}\n\n/** @oneof */\nexport interface NotEligibleReasonReasonOneOf {\n /** Requested number of seats isn't valid. Reserved, and currently not returned. */\n invalidRequestedSeats?: InvalidRequestedSeats;\n /** The account has no active Business Email subscription, which the product requires. */\n noGwsFound?: NoGWSFound;\n /** The account's current Google Workspace product isn't compatible with the product. Reserved, and currently not returned. */\n incompatibleGws?: IncompatibleWithCurrentGWSProduct;\n /** The customer must accept Google's terms of service first. Reserved, and currently not returned. */\n acceptTosRequired?: AcceptTosRequired;\n /** Another Google customer already uses the domain. Reserved, and currently not returned. */\n alreadyTaken?: GoogleCustomerAlreadyTakenOnGoogle;\n /** The domain already has a Business Email package. */\n emailPackageAlreadyExists?: EmailPackageAlreadyExists;\n /** The caller's account doesn't own the domain. */\n domainNotOwnedByUser?: DomainNotOwnedByUser;\n /** Couldn't find the domain. */\n domainNotFound?: DomainNotFound;\n /** No products are available to purchase for the domain. Reserved, and currently not returned. */\n noPurchasableSkus?: NoPurchasableSkus;\n /** The account already has the add-on. */\n addonAlreadyExists?: AddonAlreadyExists;\n /** The product isn't available in the customer's country. */\n notEligibleCountry?: NotEligibleCountry;\n /** Google can't set up a Google Workspace for the domain, for example because a Google customer already exists for it. */\n notEligibleCloudIdentityType?: NotEligibleCloudIdentityType;\n /** The domain name isn't valid. */\n invalidDomainName?: InvalidDomainName;\n /** The domain already has a Google Workspace subscription. Reserved, and currently not returned. */\n workspaceSubscriptionAlreadyExists?: WorkspaceSubscriptionAlreadyExists;\n /** Google Workspace can't be set up on the domain, for example because it's a subdomain or contains a Google trademark. */\n restrictedDomainName?: RestrictedDomainName;\n /** Another check failed. `reason` describes the check. */\n validationFailure?: GoogleWorkspaceValidationFailure;\n /** Requested number of seats isn't compatible with the current subscription. Reserved, and currently not returned. */\n incompatibleSeats?: IncompatibleGWSSeats;\n}\n\nexport interface InvalidRequestedSeats {\n /** Number of seats that can be purchased. */\n availableSeats?: number;\n /** Number of seats requested. */\n requestedSeat?: number;\n}\n\nexport interface NoGWSFound {}\n\nexport interface IncompatibleWithCurrentGWSProduct {\n /**\n * Google SKU ID of the account's current Google Workspace product.\n * @maxLength 16\n */\n gwsSkuId?: string;\n}\n\nexport interface AcceptTosRequired {\n /**\n * ID of the Google Workspace subscription whose terms of service must be accepted.\n * @format GUID\n */\n acceptTosGwsId?: string;\n}\n\nexport interface GoogleCustomerAlreadyTakenOnGoogle {\n /**\n * Domain another Google customer already uses.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface EmailPackageAlreadyExists {\n /**\n * Domain that already has a Business Email package.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * ID of the Wix account that owns the existing package.\n * @format GUID\n */\n targetAccountId?: string;\n}\n\nexport interface DomainNotOwnedByUser {\n /**\n * Domain the caller's account doesn't own.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface DomainNotFound {\n /**\n * Domain that couldn't be found.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface NoPurchasableSkus {\n /**\n * Domain with no products available to purchase.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface AddonAlreadyExists {\n /**\n * Domain whose Google Workspace already has the add-on.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * Status of the existing add-on subscription. For example, `ACTIVE`.\n * @maxLength 16\n */\n status?: string;\n /**\n * Product type ID of the existing add-on.\n * @format GUID\n */\n productTypeId?: string;\n}\n\nexport interface NotEligibleCountry {\n /**\n * Domain that was checked.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * 2-letter code, in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, of the country where the product isn't available.\n * @minLength 2\n * @maxLength 2\n */\n countryCode?: string;\n}\n\nexport interface NotEligibleCloudIdentityType {\n /**\n * Domain that was checked.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * Why Google can't set up a Google Workspace for the domain.\n * @minLength 1\n * @maxLength 50\n */\n reason?: string;\n}\n\nexport interface InvalidDomainName {\n /**\n * Domain name that isn't valid.\n * @maxLength 200\n */\n domainName?: string;\n}\n\nexport interface WorkspaceSubscriptionAlreadyExists {\n /**\n * Domain that already has a Google Workspace subscription.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * Status of the existing subscription. For example, `ACTIVE`.\n * @maxLength 16\n */\n status?: string;\n /**\n * Product type ID of the existing subscription.\n * @format GUID\n */\n productTypeId?: string;\n}\n\nexport interface RestrictedDomainName {\n /**\n * Restricted domain.\n * @maxLength 200\n */\n domainName?: string;\n /** Why the domain is restricted. */\n reason?: RestrictedDomainReasonWithLiterals;\n}\n\n/** Why a well-formed domain cannot host Google Workspace */\nexport enum RestrictedDomainReason {\n /** Unknown restriction reason. */\n RESTRICTED_DOMAIN_REASON_UNSPECIFIED = 'RESTRICTED_DOMAIN_REASON_UNSPECIFIED',\n /** Not a registrable domain, e.g. app.example.com */\n SUBDOMAIN = 'SUBDOMAIN',\n /** Contains a Google trademark, e.g. gmail / youtube */\n BRAND = 'BRAND',\n /** Top-level domain Google does not serve */\n TLD = 'TLD',\n}\n\n/** @enumType */\nexport type RestrictedDomainReasonWithLiterals =\n | RestrictedDomainReason\n | 'RESTRICTED_DOMAIN_REASON_UNSPECIFIED'\n | 'SUBDOMAIN'\n | 'BRAND'\n | 'TLD';\n\nexport interface GoogleWorkspaceValidationFailure {\n /**\n * Description of the check that failed.\n * @minLength 1\n * @maxLength 50\n */\n reason?: string;\n}\n\nexport interface IncompatibleGWSSeats {\n /** Number of seats in the current subscription. */\n seats?: number;\n}\n\nexport interface IsEligibleResponse {\n /**\n * Domain that was checked.\n * @format HOSTNAME\n */\n domainName?: string;\n /** Overall eligibility result. */\n result?: EligibilityResult;\n /**\n * Eligibility result for each product family.\n *\n * Returned only for the Google Voice add-on.\n */\n results?: EligibilityResult[];\n}\n\nexport interface EligibilityResult extends EligibilityResultResultOneOf {\n /** Returned when the account can purchase the product. */\n eligible?: Eligible;\n /** Returned when the account can't purchase the product. */\n notEligible?: NotEligible;\n /**\n * ID of the product family this result is for.\n *\n * Returned only in `results`.\n */\n productFamilyId?: string | null;\n}\n\n/** @oneof */\nexport interface EligibilityResultResultOneOf {\n /** Returned when the account can purchase the product. */\n eligible?: Eligible;\n /** Returned when the account can't purchase the product. */\n notEligible?: NotEligible;\n}\n\nexport interface Eligible {\n /**\n * Maximum number of seats the account can purchase.\n *\n * For a new Business Email purchase, `20`. For an upgrade, the subscription's current number of seats plus 20. For a repurchase or transfer, the previous subscription's number of seats.\n */\n seats?: number;\n /**\n * Whether the purchase includes a free trial.\n *\n * Currently always `false`.\n */\n freeTrial?: boolean;\n /** Whether, and how, the purchase renews a previous subscription. */\n renewalType?: RenewalTypeWithLiterals;\n}\n\n/** Whether, and how, a purchase renews a previous subscription. */\nexport enum RenewalType {\n /** Not a renewal. Returned for a new purchase. */\n RENEWAL_TYPE_UNSPECIFIED = 'RENEWAL_TYPE_UNSPECIFIED',\n /** New subscription purchase. Reserved, and currently not returned. A new purchase returns `RENEWAL_TYPE_UNSPECIFIED`. */\n NEW_PURCHASE = 'NEW_PURCHASE',\n /** Repurchase of a subscription that Wix suspended. */\n REPURCHASE = 'REPURCHASE',\n /** Transfer back to Wix of a subscription that was transferred out to another reseller. */\n TRANSFER_IN = 'TRANSFER_IN',\n}\n\n/** @enumType */\nexport type RenewalTypeWithLiterals =\n | RenewalType\n | 'RENEWAL_TYPE_UNSPECIFIED'\n | 'NEW_PURCHASE'\n | 'REPURCHASE'\n | 'TRANSFER_IN';\n\nexport interface NotEligible {\n /**\n * Reasons the account can't purchase the product.\n * @maxSize 10\n * @minSize 1\n */\n reasons?: NotEligibleReason[];\n}\n\nexport interface ResolveEmailActionRequest {\n /**\n * Domain to evaluate. Must be a domain the caller's account owns.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface ResolveEmailActionResponse {\n /** Proposed recovery action. */\n action?: RecoveryActionWithLiterals;\n /** Why the action was proposed. */\n reason?: RecoveryReasonWithLiterals;\n}\n\n/** The action the resolver proposes for a mailbox target. */\nexport enum RecoveryAction {\n /** Unknown recovery action. */\n RECOVERY_ACTION_UNSPECIFIED = 'RECOVERY_ACTION_UNSPECIFIED',\n /** An unresolved paid purchase already exists; no new purchase. */\n RECOVERY_ACTION_PROCESSING = 'RECOVERY_ACTION_PROCESSING',\n /** Required evidence could not be read; offer a recheck rather than claim absence. */\n RECOVERY_ACTION_RETRY = 'RECOVERY_ACTION_RETRY',\n /** No safe action; existing shared unavailable/support experience. */\n RECOVERY_ACTION_UNAVAILABLE = 'RECOVERY_ACTION_UNAVAILABLE',\n /** Customer must accept Google Workspace terms. */\n RECOVERY_ACTION_ACCEPT_GOOGLE_TOS = 'RECOVERY_ACTION_ACCEPT_GOOGLE_TOS',\n /** Subscription is still in Wix's channel and restorable. */\n RECOVERY_ACTION_RENEW = 'RECOVERY_ACTION_RENEW',\n /** Customer must authorize Wix before a transfer can be attempted. */\n RECOVERY_ACTION_AUTHORIZE_WIX = 'RECOVERY_ACTION_AUTHORIZE_WIX',\n /** A supported transfer is available. */\n RECOVERY_ACTION_TRANSFER_IN = 'RECOVERY_ACTION_TRANSFER_IN',\n /** Healthy service; normal Business Email management. */\n RECOVERY_ACTION_MANAGE = 'RECOVERY_ACTION_MANAGE',\n /** Confirmed absence; hand off to unchanged initial purchase. */\n RECOVERY_ACTION_INITIAL_PURCHASE = 'RECOVERY_ACTION_INITIAL_PURCHASE',\n}\n\n/** @enumType */\nexport type RecoveryActionWithLiterals =\n | RecoveryAction\n | 'RECOVERY_ACTION_UNSPECIFIED'\n | 'RECOVERY_ACTION_PROCESSING'\n | 'RECOVERY_ACTION_RETRY'\n | 'RECOVERY_ACTION_UNAVAILABLE'\n | 'RECOVERY_ACTION_ACCEPT_GOOGLE_TOS'\n | 'RECOVERY_ACTION_RENEW'\n | 'RECOVERY_ACTION_AUTHORIZE_WIX'\n | 'RECOVERY_ACTION_TRANSFER_IN'\n | 'RECOVERY_ACTION_MANAGE'\n | 'RECOVERY_ACTION_INITIAL_PURCHASE';\n\n/** Why the resolver selected its action. */\nexport enum RecoveryReason {\n /** Unknown recovery reason. */\n RECOVERY_REASON_UNSPECIFIED = 'RECOVERY_REASON_UNSPECIFIED',\n /** A recovery for the domain is already in progress. */\n RECOVERY_REASON_RECOVERY_IN_PROGRESS = 'RECOVERY_REASON_RECOVERY_IN_PROGRESS',\n /** An earlier recovery for the domain needs attention before it can continue. */\n RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION = 'RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION',\n /** An earlier recovery for the domain is waiting for the customer to accept Google's terms of service. */\n RECOVERY_REASON_RECOVERY_TOS_REQUIRED = 'RECOVERY_REASON_RECOVERY_TOS_REQUIRED',\n /** Data needed for the decision couldn't be read. */\n RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE = 'RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE',\n /** The domain's Google identity needs a manual review. */\n RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW = 'RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW',\n /** The customer must accept Google's terms of service. */\n RECOVERY_REASON_GOOGLE_TOS_REQUIRED = 'RECOVERY_REASON_GOOGLE_TOS_REQUIRED',\n /** The subscription is still with Wix and can be renewed. */\n RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE = 'RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE',\n /** The customer must authorize Wix before the subscription can be transferred. */\n RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED = 'RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED',\n /** The subscription can be transferred to Wix. */\n RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE = 'RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE',\n /** The subscription is working normally. */\n RECOVERY_REASON_SUBSCRIPTION_HEALTHY = 'RECOVERY_REASON_SUBSCRIPTION_HEALTHY',\n /** Google has no customer for the domain. */\n RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED = 'RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED',\n /** Google has an organization for the domain, but it has no subscription. */\n RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION = 'RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION',\n /** The domain's state has no supported recovery. */\n RECOVERY_REASON_UNSUPPORTED_RECOVERY = 'RECOVERY_REASON_UNSUPPORTED_RECOVERY',\n /** The domain's release from its previous Google setup isn't resolved. */\n RECOVERY_REASON_RELEASE_UNRESOLVED = 'RECOVERY_REASON_RELEASE_UNRESOLVED',\n /** The available data doesn't support a decision. */\n RECOVERY_REASON_INCONCLUSIVE = 'RECOVERY_REASON_INCONCLUSIVE',\n /** The customer hasn't finished setting up Business Email: Google's terms of service aren't accepted and no seat is licensed yet. */\n RECOVERY_REASON_SETUP_INCOMPLETE = 'RECOVERY_REASON_SETUP_INCOMPLETE',\n}\n\n/** @enumType */\nexport type RecoveryReasonWithLiterals =\n | RecoveryReason\n | 'RECOVERY_REASON_UNSPECIFIED'\n | 'RECOVERY_REASON_RECOVERY_IN_PROGRESS'\n | 'RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION'\n | 'RECOVERY_REASON_RECOVERY_TOS_REQUIRED'\n | 'RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE'\n | 'RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW'\n | 'RECOVERY_REASON_GOOGLE_TOS_REQUIRED'\n | 'RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE'\n | 'RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED'\n | 'RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE'\n | 'RECOVERY_REASON_SUBSCRIPTION_HEALTHY'\n | 'RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED'\n | 'RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION'\n | 'RECOVERY_REASON_UNSUPPORTED_RECOVERY'\n | 'RECOVERY_REASON_RELEASE_UNRESOLVED'\n | 'RECOVERY_REASON_INCONCLUSIVE'\n | 'RECOVERY_REASON_SETUP_INCOMPLETE';\n\nexport interface ObserveEmailActionsRequest {\n /**\n * Domains to evaluate. For example, `my-domain.com`.\n *\n * Duplicates are ignored, regardless of case. Domains the caller's account doesn't own are skipped.\n *\n * Up to 20 distinct domains are evaluated per request. Any others are counted in `skipped`.\n * @maxSize 50\n * @minSize 1\n * @format HOSTNAME\n */\n domainNames?: string[];\n}\n\nexport interface ObserveEmailActionsResponse {\n /** Number of distinct domains that were evaluated. Includes domains where some of the data needed for the evaluation couldn't be read. */\n observed?: number;\n /** Number of requested domains that weren't evaluated. Includes duplicates, domains the caller's account doesn't own, domains beyond the per-request limit, and domains whose evaluation failed. */\n skipped?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface RawHttpRequest {\n body?: Uint8Array;\n pathParams?: PathParametersEntry[];\n queryParams?: QueryParametersEntry[];\n headers?: HeadersEntry[];\n method?: string;\n rawPath?: string;\n rawQuery?: string;\n}\n\nexport interface PathParametersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface QueryParametersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface CreateGoogleSubscriptionRequest {\n /** Google subscription to create. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface CreateGoogleSubscriptionResponse {\n /** Created Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface GetGoogleSubscriptionRequest {\n /**\n * ID of the Google subscription to retrieve.\n * @format GUID\n */\n googleSubscriptionId?: string;\n}\n\nexport interface GetGoogleSubscriptionResponse {\n /** Retrieved Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface UpdateGoogleSubscriptionRequest {\n /** Google subscription to update. May be partial. */\n googleSubscription?: GoogleSubscription;\n /**\n * Set of fields to update.\n *\n * Fields that aren't included in `fieldMask.paths` are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateGoogleSubscriptionResponse {\n /** Updated Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface DeleteGoogleSubscriptionRequest {\n /**\n * ID of the Google subscription to delete.\n * @format GUID\n */\n googleSubscriptionId?: string;\n}\n\nexport interface DeleteGoogleSubscriptionResponse {}\n\nexport interface QueryGoogleSubscriptionsRequest {\n /** Query options. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 4\n */\n sort?: Sorting[];\n /**\n * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /**\n * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 20\n */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 50\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryGoogleSubscriptionsResponse {\n /** Retrieved Google subscriptions. */\n googleSubscriptions?: GoogleSubscription[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id?: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace?: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData?: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface RetrieveUsersByDomainRequest {\n /**\n * Domain whose Google Workspace users to retrieve. Must be a domain the caller's account owns.\n * @format HOSTNAME\n */\n domainName: string;\n}\n\nexport interface RetrieveUsersByDomainResponse {\n /**\n * Retrieved users.\n *\n * Limited to 300 users.\n */\n users?: User[];\n}\n\n/**\n * A Google user is a user account in a Google Workspace, such as a Business Email mailbox.\n * It holds the user's primary email address, name, administrator role, and recovery details.\n */\nexport interface User {\n /**\n * Google user ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * User's primary email address. For example, `jane@my-domain.com`.\n * @format EMAIL\n */\n primaryEmail?: string;\n /** User's name. */\n name?: UserName;\n /** Whether the user is a super administrator of the Google Workspace. */\n admin?: boolean;\n /** Whether the user is a delegated administrator of the Google Workspace, with a subset of administrator privileges. */\n delegatedAdmin?: boolean;\n /**\n * Google customer ID of the Google Workspace the user belongs to.\n * @minLength 1\n * @maxLength 36\n */\n customerId?: string;\n /**\n * User's Google Voice phone number.\n *\n * Returned only when the user has a Google Voice number.\n * @maxLength 20\n */\n googleVoiceNumber?: string | null;\n /**\n * Product type IDs of the products licensed to the user, such as Business Email or the Google Voice add-on.\n *\n * Not returned by [Retrieve Users by Domain](https://dev.wix.com/docs/api-reference/account-level/premium/business-email/google-subscription-v1/retrieve-users-by-domain).\n * @format GUID\n * @maxSize 20\n */\n licensedProductTypeIds?: string[];\n /**\n * Recovery email address Google uses to verify the user when they can't sign in.\n * @maxLength 255\n */\n recoveryEmail?: string | null;\n /**\n * Recovery phone number Google uses to verify the user when they can't sign in, in [E.164](https://en.wikipedia.org/wiki/E.164) format. For example, `+12025550123`.\n * @maxLength 20\n */\n recoveryPhone?: string | null;\n}\n\nexport interface UserName {\n /**\n * User's given name (first name).\n * @maxLength 60\n */\n givenName?: string | null;\n /**\n * User's family name (last name).\n * @maxLength 60\n */\n familyName?: string | null;\n /**\n * User's full name. Calculated from `givenName` and `familyName`.\n * @maxLength 120\n * @readonly\n */\n fullName?: string | null;\n}\n\nexport interface GetStorageUsageRequest {\n /**\n * Premium subscription ID of the Google Workspace whose storage usage to retrieve.\n * @format GUID\n */\n googleWorkspacePremiumId: string;\n}\n\nexport interface GetStorageUsageResponse {\n /**\n * Day of the usage report the numbers describe, in `YYYY-MM-DD` format. Google publishes storage usage once a day, using the UTC-8 time zone, so the numbers trail live usage.\n *\n * Returned only when usage data is available.\n * @maxLength 10\n */\n asOfDate?: string | null;\n /** Storage used across the whole Google Workspace, in MB. Includes all mailboxes, Google Drive, and Google Photos. */\n usedMb?: string | null;\n /** Pooled storage quota, in MB, shared by all users. Equals the edition's storage allowance per seat multiplied by the number of licensed seats. */\n quotaMb?: string | null;\n}\n\nexport interface AssignLicenseRequest {\n /**\n * Premium subscription ID of the Google subscription.\n * @format GUID\n */\n premiumId?: string;\n /**\n * Primary email address of the user to assign the license to.\n * @format EMAIL\n */\n userEmail?: string;\n}\n\nexport interface AssignLicenseResponse {}\n\nexport interface RevokeLicenseRequest {\n /**\n * Premium subscription ID of the Google subscription.\n * @format GUID\n */\n premiumId?: string;\n /**\n * Primary email address of the user whose license to revoke.\n * @format EMAIL\n */\n userEmail?: string;\n}\n\nexport interface RevokeLicenseResponse {}\n\n/** @docsIgnore */\nexport type GetStorageUsageApplicationErrors =\n | {\n code?: 'NOT_FOUND_GWS_FOR_STORAGE_USAGE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PERMISSION_DENIED_FOR_STORAGE_USAGE';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Checks whether the caller's account can purchase a Google product for a domain.\n *\n * Specify the product in `productTypeId`. Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n *\n * The response contains either an eligible result, with the maximum number of seats the account can purchase, or a not-eligible result that lists the reasons.\n *\n * To check eligibility to upgrade an existing Business Email subscription, specify `existingSubscriptionPremiumId`.\n * @public\n * @documentationMaturity preview\n * @permissionId PREMIUM.GOOGLE_SUBSCRIPTION_ELIGIBILITY\n * @applicableIdentity APP\n * @fqn wix.premium.googlesubscriptions.v1.GoogleProductEligibility.IsEligible\n */\nexport async function isEligible(\n options?: IsEligibleOptions\n): Promise<\n NonNullablePaths<\n IsEligibleResponse,\n | `domainName`\n | `result.eligible.seats`\n | `result.eligible.freeTrial`\n | `result.eligible.renewalType`\n | `result.notEligible.reasons`\n | `result.notEligible.reasons.${number}.invalidRequestedSeats.availableSeats`\n | `result.notEligible.reasons.${number}.invalidRequestedSeats.requestedSeat`\n | `result.notEligible.reasons.${number}.incompatibleGws.gwsSkuId`\n | `result.notEligible.reasons.${number}.acceptTosRequired.acceptTosGwsId`\n | `result.notEligible.reasons.${number}.alreadyTaken.domainName`\n | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.domainName`\n | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.targetAccountId`\n | `result.notEligible.reasons.${number}.domainNotOwnedByUser.domainName`\n | `result.notEligible.reasons.${number}.domainNotFound.domainName`\n | `result.notEligible.reasons.${number}.noPurchasableSkus.domainName`\n | `result.notEligible.reasons.${number}.addonAlreadyExists.domainName`\n | `result.notEligible.reasons.${number}.addonAlreadyExists.status`\n | `result.notEligible.reasons.${number}.addonAlreadyExists.productTypeId`\n | `result.notEligible.reasons.${number}.notEligibleCountry.domainName`\n | `result.notEligible.reasons.${number}.notEligibleCountry.countryCode`\n | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.domainName`\n | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.reason`\n | `result.notEligible.reasons.${number}.invalidDomainName.domainName`\n | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.domainName`\n | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.status`\n | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.productTypeId`\n | `result.notEligible.reasons.${number}.restrictedDomainName.domainName`\n | `result.notEligible.reasons.${number}.restrictedDomainName.reason`\n | `result.notEligible.reasons.${number}.validationFailure.reason`\n | `result.notEligible.reasons.${number}.incompatibleSeats.seats`\n | `results`\n | `results.${number}.eligible.seats`\n | `results.${number}.eligible.freeTrial`\n | `results.${number}.eligible.renewalType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domainName: options?.domainName,\n productTypeId: options?.productTypeId,\n postEligibility: options?.postEligibility,\n existingSubscriptionPremiumId: options?.existingSubscriptionPremiumId,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.isEligible(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n domainName: '$[0].domainName',\n productTypeId: '$[0].productTypeId',\n postEligibility: '$[0].postEligibility',\n existingSubscriptionPremiumId: '$[0].existingSubscriptionPremiumId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface IsEligibleOptions {\n /**\n * Domain to check. For example, `my-domain.com`.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * ID of the product to check eligibility for.\n *\n * Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n * @format GUID\n */\n productTypeId?: string;\n /** Not-eligible reasons to ignore when calculating the result. */\n postEligibility?: PostEligibilityActions;\n /**\n * Premium subscription ID of an existing Business Email subscription, when checking eligibility to upgrade it.\n * @format GUID\n */\n existingSubscriptionPremiumId?: string | null;\n}\n\n/**\n * Evaluates the email recovery state of the specified domains.\n *\n * Returns only how many domains were evaluated and how many were skipped. Results for individual domains aren't returned, and the method doesn't change any data.\n *\n * Domains the caller's account doesn't own are skipped. Up to 20 distinct domains are evaluated per request, and any others are counted in `skipped`.\n *\n * Evaluation isn't available for every caller. When it isn't available, every requested domain is counted in `skipped`.\n * @public\n * @documentationMaturity preview\n * @permissionId PREMIUM.GOOGLE_SUBSCRIPTION_ELIGIBILITY\n * @applicableIdentity APP\n * @fqn wix.premium.googlesubscriptions.v1.GoogleProductEligibility.ObserveEmailActions\n */\nexport async function observeEmailActions(\n options?: ObserveEmailActionsOptions\n): Promise<\n NonNullablePaths<ObserveEmailActionsResponse, `observed` | `skipped`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domainNames: options?.domainNames,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.observeEmailActions(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { domainNames: '$[0].domainNames' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ObserveEmailActionsOptions {\n /**\n * Domains to evaluate. For example, `my-domain.com`.\n *\n * Duplicates are ignored, regardless of case. Domains the caller's account doesn't own are skipped.\n *\n * Up to 20 distinct domains are evaluated per request. Any others are counted in `skipped`.\n * @maxSize 50\n * @minSize 1\n * @format HOSTNAME\n */\n domainNames?: string[];\n}\n\n/**\n * Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.\n * @public\n * @documentationMaturity preview\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.ReceiveCloudChannelPush\n */\nexport async function receiveCloudChannelPush(\n options?: ReceiveCloudChannelPushOptions\n): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n body: options?.body,\n pathParams: options?.pathParams,\n queryParams: options?.queryParams,\n headers: options?.headers,\n method: options?.method,\n rawPath: options?.rawPath,\n rawQuery: options?.rawQuery,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.receiveCloudChannelPush(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n body: '$[0].body',\n pathParams: '$[0].pathParams',\n queryParams: '$[0].queryParams',\n headers: '$[0].headers',\n method: '$[0].method',\n rawPath: '$[0].rawPath',\n rawQuery: '$[0].rawQuery',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ReceiveCloudChannelPushOptions {\n body?: Uint8Array;\n pathParams?: PathParametersEntry[];\n queryParams?: QueryParametersEntry[];\n headers?: HeadersEntry[];\n method?: string;\n rawPath?: string;\n rawQuery?: string;\n}\n\n/**\n * Retrieves a list of up to 1,000 Google subscriptions, given the provided paging, filtering, and sorting.\n *\n * Query Google Subscriptions runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `paging.limit` is `50`\n * - `paging.offset` is `0`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n * @internal\n * @documentationMaturity preview\n * @permissionId PREMIUM.GOOGLE_SUBSCRIPTION_READ\n * @applicableIdentity APP\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.QueryGoogleSubscriptions\n */\nexport function queryGoogleSubscriptions(): GoogleSubscriptionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n GoogleSubscription,\n 'CURSOR',\n QueryGoogleSubscriptionsRequest,\n QueryGoogleSubscriptionsResponse\n >({\n func: async (payload: QueryGoogleSubscriptionsRequest) => {\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.queryGoogleSubscriptions(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryGoogleSubscriptionsRequest['query']) => {\n const args = [query, {}] as [\n QueryGoogleSubscriptionsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryGoogleSubscriptionsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.googleSubscriptions,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface GoogleSubscriptionsQueryResult extends QueryCursorResult {\n items: GoogleSubscription[];\n query: GoogleSubscriptionsQueryBuilder;\n next: () => Promise<GoogleSubscriptionsQueryResult>;\n prev: () => Promise<GoogleSubscriptionsQueryResult>;\n}\n\nexport interface GoogleSubscriptionsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id' | 'subscriptionId',\n value: string\n ) => GoogleSubscriptionsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'subscriptionId',\n value: any\n ) => GoogleSubscriptionsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'subscriptionId',\n value: boolean\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'_id' | 'subscriptionId'>\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'_id' | 'subscriptionId'>\n ) => GoogleSubscriptionsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => GoogleSubscriptionsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => GoogleSubscriptionsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<GoogleSubscriptionsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.QueryGoogleSubscriptions\n * @requiredField query\n */\nexport async function typedQueryGoogleSubscriptions(\n query: GoogleSubscriptionQuery\n): Promise<\n NonNullablePaths<\n QueryGoogleSubscriptionsResponse,\n | `googleSubscriptions`\n | `googleSubscriptions.${number}.seats`\n | `googleSubscriptions.${number}.subscriptionId`\n | `googleSubscriptions.${number}.domainName`\n | `googleSubscriptions.${number}.status`\n | `googleSubscriptions.${number}.googleData.googleSkuId`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.queryGoogleSubscriptions(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GoogleSubscriptionQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id', 'subscriptionId'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n GoogleSubscription,\n GoogleSubscriptionQuerySpec\n>;\nexport type GoogleSubscriptionQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Number of items to load. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n You can get the relevant cursor token\n from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 4 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 50 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const utils = {\n query: /*#__PURE__*/ createQueryUtils<\n GoogleSubscription,\n GoogleSubscriptionQuerySpec,\n GoogleSubscriptionQuery\n >(),\n};\n\n/**\n * Retrieves the users of the Google Workspace on a domain owned by the caller's account.\n *\n * Returns all users, including administrators, up to 300 users. Additional users aren't returned, and the method doesn't support paging.\n * @param domainName - Domain whose Google Workspace users to retrieve. Must be a domain the caller's account owns.\n * @public\n * @documentationMaturity preview\n * @requiredField domainName\n * @permissionId PREMIUM.GOOGLE_SUBSCRIPTION_READ\n * @applicableIdentity APP\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RetrieveUsersByDomain\n */\nexport async function retrieveUsersByDomain(\n domainName: string\n): Promise<\n NonNullablePaths<\n RetrieveUsersByDomainResponse,\n | `users`\n | `users.${number}._id`\n | `users.${number}.primaryEmail`\n | `users.${number}.admin`\n | `users.${number}.delegatedAdmin`\n | `users.${number}.customerId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domainName: domainName,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.retrieveUsersByDomain(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { domainName: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['domainName']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves how much storage a Google Workspace has used out of its pooled quota.\n *\n * The numbers come from Google's daily usage report, so they trail live usage by about a day. `asOfDate` is the report day.\n *\n * The response is empty when no usage data is available. For example, when the subscription isn't live, when Google doesn't grant access to the customer's reports, or when the day's report isn't published yet.\n *\n * Storage usage isn't available for every caller. When it isn't available, the response is empty.\n * @param googleWorkspacePremiumId - Premium subscription ID of the Google Workspace whose storage usage to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField googleWorkspacePremiumId\n * @permissionId PREMIUM.GOOGLE_SUBSCRIPTION_READ\n * @applicableIdentity APP\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.GetStorageUsage\n */\nexport async function getStorageUsage(\n googleWorkspacePremiumId: string\n): Promise<\n GetStorageUsageResponse & {\n __applicationErrorsType?: GetStorageUsageApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n googleWorkspacePremiumId: googleWorkspacePremiumId,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.getStorageUsage(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { googleWorkspacePremiumId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['googleWorkspacePremiumId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Assigns a Google subscription license to a user.\n * @internal\n * @documentationMaturity preview\n * @permissionId PREMIUM.GOOGLE_LICENSES_WRITE\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.AssignLicense\n */\nexport async function assignLicense(\n options?: AssignLicenseOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n premiumId: options?.premiumId,\n userEmail: options?.userEmail,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.assignLicense(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n premiumId: '$[0].premiumId',\n userEmail: '$[0].userEmail',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AssignLicenseOptions {\n /**\n * Premium subscription ID of the Google subscription.\n * @format GUID\n */\n premiumId?: string;\n /**\n * Primary email address of the user to assign the license to.\n * @format EMAIL\n */\n userEmail?: string;\n}\n\n/**\n * Revokes a user's Google subscription license.\n * @internal\n * @documentationMaturity preview\n * @permissionId PREMIUM.GOOGLE_LICENSES_WRITE\n * @fqn wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RevokeLicense\n */\nexport async function revokeLicense(\n options?: RevokeLicenseOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n premiumId: options?.premiumId,\n userEmail: options?.userEmail,\n });\n\n const reqOpts =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.revokeLicense(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n premiumId: '$[0].premiumId',\n userEmail: '$[0].userEmail',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RevokeLicenseOptions {\n /**\n * Premium subscription ID of the Google subscription.\n * @format GUID\n */\n premiumId?: string;\n /**\n * Primary email address of the user whose license to revoke.\n * @format EMAIL\n */\n userEmail?: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'body' }];\nconst TRANSFORM_PATHS_1 = [\n { path: 'googleSubscriptions.createdDate' },\n { path: 'googleSubscriptions.updatedDate' },\n];\n\nfunction resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_premium_google-subscriptions';\n\n/**\n * Checks whether the caller's account can purchase a Google product for a domain.\n *\n * Specify the product in `productTypeId`. Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n *\n * The response contains either an eligible result, with the maximum number of seats the account can purchase, or a not-eligible result that lists the reasons.\n *\n * To check eligibility to upgrade an existing Business Email subscription, specify `existingSubscriptionPremiumId`.\n */\nexport function isEligible(payload: object): RequestOptionsFactory<any> {\n function __isEligible({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'GET' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleProductEligibility.IsEligible',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({\n protoPath: '/v1/google-subscriptions/is-eligible',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __isEligible;\n}\n\n/**\n * Evaluates the email recovery state of the specified domains.\n *\n * Returns only how many domains were evaluated and how many were skipped. Results for individual domains aren't returned, and the method doesn't change any data.\n *\n * Domains the caller's account doesn't own are skipped. Up to 20 distinct domains are evaluated per request, and any others are counted in `skipped`.\n *\n * Evaluation isn't available for every caller. When it isn't available, every requested domain is counted in `skipped`.\n */\nexport function observeEmailActions(\n payload: object\n): RequestOptionsFactory<any> {\n function __observeEmailActions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleProductEligibility.ObserveEmailActions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({\n protoPath: '/v1/google-subscriptions/observe-email-actions',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __observeEmailActions;\n}\n\n/** Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps. */\nexport function receiveCloudChannelPush(\n payload: object\n): RequestOptionsFactory<any> {\n function __receiveCloudChannelPush({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKBytesToRESTBytes,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.ReceiveCloudChannelPush',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google/cloud-channel-webhook',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __receiveCloudChannelPush;\n}\n\n/**\n * Retrieves a list of up to 1,000 Google subscriptions, given the provided paging, filtering, and sorting.\n *\n * Query Google Subscriptions runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `paging.limit` is `50`\n * - `paging.offset` is `0`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryGoogleSubscriptions(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryGoogleSubscriptions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.QueryGoogleSubscriptions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryGoogleSubscriptions;\n}\n\n/**\n * Retrieves the users of the Google Workspace on a domain owned by the caller's account.\n *\n * Returns all users, including administrators, up to 300 users. Additional users aren't returned, and the method doesn't support paging.\n */\nexport function retrieveUsersByDomain(\n payload: object\n): RequestOptionsFactory<any> {\n function __retrieveUsersByDomain({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'GET' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RetrieveUsersByDomain',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/retrieve-users/{domainName}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __retrieveUsersByDomain;\n}\n\n/**\n * Retrieves how much storage a Google Workspace has used out of its pooled quota.\n *\n * The numbers come from Google's daily usage report, so they trail live usage by about a day. `asOfDate` is the report day.\n *\n * The response is empty when no usage data is available. For example, when the subscription isn't live, when Google doesn't grant access to the customer's reports, or when the day's report isn't published yet.\n *\n * Storage usage isn't available for every caller. When it isn't available, the response is empty.\n */\nexport function getStorageUsage(payload: object): RequestOptionsFactory<any> {\n function __getStorageUsage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'GET' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.GetStorageUsage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath:\n '/v1/google-subscriptions/storage-usage/{googleWorkspacePremiumId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getStorageUsage;\n}\n\n/** Assigns a Google subscription license to a user. */\nexport function assignLicense(payload: object): RequestOptionsFactory<any> {\n function __assignLicense({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.AssignLicense',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/license/assign',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __assignLicense;\n}\n\n/** Revokes a user's Google subscription license. */\nexport function revokeLicense(payload: object): RequestOptionsFactory<any> {\n function __revokeLicense({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RevokeLicense',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/license/revoke',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __revokeLicense;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AssignLicenseOptions,\n GetStorageUsageApplicationErrors,\n GetStorageUsageResponse,\n GoogleSubscriptionQuery,\n GoogleSubscriptionsQueryBuilder,\n IsEligibleOptions,\n IsEligibleResponse,\n ObserveEmailActionsOptions,\n ObserveEmailActionsResponse,\n QueryGoogleSubscriptionsResponse,\n RawHttpResponse,\n ReceiveCloudChannelPushOptions,\n RetrieveUsersByDomainResponse,\n RevokeLicenseOptions,\n assignLicense as universalAssignLicense,\n getStorageUsage as universalGetStorageUsage,\n isEligible as universalIsEligible,\n observeEmailActions as universalObserveEmailActions,\n queryGoogleSubscriptions as universalQueryGoogleSubscriptions,\n receiveCloudChannelPush as universalReceiveCloudChannelPush,\n retrieveUsersByDomain as universalRetrieveUsersByDomain,\n revokeLicense as universalRevokeLicense,\n typedQueryGoogleSubscriptions as universalTypedQueryGoogleSubscriptions,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/premium' };\n\nexport function isEligible(httpClient: HttpClient): IsEligibleSignature {\n return (options?: IsEligibleOptions) =>\n universalIsEligible(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface IsEligibleSignature {\n /**\n * Checks whether the caller's account can purchase a Google product for a domain.\n *\n * Specify the product in `productTypeId`. Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n *\n * The response contains either an eligible result, with the maximum number of seats the account can purchase, or a not-eligible result that lists the reasons.\n *\n * To check eligibility to upgrade an existing Business Email subscription, specify `existingSubscriptionPremiumId`.\n */\n (options?: IsEligibleOptions): Promise<\n NonNullablePaths<\n IsEligibleResponse,\n | `domainName`\n | `result.eligible.seats`\n | `result.eligible.freeTrial`\n | `result.eligible.renewalType`\n | `result.notEligible.reasons`\n | `result.notEligible.reasons.${number}.invalidRequestedSeats.availableSeats`\n | `result.notEligible.reasons.${number}.invalidRequestedSeats.requestedSeat`\n | `result.notEligible.reasons.${number}.incompatibleGws.gwsSkuId`\n | `result.notEligible.reasons.${number}.acceptTosRequired.acceptTosGwsId`\n | `result.notEligible.reasons.${number}.alreadyTaken.domainName`\n | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.domainName`\n | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.targetAccountId`\n | `result.notEligible.reasons.${number}.domainNotOwnedByUser.domainName`\n | `result.notEligible.reasons.${number}.domainNotFound.domainName`\n | `result.notEligible.reasons.${number}.noPurchasableSkus.domainName`\n | `result.notEligible.reasons.${number}.addonAlreadyExists.domainName`\n | `result.notEligible.reasons.${number}.addonAlreadyExists.status`\n | `result.notEligible.reasons.${number}.addonAlreadyExists.productTypeId`\n | `result.notEligible.reasons.${number}.notEligibleCountry.domainName`\n | `result.notEligible.reasons.${number}.notEligibleCountry.countryCode`\n | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.domainName`\n | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.reason`\n | `result.notEligible.reasons.${number}.invalidDomainName.domainName`\n | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.domainName`\n | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.status`\n | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.productTypeId`\n | `result.notEligible.reasons.${number}.restrictedDomainName.domainName`\n | `result.notEligible.reasons.${number}.restrictedDomainName.reason`\n | `result.notEligible.reasons.${number}.validationFailure.reason`\n | `result.notEligible.reasons.${number}.incompatibleSeats.seats`\n | `results`\n | `results.${number}.eligible.seats`\n | `results.${number}.eligible.freeTrial`\n | `results.${number}.eligible.renewalType`,\n 5\n >\n >;\n}\n\nexport function observeEmailActions(\n httpClient: HttpClient\n): ObserveEmailActionsSignature {\n return (options?: ObserveEmailActionsOptions) =>\n universalObserveEmailActions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ObserveEmailActionsSignature {\n /**\n * Evaluates the email recovery state of the specified domains.\n *\n * Returns only how many domains were evaluated and how many were skipped. Results for individual domains aren't returned, and the method doesn't change any data.\n *\n * Domains the caller's account doesn't own are skipped. Up to 20 distinct domains are evaluated per request, and any others are counted in `skipped`.\n *\n * Evaluation isn't available for every caller. When it isn't available, every requested domain is counted in `skipped`.\n */\n (options?: ObserveEmailActionsOptions): Promise<\n NonNullablePaths<ObserveEmailActionsResponse, `observed` | `skipped`, 0>\n >;\n}\n\nexport function receiveCloudChannelPush(\n httpClient: HttpClient\n): ReceiveCloudChannelPushSignature {\n return (options?: ReceiveCloudChannelPushOptions) =>\n universalReceiveCloudChannelPush(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReceiveCloudChannelPushSignature {\n /**\n * Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.\n */\n (options?: ReceiveCloudChannelPushOptions): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 2\n >\n >;\n}\n\n/** @internal */\nexport function queryGoogleSubscriptions(\n httpClient: HttpClient\n): QueryGoogleSubscriptionsSignature {\n return () =>\n universalQueryGoogleSubscriptions(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryGoogleSubscriptionsSignature {\n /**\n * Retrieves a list of up to 1,000 Google subscriptions, given the provided paging, filtering, and sorting.\n *\n * Query Google Subscriptions runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `paging.limit` is `50`\n * - `paging.offset` is `0`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\n (): GoogleSubscriptionsQueryBuilder;\n}\n\nexport function typedQueryGoogleSubscriptions(\n httpClient: HttpClient\n): TypedQueryGoogleSubscriptionsSignature {\n return (query: GoogleSubscriptionQuery) =>\n universalTypedQueryGoogleSubscriptions(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryGoogleSubscriptionsSignature {\n /** */\n (query: GoogleSubscriptionQuery): Promise<\n NonNullablePaths<\n QueryGoogleSubscriptionsResponse,\n | `googleSubscriptions`\n | `googleSubscriptions.${number}.seats`\n | `googleSubscriptions.${number}.subscriptionId`\n | `googleSubscriptions.${number}.domainName`\n | `googleSubscriptions.${number}.status`\n | `googleSubscriptions.${number}.googleData.googleSkuId`,\n 3\n >\n >;\n}\n\nexport function retrieveUsersByDomain(\n httpClient: HttpClient\n): RetrieveUsersByDomainSignature {\n return (domainName: string) =>\n universalRetrieveUsersByDomain(\n domainName,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RetrieveUsersByDomainSignature {\n /**\n * Retrieves the users of the Google Workspace on a domain owned by the caller's account.\n *\n * Returns all users, including administrators, up to 300 users. Additional users aren't returned, and the method doesn't support paging.\n * @param - Domain whose Google Workspace users to retrieve. Must be a domain the caller's account owns.\n */\n (domainName: string): Promise<\n NonNullablePaths<\n RetrieveUsersByDomainResponse,\n | `users`\n | `users.${number}._id`\n | `users.${number}.primaryEmail`\n | `users.${number}.admin`\n | `users.${number}.delegatedAdmin`\n | `users.${number}.customerId`,\n 2\n >\n >;\n}\n\nexport function getStorageUsage(\n httpClient: HttpClient\n): GetStorageUsageSignature {\n return (googleWorkspacePremiumId: string) =>\n universalGetStorageUsage(\n googleWorkspacePremiumId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetStorageUsageSignature {\n /**\n * Retrieves how much storage a Google Workspace has used out of its pooled quota.\n *\n * The numbers come from Google's daily usage report, so they trail live usage by about a day. `asOfDate` is the report day.\n *\n * The response is empty when no usage data is available. For example, when the subscription isn't live, when Google doesn't grant access to the customer's reports, or when the day's report isn't published yet.\n *\n * Storage usage isn't available for every caller. When it isn't available, the response is empty.\n * @param - Premium subscription ID of the Google Workspace whose storage usage to retrieve.\n */\n (googleWorkspacePremiumId: string): Promise<\n GetStorageUsageResponse & {\n __applicationErrorsType?: GetStorageUsageApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function assignLicense(httpClient: HttpClient): AssignLicenseSignature {\n return (options?: AssignLicenseOptions) =>\n universalAssignLicense(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AssignLicenseSignature {\n /**\n * Assigns a Google subscription license to a user.\n */\n (options?: AssignLicenseOptions): Promise<void>;\n}\n\n/** @internal */\nexport function revokeLicense(httpClient: HttpClient): RevokeLicenseSignature {\n return (options?: RevokeLicenseOptions) =>\n universalRevokeLicense(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RevokeLicenseSignature {\n /**\n * Revokes a user's Google subscription license.\n */\n (options?: RevokeLicenseOptions): Promise<void>;\n}\n\nexport {\n AcceptTosRequired,\n AccountInfo,\n ActionEvent,\n AddonAlreadyExists,\n AssignLicenseOptions,\n AssignLicenseRequest,\n AssignLicenseResponse,\n CreateGoogleSubscriptionRequest,\n CreateGoogleSubscriptionResponse,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DeleteGoogleSubscriptionRequest,\n DeleteGoogleSubscriptionResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n DomainNotFound,\n DomainNotOwnedByUser,\n EligibilityResult,\n EligibilityResultResultOneOf,\n Eligible,\n EmailPackageAlreadyExists,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetGoogleSubscriptionRequest,\n GetGoogleSubscriptionResponse,\n GetStorageUsageRequest,\n GetStorageUsageResponse,\n GoogleCustomerAlreadyTakenOnGoogle,\n GoogleData,\n GoogleSubscription,\n GoogleSubscriptionQuerySpec,\n GoogleSubscriptionsQueryBuilder,\n GoogleSubscriptionsQueryResult,\n GoogleWorkspaceValidationFailure,\n HeadersEntry,\n IdentificationData,\n IdentificationDataIdOneOf,\n IncompatibleGWSSeats,\n IncompatibleWithCurrentGWSProduct,\n InvalidDomainName,\n InvalidRequestedSeats,\n IsEligibleOptions,\n IsEligibleRequest,\n IsEligibleResponse,\n MessageEnvelope,\n NoGWSFound,\n NoPurchasableSkus,\n NotEligible,\n NotEligibleCloudIdentityType,\n NotEligibleCountry,\n NotEligibleReason,\n NotEligibleReasonReasonOneOf,\n ObserveEmailActionsOptions,\n ObserveEmailActionsRequest,\n ObserveEmailActionsResponse,\n Paging,\n PathParametersEntry,\n PostEligibilityActions,\n QueryGoogleSubscriptionsRequest,\n QueryGoogleSubscriptionsResponse,\n QueryParametersEntry,\n QueryV2,\n QueryV2PagingMethodOneOf,\n RawHttpRequest,\n RawHttpResponse,\n ReceiveCloudChannelPushOptions,\n RecoveryAction,\n RecoveryReason,\n RenewalType,\n ResolveEmailActionRequest,\n ResolveEmailActionResponse,\n RestoreInfo,\n RestrictedDomainName,\n RestrictedDomainReason,\n RetrieveUsersByDomainRequest,\n RetrieveUsersByDomainResponse,\n RevokeLicenseOptions,\n RevokeLicenseRequest,\n RevokeLicenseResponse,\n SortOrder,\n Sorting,\n Status,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n UpdateGoogleSubscriptionRequest,\n UpdateGoogleSubscriptionResponse,\n User,\n UserName,\n WebhookIdentityType,\n WorkspaceSubscriptionAlreadyExists,\n utils,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\n","import {\n isEligible as publicIsEligible,\n observeEmailActions as publicObserveEmailActions,\n receiveCloudChannelPush as publicReceiveCloudChannelPush,\n queryGoogleSubscriptions as publicQueryGoogleSubscriptions,\n typedQueryGoogleSubscriptions as publicTypedQueryGoogleSubscriptions,\n retrieveUsersByDomain as publicRetrieveUsersByDomain,\n getStorageUsage as publicGetStorageUsage,\n assignLicense as publicAssignLicense,\n revokeLicense as publicRevokeLicense,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n GoogleSubscriptionQuery,\n GoogleSubscriptionsQueryBuilder,\n typedQueryGoogleSubscriptions as universalTypedQueryGoogleSubscriptions,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\n\nfunction customQueryGoogleSubscriptions(httpClient: HttpClient) {\n const router = /*#__PURE__*/ createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryGoogleSubscriptions(httpClient)(),\n typedQueryFunction: (query: GoogleSubscriptionQuery) =>\n publicTypedQueryGoogleSubscriptions(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): GoogleSubscriptionsQueryBuilder;\n function overloadedQuery(\n query: GoogleSubscriptionQuery\n ): ReturnType<typeof universalTypedQueryGoogleSubscriptions>;\n function overloadedQuery(query?: GoogleSubscriptionQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const isEligible: MaybeContext<\n BuildRESTFunction<typeof publicIsEligible> & typeof publicIsEligible\n> = /*#__PURE__*/ createRESTModule(publicIsEligible);\nexport const observeEmailActions: MaybeContext<\n BuildRESTFunction<typeof publicObserveEmailActions> &\n typeof publicObserveEmailActions\n> = /*#__PURE__*/ createRESTModule(publicObserveEmailActions);\nexport const receiveCloudChannelPush: MaybeContext<\n BuildRESTFunction<typeof publicReceiveCloudChannelPush> &\n typeof publicReceiveCloudChannelPush\n> = /*#__PURE__*/ createRESTModule(publicReceiveCloudChannelPush);\nexport const retrieveUsersByDomain: MaybeContext<\n BuildRESTFunction<typeof publicRetrieveUsersByDomain> &\n typeof publicRetrieveUsersByDomain\n> = /*#__PURE__*/ createRESTModule(publicRetrieveUsersByDomain);\nexport const getStorageUsage: MaybeContext<\n BuildRESTFunction<typeof publicGetStorageUsage> & typeof publicGetStorageUsage\n> = /*#__PURE__*/ createRESTModule(publicGetStorageUsage);\n/** @internal */\nexport const assignLicense: MaybeContext<\n BuildRESTFunction<typeof publicAssignLicense> & typeof publicAssignLicense\n> = /*#__PURE__*/ createRESTModule(publicAssignLicense);\n/** @internal */\nexport const revokeLicense: MaybeContext<\n BuildRESTFunction<typeof publicRevokeLicense> & typeof publicRevokeLicense\n> = /*#__PURE__*/ createRESTModule(publicRevokeLicense);\nexport const queryGoogleSubscriptions: MaybeContext<\n BuildRESTFunction<typeof customQueryGoogleSubscriptions> &\n typeof customQueryGoogleSubscriptions\n> = /*#__PURE__*/ createRESTModule(customQueryGoogleSubscriptions);\n\nexport {\n Status,\n RestrictedDomainReason,\n RenewalType,\n RecoveryAction,\n RecoveryReason,\n WebhookIdentityType,\n SortOrder,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\nexport {\n GoogleSubscription,\n GoogleData,\n IsEligibleRequest,\n PostEligibilityActions,\n NotEligibleReason,\n NotEligibleReasonReasonOneOf,\n InvalidRequestedSeats,\n NoGWSFound,\n IncompatibleWithCurrentGWSProduct,\n AcceptTosRequired,\n GoogleCustomerAlreadyTakenOnGoogle,\n EmailPackageAlreadyExists,\n DomainNotOwnedByUser,\n DomainNotFound,\n NoPurchasableSkus,\n AddonAlreadyExists,\n NotEligibleCountry,\n NotEligibleCloudIdentityType,\n InvalidDomainName,\n WorkspaceSubscriptionAlreadyExists,\n RestrictedDomainName,\n GoogleWorkspaceValidationFailure,\n IncompatibleGWSSeats,\n IsEligibleResponse,\n EligibilityResult,\n EligibilityResultResultOneOf,\n Eligible,\n NotEligible,\n ResolveEmailActionRequest,\n ResolveEmailActionResponse,\n ObserveEmailActionsRequest,\n ObserveEmailActionsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n RawHttpRequest,\n PathParametersEntry,\n QueryParametersEntry,\n HeadersEntry,\n RawHttpResponse,\n CreateGoogleSubscriptionRequest,\n CreateGoogleSubscriptionResponse,\n GetGoogleSubscriptionRequest,\n GetGoogleSubscriptionResponse,\n UpdateGoogleSubscriptionRequest,\n UpdateGoogleSubscriptionResponse,\n DeleteGoogleSubscriptionRequest,\n DeleteGoogleSubscriptionResponse,\n QueryGoogleSubscriptionsRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QueryGoogleSubscriptionsResponse,\n CursorPagingMetadata,\n Cursors,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n RetrieveUsersByDomainRequest,\n RetrieveUsersByDomainResponse,\n User,\n UserName,\n GetStorageUsageRequest,\n GetStorageUsageResponse,\n AssignLicenseRequest,\n AssignLicenseResponse,\n RevokeLicenseRequest,\n RevokeLicenseResponse,\n IsEligibleOptions,\n ObserveEmailActionsOptions,\n ReceiveCloudChannelPushOptions,\n GoogleSubscriptionsQueryResult,\n GoogleSubscriptionsQueryBuilder,\n GoogleSubscriptionQuerySpec,\n AssignLicenseOptions,\n RevokeLicenseOptions,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\nexport { utils } from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\nexport {\n StatusWithLiterals,\n RestrictedDomainReasonWithLiterals,\n RenewalTypeWithLiterals,\n RecoveryActionWithLiterals,\n RecoveryReasonWithLiterals,\n WebhookIdentityTypeWithLiterals,\n SortOrderWithLiterals,\n GetStorageUsageApplicationErrors,\n CommonQueryWithEntityContext,\n GoogleSubscriptionQuery,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC;AAC3C,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,kCAAkC;AAAA,EAC1C,EAAE,MAAM,kCAAkC;AAC5C;AAEA,SAAS,6DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,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IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAuBO,SAASC,iBACd,YAC0B;AAC1B,SAAO,CAAC,6BACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAUO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC5QA,SAAS,wBAAwB;AAGjC,SAAS,iCAAiC;AAO1C,SAAS,+BAA+B,YAAwB;AAC9D,QAAM,SAAuB,0CAA0B;AAAA,IACrD,sBAAsB,MAAMC,0BAA+B,UAAU,EAAE;AAAA,IACvE,oBAAoB,CAAC,UACnBC,+BAAoC,UAAU,EAAE,KAAK;AAAA,IACvD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAsC;AAC7D,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,2BAGK,iCAAiBA,wBAA6B;AACzD,IAAMC,yBAGK,iCAAiBA,sBAA2B;AACvD,IAAMC,mBAEK,iCAAiBA,gBAAqB;AAEjD,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMR,4BAGK,iCAAiB,8BAA8B;","names":["payload","transformPaths","Status","RestrictedDomainReason","RenewalType","RecoveryAction","RecoveryReason","WebhookIdentityType","SortOrder","isEligible","observeEmailActions","receiveCloudChannelPush","queryGoogleSubscriptions","retrieveUsersByDomain","getStorageUsage","assignLicense","revokeLicense","isEligible","observeEmailActions","receiveCloudChannelPush","queryGoogleSubscriptions","typedQueryGoogleSubscriptions","retrieveUsersByDomain","getStorageUsage","assignLicense","revokeLicense","queryGoogleSubscriptions","typedQueryGoogleSubscriptions","isEligible","observeEmailActions","receiveCloudChannelPush","retrieveUsersByDomain","getStorageUsage","assignLicense","revokeLicense"]}