@wix/auto_sdk_online-programs_programs 1.0.18 → 1.0.20

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 +41 -45
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +7 -5
  5. package/build/cjs/index.typings.js +41 -45
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +216 -157
  8. package/build/cjs/meta.js +27 -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-ClIi92UD.d.ts} +346 -306
  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 +39 -42
  16. package/build/es/index.mjs.map +1 -1
  17. package/build/es/index.typings.d.mts +7 -5
  18. package/build/es/index.typings.mjs +39 -42
  19. package/build/es/index.typings.mjs.map +1 -1
  20. package/build/es/meta.d.mts +216 -157
  21. package/build/es/meta.mjs +27 -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-ClIi92UD.d.mts} +346 -306
  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 +41 -45
  29. package/build/internal/cjs/index.js.map +1 -1
  30. package/build/internal/cjs/index.typings.d.ts +7 -5
  31. package/build/internal/cjs/index.typings.js +41 -45
  32. package/build/internal/cjs/index.typings.js.map +1 -1
  33. package/build/internal/cjs/meta.d.ts +216 -157
  34. package/build/internal/cjs/meta.js +27 -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-ClIi92UD.d.ts} +356 -288
  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 +39 -42
  42. package/build/internal/es/index.mjs.map +1 -1
  43. package/build/internal/es/index.typings.d.mts +7 -5
  44. package/build/internal/es/index.typings.mjs +39 -42
  45. package/build/internal/es/index.typings.mjs.map +1 -1
  46. package/build/internal/es/meta.d.mts +216 -157
  47. package/build/internal/es/meta.mjs +27 -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-ClIi92UD.d.mts} +356 -288
  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-ClIi92UD.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-ClIi92UD.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,24 @@ 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"
56
+ },
57
+ {
58
+ srcPath: "/online-programs/v3/bulk/programs",
59
+ destPath: "/v3/bulk/programs"
42
60
  }
43
61
  ]
44
62
  };
