@wix/auto_sdk_online-programs_programs 1.0.17 → 1.0.19

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 (54) hide show
  1. package/build/cjs/index.d.ts +78 -37
  2. package/build/cjs/index.js +36 -45
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +7 -4
  5. package/build/cjs/index.typings.js +36 -45
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +210 -156
  8. package/build/cjs/meta.js +22 -43
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/{internal/cjs/online-programs-v3-program-programs.universal-GGCuynBJ.d.ts → cjs/online-programs-v3-program-programs.universal-s9OPdNxX.d.ts} +336 -275
  11. package/build/cjs/schemas.d.ts +1895 -0
  12. package/build/cjs/schemas.js +3155 -0
  13. package/build/cjs/schemas.js.map +1 -0
  14. package/build/es/index.d.mts +78 -37
  15. package/build/es/index.mjs +34 -42
  16. package/build/es/index.mjs.map +1 -1
  17. package/build/es/index.typings.d.mts +7 -4
  18. package/build/es/index.typings.mjs +34 -42
  19. package/build/es/index.typings.mjs.map +1 -1
  20. package/build/es/meta.d.mts +210 -156
  21. package/build/es/meta.mjs +22 -41
  22. package/build/es/meta.mjs.map +1 -1
  23. package/build/{internal/es/online-programs-v3-program-programs.universal-GGCuynBJ.d.mts → es/online-programs-v3-program-programs.universal-s9OPdNxX.d.mts} +336 -275
  24. package/build/es/schemas.d.mts +1895 -0
  25. package/build/es/schemas.mjs +3093 -0
  26. package/build/es/schemas.mjs.map +1 -0
  27. package/build/internal/cjs/index.d.ts +78 -37
  28. package/build/internal/cjs/index.js +36 -45
  29. package/build/internal/cjs/index.js.map +1 -1
  30. package/build/internal/cjs/index.typings.d.ts +7 -4
  31. package/build/internal/cjs/index.typings.js +36 -45
  32. package/build/internal/cjs/index.typings.js.map +1 -1
  33. package/build/internal/cjs/meta.d.ts +210 -156
  34. package/build/internal/cjs/meta.js +22 -43
  35. package/build/internal/cjs/meta.js.map +1 -1
  36. package/build/{cjs/online-programs-v3-program-programs.universal-BIhPJqH-.d.ts → internal/cjs/online-programs-v3-program-programs.universal-s9OPdNxX.d.ts} +346 -257
  37. package/build/internal/cjs/schemas.d.ts +1895 -0
  38. package/build/internal/cjs/schemas.js +3155 -0
  39. package/build/internal/cjs/schemas.js.map +1 -0
  40. package/build/internal/es/index.d.mts +78 -37
  41. package/build/internal/es/index.mjs +34 -42
  42. package/build/internal/es/index.mjs.map +1 -1
  43. package/build/internal/es/index.typings.d.mts +7 -4
  44. package/build/internal/es/index.typings.mjs +34 -42
  45. package/build/internal/es/index.typings.mjs.map +1 -1
  46. package/build/internal/es/meta.d.mts +210 -156
  47. package/build/internal/es/meta.mjs +22 -41
  48. package/build/internal/es/meta.mjs.map +1 -1
  49. package/build/{es/online-programs-v3-program-programs.universal-BIhPJqH-.d.mts → internal/es/online-programs-v3-program-programs.universal-s9OPdNxX.d.mts} +346 -257
  50. package/build/internal/es/schemas.d.mts +1895 -0
  51. package/build/internal/es/schemas.mjs +3093 -0
  52. package/build/internal/es/schemas.mjs.map +1 -0
  53. package/package.json +12 -5
  54. package/schemas/package.json +3 -0
