@wix/auto_sdk_online-programs_programs 1.0.18 → 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 +35 -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 +35 -45
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +208 -156
  8. package/build/cjs/meta.js +21 -43
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/{internal/cjs/online-programs-v3-program-programs.universal-DYH-_E7Y.d.ts → cjs/online-programs-v3-program-programs.universal-s9OPdNxX.d.ts} +334 -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 +33 -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 +33 -42
  19. package/build/es/index.typings.mjs.map +1 -1
  20. package/build/es/meta.d.mts +208 -156
  21. package/build/es/meta.mjs +21 -41
  22. package/build/es/meta.mjs.map +1 -1
  23. package/build/{internal/es/online-programs-v3-program-programs.universal-DYH-_E7Y.d.mts → es/online-programs-v3-program-programs.universal-s9OPdNxX.d.mts} +334 -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 +35 -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 +35 -45
  32. package/build/internal/cjs/index.typings.js.map +1 -1
  33. package/build/internal/cjs/meta.d.ts +208 -156
  34. package/build/internal/cjs/meta.js +21 -43
  35. package/build/internal/cjs/meta.js.map +1 -1
  36. package/build/{cjs/online-programs-v3-program-programs.universal-nj9IWrAz.d.ts → internal/cjs/online-programs-v3-program-programs.universal-s9OPdNxX.d.ts} +344 -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 +33 -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 +33 -42
  45. package/build/internal/es/index.typings.mjs.map +1 -1
  46. package/build/internal/es/meta.d.mts +208 -156
  47. package/build/internal/es/meta.mjs +21 -41
  48. package/build/internal/es/meta.mjs.map +1 -1
  49. package/build/{es/online-programs-v3-program-programs.universal-nj9IWrAz.d.mts → internal/es/online-programs-v3-program-programs.universal-s9OPdNxX.d.mts} +344 -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-nj9IWrAz.mjs';
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-nj9IWrAz.mjs';
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.mjs';
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.mjs';
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): {
@@ -39,6 +39,20 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
39
39
  {
40
40
  srcPath: "/_api/programs-service",
41
41
  destPath: ""
42
+ },
43
+ {
44
+ srcPath: "/online-programs/v3/programs",
45
+ destPath: "/v3/programs"
46
+ },
47
+ {
48
+ srcPath: "/online-programs/v3/bulk/programs",
49
+ destPath: "/v3/bulk/programs"
50
+ }
51
+ ],
52
+ "*.dev.wix-code.com": [
53
+ {
54
+ srcPath: "/online-programs/v3/programs",
55
+ destPath: "/v3/programs"
42
56
  }
43
57
  ]
44
58
  };
