@wix/auto_sdk_online-programs_programs 1.0.6 → 1.0.7
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 +8 -11
- package/build/cjs/index.js +58 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +40 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-lMRAEV0c.d.ts → online-programs-v3-program-programs.universal-YXMOfctc.d.ts} +7 -1
- package/build/es/index.d.mts +8 -11
- package/build/es/index.mjs +58 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +39 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-lMRAEV0c.d.mts → online-programs-v3-program-programs.universal-YXMOfctc.d.mts} +7 -1
- package/build/internal/cjs/index.d.ts +8 -11
- package/build/internal/cjs/index.js +58 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +40 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-CxVOaZH3.d.ts → online-programs-v3-program-programs.universal-DlAnCRAK.d.ts} +7 -1
- package/build/internal/es/index.d.mts +8 -11
- package/build/internal/es/index.mjs +58 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +39 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/{online-programs-v3-program-programs.universal-CxVOaZH3.d.mts → online-programs-v3-program-programs.universal-DlAnCRAK.d.mts} +7 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { i as AccessType,
|
|
1
|
+
import { b1 as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-DlAnCRAK.js';
|
|
2
|
+
export { i as AccessType, cM as AccessTypeWithLiterals, bS as ActionEvent, cu as Address, cv as AddressHint, b3 as Aggregation, bj as AggregationData, b4 as AggregationKindOneOf, bC as AggregationResults, bD as AggregationResultsResultOneOf, bq as AggregationResultsScalarResult, q as AggregationType, cW as AggregationTypeWithLiterals, aj as App, aE as ApplicationError, bG as ArchiveProgramRequest, A as ArchiveProgramResponse, bZ as Asset, aF as BulkActionMetadata, k as BulkActionType, cO as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bI as BulkUpdateProgramResult, B as BulkUpdateProgramsOptions, bH as BulkUpdateProgramsRequest, e as BulkUpdateProgramsResponse, cx as BusinessSchedule, cs as Categories, a3 as Certificate, d5 as CommonSearchWithEntityContext, cC as ConsentPolicy, a6 as ContentSummary, C as CountProgramsOptions, bJ as CountProgramsRequest, f as CountProgramsResponse, ax as CreateProgramRequest, ay as CreateProgramResponse, aY as CursorPaging, bi as CursorPagingMetadata, b2 as CursorSearchPagingMethodOneOf, a$ as Cursors, an as CustomTag, bb as DateHistogramAggregation, by as DateHistogramResult, bA as DateHistogramResults, z as DayOfWeek, d2 as DayOfWeekWithLiterals, ar as Delete, aG as DeleteAllProgramsMigrationRequest, aH as DeleteAllProgramsMigrationResponse, ae as DeleteByFilterOperation, ad as DeleteByIdsOperation, c1 as DeleteContext, aS as DeleteProgramRequest, aT as DeleteProgramResponse, w as DeleteStatus, c$ as DeleteStatusWithLiterals, G as Description, H as DescriptionMediaOneOf, ac as DocumentImage, ab as DocumentPayload, a9 as DocumentUpdateOperation, bM as DomainEvent, bN as DomainEventBodyOneOf, aI as DuplicateProgramRequest, D as DuplicateProgramResponse, aQ as DuplicatedSlugErrorDetails, bT as Empty, bF as EndProgramRequest, E as EndProgramResponse, bO as EntityCreatedEvent, bR as EntityDeletedEvent, bQ as EntityUpdatedEvent, j as Enum, cN as EnumWithLiterals, a4 as ExtendedFields, am as File, J as FocalPoint, cw as GeoCoordinates, aJ as GetProgramRequest, aK as GetProgramResponse, bf as GroupByAggregation, bg as GroupByAggregationKindOneOf, bz as GroupByValueResults, cE as IdentificationData, cF as IdentificationDataIdOneOf, b6 as IncludeMissingValuesOptions, aa as IndexDocument, I as Interval, cV as IntervalWithLiterals, ah as InvalidateCache, ai as InvalidateCacheGetByOneOf, aD as ItemMetadata, $ as Keyword, bL as LabeledProgram, bK as ListSampleProgramsRequest, L as ListSampleProgramsResponse, ct as Locale, M as MaskedProgram, cD as MessageEnvelope, bX as MetaSiteSpecialEvent, bY as MetaSiteSpecialEventPayloadOneOf, bW as MissingMetasiteIdErrorDetails, o as MissingValues, cS as MissingValuesWithLiterals, r as Mode, cX as ModeWithLiterals, Y as Money, cA as Multilingual, v as Namespace, cb as NamespaceChanged, c_ as NamespaceWithLiterals, be as NestedAggregation, bc as NestedAggregationItem, bd as NestedAggregationItemKindOneOf, bm as NestedAggregationResults, bn as NestedAggregationResultsResultOneOf, N as NestedAggregationType, cU as NestedAggregationTypeWithLiterals, bv as NestedResultValue, bw as NestedResultValueResultOneOf, bB as NestedResults, br as NestedValueAggregationResult, cg as OdeditorAssigned, ch as OdeditorUnassigned, ak as Page, aX as Paging, a_ as PagingMetadataV2, ci as PicassoAssigned, cj as PicassoUnassigned, y as PlacementType, d1 as PlacementTypeWithLiterals, P as Program, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, cH as ProgramSearchSpec, g as ProgramsQueryBuilder, cG as ProgramsQueryResult, cr as Properties, d as PublishProgramApplicationErrors, bE as PublishProgramRequest, c as PublishProgramResponse, aU as QueryProgramsRequest, aZ as QueryProgramsResponse, Q as QueryV2, aV as QueryV2PagingMethodOneOf, b9 as RangeAggregation, bl as RangeAggregationResult, b5 as RangeBucket, bt as RangeResult, bp as RangeResults, ao as ReindexMessage, ap as ReindexMessageActionOneOf, F as ResolutionMethod, d3 as ResolutionMethodWithLiterals, bU as ResolveProgramSlugRequest, bV as ResolveProgramSlugResponse, bP as RestoreInfo, X as Restrictions, R as RestrictionsAccessType, cK as RestrictionsAccessTypeWithLiterals, bx as Results, a2 as Reward, ba as ScalarAggregation, bu as ScalarResult, p as ScalarType, cT as ScalarTypeWithLiterals, as as Schema, bh as SearchDetails, co as SearchIndexingNotification, x as SearchIndexingNotificationState, d0 as SearchIndexingNotificationStateWithLiterals, b0 as SearchProgramsRequest, Z as Seo, _ as SeoSchema, c7 as ServiceProvisioned, c8 as ServiceRemoved, a1 as Settings, b_ as SiteCreated, u as SiteCreatedContext, cZ as SiteCreatedContextWithLiterals, c0 as SiteDeleted, ca as SiteHardDeleted, c5 as SiteMarkedAsTemplate, c6 as SiteMarkedAsWixSite, cq as SitePropertiesEvent, cp as SitePropertiesUpdated, c3 as SitePublished, cf as SitePurgedExternally, c9 as SiteRenamed, b$ as SiteTransferred, c2 as SiteUndeleted, c4 as SiteUnpublished, ce as SiteUrlChanged, n as SortDirection, cR as SortDirectionWithLiterals, l as SortOrder, cP as SortOrderWithLiterals, m as SortType, cQ as SortTypeWithLiterals, aW as Sorting, cz as SpecialHourPeriod, s as State, cY as StateWithLiterals, h as Status, cJ as StatusWithLiterals, cc as StudioAssigned, cm as StudioTwoAssigned, cn as StudioTwoUnassigned, cd as StudioUnassigned, cB as SupportedLanguage, a0 as Tag, cy as TimePeriod, O as Timeline, aR as TimelineSwitchForbiddenErrorDetails, T as Trigger, cL as TriggerWithLiterals, al as URI, af as UpdateByFilterOperation, a7 as UpdateDocumentsEvent, a8 as UpdateDocumentsEventOperationOneOf, ag as UpdateExistingOperation, U as UpdateProgram, a as UpdateProgramApplicationErrors, aL as UpdateProgramRequest, aM as UpdateProgramResponse, aq as Upsert, V as V3State, cI as V3StateWithLiterals, b7 as ValueAggregation, b8 as ValueAggregationOptionsOneOf, bk as ValueAggregationResult, bs as ValueResult, bo as ValueResults, K as VideoResolution, a5 as VideoStepsSettings, W as WebhookIdentityType, d4 as WebhookIdentityTypeWithLiterals, ck as WixelAssigned, cl as WixelUnassigned, aP as WrongParticipantsNumberErrorDetails, aO as WrongStartDateErrorDetails, aN as WrongStateErrorDetails, de as archiveProgram, df as bulkUpdatePrograms, dg as countPrograms, d6 as createProgram, da as deleteProgram, d7 as duplicateProgram, dd as endProgram, d8 as getProgram, dh as listSamplePrograms, dc as publishProgram, db as queryPrograms, t as typedQueryPrograms, d9 as updateProgram } from './online-programs-v3-program-programs.universal-DlAnCRAK.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -57,6 +57,7 @@ __export(index_typings_exports, {
|
|
|
57
57
|
publishProgram: () => publishProgram2,
|
|
58
58
|
queryPrograms: () => queryPrograms2,
|
|
59
59
|
searchPrograms: () => searchPrograms2,
|
|
60
|
+
typedQueryPrograms: () => typedQueryPrograms,
|
|
60
61
|
updateProgram: () => updateProgram2
|
|
61
62
|
});
|
|
62
63
|
module.exports = __toCommonJS(index_typings_exports);
|
|
@@ -1445,6 +1446,44 @@ function queryPrograms2() {
|
|
|
1445
1446
|
transformationPaths: {}
|
|
1446
1447
|
});
|
|
1447
1448
|
}
|
|
1449
|
+
async function typedQueryPrograms(query) {
|
|
1450
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1451
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
1452
|
+
const reqOpts = queryPrograms(payload);
|
|
1453
|
+
sideEffects?.onSiteCall?.();
|
|
1454
|
+
try {
|
|
1455
|
+
const result = await httpClient.request(reqOpts);
|
|
1456
|
+
sideEffects?.onSuccess?.(result);
|
|
1457
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1458
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1459
|
+
{
|
|
1460
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1461
|
+
paths: [{ path: "programs.description.image" }]
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1465
|
+
paths: [{ path: "programs.description.video" }]
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
|
|
1469
|
+
paths: [{ path: "programs.seo.url" }]
|
|
1470
|
+
}
|
|
1471
|
+
])
|
|
1472
|
+
);
|
|
1473
|
+
} catch (err) {
|
|
1474
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1475
|
+
err,
|
|
1476
|
+
{
|
|
1477
|
+
spreadPathsToArguments: {},
|
|
1478
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1479
|
+
singleArgumentUnchanged: false
|
|
1480
|
+
},
|
|
1481
|
+
["query"]
|
|
1482
|
+
);
|
|
1483
|
+
sideEffects?.onError?.(err);
|
|
1484
|
+
throw transformedError;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1448
1487
|
async function searchPrograms2(search) {
|
|
1449
1488
|
const { httpClient, sideEffects } = arguments[1];
|
|
1450
1489
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
@@ -1765,6 +1804,7 @@ async function listSamplePrograms2() {
|
|
|
1765
1804
|
publishProgram,
|
|
1766
1805
|
queryPrograms,
|
|
1767
1806
|
searchPrograms,
|
|
1807
|
+
typedQueryPrograms,
|
|
1768
1808
|
updateProgram
|
|
1769
1809
|
});
|
|
1770
1810
|
//# sourceMappingURL=index.typings.js.map
|