@@ -1,108 +1,149 @@
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 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, h as ProgramQuery, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-GGCuynBJ.js';
3
- export { j as AccessType, cR as AccessTypeWithLiterals, cJ as AccountInfo, bT as ActionEvent, cx as Address, cy as AddressHint, b4 as Aggregation, bk as AggregationData, b5 as AggregationKindOneOf, bD as AggregationResults, bE as AggregationResultsResultOneOf, br as AggregationResultsScalarResult, r as AggregationType, c$ as AggregationTypeWithLiterals, aj as App, aE as ApplicationError, bH as ArchiveProgramRequest, b_ as Asset, aF as BulkActionMetadata, l as BulkActionType, cT as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bJ as BulkUpdateProgramResult, bI as BulkUpdateProgramsRequest, cA as BusinessSchedule, cv as Categories, a3 as Certificate, da as CommonQueryWithEntityContext, db as CommonSearchWithEntityContext, cF as ConsentPolicy, a6 as ContentSummary, bK as CountProgramsRequest, ax as CreateProgramRequest, ay as CreateProgramResponse, aZ as CursorPaging, bj as CursorPagingMetadata, b2 as CursorSearch, b3 as CursorSearchPagingMethodOneOf, b0 as Cursors, an as CustomTag, bc as DateHistogramAggregation, bz as DateHistogramResult, bB as DateHistogramResults, F as DayOfWeek, d7 as DayOfWeekWithLiterals, ar as Delete, aG as DeleteAllProgramsMigrationRequest, aH as DeleteAllProgramsMigrationResponse, ae as DeleteByFilterOperation, ad as DeleteByIdsOperation, c2 as DeleteContext, aS as DeleteProgramRequest, aT as DeleteProgramResponse, x as DeleteStatus, d4 as DeleteStatusWithLiterals, H as Description, J as DescriptionMediaOneOf, ac as DocumentImage, ab as DocumentPayload, a9 as DocumentUpdateOperation, bN as DomainEvent, bO as DomainEventBodyOneOf, aI as DuplicateProgramRequest, aQ as DuplicatedSlugErrorDetails, bU as Empty, bG as EndProgramRequest, bP as EntityCreatedEvent, bS as EntityDeletedEvent, bR as EntityUpdatedEvent, k as Enum, cS as EnumWithLiterals, a4 as ExtendedFields, am as File, K as FocalPoint, cz as GeoCoordinates, aJ as GetProgramRequest, aK as GetProgramResponse, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, cH as IdentificationData, cI as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, aa as IndexDocument, I as Interval, c_ as IntervalWithLiterals, ah as InvalidateCache, ai as InvalidateCacheGetByOneOf, aD as ItemMetadata, $ as Keyword, bM as LabeledProgram, bL as ListSampleProgramsRequest, cw as Locale, cG as MessageEnvelope, bY as MetaSiteSpecialEvent, bZ as MetaSiteSpecialEventPayloadOneOf, bX as MissingMetasiteIdErrorDetails, p as MissingValues, cX as MissingValuesWithLiterals, s as Mode, d0 as ModeWithLiterals, Y as Money, cD as Multilingual, w as Namespace, cc as NamespaceChanged, d3 as NamespaceWithLiterals, bf as NestedAggregation, bd as NestedAggregationItem, be as NestedAggregationItemKindOneOf, bn as NestedAggregationResults, bo as NestedAggregationResultsResultOneOf, N as NestedAggregationType, cZ as NestedAggregationTypeWithLiterals, bw as NestedResultValue, bx as NestedResultValueResultOneOf, bC as NestedResults, bs as NestedValueAggregationResult, ch as OdeditorAssigned, ci as OdeditorUnassigned, ak as Page, aY as Paging, a$ as PagingMetadataV2, cj as PicassoAssigned, ck as PicassoUnassigned, z as PlacementType, d6 as PlacementTypeWithLiterals, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, cL as ProgramQuerySpec, cM as ProgramSearchSpec, cK as ProgramsQueryResult, cu as Properties, bF as PublishProgramRequest, aU as QueryProgramsRequest, a_ as QueryProgramsResponse, aV as QueryV2, aW as QueryV2PagingMethodOneOf, ba as RangeAggregation, bm as RangeAggregationResult, b6 as RangeBucket, bu as RangeResult, bq as RangeResults, ao as ReindexMessage, ap as ReindexMessageActionOneOf, G as ResolutionMethod, d8 as ResolutionMethodWithLiterals, bV as ResolveProgramSlugRequest, bW as ResolveProgramSlugResponse, bQ as RestoreInfo, X as Restrictions, R as RestrictionsAccessType, cP as RestrictionsAccessTypeWithLiterals, by as Results, a2 as Reward, bb as ScalarAggregation, bv as ScalarResult, q as ScalarType, cY as ScalarTypeWithLiterals, as as Schema, bi as SearchDetails, cr as SearchIndexingNotification, y as SearchIndexingNotificationState, d5 as SearchIndexingNotificationStateWithLiterals, b1 as SearchProgramsRequest, Z as Seo, _ as SeoSchema, c8 as ServiceProvisioned, c9 as ServiceRemoved, a1 as Settings, b$ as SiteCreated, v as SiteCreatedContext, d2 as SiteCreatedContextWithLiterals, c1 as SiteDeleted, cb as SiteHardDeleted, c6 as SiteMarkedAsTemplate, c7 as SiteMarkedAsWixSite, ct as SitePropertiesEvent, cs as SitePropertiesUpdated, c4 as SitePublished, cg as SitePurgedExternally, ca as SiteRenamed, c0 as SiteTransferred, c3 as SiteUndeleted, c5 as SiteUnpublished, cf as SiteUrlChanged, o as SortDirection, cW as SortDirectionWithLiterals, m as SortOrder, cU as SortOrderWithLiterals, n as SortType, cV as SortTypeWithLiterals, aX as Sorting, cC as SpecialHourPeriod, u as State, d1 as StateWithLiterals, i as Status, cO as StatusWithLiterals, cd as StudioAssigned, cn as StudioTwoAssigned, co as StudioTwoUnassigned, ce as StudioUnassigned, cE as SupportedLanguage, a0 as Tag, cB as TimePeriod, Q as Timeline, aR as TimelineSwitchForbiddenErrorDetails, T as Trigger, cQ 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, cq as UserDomainMediaDisabled, cp as UserDomainMediaEnabled, V as V3State, cN as V3StateWithLiterals, b8 as ValueAggregation, b9 as ValueAggregationOptionsOneOf, bl as ValueAggregationResult, bt as ValueResult, bp as ValueResults, O as VideoResolution, a5 as VideoStepsSettings, W as WebhookIdentityType, d9 as WebhookIdentityTypeWithLiterals, cl as WixelAssigned, cm as WixelUnassigned, aP as WrongParticipantsNumberErrorDetails, aO as WrongStartDateErrorDetails, aN as WrongStateErrorDetails } from './online-programs-v3-program-programs.universal-GGCuynBJ.js';
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, h as ProgramQuery, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-s9OPdNxX.js';
3
+ export { j as AccessType, cR as AccessTypeWithLiterals, cL as AccountInfo, bT as ActionEvent, cz as Address, cA as AddressHint, b4 as Aggregation, bk as AggregationData, b5 as AggregationKindOneOf, bD as AggregationResults, bE as AggregationResultsResultOneOf, br as AggregationResultsScalarResult, r as AggregationType, d0 as AggregationTypeWithLiterals, ah as App, aE as ApplicationError, bH as ArchiveProgramRequest, b_ as Asset, aF as BulkActionMetadata, l as BulkActionType, cU as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bJ as BulkUpdateProgramResult, bI as BulkUpdateProgramsRequest, cC as BusinessSchedule, cx as Categories, a1 as Certificate, db as CommonQueryWithEntityContext, dc as CommonSearchWithEntityContext, cH as ConsentPolicy, a4 as ContentSummary, bK as CountProgramsRequest, ax as CreateProgramRequest, ay as CreateProgramResponse, aZ as CursorPaging, bj as CursorPagingMetadata, b2 as CursorSearch, b3 as CursorSearchPagingMethodOneOf, b0 as Cursors, al as CustomTag, bc as DateHistogramAggregation, bz as DateHistogramResult, bB as DateHistogramResults, F as DayOfWeek, d8 as DayOfWeekWithLiterals, ar as Delete, aG as DeleteAllProgramsMigrationRequest, aH as DeleteAllProgramsMigrationResponse, ac as DeleteByFilterOperation, ab as DeleteByIdsOperation, c2 as DeleteContext, aS as DeleteProgramRequest, aT as DeleteProgramResponse, x as DeleteStatus, d5 as DeleteStatusWithLiterals, G as Description, H as DescriptionMediaOneOf, aa as DocumentImage, a9 as DocumentPayload, a7 as DocumentUpdateOperation, bN as DomainEvent, bO as DomainEventBodyOneOf, aI as DuplicateProgramRequest, aQ as DuplicatedSlugErrorDetails, cr as EditorlessAssigned, cs as EditorlessUnassigned, bU as Empty, bG as EndProgramRequest, bP as EntityCreatedEvent, bS as EntityDeletedEvent, bR as EntityUpdatedEvent, k as Enum, cT as EnumWithLiterals, a2 as ExtendedFields, ak as File, J as FocalPoint, cB as GeoCoordinates, aJ as GetProgramRequest, aK as GetProgramResponse, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, cJ as IdentificationData, cK as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, a8 as IndexDocument, I as Interval, c$ as IntervalWithLiterals, af as InvalidateCache, ag as InvalidateCacheGetByOneOf, aD as ItemMetadata, Z as Keyword, bM as LabeledProgram, bL as ListSampleProgramsRequest, cy as Locale, cI as MessageEnvelope, bY as MetaSiteSpecialEvent, bZ as MetaSiteSpecialEventPayloadOneOf, bX as MissingMetasiteIdErrorDetails, p as MissingValues, cY as MissingValuesWithLiterals, s as Mode, d1 as ModeWithLiterals, Q as Money, cF as Multilingual, w as Namespace, cc as NamespaceChanged, d4 as NamespaceWithLiterals, bf as NestedAggregation, bd as NestedAggregationItem, be as NestedAggregationItemKindOneOf, bn as NestedAggregationResults, bo as NestedAggregationResultsResultOneOf, N as NestedAggregationType, c_ as NestedAggregationTypeWithLiterals, bw as NestedResultValue, bx as NestedResultValueResultOneOf, bC as NestedResults, bs as NestedValueAggregationResult, ch as OdeditorAssigned, ci as OdeditorUnassigned, ai as Page, am as Pages, aY as Paging, a$ as PagingMetadataV2, cj as PicassoAssigned, ck as PicassoUnassigned, z as PlacementType, d7 as PlacementTypeWithLiterals, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, cN as ProgramQuerySpec, cO as ProgramSearchSpec, cM as ProgramsQueryResult, cw as Properties, bF as PublishProgramRequest, aU as QueryProgramsRequest, a_ as QueryProgramsResponse, aV as QueryV2, aW as QueryV2PagingMethodOneOf, ba as RangeAggregation, bm as RangeAggregationResult, b6 as RangeBucket, bu as RangeResult, bq as RangeResults, ao as ReindexMessage, ap as ReindexMessageActionOneOf, R as ResolutionMethod, d9 as ResolutionMethodWithLiterals, bV as ResolveProgramSlugRequest, bW as ResolveProgramSlugResponse, bQ as RestoreInfo, O as Restrictions, by as Results, a0 as Reward, bb as ScalarAggregation, bv as ScalarResult, q as ScalarType, cZ as ScalarTypeWithLiterals, as as Schema, bi as SearchDetails, ct as SearchIndexingNotification, y as SearchIndexingNotificationState, d6 as SearchIndexingNotificationStateWithLiterals, b1 as SearchProgramsRequest, X as Seo, Y as SeoSchema, c8 as ServiceProvisioned, c9 as ServiceRemoved, $ as Settings, b$ as SiteCreated, v as SiteCreatedContext, d3 as SiteCreatedContextWithLiterals, c1 as SiteDeleted, cb as SiteHardDeleted, c6 as SiteMarkedAsTemplate, c7 as SiteMarkedAsWixSite, cv as SitePropertiesEvent, cu as SitePropertiesUpdated, c4 as SitePublished, cg as SitePurgedExternally, ca as SiteRenamed, c0 as SiteTransferred, c3 as SiteUndeleted, c5 as SiteUnpublished, cf as SiteUrlChanged, o as SortDirection, cX as SortDirectionWithLiterals, m as SortOrder, cV as SortOrderWithLiterals, n as SortType, cW as SortTypeWithLiterals, aX as Sorting, cE as SpecialHourPeriod, u as State, d2 as StateWithLiterals, i as Status, cQ as StatusWithLiterals, cd as StudioAssigned, cn as StudioTwoAssigned, co as StudioTwoUnassigned, ce as StudioUnassigned, cG as SupportedLanguage, _ as Tag, cD as TimePeriod, K as Timeline, aR as TimelineSwitchForbiddenErrorDetails, T as Trigger, cS as TriggerWithLiterals, aj as URI, an as URIs, ad as UpdateByFilterOperation, a5 as UpdateDocumentsEvent, a6 as UpdateDocumentsEventOperationOneOf, ae as UpdateExistingOperation, aL as UpdateProgramRequest, aM as UpdateProgramResponse, aq as Upsert, cq as UserDomainMediaDisabled, cp as UserDomainMediaEnabled, b8 as ValueAggregation, b9 as ValueAggregationOptionsOneOf, bl as ValueAggregationResult, bt as ValueResult, bp as ValueResults, V as VideoResolution, a3 as VideoStepsSettings, W as WebhookIdentityType, da as WebhookIdentityTypeWithLiterals, cl as WixelAssigned, cm as WixelUnassigned, aP as WrongParticipantsNumberErrorDetails, aO as WrongStartDateErrorDetails, aN as WrongStateErrorDetails, cP as utils } from './online-programs-v3-program-programs.universal-s9OPdNxX.js';
4
4
 
