@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,654 @@
|
|
|
1
|
+
// src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
|
|
4
|
+
import {
|
|
5
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
6
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
7
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
8
|
+
|
|
9
|
+
// src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.http.ts
|
|
10
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
+
import { transformSDKBytesToRESTBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
12
|
+
import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
13
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
14
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
15
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
16
|
+
var TRANSFORM_PATHS_0 = [{ path: "body" }];
|
|
17
|
+
var TRANSFORM_PATHS_1 = [
|
|
18
|
+
{ path: "googleSubscriptions.createdDate" },
|
|
19
|
+
{ path: "googleSubscriptions.updatedDate" }
|
|
20
|
+
];
|
|
21
|
+
function resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl(opts) {
|
|
22
|
+
const domainToMappings = {
|
|
23
|
+
"manage._base_domain_": [
|
|
24
|
+
{
|
|
25
|
+
srcPath: "/_api/google-subscriptions",
|
|
26
|
+
destPath: ""
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"api._api_base_domain_": [
|
|
30
|
+
{
|
|
31
|
+
srcPath: "/google-subscriptions",
|
|
32
|
+
destPath: ""
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"billing.base44.com": [
|
|
36
|
+
{
|
|
37
|
+
srcPath: "/_api/google-subscriptions",
|
|
38
|
+
destPath: ""
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"www.wixapis.com": [
|
|
42
|
+
{
|
|
43
|
+
srcPath: "/google-subscriptions",
|
|
44
|
+
destPath: ""
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
49
|
+
}
|
|
50
|
+
function resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl(opts) {
|
|
51
|
+
const domainToMappings = {
|
|
52
|
+
"manage._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/_api/google-subscriptions",
|
|
55
|
+
destPath: ""
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"api._api_base_domain_": [
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/google-subscriptions",
|
|
61
|
+
destPath: ""
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"billing.base44.com": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/_api/google-subscriptions",
|
|
67
|
+
destPath: ""
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"www.wixapis.com": [
|
|
71
|
+
{
|
|
72
|
+
srcPath: "/google-subscriptions",
|
|
73
|
+
destPath: ""
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
};
|
|
77
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
78
|
+
}
|
|
79
|
+
var PACKAGE_NAME = "@wix/auto_sdk_premium_google-subscriptions";
|
|
80
|
+
function isEligible(payload) {
|
|
81
|
+
function __isEligible({ host }) {
|
|
82
|
+
const metadata = {
|
|
83
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
84
|
+
method: "GET",
|
|
85
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleProductEligibility.IsEligible",
|
|
86
|
+
packageName: PACKAGE_NAME,
|
|
87
|
+
migrationOptions: {
|
|
88
|
+
optInTransformResponse: true
|
|
89
|
+
},
|
|
90
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({
|
|
91
|
+
protoPath: "/v1/google-subscriptions/is-eligible",
|
|
92
|
+
data: payload,
|
|
93
|
+
host
|
|
94
|
+
}),
|
|
95
|
+
params: toURLSearchParams(payload)
|
|
96
|
+
};
|
|
97
|
+
return metadata;
|
|
98
|
+
}
|
|
99
|
+
return __isEligible;
|
|
100
|
+
}
|
|
101
|
+
function observeEmailActions(payload) {
|
|
102
|
+
function __observeEmailActions({ host }) {
|
|
103
|
+
const metadata = {
|
|
104
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
105
|
+
method: "POST",
|
|
106
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleProductEligibility.ObserveEmailActions",
|
|
107
|
+
packageName: PACKAGE_NAME,
|
|
108
|
+
migrationOptions: {
|
|
109
|
+
optInTransformResponse: true
|
|
110
|
+
},
|
|
111
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({
|
|
112
|
+
protoPath: "/v1/google-subscriptions/observe-email-actions",
|
|
113
|
+
data: payload,
|
|
114
|
+
host
|
|
115
|
+
}),
|
|
116
|
+
data: payload
|
|
117
|
+
};
|
|
118
|
+
return metadata;
|
|
119
|
+
}
|
|
120
|
+
return __observeEmailActions;
|
|
121
|
+
}
|
|
122
|
+
function receiveCloudChannelPush(payload) {
|
|
123
|
+
function __receiveCloudChannelPush({ host }) {
|
|
124
|
+
const serializedData = transformPaths(payload, [
|
|
125
|
+
{
|
|
126
|
+
transformFn: transformSDKBytesToRESTBytes,
|
|
127
|
+
paths: TRANSFORM_PATHS_0
|
|
128
|
+
}
|
|
129
|
+
]);
|
|
130
|
+
const metadata = {
|
|
131
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
132
|
+
method: "POST",
|
|
133
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.ReceiveCloudChannelPush",
|
|
134
|
+
packageName: PACKAGE_NAME,
|
|
135
|
+
migrationOptions: {
|
|
136
|
+
optInTransformResponse: true
|
|
137
|
+
},
|
|
138
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
|
|
139
|
+
protoPath: "/v1/google/cloud-channel-webhook",
|
|
140
|
+
data: serializedData,
|
|
141
|
+
host
|
|
142
|
+
}),
|
|
143
|
+
data: serializedData,
|
|
144
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
145
|
+
{
|
|
146
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
147
|
+
paths: TRANSFORM_PATHS_0
|
|
148
|
+
}
|
|
149
|
+
])
|
|
150
|
+
};
|
|
151
|
+
return metadata;
|
|
152
|
+
}
|
|
153
|
+
return __receiveCloudChannelPush;
|
|
154
|
+
}
|
|
155
|
+
function queryGoogleSubscriptions(payload) {
|
|
156
|
+
function __queryGoogleSubscriptions({ host }) {
|
|
157
|
+
const metadata = {
|
|
158
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
159
|
+
method: "POST",
|
|
160
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.QueryGoogleSubscriptions",
|
|
161
|
+
packageName: PACKAGE_NAME,
|
|
162
|
+
migrationOptions: {
|
|
163
|
+
optInTransformResponse: true
|
|
164
|
+
},
|
|
165
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
|
|
166
|
+
protoPath: "/v1/google-subscriptions/query",
|
|
167
|
+
data: payload,
|
|
168
|
+
host
|
|
169
|
+
}),
|
|
170
|
+
data: payload,
|
|
171
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
172
|
+
{
|
|
173
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
174
|
+
paths: TRANSFORM_PATHS_1
|
|
175
|
+
}
|
|
176
|
+
])
|
|
177
|
+
};
|
|
178
|
+
return metadata;
|
|
179
|
+
}
|
|
180
|
+
return __queryGoogleSubscriptions;
|
|
181
|
+
}
|
|
182
|
+
function retrieveUsersByDomain(payload) {
|
|
183
|
+
function __retrieveUsersByDomain({ host }) {
|
|
184
|
+
const metadata = {
|
|
185
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
186
|
+
method: "GET",
|
|
187
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RetrieveUsersByDomain",
|
|
188
|
+
packageName: PACKAGE_NAME,
|
|
189
|
+
migrationOptions: {
|
|
190
|
+
optInTransformResponse: true
|
|
191
|
+
},
|
|
192
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
|
|
193
|
+
protoPath: "/v1/google-subscriptions/retrieve-users/{domainName}",
|
|
194
|
+
data: payload,
|
|
195
|
+
host
|
|
196
|
+
}),
|
|
197
|
+
params: toURLSearchParams(payload)
|
|
198
|
+
};
|
|
199
|
+
return metadata;
|
|
200
|
+
}
|
|
201
|
+
return __retrieveUsersByDomain;
|
|
202
|
+
}
|
|
203
|
+
function getStorageUsage(payload) {
|
|
204
|
+
function __getStorageUsage({ host }) {
|
|
205
|
+
const metadata = {
|
|
206
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
207
|
+
method: "GET",
|
|
208
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.GetStorageUsage",
|
|
209
|
+
packageName: PACKAGE_NAME,
|
|
210
|
+
migrationOptions: {
|
|
211
|
+
optInTransformResponse: true
|
|
212
|
+
},
|
|
213
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
|
|
214
|
+
protoPath: "/v1/google-subscriptions/storage-usage/{googleWorkspacePremiumId}",
|
|
215
|
+
data: payload,
|
|
216
|
+
host
|
|
217
|
+
}),
|
|
218
|
+
params: toURLSearchParams(payload)
|
|
219
|
+
};
|
|
220
|
+
return metadata;
|
|
221
|
+
}
|
|
222
|
+
return __getStorageUsage;
|
|
223
|
+
}
|
|
224
|
+
function assignLicense(payload) {
|
|
225
|
+
function __assignLicense({ host }) {
|
|
226
|
+
const metadata = {
|
|
227
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
228
|
+
method: "POST",
|
|
229
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.AssignLicense",
|
|
230
|
+
packageName: PACKAGE_NAME,
|
|
231
|
+
migrationOptions: {
|
|
232
|
+
optInTransformResponse: true
|
|
233
|
+
},
|
|
234
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
|
|
235
|
+
protoPath: "/v1/google-subscriptions/license/assign",
|
|
236
|
+
data: payload,
|
|
237
|
+
host
|
|
238
|
+
}),
|
|
239
|
+
data: payload
|
|
240
|
+
};
|
|
241
|
+
return metadata;
|
|
242
|
+
}
|
|
243
|
+
return __assignLicense;
|
|
244
|
+
}
|
|
245
|
+
function revokeLicense(payload) {
|
|
246
|
+
function __revokeLicense({ host }) {
|
|
247
|
+
const metadata = {
|
|
248
|
+
entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
|
|
249
|
+
method: "POST",
|
|
250
|
+
methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RevokeLicense",
|
|
251
|
+
packageName: PACKAGE_NAME,
|
|
252
|
+
migrationOptions: {
|
|
253
|
+
optInTransformResponse: true
|
|
254
|
+
},
|
|
255
|
+
url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
|
|
256
|
+
protoPath: "/v1/google-subscriptions/license/revoke",
|
|
257
|
+
data: payload,
|
|
258
|
+
host
|
|
259
|
+
}),
|
|
260
|
+
data: payload
|
|
261
|
+
};
|
|
262
|
+
return metadata;
|
|
263
|
+
}
|
|
264
|
+
return __revokeLicense;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.ts
|
|
268
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
269
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
270
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
271
|
+
Status2["UNKNOWN"] = "UNKNOWN";
|
|
272
|
+
Status2["ACTIVE"] = "ACTIVE";
|
|
273
|
+
Status2["EXPIRED"] = "EXPIRED";
|
|
274
|
+
Status2["INCOMPLETE_SETUP"] = "INCOMPLETE_SETUP";
|
|
275
|
+
Status2["SUSPENDED_TOS"] = "SUSPENDED_TOS";
|
|
276
|
+
Status2["SUSPENDED_BY_WIX"] = "SUSPENDED_BY_WIX";
|
|
277
|
+
Status2["TRANSFERRED_OUT"] = "TRANSFERRED_OUT";
|
|
278
|
+
Status2["PENDING"] = "PENDING";
|
|
279
|
+
Status2["NOT_DELIVERED"] = "NOT_DELIVERED";
|
|
280
|
+
Status2["PENDING_GWS"] = "PENDING_GWS";
|
|
281
|
+
return Status2;
|
|
282
|
+
})(Status || {});
|
|
283
|
+
var RestrictedDomainReason = /* @__PURE__ */ ((RestrictedDomainReason2) => {
|
|
284
|
+
RestrictedDomainReason2["RESTRICTED_DOMAIN_REASON_UNSPECIFIED"] = "RESTRICTED_DOMAIN_REASON_UNSPECIFIED";
|
|
285
|
+
RestrictedDomainReason2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
286
|
+
RestrictedDomainReason2["BRAND"] = "BRAND";
|
|
287
|
+
RestrictedDomainReason2["TLD"] = "TLD";
|
|
288
|
+
return RestrictedDomainReason2;
|
|
289
|
+
})(RestrictedDomainReason || {});
|
|
290
|
+
var RenewalType = /* @__PURE__ */ ((RenewalType2) => {
|
|
291
|
+
RenewalType2["RENEWAL_TYPE_UNSPECIFIED"] = "RENEWAL_TYPE_UNSPECIFIED";
|
|
292
|
+
RenewalType2["NEW_PURCHASE"] = "NEW_PURCHASE";
|
|
293
|
+
RenewalType2["REPURCHASE"] = "REPURCHASE";
|
|
294
|
+
RenewalType2["TRANSFER_IN"] = "TRANSFER_IN";
|
|
295
|
+
return RenewalType2;
|
|
296
|
+
})(RenewalType || {});
|
|
297
|
+
var RecoveryAction = /* @__PURE__ */ ((RecoveryAction2) => {
|
|
298
|
+
RecoveryAction2["RECOVERY_ACTION_UNSPECIFIED"] = "RECOVERY_ACTION_UNSPECIFIED";
|
|
299
|
+
RecoveryAction2["RECOVERY_ACTION_PROCESSING"] = "RECOVERY_ACTION_PROCESSING";
|
|
300
|
+
RecoveryAction2["RECOVERY_ACTION_RETRY"] = "RECOVERY_ACTION_RETRY";
|
|
301
|
+
RecoveryAction2["RECOVERY_ACTION_UNAVAILABLE"] = "RECOVERY_ACTION_UNAVAILABLE";
|
|
302
|
+
RecoveryAction2["RECOVERY_ACTION_ACCEPT_GOOGLE_TOS"] = "RECOVERY_ACTION_ACCEPT_GOOGLE_TOS";
|
|
303
|
+
RecoveryAction2["RECOVERY_ACTION_RENEW"] = "RECOVERY_ACTION_RENEW";
|
|
304
|
+
RecoveryAction2["RECOVERY_ACTION_AUTHORIZE_WIX"] = "RECOVERY_ACTION_AUTHORIZE_WIX";
|
|
305
|
+
RecoveryAction2["RECOVERY_ACTION_TRANSFER_IN"] = "RECOVERY_ACTION_TRANSFER_IN";
|
|
306
|
+
RecoveryAction2["RECOVERY_ACTION_MANAGE"] = "RECOVERY_ACTION_MANAGE";
|
|
307
|
+
RecoveryAction2["RECOVERY_ACTION_INITIAL_PURCHASE"] = "RECOVERY_ACTION_INITIAL_PURCHASE";
|
|
308
|
+
return RecoveryAction2;
|
|
309
|
+
})(RecoveryAction || {});
|
|
310
|
+
var RecoveryReason = /* @__PURE__ */ ((RecoveryReason2) => {
|
|
311
|
+
RecoveryReason2["RECOVERY_REASON_UNSPECIFIED"] = "RECOVERY_REASON_UNSPECIFIED";
|
|
312
|
+
RecoveryReason2["RECOVERY_REASON_RECOVERY_IN_PROGRESS"] = "RECOVERY_REASON_RECOVERY_IN_PROGRESS";
|
|
313
|
+
RecoveryReason2["RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION"] = "RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION";
|
|
314
|
+
RecoveryReason2["RECOVERY_REASON_RECOVERY_TOS_REQUIRED"] = "RECOVERY_REASON_RECOVERY_TOS_REQUIRED";
|
|
315
|
+
RecoveryReason2["RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE"] = "RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE";
|
|
316
|
+
RecoveryReason2["RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW"] = "RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW";
|
|
317
|
+
RecoveryReason2["RECOVERY_REASON_GOOGLE_TOS_REQUIRED"] = "RECOVERY_REASON_GOOGLE_TOS_REQUIRED";
|
|
318
|
+
RecoveryReason2["RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE"] = "RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE";
|
|
319
|
+
RecoveryReason2["RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED"] = "RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED";
|
|
320
|
+
RecoveryReason2["RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE"] = "RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE";
|
|
321
|
+
RecoveryReason2["RECOVERY_REASON_SUBSCRIPTION_HEALTHY"] = "RECOVERY_REASON_SUBSCRIPTION_HEALTHY";
|
|
322
|
+
RecoveryReason2["RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED"] = "RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED";
|
|
323
|
+
RecoveryReason2["RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION"] = "RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION";
|
|
324
|
+
RecoveryReason2["RECOVERY_REASON_UNSUPPORTED_RECOVERY"] = "RECOVERY_REASON_UNSUPPORTED_RECOVERY";
|
|
325
|
+
RecoveryReason2["RECOVERY_REASON_RELEASE_UNRESOLVED"] = "RECOVERY_REASON_RELEASE_UNRESOLVED";
|
|
326
|
+
RecoveryReason2["RECOVERY_REASON_INCONCLUSIVE"] = "RECOVERY_REASON_INCONCLUSIVE";
|
|
327
|
+
RecoveryReason2["RECOVERY_REASON_SETUP_INCOMPLETE"] = "RECOVERY_REASON_SETUP_INCOMPLETE";
|
|
328
|
+
return RecoveryReason2;
|
|
329
|
+
})(RecoveryReason || {});
|
|
330
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
331
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
332
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
333
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
334
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
335
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
336
|
+
return WebhookIdentityType2;
|
|
337
|
+
})(WebhookIdentityType || {});
|
|
338
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
339
|
+
SortOrder2["ASC"] = "ASC";
|
|
340
|
+
SortOrder2["DESC"] = "DESC";
|
|
341
|
+
return SortOrder2;
|
|
342
|
+
})(SortOrder || {});
|
|
343
|
+
async function isEligible2(options) {
|
|
344
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
345
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
346
|
+
domainName: options?.domainName,
|
|
347
|
+
productTypeId: options?.productTypeId,
|
|
348
|
+
postEligibility: options?.postEligibility,
|
|
349
|
+
existingSubscriptionPremiumId: options?.existingSubscriptionPremiumId
|
|
350
|
+
});
|
|
351
|
+
const reqOpts = isEligible(
|
|
352
|
+
payload
|
|
353
|
+
);
|
|
354
|
+
sideEffects?.onSiteCall?.();
|
|
355
|
+
try {
|
|
356
|
+
const result = await httpClient.request(reqOpts);
|
|
357
|
+
sideEffects?.onSuccess?.(result);
|
|
358
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
359
|
+
} catch (err) {
|
|
360
|
+
const transformedError = sdkTransformError(
|
|
361
|
+
err,
|
|
362
|
+
{
|
|
363
|
+
spreadPathsToArguments: {},
|
|
364
|
+
explicitPathsToArguments: {
|
|
365
|
+
domainName: "$[0].domainName",
|
|
366
|
+
productTypeId: "$[0].productTypeId",
|
|
367
|
+
postEligibility: "$[0].postEligibility",
|
|
368
|
+
existingSubscriptionPremiumId: "$[0].existingSubscriptionPremiumId"
|
|
369
|
+
},
|
|
370
|
+
singleArgumentUnchanged: false
|
|
371
|
+
},
|
|
372
|
+
["options"]
|
|
373
|
+
);
|
|
374
|
+
sideEffects?.onError?.(err);
|
|
375
|
+
throw transformedError;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
async function observeEmailActions2(options) {
|
|
379
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
380
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
381
|
+
domainNames: options?.domainNames
|
|
382
|
+
});
|
|
383
|
+
const reqOpts = observeEmailActions(
|
|
384
|
+
payload
|
|
385
|
+
);
|
|
386
|
+
sideEffects?.onSiteCall?.();
|
|
387
|
+
try {
|
|
388
|
+
const result = await httpClient.request(reqOpts);
|
|
389
|
+
sideEffects?.onSuccess?.(result);
|
|
390
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
391
|
+
} catch (err) {
|
|
392
|
+
const transformedError = sdkTransformError(
|
|
393
|
+
err,
|
|
394
|
+
{
|
|
395
|
+
spreadPathsToArguments: {},
|
|
396
|
+
explicitPathsToArguments: { domainNames: "$[0].domainNames" },
|
|
397
|
+
singleArgumentUnchanged: false
|
|
398
|
+
},
|
|
399
|
+
["options"]
|
|
400
|
+
);
|
|
401
|
+
sideEffects?.onError?.(err);
|
|
402
|
+
throw transformedError;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
async function receiveCloudChannelPush2(options) {
|
|
406
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
407
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
408
|
+
body: options?.body,
|
|
409
|
+
pathParams: options?.pathParams,
|
|
410
|
+
queryParams: options?.queryParams,
|
|
411
|
+
headers: options?.headers,
|
|
412
|
+
method: options?.method,
|
|
413
|
+
rawPath: options?.rawPath,
|
|
414
|
+
rawQuery: options?.rawQuery
|
|
415
|
+
});
|
|
416
|
+
const reqOpts = receiveCloudChannelPush(
|
|
417
|
+
payload
|
|
418
|
+
);
|
|
419
|
+
sideEffects?.onSiteCall?.();
|
|
420
|
+
try {
|
|
421
|
+
const result = await httpClient.request(reqOpts);
|
|
422
|
+
sideEffects?.onSuccess?.(result);
|
|
423
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
424
|
+
} catch (err) {
|
|
425
|
+
const transformedError = sdkTransformError(
|
|
426
|
+
err,
|
|
427
|
+
{
|
|
428
|
+
spreadPathsToArguments: {},
|
|
429
|
+
explicitPathsToArguments: {
|
|
430
|
+
body: "$[0].body",
|
|
431
|
+
pathParams: "$[0].pathParams",
|
|
432
|
+
queryParams: "$[0].queryParams",
|
|
433
|
+
headers: "$[0].headers",
|
|
434
|
+
method: "$[0].method",
|
|
435
|
+
rawPath: "$[0].rawPath",
|
|
436
|
+
rawQuery: "$[0].rawQuery"
|
|
437
|
+
},
|
|
438
|
+
singleArgumentUnchanged: false
|
|
439
|
+
},
|
|
440
|
+
["options"]
|
|
441
|
+
);
|
|
442
|
+
sideEffects?.onError?.(err);
|
|
443
|
+
throw transformedError;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function queryGoogleSubscriptions2() {
|
|
447
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
448
|
+
return queryBuilder({
|
|
449
|
+
func: async (payload) => {
|
|
450
|
+
const reqOpts = queryGoogleSubscriptions(
|
|
451
|
+
payload
|
|
452
|
+
);
|
|
453
|
+
sideEffects?.onSiteCall?.();
|
|
454
|
+
try {
|
|
455
|
+
const result = await httpClient.request(reqOpts);
|
|
456
|
+
sideEffects?.onSuccess?.(result);
|
|
457
|
+
return result;
|
|
458
|
+
} catch (err) {
|
|
459
|
+
sideEffects?.onError?.(err);
|
|
460
|
+
throw err;
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
requestTransformer: (query) => {
|
|
464
|
+
const args = [query, {}];
|
|
465
|
+
return renameKeysFromSDKRequestToRESTRequest({
|
|
466
|
+
...args?.[1],
|
|
467
|
+
query: args?.[0]
|
|
468
|
+
});
|
|
469
|
+
},
|
|
470
|
+
responseTransformer: ({
|
|
471
|
+
data
|
|
472
|
+
}) => {
|
|
473
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
474
|
+
transformPaths2(data, [])
|
|
475
|
+
);
|
|
476
|
+
return {
|
|
477
|
+
items: transformedData?.googleSubscriptions,
|
|
478
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
errorTransformer: (err) => {
|
|
482
|
+
const transformedError = sdkTransformError(err, {
|
|
483
|
+
spreadPathsToArguments: {},
|
|
484
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
485
|
+
singleArgumentUnchanged: false
|
|
486
|
+
});
|
|
487
|
+
throw transformedError;
|
|
488
|
+
},
|
|
489
|
+
pagingMethod: "CURSOR",
|
|
490
|
+
transformationPaths: {}
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
async function typedQueryGoogleSubscriptions(query) {
|
|
494
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
495
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
496
|
+
const reqOpts = queryGoogleSubscriptions(
|
|
497
|
+
payload
|
|
498
|
+
);
|
|
499
|
+
sideEffects?.onSiteCall?.();
|
|
500
|
+
try {
|
|
501
|
+
const result = await httpClient.request(reqOpts);
|
|
502
|
+
sideEffects?.onSuccess?.(result);
|
|
503
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
504
|
+
} catch (err) {
|
|
505
|
+
const transformedError = sdkTransformError(
|
|
506
|
+
err,
|
|
507
|
+
{
|
|
508
|
+
spreadPathsToArguments: {},
|
|
509
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
510
|
+
singleArgumentUnchanged: false
|
|
511
|
+
},
|
|
512
|
+
["query"]
|
|
513
|
+
);
|
|
514
|
+
sideEffects?.onError?.(err);
|
|
515
|
+
throw transformedError;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
var utils = {
|
|
519
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
520
|
+
};
|
|
521
|
+
async function retrieveUsersByDomain2(domainName) {
|
|
522
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
523
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
524
|
+
domainName
|
|
525
|
+
});
|
|
526
|
+
const reqOpts = retrieveUsersByDomain(
|
|
527
|
+
payload
|
|
528
|
+
);
|
|
529
|
+
sideEffects?.onSiteCall?.();
|
|
530
|
+
try {
|
|
531
|
+
const result = await httpClient.request(reqOpts);
|
|
532
|
+
sideEffects?.onSuccess?.(result);
|
|
533
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
534
|
+
} catch (err) {
|
|
535
|
+
const transformedError = sdkTransformError(
|
|
536
|
+
err,
|
|
537
|
+
{
|
|
538
|
+
spreadPathsToArguments: {},
|
|
539
|
+
explicitPathsToArguments: { domainName: "$[0]" },
|
|
540
|
+
singleArgumentUnchanged: false
|
|
541
|
+
},
|
|
542
|
+
["domainName"]
|
|
543
|
+
);
|
|
544
|
+
sideEffects?.onError?.(err);
|
|
545
|
+
throw transformedError;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
async function getStorageUsage2(googleWorkspacePremiumId) {
|
|
549
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
550
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
551
|
+
googleWorkspacePremiumId
|
|
552
|
+
});
|
|
553
|
+
const reqOpts = getStorageUsage(
|
|
554
|
+
payload
|
|
555
|
+
);
|
|
556
|
+
sideEffects?.onSiteCall?.();
|
|
557
|
+
try {
|
|
558
|
+
const result = await httpClient.request(reqOpts);
|
|
559
|
+
sideEffects?.onSuccess?.(result);
|
|
560
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
561
|
+
} catch (err) {
|
|
562
|
+
const transformedError = sdkTransformError(
|
|
563
|
+
err,
|
|
564
|
+
{
|
|
565
|
+
spreadPathsToArguments: {},
|
|
566
|
+
explicitPathsToArguments: { googleWorkspacePremiumId: "$[0]" },
|
|
567
|
+
singleArgumentUnchanged: false
|
|
568
|
+
},
|
|
569
|
+
["googleWorkspacePremiumId"]
|
|
570
|
+
);
|
|
571
|
+
sideEffects?.onError?.(err);
|
|
572
|
+
throw transformedError;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
async function assignLicense2(options) {
|
|
576
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
577
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
578
|
+
premiumId: options?.premiumId,
|
|
579
|
+
userEmail: options?.userEmail
|
|
580
|
+
});
|
|
581
|
+
const reqOpts = assignLicense(
|
|
582
|
+
payload
|
|
583
|
+
);
|
|
584
|
+
sideEffects?.onSiteCall?.();
|
|
585
|
+
try {
|
|
586
|
+
const result = await httpClient.request(reqOpts);
|
|
587
|
+
sideEffects?.onSuccess?.(result);
|
|
588
|
+
} catch (err) {
|
|
589
|
+
const transformedError = sdkTransformError(
|
|
590
|
+
err,
|
|
591
|
+
{
|
|
592
|
+
spreadPathsToArguments: {},
|
|
593
|
+
explicitPathsToArguments: {
|
|
594
|
+
premiumId: "$[0].premiumId",
|
|
595
|
+
userEmail: "$[0].userEmail"
|
|
596
|
+
},
|
|
597
|
+
singleArgumentUnchanged: false
|
|
598
|
+
},
|
|
599
|
+
["options"]
|
|
600
|
+
);
|
|
601
|
+
sideEffects?.onError?.(err);
|
|
602
|
+
throw transformedError;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
async function revokeLicense2(options) {
|
|
606
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
607
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
608
|
+
premiumId: options?.premiumId,
|
|
609
|
+
userEmail: options?.userEmail
|
|
610
|
+
});
|
|
611
|
+
const reqOpts = revokeLicense(
|
|
612
|
+
payload
|
|
613
|
+
);
|
|
614
|
+
sideEffects?.onSiteCall?.();
|
|
615
|
+
try {
|
|
616
|
+
const result = await httpClient.request(reqOpts);
|
|
617
|
+
sideEffects?.onSuccess?.(result);
|
|
618
|
+
} catch (err) {
|
|
619
|
+
const transformedError = sdkTransformError(
|
|
620
|
+
err,
|
|
621
|
+
{
|
|
622
|
+
spreadPathsToArguments: {},
|
|
623
|
+
explicitPathsToArguments: {
|
|
624
|
+
premiumId: "$[0].premiumId",
|
|
625
|
+
userEmail: "$[0].userEmail"
|
|
626
|
+
},
|
|
627
|
+
singleArgumentUnchanged: false
|
|
628
|
+
},
|
|
629
|
+
["options"]
|
|
630
|
+
);
|
|
631
|
+
sideEffects?.onError?.(err);
|
|
632
|
+
throw transformedError;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
export {
|
|
636
|
+
RecoveryAction,
|
|
637
|
+
RecoveryReason,
|
|
638
|
+
RenewalType,
|
|
639
|
+
RestrictedDomainReason,
|
|
640
|
+
SortOrder,
|
|
641
|
+
Status,
|
|
642
|
+
WebhookIdentityType,
|
|
643
|
+
assignLicense2 as assignLicense,
|
|
644
|
+
getStorageUsage2 as getStorageUsage,
|
|
645
|
+
isEligible2 as isEligible,
|
|
646
|
+
observeEmailActions2 as observeEmailActions,
|
|
647
|
+
queryGoogleSubscriptions2 as queryGoogleSubscriptions,
|
|
648
|
+
receiveCloudChannelPush2 as receiveCloudChannelPush,
|
|
649
|
+
retrieveUsersByDomain2 as retrieveUsersByDomain,
|
|
650
|
+
revokeLicense2 as revokeLicense,
|
|
651
|
+
typedQueryGoogleSubscriptions,
|
|
652
|
+
utils
|
|
653
|
+
};
|
|
654
|
+
//# sourceMappingURL=index.typings.mjs.map
|