@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.
- package/build/cjs/index.d.ts +76 -0
- package/build/cjs/index.js +779 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1299 -0
- package/build/cjs/index.typings.js +694 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1050 -0
- package/build/cjs/meta.js +555 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +76 -0
- package/build/es/index.mjs +740 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1299 -0
- package/build/es/index.typings.mjs +654 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1050 -0
- package/build/es/meta.mjs +514 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +96 -0
- package/build/internal/cjs/index.typings.d.ts +1339 -0
- package/build/internal/cjs/meta.d.ts +1099 -0
- package/build/internal/es/index.d.mts +96 -0
- package/build/internal/es/index.typings.d.mts +1339 -0
- package/build/internal/es/meta.d.mts +1099 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { IsEligibleOptions, IsEligibleResponse, ObserveEmailActionsOptions, ObserveEmailActionsResponse, ReceiveCloudChannelPushOptions, RawHttpResponse, RetrieveUsersByDomainResponse, GetStorageUsageResponse, GetStorageUsageApplicationErrors, AssignLicenseOptions, RevokeLicenseOptions, GoogleSubscriptionsQueryBuilder, GoogleSubscriptionQuery, typedQueryGoogleSubscriptions } from './index.typings.mjs';
|
|
3
|
+
export { AcceptTosRequired, AccountInfo, ActionEvent, AddonAlreadyExists, AssignLicenseRequest, AssignLicenseResponse, CommonQueryWithEntityContext, CreateGoogleSubscriptionRequest, CreateGoogleSubscriptionResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteGoogleSubscriptionRequest, DeleteGoogleSubscriptionResponse, DomainEvent, DomainEventBodyOneOf, DomainNotFound, DomainNotOwnedByUser, EligibilityResult, EligibilityResultResultOneOf, Eligible, EmailPackageAlreadyExists, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetGoogleSubscriptionRequest, GetGoogleSubscriptionResponse, GetStorageUsageRequest, GoogleCustomerAlreadyTakenOnGoogle, GoogleData, GoogleSubscription, GoogleSubscriptionQuerySpec, GoogleSubscriptionsQueryResult, GoogleWorkspaceValidationFailure, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, IncompatibleGWSSeats, IncompatibleWithCurrentGWSProduct, InvalidDomainName, InvalidRequestedSeats, IsEligibleRequest, MessageEnvelope, NoGWSFound, NoPurchasableSkus, NotEligible, NotEligibleCloudIdentityType, NotEligibleCountry, NotEligibleReason, NotEligibleReasonReasonOneOf, ObserveEmailActionsRequest, Paging, PathParametersEntry, PostEligibilityActions, QueryGoogleSubscriptionsRequest, QueryGoogleSubscriptionsResponse, QueryParametersEntry, QueryV2, QueryV2PagingMethodOneOf, RawHttpRequest, RecoveryAction, RecoveryActionWithLiterals, RecoveryReason, RecoveryReasonWithLiterals, RenewalType, RenewalTypeWithLiterals, ResolveEmailActionRequest, ResolveEmailActionResponse, RestoreInfo, RestrictedDomainName, RestrictedDomainReason, RestrictedDomainReasonWithLiterals, RetrieveUsersByDomainRequest, RevokeLicenseRequest, RevokeLicenseResponse, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateGoogleSubscriptionRequest, UpdateGoogleSubscriptionResponse, User, UserName, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WorkspaceSubscriptionAlreadyExists, utils } from './index.typings.mjs';
|
|
4
|
+
|
|
5
|
+
declare function isEligible$1(httpClient: HttpClient): IsEligibleSignature;
|
|
6
|
+
interface IsEligibleSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether the caller's account can purchase a Google product for a domain.
|
|
9
|
+
*
|
|
10
|
+
* Specify the product in `productTypeId`. Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.
|
|
11
|
+
*
|
|
12
|
+
* 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.
|
|
13
|
+
*
|
|
14
|
+
* To check eligibility to upgrade an existing Business Email subscription, specify `existingSubscriptionPremiumId`.
|
|
15
|
+
*/
|
|
16
|
+
(options?: IsEligibleOptions): Promise<NonNullablePaths<IsEligibleResponse, `domainName` | `result.eligible.seats` | `result.eligible.freeTrial` | `result.eligible.renewalType` | `result.notEligible.reasons` | `result.notEligible.reasons.${number}.invalidRequestedSeats.availableSeats` | `result.notEligible.reasons.${number}.invalidRequestedSeats.requestedSeat` | `result.notEligible.reasons.${number}.incompatibleGws.gwsSkuId` | `result.notEligible.reasons.${number}.acceptTosRequired.acceptTosGwsId` | `result.notEligible.reasons.${number}.alreadyTaken.domainName` | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.domainName` | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.targetAccountId` | `result.notEligible.reasons.${number}.domainNotOwnedByUser.domainName` | `result.notEligible.reasons.${number}.domainNotFound.domainName` | `result.notEligible.reasons.${number}.noPurchasableSkus.domainName` | `result.notEligible.reasons.${number}.addonAlreadyExists.domainName` | `result.notEligible.reasons.${number}.addonAlreadyExists.status` | `result.notEligible.reasons.${number}.addonAlreadyExists.productTypeId` | `result.notEligible.reasons.${number}.notEligibleCountry.domainName` | `result.notEligible.reasons.${number}.notEligibleCountry.countryCode` | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.domainName` | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.reason` | `result.notEligible.reasons.${number}.invalidDomainName.domainName` | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.domainName` | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.status` | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.productTypeId` | `result.notEligible.reasons.${number}.restrictedDomainName.domainName` | `result.notEligible.reasons.${number}.restrictedDomainName.reason` | `result.notEligible.reasons.${number}.validationFailure.reason` | `result.notEligible.reasons.${number}.incompatibleSeats.seats` | `results` | `results.${number}.eligible.seats` | `results.${number}.eligible.freeTrial` | `results.${number}.eligible.renewalType`, 5>>;
|
|
17
|
+
}
|
|
18
|
+
declare function observeEmailActions$1(httpClient: HttpClient): ObserveEmailActionsSignature;
|
|
19
|
+
interface ObserveEmailActionsSignature {
|
|
20
|
+
/**
|
|
21
|
+
* Evaluates the email recovery state of the specified domains.
|
|
22
|
+
*
|
|
23
|
+
* 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.
|
|
24
|
+
*
|
|
25
|
+
* 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`.
|
|
26
|
+
*
|
|
27
|
+
* Evaluation isn't available for every caller. When it isn't available, every requested domain is counted in `skipped`.
|
|
28
|
+
*/
|
|
29
|
+
(options?: ObserveEmailActionsOptions): Promise<NonNullablePaths<ObserveEmailActionsResponse, `observed` | `skipped`, 0>>;
|
|
30
|
+
}
|
|
31
|
+
declare function receiveCloudChannelPush$1(httpClient: HttpClient): ReceiveCloudChannelPushSignature;
|
|
32
|
+
interface ReceiveCloudChannelPushSignature {
|
|
33
|
+
/**
|
|
34
|
+
* Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.
|
|
35
|
+
*/
|
|
36
|
+
(options?: ReceiveCloudChannelPushOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
37
|
+
}
|
|
38
|
+
declare function retrieveUsersByDomain$1(httpClient: HttpClient): RetrieveUsersByDomainSignature;
|
|
39
|
+
interface RetrieveUsersByDomainSignature {
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves the users of the Google Workspace on a domain owned by the caller's account.
|
|
42
|
+
*
|
|
43
|
+
* Returns all users, including administrators, up to 300 users. Additional users aren't returned, and the method doesn't support paging.
|
|
44
|
+
* @param - Domain whose Google Workspace users to retrieve. Must be a domain the caller's account owns.
|
|
45
|
+
*/
|
|
46
|
+
(domainName: string): Promise<NonNullablePaths<RetrieveUsersByDomainResponse, `users` | `users.${number}._id` | `users.${number}.primaryEmail` | `users.${number}.admin` | `users.${number}.delegatedAdmin` | `users.${number}.customerId`, 2>>;
|
|
47
|
+
}
|
|
48
|
+
declare function getStorageUsage$1(httpClient: HttpClient): GetStorageUsageSignature;
|
|
49
|
+
interface GetStorageUsageSignature {
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves how much storage a Google Workspace has used out of its pooled quota.
|
|
52
|
+
*
|
|
53
|
+
* The numbers come from Google's daily usage report, so they trail live usage by about a day. `asOfDate` is the report day.
|
|
54
|
+
*
|
|
55
|
+
* 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.
|
|
56
|
+
*
|
|
57
|
+
* Storage usage isn't available for every caller. When it isn't available, the response is empty.
|
|
58
|
+
* @param - Premium subscription ID of the Google Workspace whose storage usage to retrieve.
|
|
59
|
+
*/
|
|
60
|
+
(googleWorkspacePremiumId: string): Promise<GetStorageUsageResponse & {
|
|
61
|
+
__applicationErrorsType?: GetStorageUsageApplicationErrors;
|
|
62
|
+
}>;
|
|
63
|
+
}
|
|
64
|
+
/** @internal */
|
|
65
|
+
declare function assignLicense$1(httpClient: HttpClient): AssignLicenseSignature;
|
|
66
|
+
interface AssignLicenseSignature {
|
|
67
|
+
/**
|
|
68
|
+
* Assigns a Google subscription license to a user.
|
|
69
|
+
*/
|
|
70
|
+
(options?: AssignLicenseOptions): Promise<void>;
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
declare function revokeLicense$1(httpClient: HttpClient): RevokeLicenseSignature;
|
|
74
|
+
interface RevokeLicenseSignature {
|
|
75
|
+
/**
|
|
76
|
+
* Revokes a user's Google subscription license.
|
|
77
|
+
*/
|
|
78
|
+
(options?: RevokeLicenseOptions): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare function customQueryGoogleSubscriptions(httpClient: HttpClient): {
|
|
82
|
+
(): GoogleSubscriptionsQueryBuilder;
|
|
83
|
+
(query: GoogleSubscriptionQuery): ReturnType<typeof typedQueryGoogleSubscriptions>;
|
|
84
|
+
};
|
|
85
|
+
declare const isEligible: MaybeContext<BuildRESTFunction<typeof isEligible$1> & typeof isEligible$1>;
|
|
86
|
+
declare const observeEmailActions: MaybeContext<BuildRESTFunction<typeof observeEmailActions$1> & typeof observeEmailActions$1>;
|
|
87
|
+
declare const receiveCloudChannelPush: MaybeContext<BuildRESTFunction<typeof receiveCloudChannelPush$1> & typeof receiveCloudChannelPush$1>;
|
|
88
|
+
declare const retrieveUsersByDomain: MaybeContext<BuildRESTFunction<typeof retrieveUsersByDomain$1> & typeof retrieveUsersByDomain$1>;
|
|
89
|
+
declare const getStorageUsage: MaybeContext<BuildRESTFunction<typeof getStorageUsage$1> & typeof getStorageUsage$1>;
|
|
90
|
+
/** @internal */
|
|
91
|
+
declare const assignLicense: MaybeContext<BuildRESTFunction<typeof assignLicense$1> & typeof assignLicense$1>;
|
|
92
|
+
/** @internal */
|
|
93
|
+
declare const revokeLicense: MaybeContext<BuildRESTFunction<typeof revokeLicense$1> & typeof revokeLicense$1>;
|
|
94
|
+
declare const queryGoogleSubscriptions: MaybeContext<BuildRESTFunction<typeof customQueryGoogleSubscriptions> & typeof customQueryGoogleSubscriptions>;
|
|
95
|
+
|
|
96
|
+
export { AssignLicenseOptions, GetStorageUsageApplicationErrors, GetStorageUsageResponse, GoogleSubscriptionQuery, GoogleSubscriptionsQueryBuilder, IsEligibleOptions, IsEligibleResponse, ObserveEmailActionsOptions, ObserveEmailActionsResponse, RawHttpResponse, ReceiveCloudChannelPushOptions, RetrieveUsersByDomainResponse, RevokeLicenseOptions, assignLicense, getStorageUsage, isEligible, observeEmailActions, queryGoogleSubscriptions, receiveCloudChannelPush, retrieveUsersByDomain, revokeLicense };
|