5
5
  declare function createProgram$1(httpClient: HttpClient): CreateProgramSignature;
6
6
  interface CreateProgramSignature {
7
7
  /**
8
- * Creates a Program.
9
- * @param - Program to be created.
10
- * @returns The created Program.
8
+ * Creates a draft program.
9
+ *
10
+ * The service sets the program ID, revision, creation dates, owner, and initial
11
+ * `DRAFT` status. Publish the program when it's ready to be visible
12
+ * according to its access restrictions.
13
+ * @param - Program to create. Server-generated fields such as `id`, `revision`, status, dates, owner, and content summary are ignored on create.
14
+ * @returns Created draft program.
11
15
  */
12
- (program: Program): Promise<NonNullablePaths<Program, `state` | `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `accessType` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7>>;
16
+ (program: Program): Promise<NonNullablePaths<Program, `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7>>;
13
17
  }
14
18
  declare function duplicateProgram$1(httpClient: HttpClient): DuplicateProgramSignature;
15
19
  interface DuplicateProgramSignature {
16
20
  /**
17
- * Duplicates the Program. Leaves certificate template, but removes social group.
18
- * @param - Program to be duplicated from.
21
+ * Duplicates a program as a new draft.
22
+ *
23
+ * The duplicated program gets a new ID and owner, starts in `DRAFT` status,
24
+ * keeps category assignments and translation content, resets the SEO slug to
25
+ * the duplicated program ID, clears the connected social group, and doesn't
26
+ * copy section or step references.
27
+ * @param - ID of the program to duplicate.
19
28
  */
20
- (programId: string): Promise<NonNullablePaths<DuplicateProgramResponse, `program.state` | `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.accessType` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
29
+ (programId: string): Promise<NonNullablePaths<DuplicateProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
21
30
  }
