@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,555 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ RecoveryActionOriginal: () => RecoveryAction,
24
+ RecoveryReasonOriginal: () => RecoveryReason,
25
+ RenewalTypeOriginal: () => RenewalType,
26
+ RestrictedDomainReasonOriginal: () => RestrictedDomainReason,
27
+ SortOrderOriginal: () => SortOrder,
28
+ StatusOriginal: () => Status,
29
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
30
+ assignLicense: () => assignLicense2,
31
+ getStorageUsage: () => getStorageUsage2,
32
+ isEligible: () => isEligible2,
33
+ observeEmailActions: () => observeEmailActions2,
34
+ queryGoogleSubscriptions: () => queryGoogleSubscriptions2,
35
+ receiveCloudChannelPush: () => receiveCloudChannelPush2,
36
+ retrieveUsersByDomain: () => retrieveUsersByDomain2,
37
+ revokeLicense: () => revokeLicense2
38
+ });
39
+ module.exports = __toCommonJS(meta_exports);
40
+
41
+ // src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.http.ts
42
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
43
+ var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
44
+ var import_bytes2 = require("@wix/sdk-runtime/transformations/bytes");
45
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
46
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
47
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
48
+ var TRANSFORM_PATHS_0 = [{ path: "body" }];
49
+ var TRANSFORM_PATHS_1 = [
50
+ { path: "googleSubscriptions.createdDate" },
51
+ { path: "googleSubscriptions.updatedDate" }
52
+ ];
53
+ function resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl(opts) {
54
+ const domainToMappings = {
55
+ "manage._base_domain_": [
56
+ {
57
+ srcPath: "/_api/google-subscriptions",
58
+ destPath: ""
59
+ }
60
+ ],
61
+ "api._api_base_domain_": [
62
+ {
63
+ srcPath: "/google-subscriptions",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ "billing.base44.com": [
68
+ {
69
+ srcPath: "/_api/google-subscriptions",
70
+ destPath: ""
71
+ }
72
+ ],
73
+ "www.wixapis.com": [
74
+ {
75
+ srcPath: "/google-subscriptions",
76
+ destPath: ""
77
+ }
78
+ ]
79
+ };
80
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
81
+ }
82
+ function resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl(opts) {
83
+ const domainToMappings = {
84
+ "manage._base_domain_": [
85
+ {
86
+ srcPath: "/_api/google-subscriptions",
87
+ destPath: ""
88
+ }
89
+ ],
90
+ "api._api_base_domain_": [
91
+ {
92
+ srcPath: "/google-subscriptions",
93
+ destPath: ""
94
+ }
95
+ ],
96
+ "billing.base44.com": [
97
+ {
98
+ srcPath: "/_api/google-subscriptions",
99
+ destPath: ""
100
+ }
101
+ ],
102
+ "www.wixapis.com": [
103
+ {
104
+ srcPath: "/google-subscriptions",
105
+ destPath: ""
106
+ }
107
+ ]
108
+ };
109
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
110
+ }
111
+ var PACKAGE_NAME = "@wix/auto_sdk_premium_google-subscriptions";
112
+ function isEligible(payload) {
113
+ function __isEligible({ host }) {
114
+ const metadata = {
115
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
116
+ method: "GET",
117
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleProductEligibility.IsEligible",
118
+ packageName: PACKAGE_NAME,
119
+ migrationOptions: {
120
+ optInTransformResponse: true
121
+ },
122
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({
123
+ protoPath: "/v1/google-subscriptions/is-eligible",
124
+ data: payload,
125
+ host
126
+ }),
127
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
128
+ };
129
+ return metadata;
130
+ }
131
+ return __isEligible;
132
+ }
133
+ function observeEmailActions(payload) {
134
+ function __observeEmailActions({ host }) {
135
+ const metadata = {
136
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
137
+ method: "POST",
138
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleProductEligibility.ObserveEmailActions",
139
+ packageName: PACKAGE_NAME,
140
+ migrationOptions: {
141
+ optInTransformResponse: true
142
+ },
143
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({
144
+ protoPath: "/v1/google-subscriptions/observe-email-actions",
145
+ data: payload,
146
+ host
147
+ }),
148
+ data: payload
149
+ };
150
+ return metadata;
151
+ }
152
+ return __observeEmailActions;
153
+ }
154
+ function receiveCloudChannelPush(payload) {
155
+ function __receiveCloudChannelPush({ host }) {
156
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
157
+ {
158
+ transformFn: import_bytes.transformSDKBytesToRESTBytes,
159
+ paths: TRANSFORM_PATHS_0
160
+ }
161
+ ]);
162
+ const metadata = {
163
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
164
+ method: "POST",
165
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.ReceiveCloudChannelPush",
166
+ packageName: PACKAGE_NAME,
167
+ migrationOptions: {
168
+ optInTransformResponse: true
169
+ },
170
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
171
+ protoPath: "/v1/google/cloud-channel-webhook",
172
+ data: serializedData,
173
+ host
174
+ }),
175
+ data: serializedData,
176
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
177
+ {
178
+ transformFn: import_bytes2.transformRESTBytesToSDKBytes,
179
+ paths: TRANSFORM_PATHS_0
180
+ }
181
+ ])
182
+ };
183
+ return metadata;
184
+ }
185
+ return __receiveCloudChannelPush;
186
+ }
187
+ function queryGoogleSubscriptions(payload) {
188
+ function __queryGoogleSubscriptions({ host }) {
189
+ const metadata = {
190
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
191
+ method: "POST",
192
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.QueryGoogleSubscriptions",
193
+ packageName: PACKAGE_NAME,
194
+ migrationOptions: {
195
+ optInTransformResponse: true
196
+ },
197
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
198
+ protoPath: "/v1/google-subscriptions/query",
199
+ data: payload,
200
+ host
201
+ }),
202
+ data: payload,
203
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
204
+ {
205
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
206
+ paths: TRANSFORM_PATHS_1
207
+ }
208
+ ])
209
+ };
210
+ return metadata;
211
+ }
212
+ return __queryGoogleSubscriptions;
213
+ }
214
+ function retrieveUsersByDomain(payload) {
215
+ function __retrieveUsersByDomain({ host }) {
216
+ const metadata = {
217
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
218
+ method: "GET",
219
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RetrieveUsersByDomain",
220
+ packageName: PACKAGE_NAME,
221
+ migrationOptions: {
222
+ optInTransformResponse: true
223
+ },
224
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
225
+ protoPath: "/v1/google-subscriptions/retrieve-users/{domainName}",
226
+ data: payload,
227
+ host
228
+ }),
229
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
230
+ };
231
+ return metadata;
232
+ }
233
+ return __retrieveUsersByDomain;
234
+ }
235
+ function getStorageUsage(payload) {
236
+ function __getStorageUsage({ host }) {
237
+ const metadata = {
238
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
239
+ method: "GET",
240
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.GetStorageUsage",
241
+ packageName: PACKAGE_NAME,
242
+ migrationOptions: {
243
+ optInTransformResponse: true
244
+ },
245
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
246
+ protoPath: "/v1/google-subscriptions/storage-usage/{googleWorkspacePremiumId}",
247
+ data: payload,
248
+ host
249
+ }),
250
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
251
+ };
252
+ return metadata;
253
+ }
254
+ return __getStorageUsage;
255
+ }
256
+ function assignLicense(payload) {
257
+ function __assignLicense({ host }) {
258
+ const metadata = {
259
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
260
+ method: "POST",
261
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.AssignLicense",
262
+ packageName: PACKAGE_NAME,
263
+ migrationOptions: {
264
+ optInTransformResponse: true
265
+ },
266
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
267
+ protoPath: "/v1/google-subscriptions/license/assign",
268
+ data: payload,
269
+ host
270
+ }),
271
+ data: payload
272
+ };
273
+ return metadata;
274
+ }
275
+ return __assignLicense;
276
+ }
277
+ function revokeLicense(payload) {
278
+ function __revokeLicense({ host }) {
279
+ const metadata = {
280
+ entityFqdn: "wix.premium.google_subscriptions.v1.google_subscription",
281
+ method: "POST",
282
+ methodFqn: "wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RevokeLicense",
283
+ packageName: PACKAGE_NAME,
284
+ migrationOptions: {
285
+ optInTransformResponse: true
286
+ },
287
+ url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({
288
+ protoPath: "/v1/google-subscriptions/license/revoke",
289
+ data: payload,
290
+ host
291
+ }),
292
+ data: payload
293
+ };
294
+ return metadata;
295
+ }
296
+ return __revokeLicense;
297
+ }
298
+
299
+ // src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.types.ts
300
+ var Status = /* @__PURE__ */ ((Status2) => {
301
+ Status2["UNKNOWN"] = "UNKNOWN";
302
+ Status2["ACTIVE"] = "ACTIVE";
303
+ Status2["EXPIRED"] = "EXPIRED";
304
+ Status2["INCOMPLETE_SETUP"] = "INCOMPLETE_SETUP";
305
+ Status2["SUSPENDED_TOS"] = "SUSPENDED_TOS";
306
+ Status2["SUSPENDED_BY_WIX"] = "SUSPENDED_BY_WIX";
307
+ Status2["TRANSFERRED_OUT"] = "TRANSFERRED_OUT";
308
+ Status2["PENDING"] = "PENDING";
309
+ Status2["NOT_DELIVERED"] = "NOT_DELIVERED";
310
+ Status2["PENDING_GWS"] = "PENDING_GWS";
311
+ return Status2;
312
+ })(Status || {});
313
+ var RestrictedDomainReason = /* @__PURE__ */ ((RestrictedDomainReason2) => {
314
+ RestrictedDomainReason2["RESTRICTED_DOMAIN_REASON_UNSPECIFIED"] = "RESTRICTED_DOMAIN_REASON_UNSPECIFIED";
315
+ RestrictedDomainReason2["SUBDOMAIN"] = "SUBDOMAIN";
316
+ RestrictedDomainReason2["BRAND"] = "BRAND";
317
+ RestrictedDomainReason2["TLD"] = "TLD";
318
+ return RestrictedDomainReason2;
319
+ })(RestrictedDomainReason || {});
320
+ var RenewalType = /* @__PURE__ */ ((RenewalType2) => {
321
+ RenewalType2["RENEWAL_TYPE_UNSPECIFIED"] = "RENEWAL_TYPE_UNSPECIFIED";
322
+ RenewalType2["NEW_PURCHASE"] = "NEW_PURCHASE";
323
+ RenewalType2["REPURCHASE"] = "REPURCHASE";
324
+ RenewalType2["TRANSFER_IN"] = "TRANSFER_IN";
325
+ return RenewalType2;
326
+ })(RenewalType || {});
327
+ var RecoveryAction = /* @__PURE__ */ ((RecoveryAction2) => {
328
+ RecoveryAction2["RECOVERY_ACTION_UNSPECIFIED"] = "RECOVERY_ACTION_UNSPECIFIED";
329
+ RecoveryAction2["RECOVERY_ACTION_PROCESSING"] = "RECOVERY_ACTION_PROCESSING";
330
+ RecoveryAction2["RECOVERY_ACTION_RETRY"] = "RECOVERY_ACTION_RETRY";
331
+ RecoveryAction2["RECOVERY_ACTION_UNAVAILABLE"] = "RECOVERY_ACTION_UNAVAILABLE";
332
+ RecoveryAction2["RECOVERY_ACTION_ACCEPT_GOOGLE_TOS"] = "RECOVERY_ACTION_ACCEPT_GOOGLE_TOS";
333
+ RecoveryAction2["RECOVERY_ACTION_RENEW"] = "RECOVERY_ACTION_RENEW";
334
+ RecoveryAction2["RECOVERY_ACTION_AUTHORIZE_WIX"] = "RECOVERY_ACTION_AUTHORIZE_WIX";
335
+ RecoveryAction2["RECOVERY_ACTION_TRANSFER_IN"] = "RECOVERY_ACTION_TRANSFER_IN";
336
+ RecoveryAction2["RECOVERY_ACTION_MANAGE"] = "RECOVERY_ACTION_MANAGE";
337
+ RecoveryAction2["RECOVERY_ACTION_INITIAL_PURCHASE"] = "RECOVERY_ACTION_INITIAL_PURCHASE";
338
+ return RecoveryAction2;
339
+ })(RecoveryAction || {});
340
+ var RecoveryReason = /* @__PURE__ */ ((RecoveryReason2) => {
341
+ RecoveryReason2["RECOVERY_REASON_UNSPECIFIED"] = "RECOVERY_REASON_UNSPECIFIED";
342
+ RecoveryReason2["RECOVERY_REASON_RECOVERY_IN_PROGRESS"] = "RECOVERY_REASON_RECOVERY_IN_PROGRESS";
343
+ RecoveryReason2["RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION"] = "RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION";
344
+ RecoveryReason2["RECOVERY_REASON_RECOVERY_TOS_REQUIRED"] = "RECOVERY_REASON_RECOVERY_TOS_REQUIRED";
345
+ RecoveryReason2["RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE"] = "RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE";
346
+ RecoveryReason2["RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW"] = "RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW";
347
+ RecoveryReason2["RECOVERY_REASON_GOOGLE_TOS_REQUIRED"] = "RECOVERY_REASON_GOOGLE_TOS_REQUIRED";
348
+ RecoveryReason2["RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE"] = "RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE";
349
+ RecoveryReason2["RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED"] = "RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED";
350
+ RecoveryReason2["RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE"] = "RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE";
351
+ RecoveryReason2["RECOVERY_REASON_SUBSCRIPTION_HEALTHY"] = "RECOVERY_REASON_SUBSCRIPTION_HEALTHY";
352
+ RecoveryReason2["RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED"] = "RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED";
353
+ RecoveryReason2["RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION"] = "RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION";
354
+ RecoveryReason2["RECOVERY_REASON_UNSUPPORTED_RECOVERY"] = "RECOVERY_REASON_UNSUPPORTED_RECOVERY";
355
+ RecoveryReason2["RECOVERY_REASON_RELEASE_UNRESOLVED"] = "RECOVERY_REASON_RELEASE_UNRESOLVED";
356
+ RecoveryReason2["RECOVERY_REASON_INCONCLUSIVE"] = "RECOVERY_REASON_INCONCLUSIVE";
357
+ RecoveryReason2["RECOVERY_REASON_SETUP_INCOMPLETE"] = "RECOVERY_REASON_SETUP_INCOMPLETE";
358
+ return RecoveryReason2;
359
+ })(RecoveryReason || {});
360
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
361
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
362
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
363
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
364
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
365
+ WebhookIdentityType2["APP"] = "APP";
366
+ return WebhookIdentityType2;
367
+ })(WebhookIdentityType || {});
368
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
369
+ SortOrder2["ASC"] = "ASC";
370
+ SortOrder2["DESC"] = "DESC";
371
+ return SortOrder2;
372
+ })(SortOrder || {});
373
+
374
+ // src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.meta.ts
375
+ function isEligible2() {
376
+ const payload = {};
377
+ const getRequestOptions = isEligible(
378
+ payload
379
+ );
380
+ const getUrl = (context) => {
381
+ const { url } = getRequestOptions(context);
382
+ return url;
383
+ };
384
+ return {
385
+ getUrl,
386
+ httpMethod: "GET",
387
+ path: "/v1/google-subscriptions/is-eligible",
388
+ pathParams: {},
389
+ __requestType: null,
390
+ __originalRequestType: null,
391
+ __responseType: null,
392
+ __originalResponseType: null
393
+ };
394
+ }
395
+ function observeEmailActions2() {
396
+ const payload = {};
397
+ const getRequestOptions = observeEmailActions(
398
+ payload
399
+ );
400
+ const getUrl = (context) => {
401
+ const { url } = getRequestOptions(context);
402
+ return url;
403
+ };
404
+ return {
405
+ getUrl,
406
+ httpMethod: "POST",
407
+ path: "/v1/google-subscriptions/observe-email-actions",
408
+ pathParams: {},
409
+ __requestType: null,
410
+ __originalRequestType: null,
411
+ __responseType: null,
412
+ __originalResponseType: null
413
+ };
414
+ }
415
+ function receiveCloudChannelPush2() {
416
+ const payload = {};
417
+ const getRequestOptions = receiveCloudChannelPush(
418
+ payload
419
+ );
420
+ const getUrl = (context) => {
421
+ const { url } = getRequestOptions(context);
422
+ return url;
423
+ };
424
+ return {
425
+ getUrl,
426
+ httpMethod: "POST",
427
+ path: "/v1/google/cloud-channel-webhook",
428
+ pathParams: {},
429
+ __requestType: null,
430
+ __originalRequestType: null,
431
+ __responseType: null,
432
+ __originalResponseType: null
433
+ };
434
+ }
435
+ function queryGoogleSubscriptions2() {
436
+ const payload = {};
437
+ const getRequestOptions = queryGoogleSubscriptions(
438
+ payload
439
+ );
440
+ const getUrl = (context) => {
441
+ const { url } = getRequestOptions(context);
442
+ return url;
443
+ };
444
+ return {
445
+ getUrl,
446
+ httpMethod: "POST",
447
+ path: "/v1/google-subscriptions/query",
448
+ pathParams: {},
449
+ __requestType: null,
450
+ __originalRequestType: null,
451
+ __responseType: null,
452
+ __originalResponseType: null
453
+ };
454
+ }
455
+ function retrieveUsersByDomain2() {
456
+ const payload = { domainName: ":domainName" };
457
+ const getRequestOptions = retrieveUsersByDomain(
458
+ payload
459
+ );
460
+ const getUrl = (context) => {
461
+ const { url } = getRequestOptions(context);
462
+ return url;
463
+ };
464
+ return {
465
+ getUrl,
466
+ httpMethod: "GET",
467
+ path: "/v1/google-subscriptions/retrieve-users/{domainName}",
468
+ pathParams: { domainName: "domainName" },
469
+ __requestType: null,
470
+ __originalRequestType: null,
471
+ __responseType: null,
472
+ __originalResponseType: null
473
+ };
474
+ }
475
+ function getStorageUsage2() {
476
+ const payload = {
477
+ googleWorkspacePremiumId: ":googleWorkspacePremiumId"
478
+ };
479
+ const getRequestOptions = getStorageUsage(
480
+ payload
481
+ );
482
+ const getUrl = (context) => {
483
+ const { url } = getRequestOptions(context);
484
+ return url;
485
+ };
486
+ return {
487
+ getUrl,
488
+ httpMethod: "GET",
489
+ path: "/v1/google-subscriptions/storage-usage/{googleWorkspacePremiumId}",
490
+ pathParams: { googleWorkspacePremiumId: "googleWorkspacePremiumId" },
491
+ __requestType: null,
492
+ __originalRequestType: null,
493
+ __responseType: null,
494
+ __originalResponseType: null
495
+ };
496
+ }
497
+ function assignLicense2() {
498
+ const payload = {};
499
+ const getRequestOptions = assignLicense(
500
+ payload
501
+ );
502
+ const getUrl = (context) => {
503
+ const { url } = getRequestOptions(context);
504
+ return url;
505
+ };
506
+ return {
507
+ getUrl,
508
+ httpMethod: "POST",
509
+ path: "/v1/google-subscriptions/license/assign",
510
+ pathParams: {},
511
+ __requestType: null,
512
+ __originalRequestType: null,
513
+ __responseType: null,
514
+ __originalResponseType: null
515
+ };
516
+ }
517
+ function revokeLicense2() {
518
+ const payload = {};
519
+ const getRequestOptions = revokeLicense(
520
+ payload
521
+ );
522
+ const getUrl = (context) => {
523
+ const { url } = getRequestOptions(context);
524
+ return url;
525
+ };
526
+ return {
527
+ getUrl,
528
+ httpMethod: "POST",
529
+ path: "/v1/google-subscriptions/license/revoke",
530
+ pathParams: {},
531
+ __requestType: null,
532
+ __originalRequestType: null,
533
+ __responseType: null,
534
+ __originalResponseType: null
535
+ };
536
+ }
537
+ // Annotate the CommonJS export names for ESM import in node:
538
+ 0 && (module.exports = {
539
+ RecoveryActionOriginal,
540
+ RecoveryReasonOriginal,
541
+ RenewalTypeOriginal,
542
+ RestrictedDomainReasonOriginal,
543
+ SortOrderOriginal,
544
+ StatusOriginal,
545
+ WebhookIdentityTypeOriginal,
546
+ assignLicense,
547
+ getStorageUsage,
548
+ isEligible,
549
+ observeEmailActions,
550
+ queryGoogleSubscriptions,
551
+ receiveCloudChannelPush,
552
+ retrieveUsersByDomain,
553
+ revokeLicense
554
+ });
555
+ //# sourceMappingURL=meta.js.map