@wix/astro 0.0.0-experimental-react-component → 0.0.1-experimental

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.
Files changed (73) hide show
  1. package/build/fsevents-X6WP4TKM.node +0 -0
  2. package/build/index.d.ts +9 -0
  3. package/build/index.js +17347 -0
  4. package/build/index.js.map +1 -0
  5. package/build-browser-runtime/setup.d.ts +5 -0
  6. package/build-browser-runtime/setup.js +963 -0
  7. package/build-runtime/auth.d.ts +5 -0
  8. package/build-runtime/auth.js +3557 -0
  9. package/build-runtime/chunk-24J7STEA.js +8 -0
  10. package/build-runtime/chunk-B6RICTPP.js +94 -0
  11. package/build-runtime/chunk-C3QOE2TZ.js +7 -0
  12. package/build-runtime/chunk-EK7YZVWJ.js +353 -0
  13. package/build-runtime/chunk-FR26HCAT.js +471 -0
  14. package/build-runtime/chunk-HDTWPOIV.js +811 -0
  15. package/build-runtime/chunk-HPW4ZAEJ.js +23 -0
  16. package/build-runtime/chunk-JODQ44LE.js +1079 -0
  17. package/build-runtime/chunk-MLKGABMK.js +9 -0
  18. package/build-runtime/chunk-NVTQFGTR.js +7 -0
  19. package/build-runtime/chunk-PSHIUVP2.js +131 -0
  20. package/build-runtime/chunk-Q3KPY4P2.js +3104 -0
  21. package/build-runtime/chunk-QRPWKJ4C.js +41 -0
  22. package/build-runtime/chunk-RKE6XT5Z.js +3104 -0
  23. package/build-runtime/chunk-UZPSWWI5.js +13 -0
  24. package/build-runtime/chunk-VMS3NKCF.js +18 -0
  25. package/build-runtime/chunk-W73LN534.js +24 -0
  26. package/build-runtime/chunk-WYNC47R3.js +7 -0
  27. package/build-runtime/chunk-YMZMZCBN.js +4063 -0
  28. package/build-runtime/chunk-YX6EVX5Q.js +11 -0
  29. package/build-runtime/context/elevated.d.ts +2 -0
  30. package/build-runtime/context/elevated.js +25 -0
  31. package/build-runtime/context/non-elevated.d.ts +2 -0
  32. package/build-runtime/context/non-elevated.js +32 -0
  33. package/build-runtime/context/nonElevated.d.ts +2 -0
  34. package/build-runtime/context/nonElevated.js +38 -0
  35. package/build-runtime/context/setupServicePlugin.d.ts +5 -0
  36. package/build-runtime/context/setupServicePlugin.js +16 -0
  37. package/build-runtime/context/setupWebhook.d.ts +5 -0
  38. package/build-runtime/context/setupWebhook.js +16 -0
  39. package/build-runtime/middleware/auth.d.ts +5 -0
  40. package/build-runtime/middleware/auth.js +74 -0
  41. package/build-runtime/middleware/html-embeds.d.ts +5 -0
  42. package/build-runtime/middleware/html-embeds.js +166 -0
  43. package/build-runtime/routes/auth/callback.d.ts +5 -0
  44. package/build-runtime/routes/auth/callback.js +52 -0
  45. package/build-runtime/routes/auth/login.d.ts +5 -0
  46. package/build-runtime/routes/auth/login.js +45 -0
  47. package/build-runtime/routes/auth/logout-callback.d.ts +5 -0
  48. package/build-runtime/routes/auth/logout-callback.js +23 -0
  49. package/build-runtime/routes/auth/logout.d.ts +5 -0
  50. package/build-runtime/routes/auth/logout.js +32 -0
  51. package/build-runtime/routes/paylink/checkout.d.ts +5 -0
  52. package/build-runtime/routes/paylink/checkout.js +35 -0
  53. package/build-runtime/routes/paylink/paylink.d.ts +5 -0
  54. package/build-runtime/routes/paylink/paylink.js +34 -0
  55. package/build-runtime/routes/robots/robots.d.ts +5 -0
  56. package/build-runtime/routes/robots/robots.js +44 -0
  57. package/build-runtime/routes/service-plugins.d.ts +5 -0
  58. package/build-runtime/routes/service-plugins.js +11 -0
  59. package/build-runtime/routes/servicePluginsDevRoute.d.ts +5 -0
  60. package/build-runtime/routes/servicePluginsDevRoute.js +13 -0
  61. package/build-runtime/routes/webhooks.d.ts +5 -0
  62. package/build-runtime/routes/webhooks.js +11 -0
  63. package/build-runtime/routes/webhooksDevRoute.d.ts +5 -0
  64. package/build-runtime/routes/webhooksDevRoute.js +13 -0
  65. package/build-runtime/routes/wix-apis/api.d.ts +5 -0
  66. package/build-runtime/routes/wix-apis/api.js +34 -0
  67. package/package.json +45 -16
  68. package/runtime/entry.astro +26 -0
  69. package/CHANGELOG.md +0 -82
  70. package/src/builders.ts +0 -18
  71. package/src/index.ts +0 -42
  72. package/tsconfig.json +0 -7
  73. package/tsup.config.mjs +0 -36