22
31
  declare function getProgram$1(httpClient: HttpClient): GetProgramSignature;
23
32
  interface GetProgramSignature {
24
33
  /**
25
- * Retrieves a Program.
26
- * @param - ID of the Program to retrieve.
27
- * @returns The requested Program.
34
+ * Retrieves a program by ID.
35
+ *
36
+ * Visibility depends on caller identity and program access settings. Public
37
+ * callers can retrieve published and ended non-secret programs. Site members
38
+ * can retrieve secret programs only when they participate in them. Trusted apps
39
+ * and services can retrieve management views.
40
+ * @param - ID of the program to retrieve.
41
+ * @returns Requested program.
28
42
  */
29
- (programId: string): Promise<NonNullablePaths<Program, `state` | `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `accessType` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7>>;
43
+ (programId: string): Promise<NonNullablePaths<Program, `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7>>;
30
44
  }
31
45
  declare function updateProgram$1(httpClient: HttpClient): UpdateProgramSignature;
32
46
  interface UpdateProgramSignature {
33
47
  /**
34
- * Updates a Program.
48
+ * Updates selected fields of a program.
49
+ *
50
+ * Each time the program is updated, `revision` increments by 1. The current
51
+ * `revision` must be passed when updating the program. This ensures you're
52
+ * working with the latest program and prevents unintended overwrites.
53
+ *
54
+ * Ended and archived programs can't be updated. Timeline changes are blocked
55
+ * when the program has active participants.
35
56
  * @param - Program ID.
36
- * @returns Updated Program.
57
+ * @returns Updated program.
37
58
  */
38
- (_id: string, program: NonNullablePaths<UpdateProgram, `revision`, 2>): Promise<NonNullablePaths<Program, `state` | `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `accessType` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7> & {
59
+ (_id: string, program: NonNullablePaths<UpdateProgram, `revision`, 2>): Promise<NonNullablePaths<Program, `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7> & {
39
60
  __applicationErrorsType?: UpdateProgramApplicationErrors;
40
61
  }>;
41
62
  }
42
63
  declare function deleteProgram$1(httpClient: HttpClient): DeleteProgramSignature;