@@ -53,7 +71,6 @@ function createProgram(payload) {
53
71
  paths: [
54
72
  { path: "program.createdDate" },
55
73
  { path: "program.updatedDate" },
56
- { path: "program.stateUpdatedDate" },
57
74
  { path: "program.statusUpdatedDate" },
58
75
  { path: "program.description.image.urlExpirationDate" },
59
76
  { path: "program.description.video.urlExpirationDate" },
@@ -98,7 +115,6 @@ function createProgram(payload) {
98
115
  paths: [
99
116
  { path: "program.createdDate" },
100
117
  { path: "program.updatedDate" },
101
- { path: "program.stateUpdatedDate" },
102
118
  { path: "program.statusUpdatedDate" },
103
119
  { path: "program.description.image.urlExpirationDate" },
104
120
  { path: "program.description.video.urlExpirationDate" },
@@ -158,7 +174,6 @@ function duplicateProgram(payload) {
158
174
  paths: [
159
175
  { path: "program.createdDate" },
160
176
  { path: "program.updatedDate" },
161
- { path: "program.stateUpdatedDate" },
162
177
  { path: "program.statusUpdatedDate" },
163
178
  { path: "program.description.image.urlExpirationDate" },
164
179
  { path: "program.description.video.urlExpirationDate" },
@@ -218,7 +233,6 @@ function getProgram(payload) {
218
233
  paths: [
219
234
  { path: "program.createdDate" },
220
235
  { path: "program.updatedDate" },
221
- { path: "program.stateUpdatedDate" },
222
236
  { path: "program.statusUpdatedDate" },
223
237
  { path: "program.description.image.urlExpirationDate" },
224
238
  { path: "program.description.video.urlExpirationDate" },
@@ -268,7 +282,6 @@ function updateProgram(payload) {
268
282
  paths: [
269
283
  { path: "program.createdDate" },
270
284
  { path: "program.updatedDate" },
271
- { path: "program.stateUpdatedDate" },
272
285
  { path: "program.statusUpdatedDate" },
273
286
  { path: "program.description.image.urlExpirationDate" },
274
287
  { path: "program.description.video.urlExpirationDate" },
@@ -313,7 +326,6 @@ function updateProgram(payload) {
313
326
  paths: [
314
327
  { path: "program.createdDate" },
315
328
  { path: "program.updatedDate" },
316
- { path: "program.stateUpdatedDate" },
317
329
  { path: "program.statusUpdatedDate" },
318
330
  { path: "program.description.image.urlExpirationDate" },
319
331
  { path: "program.description.video.urlExpirationDate" },
@@ -394,7 +406,6 @@ function queryPrograms(payload) {
394
406
  paths: [
395
407
  { path: "programs.createdDate" },
396
408
  { path: "programs.updatedDate" },
397
- { path: "programs.stateUpdatedDate" },
398
409
  { path: "programs.statusUpdatedDate" },
399
410
  { path: "programs.description.image.urlExpirationDate" },
400
411
  { path: "programs.description.video.urlExpirationDate" },
@@ -469,7 +480,6 @@ function searchPrograms(payload) {
469
480
  paths: [
470
481
  { path: "programs.createdDate" },
471
482
  { path: "programs.updatedDate" },
472
- { path: "programs.stateUpdatedDate" },
473
483
  { path: "programs.statusUpdatedDate" },
474
484
  { path: "programs.description.image.urlExpirationDate" },
475
485
  { path: "programs.description.video.urlExpirationDate" },
@@ -550,7 +560,6 @@ function publishProgram(payload) {
550
560
  paths: [
551
561
  { path: "program.createdDate" },
552
562
  { path: "program.updatedDate" },
553
- { path: "program.stateUpdatedDate" },
554
563
  { path: "program.statusUpdatedDate" },
555
564
  { path: "program.description.image.urlExpirationDate" },
556
565
  { path: "program.description.video.urlExpirationDate" },
@@ -610,7 +619,6 @@ function endProgram(payload) {
610
619
  paths: [
611
620
  { path: "program.createdDate" },
612
621
  { path: "program.updatedDate" },
613
- { path: "program.stateUpdatedDate" },
614
622
  { path: "program.statusUpdatedDate" },
615
623
  { path: "program.description.image.urlExpirationDate" },
616
624
  { path: "program.description.video.urlExpirationDate" },
@@ -670,7 +678,6 @@ function archiveProgram(payload) {
670
678
  paths: [
671
679
  { path: "program.createdDate" },
672
680
  { path: "program.updatedDate" },
673
- { path: "program.stateUpdatedDate" },
674
681
  { path: "program.statusUpdatedDate" },
675
682
  { path: "program.description.image.urlExpirationDate" },
676
683
  { path: "program.description.video.urlExpirationDate" },
@@ -720,7 +727,6 @@ function bulkUpdatePrograms(payload) {
720
727
  paths: [
721
728
  { path: "programs.program.createdDate" },
722
729
  { path: "programs.program.updatedDate" },
723
- { path: "programs.program.stateUpdatedDate" },
724
730
  { path: "programs.program.statusUpdatedDate" },
725
731
  { path: "programs.program.description.image.urlExpirationDate" },
726
732
  { path: "programs.program.description.video.urlExpirationDate" },
@@ -775,7 +781,6 @@ function bulkUpdatePrograms(payload) {
775
781
  paths: [
776
782
  { path: "results.item.createdDate" },
777
783
  { path: "results.item.updatedDate" },
778
- { path: "results.item.stateUpdatedDate" },
779
784
  { path: "results.item.statusUpdatedDate" },
780
785
  { path: "results.item.description.image.urlExpirationDate" },
781
786
  { path: "results.item.description.video.urlExpirationDate" },
@@ -858,7 +863,6 @@ function listSamplePrograms(payload) {
858
863
  paths: [
859
864
  { path: "programs.program.createdDate" },
860
865
  { path: "programs.program.updatedDate" },
861
- { path: "programs.program.stateUpdatedDate" },
862
866
  { path: "programs.program.statusUpdatedDate" },
863
867
  { path: "programs.program.description.image.urlExpirationDate" },
864
868
  { path: "programs.program.description.video.urlExpirationDate" },
@@ -911,40 +915,27 @@ import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformatio
911
915
  import { transformSDKPageURLToRESTPageURL } from "@wix/sdk-runtime/transformations/page-url";
912
916
  import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
913
917
  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 || {});
918
+ import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
919
+ import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
921
920
  var Status = /* @__PURE__ */ ((Status2) => {
922
- Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
923
921
  Status2["DRAFT"] = "DRAFT";
924
922
  Status2["PUBLISHED"] = "PUBLISHED";
925
923
  Status2["ENDED"] = "ENDED";
926
924
  Status2["ARCHIVED"] = "ARCHIVED";
927
925
  return Status2;
928
926
  })(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
927
  var AccessType = /* @__PURE__ */ ((AccessType2) => {
943
928
  AccessType2["PUBLIC"] = "PUBLIC";
944
929
  AccessType2["PRIVATE"] = "PRIVATE";
945
930
  AccessType2["SECRET"] = "SECRET";
946
931
  return AccessType2;
947
932
  })(AccessType || {});
933
+ var Trigger = /* @__PURE__ */ ((Trigger2) => {
934
+ Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
935
+ Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
936
+ Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
937
+ return Trigger2;
938
+ })(Trigger || {});
948
939
  var Enum = /* @__PURE__ */ ((Enum2) => {
949
940
  Enum2["UNKNOWN"] = "UNKNOWN";
950
941
  Enum2["PROTECTED"] = "PROTECTED";
@@ -982,14 +973,12 @@ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
982
973
  return MissingValues2;
983
974
  })(MissingValues || {});
984
975
  var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
985
- ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
986
976
  ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
987
977
  ScalarType2["MIN"] = "MIN";
988
978
  ScalarType2["MAX"] = "MAX";
989
979
  return ScalarType2;
990
980
  })(ScalarType || {});
991
981
  var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
992
- NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
993
982
  NestedAggregationType2["VALUE"] = "VALUE";
994
983
  NestedAggregationType2["RANGE"] = "RANGE";
995
984
  NestedAggregationType2["SCALAR"] = "SCALAR";
@@ -997,7 +986,6 @@ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
997
986
  return NestedAggregationType2;
998
987
  })(NestedAggregationType || {});
999
988
  var Interval = /* @__PURE__ */ ((Interval2) => {
1000
- Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
1001
989
  Interval2["YEAR"] = "YEAR";
1002
990
  Interval2["MONTH"] = "MONTH";
1003
991
  Interval2["WEEK"] = "WEEK";
@@ -1008,7 +996,6 @@ var Interval = /* @__PURE__ */ ((Interval2) => {
1008
996
  return Interval2;
1009
997
  })(Interval || {});
1010
998
  var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
1011
- AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
1012
999
  AggregationType2["VALUE"] = "VALUE";
1013
1000
  AggregationType2["RANGE"] = "RANGE";
1014
1001
  AggregationType2["SCALAR"] = "SCALAR";
@@ -1073,6 +1060,9 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
1073
1060
  Namespace2["NANO"] = "NANO";
1074
1061
  Namespace2["BASE44"] = "BASE44";
1075
1062
  Namespace2["CHANNELS"] = "CHANNELS";
1063
+ Namespace2["NAUTILUS"] = "NAUTILUS";
1064
+ Namespace2["SYMPHONY"] = "SYMPHONY";
1065
+ Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
1076
1066
  return Namespace2;
1077
1067
  })(Namespace || {});
1078
1068
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
@@ -1425,6 +1415,14 @@ async function typedQueryPrograms(query) {
1425
1415
  throw transformedError;
1426
1416
  }
1427
1417
  }
1418
+ var utils = {
1419
+ query: {
1420
+ ...createQueryUtils()
1421
+ },
1422
+ search: {
1423
+ ...createSearchUtils()
1424
+ }
1425
+ };
1428
1426
  async function searchPrograms2(search) {
1429
1427
  const { httpClient, sideEffects } = arguments[1];
1430
1428
  const payload = renameKeysFromSDKRequestToRESTRequest({ search });
@@ -1848,7 +1846,6 @@ export {
1848
1846
  NestedAggregationType,
1849
1847
  PlacementType,
1850
1848
  ResolutionMethod,
1851
- RestrictionsAccessType,
1852
1849
  ScalarType,
1853
1850
  SearchIndexingNotificationState,
1854
1851
  SiteCreatedContext,
@@ -1858,7 +1855,6 @@ export {
1858
1855
  State,
1859
1856
  Status,
1860
1857
  Trigger,
1861
- V3State,
1862
1858
  WebhookIdentityType,
1863
1859
  archiveProgram4 as archiveProgram,
1864
1860
  bulkUpdatePrograms4 as bulkUpdatePrograms,
@@ -1872,6 +1868,7 @@ export {
1872
1868
  publishProgram4 as publishProgram,
1873
1869
  queryPrograms4 as queryPrograms,
1874
1870
  searchPrograms4 as searchPrograms,
1875
- updateProgram4 as updateProgram
1871
+ updateProgram4 as updateProgram,
1872
+ utils
1876
1873
  };
1877
1874
  //# sourceMappingURL=index.mjs.map