@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ax as CreateProgramRequest$1, ay as CreateProgramResponse$1, aI as DuplicateProgramRequest$1, D as DuplicateProgramResponse$1, aJ as GetProgramRequest$1, aK as GetProgramResponse$1, aL as UpdateProgramRequest$1, aM as UpdateProgramResponse$1, aS as DeleteProgramRequest$1, aT as DeleteProgramResponse$1, aU as QueryProgramsRequest$1, aZ as QueryProgramsResponse$1, b0 as SearchProgramsRequest$1, S as SearchProgramsResponse$1, bE as PublishProgramRequest$1, c as PublishProgramResponse$1, bF as EndProgramRequest$1, E as EndProgramResponse$1, bG as ArchiveProgramRequest$1, A as ArchiveProgramResponse$1, bH as BulkUpdateProgramsRequest$1, e as BulkUpdateProgramsResponse$1, bJ as CountProgramsRequest$1, f as CountProgramsResponse$1, bK as ListSampleProgramsRequest$1, L as ListSampleProgramsResponse$1 } from './online-programs-v3-program-programs.universal-DlAnCRAK.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Program {
|
|
@@ -2656,6 +2656,12 @@ interface ProgramsQueryBuilder {
|
|
|
2656
2656
|
/** @documentationMaturity preview */
|
|
2657
2657
|
find: () => Promise<ProgramsQueryResult>;
|
|
2658
2658
|
}
|
|
2659
|
+
/**
|
|
2660
|
+
* @hidden
|
|
2661
|
+
* @fqn wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms
|
|
2662
|
+
* @requiredField query
|
|
2663
|
+
*/
|
|
2664
|
+
declare function typedQueryPrograms(query: QueryV2): Promise<NonNullablePaths<QueryProgramsResponse, `programs` | `programs.${number}.state` | `programs.${number}.status` | `programs.${number}.description.title` | `programs.${number}.timeline.selfPaced` | `programs.${number}.restrictions.hideFutureSteps` | `programs.${number}.restrictions.resolveStepsInOrder` | `programs.${number}.restrictions.shareProgress` | `programs.${number}.restrictions.accessType` | `programs.${number}.price.value` | `programs.${number}.price.currency` | `programs.${number}.seo.slug` | `programs.${number}.seo.imageAlt` | `programs.${number}.seo.courseWorkload` | `programs.${number}.accessType` | `programs.${number}.shouldSendInvoice` | `programs.${number}.videoStepsSettings.autoNavigate` | `programs.${number}.videoStepsSettings.requiredCompletionPercentage` | `programs.${number}.contentSummary.stepCount` | `programs.${number}.contentSummary.sectionCount`, 5>>;
|
|
2659
2665
|
interface ProgramSearchSpec extends SearchSpec {
|
|
2660
2666
|
searchable: ['description.title'];
|
|
2661
2667
|
aggregatable: [
|
|
@@ -2919,4 +2925,4 @@ interface CountProgramsOptions {
|
|
|
2919
2925
|
*/
|
|
2920
2926
|
declare function listSamplePrograms(): Promise<NonNullablePaths<ListSampleProgramsResponse, `programs` | `programs.${number}.program.state` | `programs.${number}.program.status` | `programs.${number}.program.description.title` | `programs.${number}.program.timeline.selfPaced` | `programs.${number}.program.restrictions.hideFutureSteps` | `programs.${number}.program.restrictions.resolveStepsInOrder` | `programs.${number}.program.restrictions.shareProgress` | `programs.${number}.program.restrictions.accessType` | `programs.${number}.program.price.value` | `programs.${number}.program.price.currency` | `programs.${number}.program.seo.slug` | `programs.${number}.program.seo.imageAlt` | `programs.${number}.program.seo.courseWorkload` | `programs.${number}.program.accessType` | `programs.${number}.program.shouldSendInvoice` | `programs.${number}.program.videoStepsSettings.autoNavigate` | `programs.${number}.program.videoStepsSettings.requiredCompletionPercentage` | `programs.${number}.program.contentSummary.stepCount` | `programs.${number}.program.contentSummary.sectionCount` | `programs.${number}.label`, 6>>;
|
|
2921
2927
|
|
|
2922
|
-
export { type
|
|
2928
|
+
export { type Keyword as $, type ArchiveProgramResponse as A, type BulkUpdateProgramsOptions as B, type CountProgramsOptions as C, type DuplicateProgramResponse as D, type EndProgramResponse as E, ResolutionMethod as F, type Description as G, type DescriptionMediaOneOf as H, Interval as I, type FocalPoint as J, type VideoResolution as K, type ListSampleProgramsResponse as L, type MaskedProgram as M, NestedAggregationType as N, type Timeline as O, type Program as P, type QueryV2 as Q, RestrictionsAccessType as R, type SearchProgramsResponse as S, Trigger as T, type UpdateProgram as U, V3State as V, WebhookIdentityType as W, type Restrictions as X, type Money as Y, type Seo as Z, type SeoSchema as _, type UpdateProgramApplicationErrors as a, type Cursors as a$, type Tag as a0, type Settings as a1, type Reward as a2, type Certificate as a3, type ExtendedFields as a4, type VideoStepsSettings as a5, type ContentSummary as a6, type UpdateDocumentsEvent as a7, type UpdateDocumentsEventOperationOneOf as a8, type DocumentUpdateOperation as a9, type ProgramMigration as aA, type BulkCreateProgramsMigrationResponse as aB, type BulkProgramResult as aC, type ItemMetadata as aD, type ApplicationError as aE, type BulkActionMetadata as aF, type DeleteAllProgramsMigrationRequest as aG, type DeleteAllProgramsMigrationResponse as aH, type DuplicateProgramRequest as aI, type GetProgramRequest as aJ, type GetProgramResponse as aK, type UpdateProgramRequest as aL, type UpdateProgramResponse as aM, type WrongStateErrorDetails as aN, type WrongStartDateErrorDetails as aO, type WrongParticipantsNumberErrorDetails as aP, type DuplicatedSlugErrorDetails as aQ, type TimelineSwitchForbiddenErrorDetails as aR, type DeleteProgramRequest as aS, type DeleteProgramResponse as aT, type QueryProgramsRequest as aU, type QueryV2PagingMethodOneOf as aV, type Sorting as aW, type Paging as aX, type CursorPaging as aY, type QueryProgramsResponse as aZ, type PagingMetadataV2 as a_, type IndexDocument as aa, type DocumentPayload as ab, type DocumentImage as ac, type DeleteByIdsOperation as ad, type DeleteByFilterOperation as ae, type UpdateByFilterOperation as af, type UpdateExistingOperation as ag, type InvalidateCache as ah, type InvalidateCacheGetByOneOf as ai, type App as aj, type Page as ak, type URI as al, type File as am, type CustomTag as an, type ReindexMessage as ao, type ReindexMessageActionOneOf as ap, type Upsert as aq, type Delete as ar, type Schema as as, type ProgramPublished as at, type ProgramEnded as au, type ProgramArchived as av, type ProgramDuplicated as aw, type CreateProgramRequest as ax, type CreateProgramResponse as ay, type BulkCreateProgramsMigrationRequest as az, type ProgramSearch as b, type SiteTransferred as b$, type SearchProgramsRequest as b0, type CursorSearch as b1, type CursorSearchPagingMethodOneOf as b2, type Aggregation as b3, type AggregationKindOneOf as b4, type RangeBucket as b5, type IncludeMissingValuesOptions as b6, type ValueAggregation as b7, type ValueAggregationOptionsOneOf as b8, type RangeAggregation as b9, type DateHistogramResults as bA, type NestedResults as bB, type AggregationResults as bC, type AggregationResultsResultOneOf as bD, type PublishProgramRequest as bE, type EndProgramRequest as bF, type ArchiveProgramRequest as bG, type BulkUpdateProgramsRequest as bH, type BulkUpdateProgramResult as bI, type CountProgramsRequest as bJ, type ListSampleProgramsRequest as bK, type LabeledProgram as bL, type DomainEvent as bM, type DomainEventBodyOneOf as bN, type EntityCreatedEvent as bO, type RestoreInfo as bP, type EntityUpdatedEvent as bQ, type EntityDeletedEvent as bR, type ActionEvent as bS, type Empty as bT, type ResolveProgramSlugRequest as bU, type ResolveProgramSlugResponse as bV, type MissingMetasiteIdErrorDetails as bW, type MetaSiteSpecialEvent as bX, type MetaSiteSpecialEventPayloadOneOf as bY, type Asset as bZ, type SiteCreated as b_, type ScalarAggregation as ba, type DateHistogramAggregation as bb, type NestedAggregationItem as bc, type NestedAggregationItemKindOneOf as bd, type NestedAggregation as be, type GroupByAggregation as bf, type GroupByAggregationKindOneOf as bg, type SearchDetails as bh, type CursorPagingMetadata as bi, type AggregationData as bj, type ValueAggregationResult as bk, type RangeAggregationResult as bl, type NestedAggregationResults as bm, type NestedAggregationResultsResultOneOf as bn, type ValueResults as bo, type RangeResults as bp, type AggregationResultsScalarResult as bq, type NestedValueAggregationResult as br, type ValueResult as bs, type RangeResult as bt, type ScalarResult as bu, type NestedResultValue as bv, type NestedResultValueResultOneOf as bw, type Results as bx, type DateHistogramResult as by, type GroupByValueResults as bz, type PublishProgramResponse as c, type DeleteStatusWithLiterals as c$, type SiteDeleted as c0, type DeleteContext as c1, type SiteUndeleted as c2, type SitePublished as c3, type SiteUnpublished as c4, type SiteMarkedAsTemplate as c5, type SiteMarkedAsWixSite as c6, type ServiceProvisioned as c7, type ServiceRemoved as c8, type SiteRenamed as c9, type Multilingual as cA, type SupportedLanguage as cB, type ConsentPolicy as cC, type MessageEnvelope as cD, type IdentificationData as cE, type IdentificationDataIdOneOf as cF, type ProgramsQueryResult as cG, type ProgramSearchSpec as cH, type V3StateWithLiterals as cI, type StatusWithLiterals as cJ, type RestrictionsAccessTypeWithLiterals as cK, type TriggerWithLiterals as cL, type AccessTypeWithLiterals as cM, type EnumWithLiterals as cN, type BulkActionTypeWithLiterals as cO, type SortOrderWithLiterals as cP, type SortTypeWithLiterals as cQ, type SortDirectionWithLiterals as cR, type MissingValuesWithLiterals as cS, type ScalarTypeWithLiterals as cT, type NestedAggregationTypeWithLiterals as cU, type IntervalWithLiterals as cV, type AggregationTypeWithLiterals as cW, type ModeWithLiterals as cX, type StateWithLiterals as cY, type SiteCreatedContextWithLiterals as cZ, type NamespaceWithLiterals as c_, type SiteHardDeleted as ca, type NamespaceChanged as cb, type StudioAssigned as cc, type StudioUnassigned as cd, type SiteUrlChanged as ce, type SitePurgedExternally as cf, type OdeditorAssigned as cg, type OdeditorUnassigned as ch, type PicassoAssigned as ci, type PicassoUnassigned as cj, type WixelAssigned as ck, type WixelUnassigned as cl, type StudioTwoAssigned as cm, type StudioTwoUnassigned as cn, type SearchIndexingNotification as co, type SitePropertiesUpdated as cp, type SitePropertiesEvent as cq, type Properties as cr, type Categories as cs, type Locale as ct, type Address as cu, type AddressHint as cv, type GeoCoordinates as cw, type BusinessSchedule as cx, type TimePeriod as cy, type SpecialHourPeriod as cz, type PublishProgramApplicationErrors as d, type SearchIndexingNotificationStateWithLiterals as d0, type PlacementTypeWithLiterals as d1, type DayOfWeekWithLiterals as d2, type ResolutionMethodWithLiterals as d3, type WebhookIdentityTypeWithLiterals as d4, type CommonSearchWithEntityContext as d5, createProgram as d6, duplicateProgram as d7, getProgram as d8, updateProgram as d9, deleteProgram as da, queryPrograms as db, publishProgram as dc, endProgram as dd, archiveProgram as de, bulkUpdatePrograms as df, countPrograms as dg, listSamplePrograms as dh, type BulkUpdateProgramsResponse as e, type CountProgramsResponse as f, type ProgramsQueryBuilder as g, Status as h, AccessType as i, Enum as j, BulkActionType as k, SortOrder as l, SortType as m, SortDirection as n, MissingValues as o, ScalarType as p, AggregationType as q, Mode as r, State as s, typedQueryPrograms as t, SiteCreatedContext as u, Namespace as v, DeleteStatus as w, SearchIndexingNotificationState as x, PlacementType as y, DayOfWeek as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { P as Program, D as DuplicateProgramResponse, U as UpdateProgram, a as UpdateProgramApplicationErrors, b as
|
|
3
|
-
export { i as AccessType,
|
|
2
|
+
import { P as Program, D as DuplicateProgramResponse, U as UpdateProgram, a as UpdateProgramApplicationErrors, b as ProgramSearch, S as SearchProgramsResponse, c as PublishProgramResponse, d as PublishProgramApplicationErrors, E as EndProgramResponse, A as ArchiveProgramResponse, M as MaskedProgram, B as BulkUpdateProgramsOptions, e as BulkUpdateProgramsResponse, C as CountProgramsOptions, f as CountProgramsResponse, L as ListSampleProgramsResponse, g as ProgramsQueryBuilder, Q as QueryV2, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-DlAnCRAK.mjs';
|
|
3
|
+
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, bZ as Asset, aF as BulkActionMetadata, k as BulkActionType, cO as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bI as BulkUpdateProgramResult, bH as BulkUpdateProgramsRequest, cx as BusinessSchedule, cs as Categories, a3 as Certificate, d5 as CommonSearchWithEntityContext, cC as ConsentPolicy, a6 as ContentSummary, bJ as CountProgramsRequest, ax as CreateProgramRequest, ay as CreateProgramResponse, aY as CursorPaging, bi as CursorPagingMetadata, b1 as CursorSearch, 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, aQ as DuplicatedSlugErrorDetails, bT as Empty, bF as EndProgramRequest, 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, ct as Locale, 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, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, cH as ProgramSearchSpec, cG as ProgramsQueryResult, cr as Properties, bE as PublishProgramRequest, aU as QueryProgramsRequest, aZ as QueryProgramsResponse, 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, 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 } from './online-programs-v3-program-programs.universal-DlAnCRAK.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createProgram$1(httpClient: HttpClient): CreateProgramSignature;
|
|
6
6
|
interface CreateProgramSignature {
|
|
@@ -48,13 +48,6 @@ interface DeleteProgramSignature {
|
|
|
48
48
|
*/
|
|
49
49
|
(programId: string): Promise<void>;
|
|
50
50
|
}
|
|
51
|
-
declare function queryPrograms$1(httpClient: HttpClient): QueryProgramsSignature;
|
|
52
|
-
interface QueryProgramsSignature {
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves a list of Programs
|
|
55
|
-
*/
|
|
56
|
-
(): ProgramsQueryBuilder;
|
|
57
|
-
}
|
|
58
51
|
declare function searchPrograms$1(httpClient: HttpClient): SearchProgramsSignature;
|
|
59
52
|
interface SearchProgramsSignature {
|
|
60
53
|
/**
|
|
@@ -112,12 +105,15 @@ interface ListSampleProgramsSignature {
|
|
|
112
105
|
(): Promise<NonNullablePaths<ListSampleProgramsResponse, `programs` | `programs.${number}.program.state` | `programs.${number}.program.status` | `programs.${number}.program.description.title` | `programs.${number}.program.timeline.selfPaced` | `programs.${number}.program.restrictions.hideFutureSteps` | `programs.${number}.program.restrictions.resolveStepsInOrder` | `programs.${number}.program.restrictions.shareProgress` | `programs.${number}.program.restrictions.accessType` | `programs.${number}.program.price.value` | `programs.${number}.program.price.currency` | `programs.${number}.program.seo.slug` | `programs.${number}.program.seo.imageAlt` | `programs.${number}.program.seo.courseWorkload` | `programs.${number}.program.accessType` | `programs.${number}.program.shouldSendInvoice` | `programs.${number}.program.videoStepsSettings.autoNavigate` | `programs.${number}.program.videoStepsSettings.requiredCompletionPercentage` | `programs.${number}.program.contentSummary.stepCount` | `programs.${number}.program.contentSummary.sectionCount` | `programs.${number}.label`, 6>>;
|
|
113
106
|
}
|
|
114
107
|
|
|
108
|
+
declare function customQueryPrograms(httpClient: HttpClient): {
|
|
109
|
+
(): ProgramsQueryBuilder;
|
|
110
|
+
(query: QueryV2): ReturnType<typeof typedQueryPrograms>;
|
|
111
|
+
};
|
|
115
112
|
declare const createProgram: MaybeContext<BuildRESTFunction<typeof createProgram$1> & typeof createProgram$1>;
|
|
116
113
|
declare const duplicateProgram: MaybeContext<BuildRESTFunction<typeof duplicateProgram$1> & typeof duplicateProgram$1>;
|
|
117
114
|
declare const getProgram: MaybeContext<BuildRESTFunction<typeof getProgram$1> & typeof getProgram$1>;
|
|
118
115
|
declare const updateProgram: MaybeContext<BuildRESTFunction<typeof updateProgram$1> & typeof updateProgram$1>;
|
|
119
116
|
declare const deleteProgram: MaybeContext<BuildRESTFunction<typeof deleteProgram$1> & typeof deleteProgram$1>;
|
|
120
|
-
declare const queryPrograms: MaybeContext<BuildRESTFunction<typeof queryPrograms$1> & typeof queryPrograms$1>;
|
|
121
117
|
declare const searchPrograms: MaybeContext<BuildRESTFunction<typeof searchPrograms$1> & typeof searchPrograms$1>;
|
|
122
118
|
declare const publishProgram: MaybeContext<BuildRESTFunction<typeof publishProgram$1> & typeof publishProgram$1>;
|
|
123
119
|
declare const endProgram: MaybeContext<BuildRESTFunction<typeof endProgram$1> & typeof endProgram$1>;
|
|
@@ -125,5 +121,6 @@ declare const archiveProgram: MaybeContext<BuildRESTFunction<typeof archiveProgr
|
|
|
125
121
|
declare const bulkUpdatePrograms: MaybeContext<BuildRESTFunction<typeof bulkUpdatePrograms$1> & typeof bulkUpdatePrograms$1>;
|
|
126
122
|
declare const countPrograms: MaybeContext<BuildRESTFunction<typeof countPrograms$1> & typeof countPrograms$1>;
|
|
127
123
|
declare const listSamplePrograms: MaybeContext<BuildRESTFunction<typeof listSamplePrograms$1> & typeof listSamplePrograms$1>;
|
|
124
|
+
declare const queryPrograms: MaybeContext<BuildRESTFunction<typeof customQueryPrograms> & typeof customQueryPrograms>;
|
|
128
125
|
|
|
129
|
-
export { ArchiveProgramResponse, BulkUpdateProgramsOptions, BulkUpdateProgramsResponse, CountProgramsOptions, CountProgramsResponse, DuplicateProgramResponse, EndProgramResponse, ListSampleProgramsResponse, MaskedProgram, Program, ProgramSearch, ProgramsQueryBuilder, PublishProgramApplicationErrors, PublishProgramResponse, SearchProgramsResponse, UpdateProgram, UpdateProgramApplicationErrors, archiveProgram, bulkUpdatePrograms, countPrograms, createProgram, deleteProgram, duplicateProgram, endProgram, getProgram, listSamplePrograms, publishProgram, queryPrograms, searchPrograms, updateProgram };
|
|
126
|
+
export { ArchiveProgramResponse, BulkUpdateProgramsOptions, BulkUpdateProgramsResponse, CountProgramsOptions, CountProgramsResponse, DuplicateProgramResponse, EndProgramResponse, ListSampleProgramsResponse, MaskedProgram, Program, ProgramSearch, ProgramsQueryBuilder, PublishProgramApplicationErrors, PublishProgramResponse, QueryV2, SearchProgramsResponse, UpdateProgram, UpdateProgramApplicationErrors, archiveProgram, bulkUpdatePrograms, countPrograms, createProgram, deleteProgram, duplicateProgram, endProgram, getProgram, listSamplePrograms, publishProgram, queryPrograms, searchPrograms, updateProgram };
|
|
@@ -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 });
|
|
@@ -1710,6 +1748,13 @@ function queryPrograms3(httpClient) {
|
|
|
1710
1748
|
{ httpClient }
|
|
1711
1749
|
);
|
|
1712
1750
|
}
|
|
1751
|
+
function typedQueryPrograms2(httpClient) {
|
|
1752
|
+
return (query) => typedQueryPrograms(
|
|
1753
|
+
query,
|
|
1754
|
+
// @ts-ignore
|
|
1755
|
+
{ httpClient }
|
|
1756
|
+
);
|
|
1757
|
+
}
|
|
1713
1758
|
function searchPrograms3(httpClient) {
|
|
1714
1759
|
return (search) => searchPrograms2(
|
|
1715
1760
|
search,
|
|
@@ -1762,12 +1807,23 @@ function listSamplePrograms3(httpClient) {
|
|
|
1762
1807
|
|
|
1763
1808
|
// src/online-programs-v3-program-programs.context.ts
|
|
1764
1809
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1810
|
+
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
1811
|
+
function customQueryPrograms(httpClient) {
|
|
1812
|
+
const router = createQueryOverloadRouter({
|
|
1813
|
+
builderQueryFunction: () => queryPrograms3(httpClient)(),
|
|
1814
|
+
typedQueryFunction: (query) => typedQueryPrograms2(httpClient)(query),
|
|
1815
|
+
hasOptionsParameter: false
|
|
1816
|
+
});
|
|
1817
|
+
function overloadedQuery(query) {
|
|
1818
|
+
return router(...arguments);
|
|
1819
|
+
}
|
|
1820
|
+
return overloadedQuery;
|
|
1821
|
+
}
|
|
1765
1822
|
var createProgram4 = /* @__PURE__ */ createRESTModule(createProgram3);
|
|
1766
1823
|
var duplicateProgram4 = /* @__PURE__ */ createRESTModule(duplicateProgram3);
|
|
1767
1824
|
var getProgram4 = /* @__PURE__ */ createRESTModule(getProgram3);
|
|
1768
1825
|
var updateProgram4 = /* @__PURE__ */ createRESTModule(updateProgram3);
|
|
1769
1826
|
var deleteProgram4 = /* @__PURE__ */ createRESTModule(deleteProgram3);
|
|
1770
|
-
var queryPrograms4 = /* @__PURE__ */ createRESTModule(queryPrograms3);
|
|
1771
1827
|
var searchPrograms4 = /* @__PURE__ */ createRESTModule(searchPrograms3);
|
|
1772
1828
|
var publishProgram4 = /* @__PURE__ */ createRESTModule(publishProgram3);
|
|
1773
1829
|
var endProgram4 = /* @__PURE__ */ createRESTModule(endProgram3);
|
|
@@ -1775,6 +1831,7 @@ var archiveProgram4 = /* @__PURE__ */ createRESTModule(archiveProgram3);
|
|
|
1775
1831
|
var bulkUpdatePrograms4 = /* @__PURE__ */ createRESTModule(bulkUpdatePrograms3);
|
|
1776
1832
|
var countPrograms4 = /* @__PURE__ */ createRESTModule(countPrograms3);
|
|
1777
1833
|
var listSamplePrograms4 = /* @__PURE__ */ createRESTModule(listSamplePrograms3);
|
|
1834
|
+
var queryPrograms4 = /* @__PURE__ */ createRESTModule(customQueryPrograms);
|
|
1778
1835
|
export {
|
|
1779
1836
|
AccessType,
|
|
1780
1837
|
AggregationType,
|