43
64
  interface DeleteProgramSignature {
44
65
  /**
45
- * Deletes a Program.
46
- * Deleting a Program permanently removes them from the Program List.
47
- * @param - Id of the Program to delete.
66
+ * Deletes a program.
67
+ *
68
+ * Deleting a program permanently removes it from the program list, cancels its
69
+ * scheduled end task, removes related member groups, and removes it from search.
70
+ * @param - ID of the program to delete.
48
71
  */
49
72
  (programId: string): Promise<void>;
50
73
  }
51
74
  declare function searchPrograms$1(httpClient: HttpClient): SearchProgramsSignature;
52
75
  interface SearchProgramsSignature {
53
76
  /**
54
- * Retrieves a list of programs according to search criteria
55
- * @param - Query to search programs
77
+ * Searches programs by title and structured filters.
78
+ *
79
+ * Use this method when you need full-text search over `description.title`.
80
+ * Results are visibility-filtered according to the caller identity.
81
+ * @param - Search expression, filters, sorting, and cursor paging options.
56
82
  */
57
- (search: ProgramSearch): Promise<NonNullablePaths<SearchProgramsResponse, `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` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
83
+ (search: ProgramSearch): Promise<NonNullablePaths<SearchProgramsResponse, `programs` | `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}.shouldSendInvoice` | `programs.${number}.videoStepsSettings.autoNavigate` | `programs.${number}.videoStepsSettings.requiredCompletionPercentage` | `programs.${number}.contentSummary.stepCount` | `programs.${number}.contentSummary.sectionCount` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
58
84
  }
59
85
  declare function publishProgram$1(httpClient: HttpClient): PublishProgramSignature;
