@wix/auto_sdk_online-programs_programs 1.0.6 → 1.0.8
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-YXMOfctc.mjs';
|
|
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-YXMOfctc.mjs';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -1385,6 +1385,44 @@ function queryPrograms2() {
|
|
|
1385
1385
|
transformationPaths: {}
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
|
+
async function typedQueryPrograms(query) {
|
|
1389
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1390
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
1391
|
+
const reqOpts = queryPrograms(payload);
|
|
1392
|
+
sideEffects?.onSiteCall?.();
|
|
1393
|
+
try {
|
|
1394
|
+
const result = await httpClient.request(reqOpts);
|
|
1395
|
+
sideEffects?.onSuccess?.(result);
|
|
1396
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
1397
|
+
transformPaths2(result.data, [
|
|
1398
|
+
{
|
|
1399
|
+
transformFn: transformRESTImageToSDKImage,
|
|
1400
|
+
paths: [{ path: "programs.description.image" }]
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1404
|
+
paths: [{ path: "programs.description.video" }]
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
transformFn: transformRESTPageURLToSDKPageURL,
|
|
1408
|
+
paths: [{ path: "programs.seo.url" }]
|
|
1409
|
+
}
|
|
1410
|
+
])
|
|
1411
|
+
);
|
|
1412
|
+
} catch (err) {
|
|
1413
|
+
const transformedError = sdkTransformError(
|
|
1414
|
+
err,
|
|
1415
|
+
{
|
|
1416
|
+
spreadPathsToArguments: {},
|
|
1417
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1418
|
+
singleArgumentUnchanged: false
|
|
1419
|
+
},
|
|
1420
|
+
["query"]
|
|
1421
|
+
);
|
|
1422
|
+
sideEffects?.onError?.(err);
|
|
1423
|
+
throw transformedError;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1388
1426
|
async function searchPrograms2(search) {
|
|
1389
1427
|
const { httpClient, sideEffects } = arguments[1];
|
|
1390
1428
|
const payload = renameKeysFromSDKRequestToRESTRequest({ search });
|
|
@@ -1704,6 +1742,7 @@ export {
|
|
|
1704
1742
|
publishProgram2 as publishProgram,
|
|
1705
1743
|
queryPrograms2 as queryPrograms,
|
|
1706
1744
|
searchPrograms2 as searchPrograms,
|
|
1745
|
+
typedQueryPrograms,
|
|
1707
1746
|
updateProgram2 as updateProgram
|
|
1708
1747
|
};
|
|
1709
1748
|
//# sourceMappingURL=index.typings.mjs.map
|