@@ -0,0 +1,1079 @@
1
+ import {
2
+ DEFAULT_LIMIT,
3
+ ITEMS_RESULT_PROPERTY_NAME,
4
+ PAGING_METADATA_RESULT_PROPERTY_NAME,
5
+ SDKRequestToRESTRequestRenameMap,
6
+ createRESTModule,
7
+ renameKeysFromRESTResponseToSDKResponse,
8
+ renameKeysFromSDKRequestToRESTRequest,
9
+ resolveUrl,
10
+ toURLSearchParams,
11
+ transformError
12
+ } from "./chunk-EK7YZVWJ.js";
13
+ import {
14
+ EventDefinition,
15
+ contextualizeEventDefinitionModuleV2
16
+ } from "./chunk-PSHIUVP2.js";
17
+ import {
18
+ __export
19
+ } from "./chunk-QRPWKJ4C.js";
20
+
21
+ // ../../node_modules/@wix/auto_sdk_auth-management_o-auth-apps/build/es/index.mjs
22
+ var es_exports = {};
23
+ __export(es_exports, {
24
+ DeleteStatus: () => DeleteStatus,
25
+ Namespace: () => Namespace,
26
+ OAuthAppType: () => OAuthAppType,
27
+ OAuthTechnologies: () => OAuthTechnologies,
28
+ SiteCreatedContext: () => SiteCreatedContext,
29
+ SortOrder: () => SortOrder,
30
+ State: () => State,
31
+ WebhookIdentityType: () => WebhookIdentityType,
32
+ createOAuthApp: () => createOAuthApp4,
33
+ deleteOAuthApp: () => deleteOAuthApp4,
34
+ generateOAuthAppSecret: () => generateOAuthAppSecret4,
35
+ getOAuthApp: () => getOAuthApp4,
36
+ onOAuthAppCreated: () => onOAuthAppCreated2,
37
+ onOAuthAppDeleted: () => onOAuthAppDeleted2,
38
+ onOAuthAppUpdated: () => onOAuthAppUpdated2,
39
+ queryOAuthApps: () => queryOAuthApps4,
40
+ updateOAuthApp: () => updateOAuthApp4
41
+ });
42
+
43
+ // ../../node_modules/@wix/sdk-runtime/build/transformations/timestamp.js
44
+ function transformSDKTimestampToRESTTimestamp(val) {
45
+ return val?.toISOString();
46
+ }
47
+ function transformRESTTimestampToSDKTimestamp(val) {
48
+ return val ? new Date(val) : void 0;
49
+ }
50
+
51
+ // ../../node_modules/@wix/sdk-runtime/build/transformations/transform-paths.js
52
+ function transformPath(obj, { path, isRepeated, isMap }, transformFn) {
53
+ const pathParts = path.split(".");
54
+ if (pathParts.length === 1 && path in obj) {
55
+ obj[path] = isRepeated ? obj[path].map(transformFn) : isMap ? Object.fromEntries(Object.entries(obj[path]).map(([key, value]) => [key, transformFn(value)])) : transformFn(obj[path]);
56
+ return obj;
57
+ }
58
+ const [first, ...rest] = pathParts;
59
+ if (first.endsWith("{}")) {
60
+ const cleanPath = first.slice(0, -2);
61
+ obj[cleanPath] = Object.fromEntries(Object.entries(obj[cleanPath]).map(([key, value]) => [
62
+ key,
63
+ transformPath(value, { path: rest.join("."), isRepeated, isMap }, transformFn)
64
+ ]));
65
+ } else if (Array.isArray(obj[first])) {
66
+ obj[first] = obj[first].map((item) => transformPath(item, { path: rest.join("."), isRepeated, isMap }, transformFn));
67
+ } else if (first in obj && typeof obj[first] === "object" && obj[first] !== null) {
68
+ obj[first] = transformPath(obj[first], { path: rest.join("."), isRepeated, isMap }, transformFn);
69
+ } else if (first === "*") {
70
+ Object.keys(obj).reduce((acc, curr) => {
71
+ acc[curr] = transformPath(obj[curr], { path: rest.join("."), isRepeated, isMap }, transformFn);
72
+ return acc;
73
+ }, obj);
74
+ }
75
+ return obj;
76
+ }
77
+ function transformPaths(obj, transformations) {
78
+ return transformations.reduce((acc, { paths, transformFn }) => paths.reduce((transformerAcc, path) => transformPath(transformerAcc, path, transformFn), acc), obj);
79
+ }
80
+
81
+ // ../../node_modules/@wix/sdk-runtime/build/query-filter.js
82
+ function isAndOperator(filter) {
83
+ return Object.keys(filter).length === 1 && "$and" in filter && Array.isArray(filter.$and);
84
+ }
85
+ function isOrOperator(filter) {
86
+ return Object.keys(filter).length === 1 && "$or" in filter && Array.isArray(filter.$or);
87
+ }
88
+ function isNotOperator(filter) {
89
+ return Object.keys(filter).length === 1 && "$not" in filter && typeof filter.$not === "object";
90
+ }
91
+ function and(a, b) {
92
+ if (typeof a === "undefined" || Object.keys(a).length === 0) {
93
+ return b;
94
+ } else if (typeof b === "undefined" || Object.keys(b).length === 0) {
95
+ return a;
96
+ } else {
97
+ return {
98
+ $and: [
99
+ ...isAndOperator(a) ? a.$and : [a],
100
+ ...isAndOperator(b) ? b.$and : [b]
101
+ ]
102
+ };
103
+ }
104
+ }
105
+ function or(a, b) {
106
+ if (typeof a === "undefined" || Object.keys(a).length === 0) {
107
+ return b;
108
+ } else if (typeof b === "undefined" || Object.keys(b).length === 0) {
109
+ return a;
110
+ } else {
111
+ return {
112
+ $or: [
113
+ ...isOrOperator(a) ? a.$or : [a],
114
+ ...isOrOperator(b) ? b.$or : [b]
115
+ ]
116
+ };
117
+ }
118
+ }
119
+ function not(a) {
120
+ if (typeof a === "undefined" || Object.keys(a).length === 0) {
121
+ return void 0;
122
+ } else if (isNotOperator(a)) {
123
+ return a.$not;
124
+ } else {
125
+ return { $not: a };
126
+ }
127
+ }
128
+
129
+ // ../../node_modules/@wix/sdk-runtime/build/query-iterators.js
130
+ var Iterator = class {
131
+ _items;
132
+ _fetchNextPage;
133
+ _fetchPrevPage;
134
+ _originQuery;
135
+ _limit;
136
+ constructor({ items, originQuery, fetchNextPage, fetchPrevPage, limit }) {
137
+ this._items = items;
138
+ this._fetchNextPage = fetchNextPage;
139
+ this._fetchPrevPage = fetchPrevPage;
140
+ this._originQuery = originQuery;
141
+ this._limit = limit;
142
+ }
143
+ get items() {
144
+ return this._items;
145
+ }
146
+ get length() {
147
+ return this._items.length;
148
+ }
149
+ get pageSize() {
150
+ return this._limit;
151
+ }
152
+ get query() {
153
+ return this._originQuery;
154
+ }
155
+ async next() {
156
+ if (!this.hasNext()) {
157
+ throw new Error("No next page to fetch");
158
+ }
159
+ const nextPageIterator = await this._fetchNextPage();
160
+ return nextPageIterator;
161
+ }
162
+ async prev() {
163
+ if (!this.hasPrev()) {
164
+ throw new Error("No previous page to fetch");
165
+ }
166
+ const previousPageIterator = await this._fetchPrevPage();
167
+ return previousPageIterator;
168
+ }
169
+ };
170
+ var CursorBasedIterator = class extends Iterator {
171
+ _nextCursor;
172
+ _prevCursor;
173
+ cursors;
174
+ constructor({ items, originQuery, fetchNextPage, fetchPrevPage, limit, nextCursor, prevCursor }) {
175
+ super({ items, originQuery, fetchNextPage, fetchPrevPage, limit });
176
+ this._nextCursor = nextCursor;
177
+ this._prevCursor = prevCursor;
178
+ this.cursors = {
179
+ next: nextCursor,
180
+ prev: prevCursor
181
+ };
182
+ }
183
+ hasNext() {
184
+ return !!this._nextCursor;
185
+ }
186
+ hasPrev() {
187
+ return !!this._prevCursor;
188
+ }
189
+ };
190
+ var OffsetBasedIterator = class extends Iterator {
191
+ _totalCount;
192
+ _offset;
193
+ _tooManyToCount;
194
+ constructor({ items, fetchNextPage, fetchPrevPage, offset, originQuery, limit, totalCount, tooManyToCount }) {
195
+ super({ items, fetchNextPage, fetchPrevPage, originQuery, limit });
196
+ this._totalCount = totalCount;
197
+ this._offset = offset;
198
+ this._tooManyToCount = tooManyToCount;
199
+ }
200
+ get currentPage() {
201
+ return this._limit === 0 ? void 0 : Math.floor(this._offset / this._limit);
202
+ }
203
+ get totalPages() {
204
+ return this._tooManyToCount || this._limit === 0 ? void 0 : Math.ceil(this._totalCount / this._limit);
205
+ }
206
+ get totalCount() {
207
+ return this._tooManyToCount ? void 0 : this._totalCount;
208
+ }
209
+ hasNext() {
210
+ return Boolean(this._limit !== 0 && this.currentPage !== void 0 && // currentPage 0 is the first page
211
+ this.totalPages !== void 0 && this.currentPage < this.totalPages - 1);
212
+ }
213
+ hasPrev() {
214
+ return Boolean(this._limit !== 0 && this.currentPage && this.currentPage > 0);
215
+ }
216
+ };
217
+
218
+ // ../../node_modules/@wix/sdk-runtime/build/query-builder.js
219
+ function queryBuilder(opts) {
220
+ const createQueryBuilder = (query) => {
221
+ return {
222
+ query,
223
+ async find() {
224
+ try {
225
+ const request = opts.requestTransformer(opts.pagingMethod === "CURSOR" && query.cursorPaging.cursor ? {
226
+ cursorPaging: query.cursorPaging
227
+ } : query);
228
+ const response = await opts.func(request);
229
+ const { [ITEMS_RESULT_PROPERTY_NAME]: items, [PAGING_METADATA_RESULT_PROPERTY_NAME]: pagingMetadata } = opts.responseTransformer(response);
230
+ if (opts.pagingMethod === "OFFSET") {
231
+ const offsetQuery = query;
232
+ return new OffsetBasedIterator({
233
+ items: items ?? [],
234
+ fetchNextPage: () => {
235
+ return createQueryBuilder({
236
+ ...offsetQuery,
237
+ paging: {
238
+ offset: offsetQuery.paging.offset + offsetQuery.paging.limit,
239
+ limit: offsetQuery.paging.limit
240
+ }
241
+ }).find();
242
+ },
243
+ fetchPrevPage: () => {
244
+ return createQueryBuilder({
245
+ ...query,
246
+ paging: {
247
+ offset: Math.max(offsetQuery.paging.offset - offsetQuery.paging.limit, 0),
248
+ limit: offsetQuery.paging.limit
249
+ }
250
+ }).find();
251
+ },
252
+ offset: offsetQuery.paging.offset,
253
+ limit: offsetQuery.paging.limit,
254
+ totalCount: pagingMetadata?.total,
255
+ tooManyToCount: pagingMetadata?.tooManyToCount,
256
+ originQuery: this
257
+ });
258
+ }
259
+ const paging = query.cursorPaging;
260
+ return new CursorBasedIterator({
261
+ items: items ?? [],
262
+ limit: paging.limit,
263
+ originQuery: this,
264
+ fetchNextPage: () => {
265
+ return createQueryBuilder({
266
+ ...query,
267
+ cursorPaging: {
268
+ cursor: pagingMetadata?.cursors?.next ?? void 0,
269
+ limit: paging.limit
270
+ }
271
+ }).find();
272
+ },
273
+ fetchPrevPage: () => {
274
+ return createQueryBuilder({
275
+ ...query,
276
+ cursorPaging: {
277
+ cursor: pagingMetadata?.cursors?.prev ?? void 0,
278
+ limit: paging.limit
279
+ }
280
+ }).find();
281
+ },
282
+ prevCursor: pagingMetadata?.cursors?.prev ?? void 0,
283
+ nextCursor: pagingMetadata?.cursors?.next ?? void 0
284
+ });
285
+ } catch (err) {
286
+ throw opts.errorTransformer(err);
287
+ }
288
+ },
289
+ skipTo(cursor) {
290
+ return createQueryBuilder({
291
+ ...query,
292
+ cursorPaging: {
293
+ cursor,
294
+ limit: query.cursorPaging.limit
295
+ }
296
+ });
297
+ },
298
+ eq(field, value) {
299
+ const serializableValue = typeof value === "undefined" ? null : value;
300
+ const newFilter = {
301
+ [renameFieldByPaths(opts.transformationPaths, field)]: serializableValue
302
+ };
303
+ return createQueryBuilder({
304
+ ...query,
305
+ filter: and(query.filter, newFilter)
306
+ });
307
+ },
308
+ ne(field, value) {
309
+ const serializableValue = typeof value === "undefined" ? null : value;
310
+ const newFilter = {
311
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
312
+ $ne: serializableValue
313
+ }
314
+ };
315
+ return createQueryBuilder({
316
+ ...query,
317
+ filter: and(query.filter, newFilter)
318
+ });
319
+ },
320
+ ge(field, value) {
321
+ const newFilter = {
322
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
323
+ $gte: value
324
+ }
325
+ };
326
+ return createQueryBuilder({
327
+ ...query,
328
+ filter: and(query.filter, newFilter)
329
+ });
330
+ },
331
+ gt(field, value) {
332
+ const newFilter = {
333
+ [renameFieldByPaths(opts.transformationPaths, field)]: { $gt: value }
334
+ };
335
+ return createQueryBuilder({
336
+ ...query,
337
+ filter: and(query.filter, newFilter)
338
+ });
339
+ },
340
+ le(field, value) {
341
+ const newFilter = {
342
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
343
+ $lte: value
344
+ }
345
+ };
346
+ return createQueryBuilder({
347
+ ...query,
348
+ filter: and(query.filter, newFilter)
349
+ });
350
+ },
351
+ lt(field, value) {
352
+ const newFilter = {
353
+ [renameFieldByPaths(opts.transformationPaths, field)]: { $lt: value }
354
+ };
355
+ return createQueryBuilder({
356
+ ...query,
357
+ filter: and(query.filter, newFilter)
358
+ });
359
+ },
360
+ isNotEmpty(field) {
361
+ return this.ne(field, null);
362
+ },
363
+ isEmpty(field) {
364
+ return this.eq(field, null);
365
+ },
366
+ startsWith(field, value) {
367
+ const newFilter = {
368
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
369
+ $startsWith: value
370
+ }
371
+ };
372
+ return createQueryBuilder({
373
+ ...query,
374
+ filter: and(query.filter, newFilter)
375
+ });
376
+ },
377
+ endsWith(field, value) {
378
+ const newFilter = {
379
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
380
+ $endsWith: value
381
+ }
382
+ };
383
+ return createQueryBuilder({
384
+ ...query,
385
+ filter: and(query.filter, newFilter)
386
+ });
387
+ },
388
+ contains(field, value) {
389
+ const newFilter = {
390
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
391
+ $contains: value
392
+ }
393
+ };
394
+ return createQueryBuilder({
395
+ ...query,
396
+ filter: and(query.filter, newFilter)
397
+ });
398
+ },
399
+ hasSome(field, ...values) {
400
+ const newFilter = {
401
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
402
+ $hasSome: Array.isArray(values[0]) ? values[0] : values
403
+ }
404
+ };
405
+ return createQueryBuilder({
406
+ ...query,
407
+ filter: and(query.filter, newFilter)
408
+ });
409
+ },
410
+ hasAll(field, ...values) {
411
+ const newFilter = {
412
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
413
+ $hasAll: Array.isArray(values[0]) ? values[0] : values
414
+ }
415
+ };
416
+ return createQueryBuilder({
417
+ ...query,
418
+ filter: and(query.filter, newFilter)
419
+ });
420
+ },
421
+ between(field, from, to) {
422
+ return this.ge(field, from).lt(field, to);
423
+ },
424
+ in(field, values) {
425
+ const newFilter = {
426
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
427
+ $in: values
428
+ }
429
+ };
430
+ return createQueryBuilder({
431
+ ...query,
432
+ filter: and(query.filter, newFilter)
433
+ });
434
+ },
435
+ exists(field, value = true) {
436
+ const newFilter = {
437
+ [renameFieldByPaths(opts.transformationPaths, field)]: {
438
+ $exists: value
439
+ }
440
+ };
441
+ return createQueryBuilder({
442
+ ...query,
443
+ filter: and(query.filter, newFilter)
444
+ });
445
+ },
446
+ or(orQuery) {
447
+ return createQueryBuilder({
448
+ ...query,
449
+ filter: or(query.filter, orQuery.query.filter)
450
+ });
451
+ },
452
+ and(andQuery) {
453
+ return createQueryBuilder({
454
+ ...query,
455
+ filter: and(query.filter, andQuery.query.filter)
456
+ });
457
+ },
458
+ not(notQuery) {
459
+ return createQueryBuilder({
460
+ ...query,
461
+ filter: not(notQuery.query.filter)
462
+ });
463
+ },
464
+ ascending(...fieldNames) {
465
+ return createQueryBuilder({
466
+ ...query,
467
+ sort: [
468
+ ...query.sort ?? [],
469
+ ...fieldNames.map((fieldName) => ({
470
+ fieldName: renameFieldByPaths(opts.transformationPaths, fieldName),
471
+ order: "ASC"
472
+ }))
473
+ ]
474
+ });
475
+ },
476
+ descending(...fieldNames) {
477
+ return createQueryBuilder({
478
+ ...query,
479
+ sort: [
480
+ ...query.sort ?? [],
481
+ ...fieldNames.map((fieldName) => ({
482
+ fieldName: renameFieldByPaths(opts.transformationPaths, fieldName),
483
+ order: "DESC"
484
+ }))
485
+ ]
486
+ });
487
+ },
488
+ skip(offset) {
489
+ return createQueryBuilder({
490
+ ...query,
491
+ paging: {
492
+ offset,
493
+ limit: "limit" in query.paging ? query.paging.limit : DEFAULT_LIMIT
494
+ }
495
+ });
496
+ },
497
+ limit(limit) {
498
+ if (opts.pagingMethod === "CURSOR") {
499
+ const cursorQuery = query;
500
+ return createQueryBuilder({
501
+ ...query,
502
+ cursorPaging: {
503
+ limit,
504
+ cursor: "cursor" in cursorQuery.cursorPaging ? cursorQuery.cursorPaging.cursor : void 0
505
+ }
506
+ });
507
+ }
508
+ const offsetQuery = query;
509
+ return createQueryBuilder({
510
+ ...query,
511
+ paging: {
512
+ limit,
513
+ offset: "offset" in offsetQuery.paging ? offsetQuery.paging.offset : 0
514
+ }
515
+ });
516
+ }
517
+ };
518
+ };
519
+ return createQueryBuilder({
520
+ filter: {},
521
+ ...opts.pagingMethod === "OFFSET" ? { paging: { offset: 0, limit: DEFAULT_LIMIT } } : { cursorPaging: { limit: DEFAULT_LIMIT } }
522
+ });
523
+ }
524
+ function renameFieldByPaths(transformationPaths, fieldPath) {
525
+ const transformationPath = Object.entries(transformationPaths).find(([path]) => path === fieldPath || fieldPath.startsWith(`${path}.`))?.[0];
526
+ if (transformationPath) {
527
+ return fieldPath.replace(transformationPath, transformationPaths[transformationPath]);
528
+ }
529
+ return fieldPath.split(".").map((segment) => transformationPaths[segment] ?? SDKRequestToRESTRequestRenameMap[segment] ?? segment).join(".");
530
+ }
531
+
532
+ // ../../node_modules/@wix/sdk-runtime/build/transformations/field-mask.js
533
+ function transformSDKFieldMaskToRESTFieldMask(val) {
534
+ if (!val) {
535
+ return val;
536
+ }
537
+ return val.join(",");
538
+ }
539
+
540
+ // ../../node_modules/@wix/sdk-runtime/build/event-definition-modules.js
541
+ function createEventModule(eventDefinition) {
542
+ return contextualizeEventDefinitionModuleV2(eventDefinition);
543
+ }
544
+
545
+ // ../../node_modules/@wix/auto_sdk_auth-management_o-auth-apps/build/es/index.mjs
546
+ function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
547
+ const domainToMappings = {
548
+ "manage._base_domain_": [
549
+ {
550
+ srcPath: "/oauth-app-service",
551
+ destPath: ""
552
+ },
553
+ {
554
+ srcPath: "/oauth-app",
555
+ destPath: ""
556
+ }
557
+ ],
558
+ "www.wixapis.com": [
559
+ {
560
+ srcPath: "/oauth-app",
561
+ destPath: ""
562
+ }
563
+ ],
564
+ "api._api_base_domain_": [
565
+ {
566
+ srcPath: "/oauth-app-service",
567
+ destPath: ""
568
+ }
569
+ ]
570
+ };
571
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
572
+ }
573
+ var PACKAGE_NAME = "@wix/auto_sdk_auth-management_o-auth-apps";
574
+ function createOAuthApp(payload) {
575
+ function __createOAuthApp({ host }) {
576
+ const serializedData = transformPaths(payload, [
577
+ {
578
+ transformFn: transformSDKTimestampToRESTTimestamp,
579
+ paths: [{ path: "oAuthApp.createdDate" }]
580
+ }
581
+ ]);
582
+ const metadata = {
583
+ entityFqdn: "wix.headless.v1.o_auth_app",
584
+ method: "POST",
585
+ methodFqn: "wix.headless.v1.OAuthAppService.CreateOAuthApp",
586
+ packageName: PACKAGE_NAME,
587
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
588
+ protoPath: "/v1/oauth-apps",
589
+ data: serializedData,
590
+ host
591
+ }),
592
+ data: serializedData,
593
+ transformResponse: (payload2) => transformPaths(payload2, [
594
+ {
595
+ transformFn: transformRESTTimestampToSDKTimestamp,
596
+ paths: [{ path: "oAuthApp.createdDate" }]
597
+ }
598
+ ])
599
+ };
600
+ return metadata;
601
+ }
602
+ return __createOAuthApp;
603
+ }
604
+ function getOAuthApp(payload) {
605
+ function __getOAuthApp({ host }) {
606
+ const metadata = {
607
+ entityFqdn: "wix.headless.v1.o_auth_app",
608
+ method: "GET",
609
+ methodFqn: "wix.headless.v1.OAuthAppService.GetOAuthApp",
610
+ packageName: PACKAGE_NAME,
611
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
612
+ protoPath: "/v1/oauth-apps/{oAuthAppId}",
613
+ data: payload,
614
+ host
615
+ }),
616
+ params: toURLSearchParams(payload),
617
+ transformResponse: (payload2) => transformPaths(payload2, [
618
+ {
619
+ transformFn: transformRESTTimestampToSDKTimestamp,
620
+ paths: [{ path: "oAuthApp.createdDate" }]
621
+ }
622
+ ])
623
+ };
624
+ return metadata;
625
+ }
626
+ return __getOAuthApp;
627
+ }
628
+ function updateOAuthApp(payload) {
629
+ function __updateOAuthApp({ host }) {
630
+ const serializedData = transformPaths(payload, [
631
+ {
632
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
633
+ paths: [{ path: "mask" }]
634
+ },
635
+ {
636
+ transformFn: transformSDKTimestampToRESTTimestamp,
637
+ paths: [{ path: "oAuthApp.createdDate" }]
638
+ }
639
+ ]);
640
+ const metadata = {
641
+ entityFqdn: "wix.headless.v1.o_auth_app",
642
+ method: "PATCH",
643
+ methodFqn: "wix.headless.v1.OAuthAppService.UpdateOAuthApp",
644
+ packageName: PACKAGE_NAME,
645
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
646
+ protoPath: "/v1/oauth-apps/{oAuthApp.id}",
647
+ data: serializedData,
648
+ host
649
+ }),
650
+ data: serializedData,
651
+ transformResponse: (payload2) => transformPaths(payload2, [
652
+ {
653
+ transformFn: transformRESTTimestampToSDKTimestamp,
654
+ paths: [{ path: "oAuthApp.createdDate" }]
655
+ }
656
+ ])
657
+ };
658
+ return metadata;
659
+ }
660
+ return __updateOAuthApp;
661
+ }
662
+ function deleteOAuthApp(payload) {
663
+ function __deleteOAuthApp({ host }) {
664
+ const metadata = {
665
+ entityFqdn: "wix.headless.v1.o_auth_app",
666
+ method: "DELETE",
667
+ methodFqn: "wix.headless.v1.OAuthAppService.DeleteOAuthApp",
668
+ packageName: PACKAGE_NAME,
669
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
670
+ protoPath: "/v1/oauth-apps/{oAuthAppId}",
671
+ data: payload,
672
+ host
673
+ }),
674
+ params: toURLSearchParams(payload)
675
+ };
676
+ return metadata;
677
+ }
678
+ return __deleteOAuthApp;
679
+ }
680
+ function queryOAuthApps(payload) {
681
+ function __queryOAuthApps({ host }) {
682
+ const metadata = {
683
+ entityFqdn: "wix.headless.v1.o_auth_app",
684
+ method: "POST",
685
+ methodFqn: "wix.headless.v1.OAuthAppService.QueryOAuthApps",
686
+ packageName: PACKAGE_NAME,
687
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
688
+ protoPath: "/v1/oauth-apps/query",
689
+ data: payload,
690
+ host
691
+ }),
692
+ data: payload,
693
+ transformResponse: (payload2) => transformPaths(payload2, [
694
+ {
695
+ transformFn: transformRESTTimestampToSDKTimestamp,
696
+ paths: [{ path: "oAuthApps.createdDate" }]
697
+ }
698
+ ])
699
+ };
700
+ return metadata;
701
+ }
702
+ return __queryOAuthApps;
703
+ }
704
+ function generateOAuthAppSecret(payload) {
705
+ function __generateOAuthAppSecret({ host }) {
706
+ const metadata = {
707
+ entityFqdn: "wix.headless.v1.o_auth_app",
708
+ method: "POST",
709
+ methodFqn: "wix.headless.v1.OAuthAppService.GenerateOAuthAppSecret",
710
+ packageName: PACKAGE_NAME,
711
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
712
+ protoPath: "/v1/oauth-apps/{oAuthAppId}/generate-secret",
713
+ data: payload,
714
+ host
715
+ }),
716
+ data: payload
717
+ };
718
+ return metadata;
719
+ }
720
+ return __generateOAuthAppSecret;
721
+ }
722
+ var OAuthAppType = /* @__PURE__ */ ((OAuthAppType2) => {
723
+ OAuthAppType2["OAUTH_APP_TYPE_UNSPECIFIED"] = "OAUTH_APP_TYPE_UNSPECIFIED";
724
+ OAuthAppType2["WEB_APP"] = "WEB_APP";
725
+ OAuthAppType2["MOBILE"] = "MOBILE";
726
+ OAuthAppType2["OTHER"] = "OTHER";
727
+ return OAuthAppType2;
728
+ })(OAuthAppType || {});
729
+ var OAuthTechnologies = /* @__PURE__ */ ((OAuthTechnologies2) => {
730
+ OAuthTechnologies2["OAUTH_TECHNOLOGY_UNSPECIFIED"] = "OAUTH_TECHNOLOGY_UNSPECIFIED";
731
+ OAuthTechnologies2["JAVASCRIPT"] = "JAVASCRIPT";
732
+ OAuthTechnologies2["ANGULAR"] = "ANGULAR";
733
+ OAuthTechnologies2["VUE"] = "VUE";
734
+ OAuthTechnologies2["REACT"] = "REACT";
735
+ OAuthTechnologies2["REACT_NATIVE"] = "REACT_NATIVE";
736
+ OAuthTechnologies2["IOS"] = "IOS";
737
+ OAuthTechnologies2["ANDROID"] = "ANDROID";
738
+ OAuthTechnologies2["OTHER_TECHNOLOGY"] = "OTHER_TECHNOLOGY";
739
+ return OAuthTechnologies2;
740
+ })(OAuthTechnologies || {});
741
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
742
+ SortOrder2["ASC"] = "ASC";
743
+ SortOrder2["DESC"] = "DESC";
744
+ return SortOrder2;
745
+ })(SortOrder || {});
746
+ var State = /* @__PURE__ */ ((State2) => {
747
+ State2["UNKNOWN"] = "UNKNOWN";
748
+ State2["ENABLED"] = "ENABLED";
749
+ State2["DISABLED"] = "DISABLED";
750
+ State2["PENDING"] = "PENDING";
751
+ State2["DEMO"] = "DEMO";
752
+ return State2;
753
+ })(State || {});
754
+ var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
755
+ SiteCreatedContext2["OTHER"] = "OTHER";
756
+ SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
757
+ SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
758
+ SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
759
+ SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
760
+ SiteCreatedContext2["FLASH"] = "FLASH";
761
+ return SiteCreatedContext2;
762
+ })(SiteCreatedContext || {});
763
+ var Namespace = /* @__PURE__ */ ((Namespace2) => {
764
+ Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
765
+ Namespace2["WIX"] = "WIX";
766
+ Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
767
+ Namespace2["ALBUMS"] = "ALBUMS";
768
+ Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
769
+ Namespace2["HOTELS"] = "HOTELS";
770
+ Namespace2["CLUBS"] = "CLUBS";
771
+ Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
772
+ Namespace2["DEV_SITE"] = "DEV_SITE";
773
+ Namespace2["LOGOS"] = "LOGOS";
774
+ Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
775
+ Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
776
+ Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
777
+ Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
778
+ Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
779
+ Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
780
+ Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
781
+ Namespace2["ANYWHERE"] = "ANYWHERE";
782
+ Namespace2["HEADLESS"] = "HEADLESS";
783
+ Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
784
+ Namespace2["RISE"] = "RISE";
785
+ Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
786
+ Namespace2["NOWNIA"] = "NOWNIA";
787
+ Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
788
+ Namespace2["CODUX"] = "CODUX";
789
+ Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
790
+ Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
791
+ Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
792
+ Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
793
+ Namespace2["MIMIR"] = "MIMIR";
794
+ Namespace2["TWINS"] = "TWINS";
795
+ return Namespace2;
796
+ })(Namespace || {});
797
+ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
798
+ DeleteStatus2["UNKNOWN"] = "UNKNOWN";
799
+ DeleteStatus2["TRASH"] = "TRASH";
800
+ DeleteStatus2["DELETED"] = "DELETED";
801
+ DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
802
+ DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
803
+ return DeleteStatus2;
804
+ })(DeleteStatus || {});
805
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
806
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
807
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
808
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
809
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
810
+ WebhookIdentityType2["APP"] = "APP";
811
+ return WebhookIdentityType2;
812
+ })(WebhookIdentityType || {});
813
+ async function createOAuthApp2(oAuthApp) {
814
+ const { httpClient, sideEffects } = arguments[1];
815
+ const payload = renameKeysFromSDKRequestToRESTRequest({ oAuthApp });
816
+ const reqOpts = createOAuthApp(payload);
817
+ sideEffects?.onSiteCall?.();
818
+ try {
819
+ const result = await httpClient.request(reqOpts);
820
+ sideEffects?.onSuccess?.(result);
821
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.oAuthApp;
822
+ } catch (err) {
823
+ const transformedError = transformError(
824
+ err,
825
+ {
826
+ spreadPathsToArguments: {},
827
+ explicitPathsToArguments: { oAuthApp: "$[0]" },
828
+ singleArgumentUnchanged: false
829
+ },
830
+ ["oAuthApp"]
831
+ );
832
+ sideEffects?.onError?.(err);
833
+ throw transformedError;
834
+ }
835
+ }
836
+ async function getOAuthApp2(oAuthAppId) {
837
+ const { httpClient, sideEffects } = arguments[1];
838
+ const payload = renameKeysFromSDKRequestToRESTRequest({
839
+ oAuthAppId
840
+ });
841
+ const reqOpts = getOAuthApp(payload);
842
+ sideEffects?.onSiteCall?.();
843
+ try {
844
+ const result = await httpClient.request(reqOpts);
845
+ sideEffects?.onSuccess?.(result);
846
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.oAuthApp;
847
+ } catch (err) {
848
+ const transformedError = transformError(
849
+ err,
850
+ {
851
+ spreadPathsToArguments: {},
852
+ explicitPathsToArguments: { oAuthAppId: "$[0]" },
853
+ singleArgumentUnchanged: false
854
+ },
855
+ ["oAuthAppId"]
856
+ );
857
+ sideEffects?.onError?.(err);
858
+ throw transformedError;
859
+ }
860
+ }
861
+ async function updateOAuthApp2(_id, oAuthApp, mask) {
862
+ const { httpClient, sideEffects } = arguments[3];
863
+ const payload = renameKeysFromSDKRequestToRESTRequest({
864
+ oAuthApp: { ...oAuthApp, id: _id },
865
+ mask
866
+ });
867
+ const reqOpts = updateOAuthApp(payload);
868
+ sideEffects?.onSiteCall?.();
869
+ try {
870
+ const result = await httpClient.request(reqOpts);
871
+ sideEffects?.onSuccess?.(result);
872
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.oAuthApp;
873
+ } catch (err) {
874
+ const transformedError = transformError(
875
+ err,
876
+ {
877
+ spreadPathsToArguments: { oAuthApp: "$[1]" },
878
+ explicitPathsToArguments: { "oAuthApp.id": "$[0]", mask: "$[2]" },
879
+ singleArgumentUnchanged: false
880
+ },
881
+ ["_id", "oAuthApp", "mask"]
882
+ );
883
+ sideEffects?.onError?.(err);
884
+ throw transformedError;
885
+ }
886
+ }
887
+ async function deleteOAuthApp2(oAuthAppId) {
888
+ const { httpClient, sideEffects } = arguments[1];
889
+ const payload = renameKeysFromSDKRequestToRESTRequest({
890
+ oAuthAppId
891
+ });
892
+ const reqOpts = deleteOAuthApp(payload);
893
+ sideEffects?.onSiteCall?.();
894
+ try {
895
+ const result = await httpClient.request(reqOpts);
896
+ sideEffects?.onSuccess?.(result);
897
+ } catch (err) {
898
+ const transformedError = transformError(
899
+ err,
900
+ {
901
+ spreadPathsToArguments: {},
902
+ explicitPathsToArguments: { oAuthAppId: "$[0]" },
903
+ singleArgumentUnchanged: false
904
+ },
905
+ ["oAuthAppId"]
906
+ );
907
+ sideEffects?.onError?.(err);
908
+ throw transformedError;
909
+ }
910
+ }
911
+ function queryOAuthApps2() {
912
+ const { httpClient, sideEffects } = arguments[0];
913
+ return queryBuilder({
914
+ func: async (payload) => {
915
+ const reqOpts = queryOAuthApps(payload);
916
+ sideEffects?.onSiteCall?.();
917
+ try {
918
+ const result = await httpClient.request(reqOpts);
919
+ sideEffects?.onSuccess?.(result);
920
+ return result;
921
+ } catch (err) {
922
+ sideEffects?.onError?.(err);
923
+ throw err;
924
+ }
925
+ },
926
+ requestTransformer: (query) => {
927
+ const args = [query, {}];
928
+ return renameKeysFromSDKRequestToRESTRequest({
929
+ ...args?.[1],
930
+ query: args?.[0]
931
+ });
932
+ },
933
+ responseTransformer: ({ data }) => {
934
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
935
+ transformPaths(data, [])
936
+ );
937
+ return {
938
+ items: transformedData?.oAuthApps,
939
+ pagingMetadata: transformedData?.pagingMetadata
940
+ };
941
+ },
942
+ errorTransformer: (err) => {
943
+ const transformedError = transformError(err, {
944
+ spreadPathsToArguments: {},
945
+ explicitPathsToArguments: { query: "$[0]" },
946
+ singleArgumentUnchanged: false
947
+ });
948
+ throw transformedError;
949
+ },
950
+ pagingMethod: "OFFSET",
951
+ transformationPaths: {}
952
+ });
953
+ }
954
+ async function generateOAuthAppSecret2(oAuthAppId) {
955
+ const { httpClient, sideEffects } = arguments[1];
956
+ const payload = renameKeysFromSDKRequestToRESTRequest({
957
+ oAuthAppId
958
+ });
959
+ const reqOpts = generateOAuthAppSecret(payload);
960
+ sideEffects?.onSiteCall?.();
961
+ try {
962
+ const result = await httpClient.request(reqOpts);
963
+ sideEffects?.onSuccess?.(result);
964
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
965
+ } catch (err) {
966
+ const transformedError = transformError(
967
+ err,
968
+ {
969
+ spreadPathsToArguments: {},
970
+ explicitPathsToArguments: { oAuthAppId: "$[0]" },
971
+ singleArgumentUnchanged: false
972
+ },
973
+ ["oAuthAppId"]
974
+ );
975
+ sideEffects?.onError?.(err);
976
+ throw transformedError;
977
+ }
978
+ }
979
+ function createOAuthApp3(httpClient) {
980
+ return (oAuthApp) => createOAuthApp2(
981
+ oAuthApp,
982
+ // @ts-ignore
983
+ { httpClient }
984
+ );
985
+ }
986
+ function getOAuthApp3(httpClient) {
987
+ return (oAuthAppId) => getOAuthApp2(
988
+ oAuthAppId,
989
+ // @ts-ignore
990
+ { httpClient }
991
+ );
992
+ }
993
+ function updateOAuthApp3(httpClient) {
994
+ return (_id, oAuthApp, mask) => updateOAuthApp2(
995
+ _id,
996
+ oAuthApp,
997
+ mask,
998
+ // @ts-ignore
999
+ { httpClient }
1000
+ );
1001
+ }
1002
+ function deleteOAuthApp3(httpClient) {
1003
+ return (oAuthAppId) => deleteOAuthApp2(
1004
+ oAuthAppId,
1005
+ // @ts-ignore
1006
+ { httpClient }
1007
+ );
1008
+ }
1009
+ function queryOAuthApps3(httpClient) {
1010
+ return () => queryOAuthApps2(
1011
+ // @ts-ignore
1012
+ { httpClient }
1013
+ );
1014
+ }
1015
+ function generateOAuthAppSecret3(httpClient) {
1016
+ return (oAuthAppId) => generateOAuthAppSecret2(
1017
+ oAuthAppId,
1018
+ // @ts-ignore
1019
+ { httpClient }
1020
+ );
1021
+ }
1022
+ var onOAuthAppCreated = EventDefinition(
1023
+ "wix.headless.v1.o_auth_app_created",
1024
+ true,
1025
+ (event) => renameKeysFromRESTResponseToSDKResponse(
1026
+ transformPaths(event, [
1027
+ {
1028
+ transformFn: transformRESTTimestampToSDKTimestamp,
1029
+ paths: [
1030
+ { path: "entity.createdDate" },
1031
+ { path: "metadata.eventTime" }
1032
+ ]
1033
+ }
1034
+ ])
1035
+ )
1036
+ )();
1037
+ var onOAuthAppDeleted = EventDefinition(
1038
+ "wix.headless.v1.o_auth_app_deleted",
1039
+ true,
1040
+ (event) => renameKeysFromRESTResponseToSDKResponse(
1041
+ transformPaths(event, [
1042
+ {
1043
+ transformFn: transformRESTTimestampToSDKTimestamp,
1044
+ paths: [
1045
+ { path: "undefined.createdDate" },
1046
+ { path: "metadata.eventTime" }
1047
+ ]
1048
+ }
1049
+ ])
1050
+ )
1051
+ )();
1052
+ var onOAuthAppUpdated = EventDefinition(
1053
+ "wix.headless.v1.o_auth_app_updated",
1054
+ true,
1055
+ (event) => renameKeysFromRESTResponseToSDKResponse(
1056
+ transformPaths(event, [
1057
+ {
1058
+ transformFn: transformRESTTimestampToSDKTimestamp,
1059
+ paths: [
1060
+ { path: "entity.createdDate" },
1061
+ { path: "metadata.eventTime" }
1062
+ ]
1063
+ }
1064
+ ])
1065
+ )
1066
+ )();
1067
+ var createOAuthApp4 = /* @__PURE__ */ createRESTModule(createOAuthApp3);
1068
+ var getOAuthApp4 = /* @__PURE__ */ createRESTModule(getOAuthApp3);
1069
+ var updateOAuthApp4 = /* @__PURE__ */ createRESTModule(updateOAuthApp3);
1070
+ var deleteOAuthApp4 = /* @__PURE__ */ createRESTModule(deleteOAuthApp3);
1071
+ var queryOAuthApps4 = /* @__PURE__ */ createRESTModule(queryOAuthApps3);
1072
+ var generateOAuthAppSecret4 = /* @__PURE__ */ createRESTModule(generateOAuthAppSecret3);
1073
+ var onOAuthAppCreated2 = createEventModule(onOAuthAppCreated);
1074
+ var onOAuthAppDeleted2 = createEventModule(onOAuthAppDeleted);
1075
+ var onOAuthAppUpdated2 = createEventModule(onOAuthAppUpdated);
1076
+
1077
+ export {
1078
+ es_exports
1079
+ };