60
86
  interface PublishProgramSignature {
61
87
  /**
62
- * Publishes draft program. In other state returns program as is.
63
- * @param - Program to publish
88
+ * Publishes a draft program.
89
+ *
90
+ * A scheduled program can't be published when its start date is in the past.
91
+ * If the program has an end date, the service schedules an automatic transition
92
+ * to `ENDED` using the site's timezone.
93
+ * @param - ID of the draft program to publish.
64
94
  */
65
- (programId: string): Promise<NonNullablePaths<PublishProgramResponse, `program.state` | `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.accessType` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8> & {
95
+ (programId: string): Promise<NonNullablePaths<PublishProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8> & {
66
96
  __applicationErrorsType?: PublishProgramApplicationErrors;
67
97
  }>;
68
98
  }
69
99
  declare function endProgram$1(httpClient: HttpClient): EndProgramSignature;
70
100
  interface EndProgramSignature {
71
101
  /**
72
- * Ends program.
73
- * @param - Program to finish
102
+ * Ends a published program.
103
+ *
104
+ * Ending a program changes its status to `ENDED` and cancels any scheduled end
105
+ * task. The operation succeeds only for currently published programs.
106
+ * @param - ID of the published program to end.
74
107
  */
75
- (programId: string): Promise<NonNullablePaths<EndProgramResponse, `program.state` | `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.accessType` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
108
+ (programId: string): Promise<NonNullablePaths<EndProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
76
109
  }
77
110
  declare function archiveProgram$1(httpClient: HttpClient): ArchiveProgramSignature;
78
111
  interface ArchiveProgramSignature {
79
112
  /**
80
- * Archives program
81
- * @param - Program to archive
113
+ * Archives a program.
114
+ *
115
+ * Archiving closes the program, removes it from normal public discovery, and
116
+ * replaces its SEO slug with the program ID so the previous slug can be reused.
117
+ * @param - ID of the program to archive.
82
118
  */
83
- (programId: string): Promise<NonNullablePaths<ArchiveProgramResponse, `program.state` | `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.accessType` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
119
+ (programId: string): Promise<NonNullablePaths<ArchiveProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
84
120
  }
85
121
  declare function bulkUpdatePrograms$1(httpClient: HttpClient): BulkUpdateProgramsSignature;
86
122
  interface BulkUpdateProgramsSignature {
87
123
  /**
88
- * Update multiple Programs in a single request. Works synchronously.
89
- * @param - List of programs you want to update
124
+ * Updates multiple programs in a single synchronous request.
125
+ *
126
+ * Each item includes its own program data and revision. Set `returnEntity` to
127
+ * return updated programs in the response.
128
+ * @param - Programs to update. Each item contains partial program data.
90
129
  */
91
- (programs: NonNullablePaths<MaskedProgram, `program.revision`, 3>[], options?: BulkUpdateProgramsOptions): Promise<NonNullablePaths<BulkUpdateProgramsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.state` | `results.${number}.item.status` | `results.${number}.item.description.title` | `results.${number}.item.timeline.selfPaced` | `results.${number}.item.restrictions.hideFutureSteps` | `results.${number}.item.restrictions.resolveStepsInOrder` | `results.${number}.item.restrictions.shareProgress` | `results.${number}.item.restrictions.accessType` | `results.${number}.item.price.value` | `results.${number}.item.price.currency` | `results.${number}.item.seo.slug` | `results.${number}.item.seo.imageAlt` | `results.${number}.item.seo.courseWorkload` | `results.${number}.item.accessType` | `results.${number}.item.shouldSendInvoice` | `results.${number}.item.videoStepsSettings.autoNavigate` | `results.${number}.item.videoStepsSettings.requiredCompletionPercentage` | `results.${number}.item.contentSummary.stepCount` | `results.${number}.item.contentSummary.sectionCount` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
130
+ (programs: NonNullablePaths<MaskedProgram, `program.revision`, 3>[], options?: BulkUpdateProgramsOptions): Promise<NonNullablePaths<BulkUpdateProgramsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.status` | `results.${number}.item.description.title` | `results.${number}.item.timeline.selfPaced` | `results.${number}.item.restrictions.hideFutureSteps` | `results.${number}.item.restrictions.resolveStepsInOrder` | `results.${number}.item.restrictions.shareProgress` | `results.${number}.item.restrictions.accessType` | `results.${number}.item.price.value` | `results.${number}.item.price.currency` | `results.${number}.item.seo.slug` | `results.${number}.item.seo.imageAlt` | `results.${number}.item.seo.courseWorkload` | `results.${number}.item.shouldSendInvoice` | `results.${number}.item.videoStepsSettings.autoNavigate` | `results.${number}.item.videoStepsSettings.requiredCompletionPercentage` | `results.${number}.item.contentSummary.stepCount` | `results.${number}.item.contentSummary.sectionCount` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
92
131
  }
93
132
  declare function countPrograms$1(httpClient: HttpClient): CountProgramsSignature;
94
133
  interface CountProgramsSignature {
95
134
  /**
96
- * Counts programs matching the filter
135
+ * Counts programs that match a filter.
136
+ *
137
+ * Results use the same visibility rules as `QueryPrograms`.
97
138
  */
98
139
  (options?: CountProgramsOptions): Promise<NonNullablePaths<CountProgramsResponse, `count`, 2>>;
99
140
  }
100
141
  declare function listSamplePrograms$1(httpClient: HttpClient): ListSampleProgramsSignature;
101
142
  interface ListSampleProgramsSignature {
102
143
  /**
103
- * Returns list of sample programs.
144
+ * Lists sample programs used as templates for creating new programs.
104
145
  */
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>>;
146
+ (): Promise<NonNullablePaths<ListSampleProgramsResponse, `programs` | `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.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>>;
106
147
  }
107
148
 
108
149
  declare function customQueryPrograms(httpClient: HttpClient): {
@@ -33,7 +33,6 @@ __export(index_exports, {
33
33
  NestedAggregationType: () => NestedAggregationType,
34
34
  PlacementType: () => PlacementType,
35
35
  ResolutionMethod: () => ResolutionMethod,
36
- RestrictionsAccessType: () => RestrictionsAccessType,
37
36
  ScalarType: () => ScalarType,
38
37
  SearchIndexingNotificationState: () => SearchIndexingNotificationState,
39
38
  SiteCreatedContext: () => SiteCreatedContext,
@@ -43,7 +42,6 @@ __export(index_exports, {
43
42
  State: () => State,
44
43
  Status: () => Status,
45
44
  Trigger: () => Trigger,
46
- V3State: () => V3State,
47
45
  WebhookIdentityType: () => WebhookIdentityType,
48
46
  archiveProgram: () => archiveProgram4,
49
47
  bulkUpdatePrograms: () => bulkUpdatePrograms4,
@@ -57,7 +55,8 @@ __export(index_exports, {
57
55
  publishProgram: () => publishProgram4,
58
56
  queryPrograms: () => queryPrograms4,
59
57
  searchPrograms: () => searchPrograms4,
60
- updateProgram: () => updateProgram4
58
+ updateProgram: () => updateProgram4,
59
+ utils: () => utils
61
60
  });
62
61
  module.exports = __toCommonJS(index_exports);
63
62
 
@@ -99,6 +98,20 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
99
98
  {
100
99
  srcPath: "/_api/programs-service",
101
100
  destPath: ""
101
+ },
102
+ {
103
+ srcPath: "/online-programs/v3/programs",
104
+ destPath: "/v3/programs"
105
+ },
106
+ {
107
+ srcPath: "/online-programs/v3/bulk/programs",
108
+ destPath: "/v3/bulk/programs"
109
+ }
110
+ ],
111
+ "*.dev.wix-code.com": [
112
+ {
113
+ srcPath: "/online-programs/v3/programs",
114
+ destPath: "/v3/programs"
102
115
  }
103
116
  ]
104
117
  };
@@ -113,7 +126,6 @@ function createProgram(payload) {
113
126
  paths: [
114
127
  { path: "program.createdDate" },
115
128
  { path: "program.updatedDate" },
116
- { path: "program.stateUpdatedDate" },
117
129
  { path: "program.statusUpdatedDate" },
118
130
  { path: "program.description.image.urlExpirationDate" },
119
131
  { path: "program.description.video.urlExpirationDate" },
@@ -158,7 +170,6 @@ function createProgram(payload) {
158
170
  paths: [
159
171
  { path: "program.createdDate" },
160
172
  { path: "program.updatedDate" },
161
- { path: "program.stateUpdatedDate" },
162
173
  { path: "program.statusUpdatedDate" },
163
174
  { path: "program.description.image.urlExpirationDate" },
164
175
  { path: "program.description.video.urlExpirationDate" },
@@ -218,7 +229,6 @@ function duplicateProgram(payload) {
218
229
  paths: [
219
230
  { path: "program.createdDate" },
220
231
  { path: "program.updatedDate" },
221
- { path: "program.stateUpdatedDate" },
222
232
  { path: "program.statusUpdatedDate" },
223
233
  { path: "program.description.image.urlExpirationDate" },
224
234
  { path: "program.description.video.urlExpirationDate" },
@@ -278,7 +288,6 @@ function getProgram(payload) {
278
288
  paths: [
279
289
  { path: "program.createdDate" },
280
290
  { path: "program.updatedDate" },
281
- { path: "program.stateUpdatedDate" },
282
291
  { path: "program.statusUpdatedDate" },
283
292
  { path: "program.description.image.urlExpirationDate" },
284
293
  { path: "program.description.video.urlExpirationDate" },
@@ -328,7 +337,6 @@ function updateProgram(payload) {
328
337
  paths: [
329
338
  { path: "program.createdDate" },
330
339
  { path: "program.updatedDate" },
331
- { path: "program.stateUpdatedDate" },
332
340
  { path: "program.statusUpdatedDate" },
333
341
  { path: "program.description.image.urlExpirationDate" },
334
342
  { path: "program.description.video.urlExpirationDate" },
@@ -373,7 +381,6 @@ function updateProgram(payload) {
373
381
  paths: [
374
382
  { path: "program.createdDate" },
375
383
  { path: "program.updatedDate" },
376
- { path: "program.stateUpdatedDate" },
377
384
  { path: "program.statusUpdatedDate" },
378
385
  { path: "program.description.image.urlExpirationDate" },
379
386
  { path: "program.description.video.urlExpirationDate" },
@@ -454,7 +461,6 @@ function queryPrograms(payload) {
454
461
  paths: [
455
462
  { path: "programs.createdDate" },
456
463
  { path: "programs.updatedDate" },
457
- { path: "programs.stateUpdatedDate" },
458
464
  { path: "programs.statusUpdatedDate" },
459
465
  { path: "programs.description.image.urlExpirationDate" },
460
466
  { path: "programs.description.video.urlExpirationDate" },
@@ -529,7 +535,6 @@ function searchPrograms(payload) {
529
535
  paths: [
530
536
  { path: "programs.createdDate" },
531
537
  { path: "programs.updatedDate" },
532
- { path: "programs.stateUpdatedDate" },
533
538
  { path: "programs.statusUpdatedDate" },
534
539
  { path: "programs.description.image.urlExpirationDate" },
535
540
  { path: "programs.description.video.urlExpirationDate" },
@@ -610,7 +615,6 @@ function publishProgram(payload) {
610
615
  paths: [
611
616
  { path: "program.createdDate" },
612
617
  { path: "program.updatedDate" },
613
- { path: "program.stateUpdatedDate" },
614
618
  { path: "program.statusUpdatedDate" },
615
619
  { path: "program.description.image.urlExpirationDate" },
616
620
  { path: "program.description.video.urlExpirationDate" },
@@ -670,7 +674,6 @@ function endProgram(payload) {
670
674
  paths: [
671
675
  { path: "program.createdDate" },
672
676
  { path: "program.updatedDate" },
673
- { path: "program.stateUpdatedDate" },
674
677
  { path: "program.statusUpdatedDate" },
675
678
  { path: "program.description.image.urlExpirationDate" },
676
679
  { path: "program.description.video.urlExpirationDate" },
@@ -730,7 +733,6 @@ function archiveProgram(payload) {
730
733
  paths: [
731
734
  { path: "program.createdDate" },
732
735
  { path: "program.updatedDate" },
733
- { path: "program.stateUpdatedDate" },
734
736
  { path: "program.statusUpdatedDate" },
735
737
  { path: "program.description.image.urlExpirationDate" },
736
738
  { path: "program.description.video.urlExpirationDate" },
@@ -780,7 +782,6 @@ function bulkUpdatePrograms(payload) {
780
782
  paths: [
781
783
  { path: "programs.program.createdDate" },
782
784
  { path: "programs.program.updatedDate" },
783
- { path: "programs.program.stateUpdatedDate" },
784
785
  { path: "programs.program.statusUpdatedDate" },
785
786
  { path: "programs.program.description.image.urlExpirationDate" },
786
787
  { path: "programs.program.description.video.urlExpirationDate" },
@@ -835,7 +836,6 @@ function bulkUpdatePrograms(payload) {
835
836
  paths: [
836
837
  { path: "results.item.createdDate" },
837
838
  { path: "results.item.updatedDate" },
838
- { path: "results.item.stateUpdatedDate" },
839
839
  { path: "results.item.statusUpdatedDate" },
840
840
  { path: "results.item.description.image.urlExpirationDate" },
841
841
  { path: "results.item.description.video.urlExpirationDate" },
@@ -918,7 +918,6 @@ function listSamplePrograms(payload) {
918
918
  paths: [
919
919
  { path: "programs.program.createdDate" },
920
920
  { path: "programs.program.updatedDate" },
921
- { path: "programs.program.stateUpdatedDate" },
922
921
  { path: "programs.program.statusUpdatedDate" },
923
922
  { path: "programs.program.description.image.urlExpirationDate" },
924
923
  { path: "programs.program.description.video.urlExpirationDate" },
@@ -971,40 +970,27 @@ var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
971
970
  var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
972
971
  var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
973
972
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
974
- var V3State = /* @__PURE__ */ ((V3State2) => {
975
- V3State2["DRAFT"] = "DRAFT";
976
- V3State2["PUBLISHED"] = "PUBLISHED";
977
- V3State2["ENDED"] = "ENDED";
978
- V3State2["ARCHIVED"] = "ARCHIVED";
979
- return V3State2;
980
- })(V3State || {});
973
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
974
+ var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
981
975
  var Status = /* @__PURE__ */ ((Status2) => {
982
- Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
983
976
  Status2["DRAFT"] = "DRAFT";
984
977
  Status2["PUBLISHED"] = "PUBLISHED";
985
978
  Status2["ENDED"] = "ENDED";
986
979
  Status2["ARCHIVED"] = "ARCHIVED";
987
980
  return Status2;
988
981
  })(Status || {});
989
- var RestrictionsAccessType = /* @__PURE__ */ ((RestrictionsAccessType2) => {
990
- RestrictionsAccessType2["UNKNOWN_ACCESS_TYPE"] = "UNKNOWN_ACCESS_TYPE";
991
- RestrictionsAccessType2["PUBLIC"] = "PUBLIC";
992
- RestrictionsAccessType2["PRIVATE"] = "PRIVATE";
993
- RestrictionsAccessType2["SECRET"] = "SECRET";
994
- return RestrictionsAccessType2;
995
- })(RestrictionsAccessType || {});
996
- var Trigger = /* @__PURE__ */ ((Trigger2) => {
997
- Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
998
- Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
999
- Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
1000
- return Trigger2;
1001
- })(Trigger || {});
1002
982
  var AccessType = /* @__PURE__ */ ((AccessType2) => {
1003
983
  AccessType2["PUBLIC"] = "PUBLIC";
1004
984
  AccessType2["PRIVATE"] = "PRIVATE";
1005
985
  AccessType2["SECRET"] = "SECRET";
1006
986
  return AccessType2;
1007
987
  })(AccessType || {});
988
+ var Trigger = /* @__PURE__ */ ((Trigger2) => {
989
+ Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
990
+ Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
991
+ Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
992
+ return Trigger2;
993
+ })(Trigger || {});
1008
994
  var Enum = /* @__PURE__ */ ((Enum2) => {
1009
995
  Enum2["UNKNOWN"] = "UNKNOWN";
1010
996
  Enum2["PROTECTED"] = "PROTECTED";
@@ -1042,14 +1028,12 @@ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
1042
1028
  return MissingValues2;
1043
1029
  })(MissingValues || {});
1044
1030
  var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
1045
- ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
1046
1031
  ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
1047
1032
  ScalarType2["MIN"] = "MIN";
1048
1033
  ScalarType2["MAX"] = "MAX";
1049
1034
  return ScalarType2;
1050
1035
  })(ScalarType || {});
1051
1036
  var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
1052
- NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
1053
1037
  NestedAggregationType2["VALUE"] = "VALUE";
1054
1038
  NestedAggregationType2["RANGE"] = "RANGE";
1055
1039
  NestedAggregationType2["SCALAR"] = "SCALAR";
@@ -1057,7 +1041,6 @@ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
1057
1041
  return NestedAggregationType2;
1058
1042
  })(NestedAggregationType || {});
1059
1043
  var Interval = /* @__PURE__ */ ((Interval2) => {
1060
- Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
1061
1044
  Interval2["YEAR"] = "YEAR";
1062
1045
  Interval2["MONTH"] = "MONTH";
1063
1046
  Interval2["WEEK"] = "WEEK";
@@ -1068,7 +1051,6 @@ var Interval = /* @__PURE__ */ ((Interval2) => {
1068
1051
  return Interval2;
1069
1052
  })(Interval || {});
1070
1053
  var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
1071
- AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
1072
1054
  AggregationType2["VALUE"] = "VALUE";
1073
1055
  AggregationType2["RANGE"] = "RANGE";
1074
1056
  AggregationType2["SCALAR"] = "SCALAR";
@@ -1132,6 +1114,8 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
1132
1114
  Namespace2["TWINS"] = "TWINS";
1133
1115
  Namespace2["NANO"] = "NANO";
1134
1116
  Namespace2["BASE44"] = "BASE44";
1117
+ Namespace2["CHANNELS"] = "CHANNELS";
1118
+ Namespace2["NAUTILUS"] = "NAUTILUS";
1135
1119
  return Namespace2;
1136
1120
  })(Namespace || {});
1137
1121
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
@@ -1484,6 +1468,14 @@ async function typedQueryPrograms(query) {
1484
1468
  throw transformedError;
1485
1469
  }
1486
1470
  }
1471
+ var utils = {
1472
+ query: {
1473
+ ...(0, import_query_builder_utils.createQueryUtils)()
1474
+ },
1475
+ search: {
1476
+ ...(0, import_search_builder_utils.createSearchUtils)()
1477
+ }
1478
+ };
1487
1479
  async function searchPrograms2(search) {
1488
1480
  const { httpClient, sideEffects } = arguments[1];
1489
1481
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
@@ -1908,7 +1900,6 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1908
1900
  NestedAggregationType,
1909
1901
  PlacementType,
1910
1902
  ResolutionMethod,
1911
- RestrictionsAccessType,
1912
1903
  ScalarType,
1913
1904
  SearchIndexingNotificationState,
1914
1905
  SiteCreatedContext,
@@ -1918,7 +1909,6 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1918
1909
  State,
1919
1910
  Status,
1920
1911
  Trigger,
1921
- V3State,
1922
1912
  WebhookIdentityType,
1923
1913
  archiveProgram,
1924
1914
  bulkUpdatePrograms,
@@ -1932,6 +1922,7 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1932
1922
  publishProgram,
1933
1923
  queryPrograms,
1934
1924
  searchPrograms,
1935
- updateProgram
1925
+ updateProgram,
1926
+ utils
1936
1927
  });
1937
1928
  //# sourceMappingURL=index.js.map