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