@@ -53,7 +67,6 @@ function createProgram(payload) {
53
67
  paths: [
54
68
  { path: "program.createdDate" },
55
69
  { path: "program.updatedDate" },
56
- { path: "program.stateUpdatedDate" },
57
70
  { path: "program.statusUpdatedDate" },
58
71
  { path: "program.description.image.urlExpirationDate" },
59
72
  { path: "program.description.video.urlExpirationDate" },
@@ -98,7 +111,6 @@ function createProgram(payload) {
98
111
  paths: [
99
112
  { path: "program.createdDate" },
100
113
  { path: "program.updatedDate" },
101
- { path: "program.stateUpdatedDate" },
102
114
  { path: "program.statusUpdatedDate" },
103
115
  { path: "program.description.image.urlExpirationDate" },
104
116
  { path: "program.description.video.urlExpirationDate" },
@@ -158,7 +170,6 @@ function duplicateProgram(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 getProgram(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" },
@@ -268,7 +278,6 @@ function updateProgram(payload) {
268
278
  paths: [
269
279
  { path: "program.createdDate" },
270
280
  { path: "program.updatedDate" },
271
- { path: "program.stateUpdatedDate" },
272
281
  { path: "program.statusUpdatedDate" },
273
282
  { path: "program.description.image.urlExpirationDate" },
274
283
  { path: "program.description.video.urlExpirationDate" },
@@ -313,7 +322,6 @@ function updateProgram(payload) {
313
322
  paths: [
314
323
  { path: "program.createdDate" },
315
324
  { path: "program.updatedDate" },
316
- { path: "program.stateUpdatedDate" },
317
325
  { path: "program.statusUpdatedDate" },
318
326
  { path: "program.description.image.urlExpirationDate" },
319
327
  { path: "program.description.video.urlExpirationDate" },
@@ -394,7 +402,6 @@ function queryPrograms(payload) {
394
402
  paths: [
395
403
  { path: "programs.createdDate" },
396
404
  { path: "programs.updatedDate" },
397
- { path: "programs.stateUpdatedDate" },
398
405
  { path: "programs.statusUpdatedDate" },
399
406
  { path: "programs.description.image.urlExpirationDate" },
400
407
  { path: "programs.description.video.urlExpirationDate" },
@@ -469,7 +476,6 @@ function searchPrograms(payload) {
469
476
  paths: [
470
477
  { path: "programs.createdDate" },
471
478
  { path: "programs.updatedDate" },
472
- { path: "programs.stateUpdatedDate" },
473
479
  { path: "programs.statusUpdatedDate" },
474
480
  { path: "programs.description.image.urlExpirationDate" },
475
481
  { path: "programs.description.video.urlExpirationDate" },
@@ -550,7 +556,6 @@ function publishProgram(payload) {
550
556
  paths: [
551
557
  { path: "program.createdDate" },
552
558
  { path: "program.updatedDate" },
553
- { path: "program.stateUpdatedDate" },
554
559
  { path: "program.statusUpdatedDate" },
555
560
  { path: "program.description.image.urlExpirationDate" },
556
561
  { path: "program.description.video.urlExpirationDate" },
@@ -610,7 +615,6 @@ function endProgram(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 archiveProgram(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" },
@@ -720,7 +723,6 @@ function bulkUpdatePrograms(payload) {
720
723
  paths: [
721
724
  { path: "programs.program.createdDate" },
722
725
  { path: "programs.program.updatedDate" },
723
- { path: "programs.program.stateUpdatedDate" },
724
726
  { path: "programs.program.statusUpdatedDate" },
725
727
  { path: "programs.program.description.image.urlExpirationDate" },
726
728
  { path: "programs.program.description.video.urlExpirationDate" },
@@ -775,7 +777,6 @@ function bulkUpdatePrograms(payload) {
775
777
  paths: [
776
778
  { path: "results.item.createdDate" },
777
779
  { path: "results.item.updatedDate" },
778
- { path: "results.item.stateUpdatedDate" },
779
780
  { path: "results.item.statusUpdatedDate" },
780
781
  { path: "results.item.description.image.urlExpirationDate" },
781
782
  { path: "results.item.description.video.urlExpirationDate" },
@@ -858,7 +859,6 @@ function listSamplePrograms(payload) {
858
859
  paths: [
859
860
  { path: "programs.program.createdDate" },
860
861
  { path: "programs.program.updatedDate" },
861
- { path: "programs.program.stateUpdatedDate" },
862
862
  { path: "programs.program.statusUpdatedDate" },
863
863
  { path: "programs.program.description.image.urlExpirationDate" },
864
864
  { path: "programs.program.description.video.urlExpirationDate" },
@@ -911,40 +911,27 @@ import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformatio
911
911
  import { transformSDKPageURLToRESTPageURL } from "@wix/sdk-runtime/transformations/page-url";
912
912
  import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
913
913
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
914
- var V3State = /* @__PURE__ */ ((V3State2) => {
915
- V3State2["DRAFT"] = "DRAFT";
916
- V3State2["PUBLISHED"] = "PUBLISHED";
917
- V3State2["ENDED"] = "ENDED";
918
- V3State2["ARCHIVED"] = "ARCHIVED";
919
- return V3State2;
920
- })(V3State || {});
914
+ import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
915
+ import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
921
916
  var Status = /* @__PURE__ */ ((Status2) => {
922
- Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
923
917
  Status2["DRAFT"] = "DRAFT";
924
918
  Status2["PUBLISHED"] = "PUBLISHED";
925
919
  Status2["ENDED"] = "ENDED";
926
920
  Status2["ARCHIVED"] = "ARCHIVED";
927
921
  return Status2;
928
922
  })(Status || {});
929
- var RestrictionsAccessType = /* @__PURE__ */ ((RestrictionsAccessType2) => {
930
- RestrictionsAccessType2["UNKNOWN_ACCESS_TYPE"] = "UNKNOWN_ACCESS_TYPE";
931
- RestrictionsAccessType2["PUBLIC"] = "PUBLIC";
932
- RestrictionsAccessType2["PRIVATE"] = "PRIVATE";
933
- RestrictionsAccessType2["SECRET"] = "SECRET";
934
- return RestrictionsAccessType2;
935
- })(RestrictionsAccessType || {});
936
- var Trigger = /* @__PURE__ */ ((Trigger2) => {
937
- Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
938
- Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
939
- Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
940
- return Trigger2;
941
- })(Trigger || {});
942
923
  var AccessType = /* @__PURE__ */ ((AccessType2) => {
943
924
  AccessType2["PUBLIC"] = "PUBLIC";
944
925
  AccessType2["PRIVATE"] = "PRIVATE";
945
926
  AccessType2["SECRET"] = "SECRET";
946
927
  return AccessType2;
947
928
  })(AccessType || {});
929
+ var Trigger = /* @__PURE__ */ ((Trigger2) => {
930
+ Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
931
+ Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
932
+ Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
933
+ return Trigger2;
934
+ })(Trigger || {});
948
935
  var Enum = /* @__PURE__ */ ((Enum2) => {
949
936
  Enum2["UNKNOWN"] = "UNKNOWN";
950
937
  Enum2["PROTECTED"] = "PROTECTED";
@@ -982,14 +969,12 @@ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
982
969
  return MissingValues2;
983
970
  })(MissingValues || {});
984
971
  var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
985
- ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
986
972
  ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
987
973
  ScalarType2["MIN"] = "MIN";
988
974
  ScalarType2["MAX"] = "MAX";
989
975
  return ScalarType2;
990
976
  })(ScalarType || {});
991
977
  var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
992
- NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
993
978
  NestedAggregationType2["VALUE"] = "VALUE";
994
979
  NestedAggregationType2["RANGE"] = "RANGE";
995
980
  NestedAggregationType2["SCALAR"] = "SCALAR";
@@ -997,7 +982,6 @@ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
997
982
  return NestedAggregationType2;
998
983
  })(NestedAggregationType || {});
999
984
  var Interval = /* @__PURE__ */ ((Interval2) => {
1000
- Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
1001
985
  Interval2["YEAR"] = "YEAR";
1002
986
  Interval2["MONTH"] = "MONTH";
1003
987
  Interval2["WEEK"] = "WEEK";
@@ -1008,7 +992,6 @@ var Interval = /* @__PURE__ */ ((Interval2) => {
1008
992
  return Interval2;
1009
993
  })(Interval || {});
1010
994
  var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
1011
- AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
1012
995
  AggregationType2["VALUE"] = "VALUE";
1013
996
  AggregationType2["RANGE"] = "RANGE";
1014
997
  AggregationType2["SCALAR"] = "SCALAR";
@@ -1073,6 +1056,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
1073
1056
  Namespace2["NANO"] = "NANO";
1074
1057
  Namespace2["BASE44"] = "BASE44";
1075
1058
  Namespace2["CHANNELS"] = "CHANNELS";
1059
+ Namespace2["NAUTILUS"] = "NAUTILUS";
1076
1060
  return Namespace2;
1077
1061
  })(Namespace || {});
1078
1062
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
@@ -1425,6 +1409,14 @@ async function typedQueryPrograms(query) {
1425
1409
  throw transformedError;
1426
1410
  }
1427
1411
  }
1412
+ var utils = {
1413
+ query: {
1414
+ ...createQueryUtils()
1415
+ },
1416
+ search: {
1417
+ ...createSearchUtils()
1418
+ }
1419
+ };
1428
1420
  async function searchPrograms2(search) {
1429
1421
  const { httpClient, sideEffects } = arguments[1];
1430
1422
  const payload = renameKeysFromSDKRequestToRESTRequest({ search });
@@ -1848,7 +1840,6 @@ export {
1848
1840
  NestedAggregationType,
1849
1841
  PlacementType,
1850
1842
  ResolutionMethod,
1851
- RestrictionsAccessType,
1852
1843
  ScalarType,
1853
1844
  SearchIndexingNotificationState,
1854
1845
  SiteCreatedContext,
@@ -1858,7 +1849,6 @@ export {
1858
1849
  State,
1859
1850
  Status,
1860
1851
  Trigger,
1861
- V3State,
1862
1852
  WebhookIdentityType,
1863
1853
  archiveProgram4 as archiveProgram,
1864
1854
  bulkUpdatePrograms4 as bulkUpdatePrograms,
@@ -1872,6 +1862,7 @@ export {
1872
1862
  publishProgram4 as publishProgram,
1873
1863
  queryPrograms4 as queryPrograms,
1874
1864
  searchPrograms4 as searchPrograms,
1875
- updateProgram4 as updateProgram
1865
+ updateProgram4 as updateProgram,
1866
+ utils
1876
1867
  };
1877
1868
  //# sourceMappingURL=index.mjs.map