@wix/auto_sdk_online-programs_programs 1.0.39 → 1.0.41
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 +2 -2
- package/build/cjs/index.js +162 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +146 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -2
- package/build/cjs/meta.js +102 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-Z6YlRtAm.d.ts → online-programs-v3-program-programs.universal-jF7XKDI_.d.ts} +40 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +160 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +144 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -2
- package/build/es/meta.mjs +100 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-Z6YlRtAm.d.mts → online-programs-v3-program-programs.universal-jF7XKDI_.d.mts} +40 -1
- package/build/internal/cjs/index.d.ts +34 -3
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +60 -2
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-D_zbRqi7.d.ts → online-programs-v3-program-programs.universal-C1gLuVO0.d.ts} +91 -1
- package/build/internal/es/index.d.mts +34 -3
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +60 -2
- package/build/internal/es/{online-programs-v3-program-programs.universal-D_zbRqi7.d.mts → online-programs-v3-program-programs.universal-C1gLuVO0.d.mts} +91 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { q as AccessType,
|
|
1
|
+
import { ba as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-jF7XKDI_.js';
|
|
2
|
+
export { q as AccessType, d4 as AccessTypeWithLiterals, cX as AccountInfo, c_ as AccountInfoMetadata, c3 as ActionEvent, cL as Address, cM as AddressHint, bc as Aggregation, bs as AggregationData, bd as AggregationKindOneOf, bL as AggregationResults, bM as AggregationResultsResultOneOf, bz as AggregationResultsScalarResult, z as AggregationType, df as AggregationTypeWithLiterals, ap as App, aM as ApplicationError, bP as ArchiveProgramRequest, A as ArchiveProgramResponse, ca as Asset, cY as BaseEventMetadata, aN as BulkActionMetadata, s as BulkActionType, d7 as BulkActionTypeWithLiterals, aH as BulkCreateProgramsMigrationRequest, aJ as BulkCreateProgramsMigrationResponse, aK as BulkProgramResult, bV as BulkUpdateProgramResult, B as BulkUpdateProgramsOptions, bU as BulkUpdateProgramsRequest, e as BulkUpdateProgramsResponse, cO as BusinessSchedule, cJ as Categories, a8 as Certificate, ds as CommonQueryWithEntityContext, dt as CommonSearchWithEntityContext, cT as ConsentPolicy, ab as ContentSummary, C as CountProgramsOptions, bW as CountProgramsRequest, f as CountProgramsResponse, aF as CreateProgramRequest, aG as CreateProgramResponse, b5 as CursorPaging, br as CursorPagingMetadata, bb as CursorSearchPagingMethodOneOf, b8 as Cursors, at as CustomTag, bk as DateHistogramAggregation, bH as DateHistogramResult, bJ as DateHistogramResults, R as DayOfWeek, dn as DayOfWeekWithLiterals, az as Delete, aO as DeleteAllProgramsMigrationRequest, aP as DeleteAllProgramsMigrationResponse, ak as DeleteByFilterOperation, aj as DeleteByIdsOperation, ce as DeleteContext, a_ as DeleteProgramRequest, a$ as DeleteProgramResponse, K as DeleteStatus, dk as DeleteStatusWithLiterals, X as Description, Y as DescriptionMediaOneOf, bS as DisableProgramFreemiumRequest, bT as DisableProgramFreemiumResponse, ai as DocumentImage, ah as DocumentPayload, af as DocumentUpdateOperation, bZ as DomainEvent, b_ as DomainEventBodyOneOf, aQ as DuplicateProgramRequest, D as DuplicateProgramResponse, aY as DuplicatedSlugErrorDetails, cD as EditorlessAssigned, cE as EditorlessUnassigned, c4 as Empty, dr as EnableProgramFreemiumApplicationErrors, bQ as EnableProgramFreemiumRequest, bR as EnableProgramFreemiumResponse, bO as EndProgramRequest, E as EndProgramResponse, b$ as EntityCreatedEvent, c2 as EntityDeletedEvent, c1 as EntityUpdatedEvent, r as Enum, d6 as EnumWithLiterals, cZ as EventMetadata, a9 as ExtendedFields, as as File, Z as FocalPoint, ac as FreemiumSettings, cN as GeoCoordinates, aR as GetProgramRequest, aS as GetProgramResponse, bo as GroupByAggregation, bp as GroupByAggregationKindOneOf, bI as GroupByValueResults, cV as IdentificationData, cW as IdentificationDataIdOneOf, bf as IncludeMissingValuesOptions, ag as IndexDocument, I as Interval, de as IntervalWithLiterals, an as InvalidateCache, ao as InvalidateCacheGetByOneOf, aL as ItemMetadata, a4 as Keyword, bY as LabeledProgram, bX as ListSampleProgramsRequest, L as ListSampleProgramsResponse, cK as Locale, M as MaskedProgram, cU as MessageEnvelope, c8 as MetaSiteSpecialEvent, c9 as MetaSiteSpecialEventPayloadOneOf, c7 as MissingMetasiteIdErrorDetails, x as MissingValues, db as MissingValuesWithLiterals, F as Mode, dg as ModeWithLiterals, a1 as Money, cR as Multilingual, J as Namespace, co as NamespaceChanged, dj as NamespaceWithLiterals, bn as NestedAggregation, bl as NestedAggregationItem, bm as NestedAggregationItemKindOneOf, bv as NestedAggregationResults, bw as NestedAggregationResultsResultOneOf, N as NestedAggregationType, dd as NestedAggregationTypeWithLiterals, bE as NestedResultValue, bF as NestedResultValueResultOneOf, bK as NestedResults, bA as NestedValueAggregationResult, ct as OdeditorAssigned, cu as OdeditorUnassigned, aq as Page, au as Pages, b4 as Paging, b7 as PagingMetadataV2, cv as PicassoAssigned, cw as PicassoUnassigned, Q as PlacementType, dm as PlacementTypeWithLiterals, P as Program, aD as ProgramArchived, i as ProgramArchivedEnvelope, g as ProgramCreatedEnvelope, h as ProgramDeletedEnvelope, aE as ProgramDuplicated, j as ProgramDuplicatedEnvelope, aC as ProgramEnded, k as ProgramEndedEnvelope, aI as ProgramMigration, aB as ProgramPublished, l as ProgramPublishedEnvelope, o as ProgramQuery, d0 as ProgramQuerySpec, d1 as ProgramSearchSpec, m as ProgramUpdatedEnvelope, n as ProgramsQueryBuilder, c$ as ProgramsQueryResult, cI as Properties, d as PublishProgramApplicationErrors, bN as PublishProgramRequest, c as PublishProgramResponse, b0 as QueryProgramsRequest, b6 as QueryProgramsResponse, b1 as QueryV2, b2 as QueryV2PagingMethodOneOf, bi as RangeAggregation, bu as RangeAggregationResult, be as RangeBucket, bC as RangeResult, by as RangeResults, aw as ReindexMessage, ax as ReindexMessageActionOneOf, V as ResolutionMethod, dp as ResolutionMethodWithLiterals, c5 as ResolveProgramSlugRequest, c6 as ResolveProgramSlugResponse, c0 as RestoreInfo, a0 as Restrictions, bG as Results, a7 as Reward, bj as ScalarAggregation, bD as ScalarResult, y as ScalarType, dc as ScalarTypeWithLiterals, aA as Schema, bq as SearchDetails, cF as SearchIndexingNotification, O as SearchIndexingNotificationState, dl as SearchIndexingNotificationStateWithLiterals, b9 as SearchProgramsRequest, a2 as Seo, a3 as SeoSchema, ck as ServiceProvisioned, cl as ServiceRemoved, a6 as Settings, cb as SiteCreated, H as SiteCreatedContext, di as SiteCreatedContextWithLiterals, cd as SiteDeleted, cn as SiteHardDeleted, ci as SiteMarkedAsTemplate, cj as SiteMarkedAsWixSite, cH as SitePropertiesEvent, cG as SitePropertiesUpdated, cg as SitePublished, cs as SitePurgedExternally, cm as SiteRenamed, cc as SiteTransferred, cf as SiteUndeleted, ch as SiteUnpublished, cr as SiteUrlChanged, w as SortDirection, da as SortDirectionWithLiterals, u as SortOrder, d8 as SortOrderWithLiterals, v as SortType, d9 as SortTypeWithLiterals, b3 as Sorting, cQ as SpecialHourPeriod, G as State, dh as StateWithLiterals, p as Status, d3 as StatusWithLiterals, cp as StudioAssigned, cz as StudioTwoAssigned, cA as StudioTwoUnassigned, cq as StudioUnassigned, cS as SupportedLanguage, a5 as Tag, cP as TimePeriod, $ as Timeline, aZ as TimelineSwitchForbiddenErrorDetails, T as Trigger, d5 as TriggerWithLiterals, ar as URI, av as URIs, al as UpdateByFilterOperation, ad as UpdateDocumentsEvent, ae as UpdateDocumentsEventOperationOneOf, am as UpdateExistingOperation, U as UpdateProgram, a as UpdateProgramApplicationErrors, aT as UpdateProgramRequest, aU as UpdateProgramResponse, ay as Upsert, cC as UserDomainMediaDisabled, cB as UserDomainMediaEnabled, bg as ValueAggregation, bh as ValueAggregationOptionsOneOf, bt as ValueAggregationResult, bB as ValueResult, bx as ValueResults, _ as VideoResolution, aa as VideoStepsSettings, W as WebhookIdentityType, dq as WebhookIdentityTypeWithLiterals, cx as WixelAssigned, cy as WixelUnassigned, aX as WrongParticipantsNumberErrorDetails, aW as WrongStartDateErrorDetails, aV as WrongStateErrorDetails, dJ as archiveProgram, dK as bulkUpdatePrograms, dL as countPrograms, dB as createProgram, dF as deleteProgram, dC as duplicateProgram, dI as endProgram, dD as getProgram, dM as listSamplePrograms, dw as onProgramArchived, du as onProgramCreated, dv as onProgramDeleted, dx as onProgramDuplicated, dy as onProgramEnded, dz as onProgramPublished, dA as onProgramUpdated, dH as publishProgram, dG as queryPrograms, t as typedQueryPrograms, dE as updateProgram, d2 as utils } from './online-programs-v3-program-programs.universal-jF7XKDI_.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -48,7 +48,9 @@ __export(index_typings_exports, {
|
|
|
48
48
|
countPrograms: () => countPrograms2,
|
|
49
49
|
createProgram: () => createProgram2,
|
|
50
50
|
deleteProgram: () => deleteProgram2,
|
|
51
|
+
disableProgramFreemium: () => disableProgramFreemium2,
|
|
51
52
|
duplicateProgram: () => duplicateProgram2,
|
|
53
|
+
enableProgramFreemium: () => enableProgramFreemium2,
|
|
52
54
|
endProgram: () => endProgram2,
|
|
53
55
|
getProgram: () => getProgram2,
|
|
54
56
|
listSamplePrograms: () => listSamplePrograms2,
|
|
@@ -573,6 +575,68 @@ function archiveProgram(payload) {
|
|
|
573
575
|
}
|
|
574
576
|
return __archiveProgram;
|
|
575
577
|
}
|
|
578
|
+
function enableProgramFreemium(payload) {
|
|
579
|
+
function __enableProgramFreemium({ host }) {
|
|
580
|
+
const metadata = {
|
|
581
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
582
|
+
method: "POST",
|
|
583
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.EnableProgramFreemium",
|
|
584
|
+
packageName: PACKAGE_NAME,
|
|
585
|
+
migrationOptions: {
|
|
586
|
+
optInTransformResponse: true
|
|
587
|
+
},
|
|
588
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
|
|
589
|
+
protoPath: "/v3/programs/{programId}/enable-freemium",
|
|
590
|
+
data: payload,
|
|
591
|
+
host
|
|
592
|
+
}),
|
|
593
|
+
data: payload,
|
|
594
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
595
|
+
{
|
|
596
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
597
|
+
paths: TRANSFORM_PATHS_0
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
601
|
+
paths: TRANSFORM_PATHS_1
|
|
602
|
+
}
|
|
603
|
+
])
|
|
604
|
+
};
|
|
605
|
+
return metadata;
|
|
606
|
+
}
|
|
607
|
+
return __enableProgramFreemium;
|
|
608
|
+
}
|
|
609
|
+
function disableProgramFreemium(payload) {
|
|
610
|
+
function __disableProgramFreemium({ host }) {
|
|
611
|
+
const metadata = {
|
|
612
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
613
|
+
method: "POST",
|
|
614
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.DisableProgramFreemium",
|
|
615
|
+
packageName: PACKAGE_NAME,
|
|
616
|
+
migrationOptions: {
|
|
617
|
+
optInTransformResponse: true
|
|
618
|
+
},
|
|
619
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
|
|
620
|
+
protoPath: "/v3/programs/{programId}/disable-freemium",
|
|
621
|
+
data: payload,
|
|
622
|
+
host
|
|
623
|
+
}),
|
|
624
|
+
data: payload,
|
|
625
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
626
|
+
{
|
|
627
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
628
|
+
paths: TRANSFORM_PATHS_0
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
632
|
+
paths: TRANSFORM_PATHS_1
|
|
633
|
+
}
|
|
634
|
+
])
|
|
635
|
+
};
|
|
636
|
+
return metadata;
|
|
637
|
+
}
|
|
638
|
+
return __disableProgramFreemium;
|
|
639
|
+
}
|
|
576
640
|
function bulkUpdatePrograms(payload) {
|
|
577
641
|
function __bulkUpdatePrograms({ host }) {
|
|
578
642
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1358,6 +1422,86 @@ async function archiveProgram2(programId) {
|
|
|
1358
1422
|
throw transformedError;
|
|
1359
1423
|
}
|
|
1360
1424
|
}
|
|
1425
|
+
async function enableProgramFreemium2(programId) {
|
|
1426
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1427
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1428
|
+
programId
|
|
1429
|
+
});
|
|
1430
|
+
const reqOpts = enableProgramFreemium(payload);
|
|
1431
|
+
sideEffects?.onSiteCall?.();
|
|
1432
|
+
try {
|
|
1433
|
+
const result = await httpClient.request(reqOpts);
|
|
1434
|
+
sideEffects?.onSuccess?.(result);
|
|
1435
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1436
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1437
|
+
{
|
|
1438
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1439
|
+
paths: TRANSFORM_PATHS_02
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1443
|
+
paths: TRANSFORM_PATHS_12
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
|
|
1447
|
+
paths: TRANSFORM_PATHS_22
|
|
1448
|
+
}
|
|
1449
|
+
])
|
|
1450
|
+
);
|
|
1451
|
+
} catch (err) {
|
|
1452
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1453
|
+
err,
|
|
1454
|
+
{
|
|
1455
|
+
spreadPathsToArguments: {},
|
|
1456
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
1457
|
+
singleArgumentUnchanged: false
|
|
1458
|
+
},
|
|
1459
|
+
["programId"]
|
|
1460
|
+
);
|
|
1461
|
+
sideEffects?.onError?.(err);
|
|
1462
|
+
throw transformedError;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
async function disableProgramFreemium2(programId) {
|
|
1466
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1467
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1468
|
+
programId
|
|
1469
|
+
});
|
|
1470
|
+
const reqOpts = disableProgramFreemium(payload);
|
|
1471
|
+
sideEffects?.onSiteCall?.();
|
|
1472
|
+
try {
|
|
1473
|
+
const result = await httpClient.request(reqOpts);
|
|
1474
|
+
sideEffects?.onSuccess?.(result);
|
|
1475
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1476
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1477
|
+
{
|
|
1478
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1479
|
+
paths: TRANSFORM_PATHS_02
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1483
|
+
paths: TRANSFORM_PATHS_12
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
|
|
1487
|
+
paths: TRANSFORM_PATHS_22
|
|
1488
|
+
}
|
|
1489
|
+
])
|
|
1490
|
+
);
|
|
1491
|
+
} catch (err) {
|
|
1492
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1493
|
+
err,
|
|
1494
|
+
{
|
|
1495
|
+
spreadPathsToArguments: {},
|
|
1496
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
1497
|
+
singleArgumentUnchanged: false
|
|
1498
|
+
},
|
|
1499
|
+
["programId"]
|
|
1500
|
+
);
|
|
1501
|
+
sideEffects?.onError?.(err);
|
|
1502
|
+
throw transformedError;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1361
1505
|
async function bulkUpdatePrograms2(programs, options) {
|
|
1362
1506
|
const { httpClient, sideEffects } = arguments[2];
|
|
1363
1507
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -1511,7 +1655,9 @@ async function listSamplePrograms2() {
|
|
|
1511
1655
|
countPrograms,
|
|
1512
1656
|
createProgram,
|
|
1513
1657
|
deleteProgram,
|
|
1658
|
+
disableProgramFreemium,
|
|
1514
1659
|
duplicateProgram,
|
|
1660
|
+
enableProgramFreemium,
|
|
1515
1661
|
endProgram,
|
|
1516
1662
|
getProgram,
|
|
1517
1663
|
listSamplePrograms,
|