@wix/auto_sdk_online-programs_programs 1.0.35 → 1.0.37

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.
@@ -747,24 +747,24 @@ interface Schema {
747
747
  label?: string;
748
748
  clusterName?: string;
749
749
  }
750
- /** Domain event emitted when a program is published. */
750
+ /** Triggered when a program is published. */
751
751
  interface ProgramPublished {
752
752
  /** Snapshot of the program after it was published. */
753
753
  program?: Program;
754
754
  }
755
- /** Domain event emitted when a program ends. */
755
+ /** Triggered when a program ends, either automatically or manually by the owner. */
756
756
  interface ProgramEnded {
757
757
  /** Whether the program was ended manually by the owner. */
758
758
  endedByOwner?: boolean;
759
759
  /** Snapshot of the program after it ended. */
760
760
  program?: Program;
761
761
  }
762
- /** Domain event emitted when a program is archived. */
762
+ /** Triggered when a program is archived. */
763
763
  interface ProgramArchived {
764
764
  /** Snapshot of the program after it was archived. */
765
765
  program?: Program;
766
766
  }
767
- /** Domain event emitted when a program is duplicated. */
767
+ /** Triggered when a program is duplicated. */
768
768
  interface ProgramDuplicated {
769
769
  /** Newly created program. */
770
770
  program?: Program;
@@ -2699,6 +2699,167 @@ type PublishProgramApplicationErrors = {
2699
2699
  description?: string;
2700
2700
  data?: Record<string, any>;
2701
2701
  };
2702
+ interface BaseEventMetadata {
2703
+ /**
2704
+ * App instance ID.
2705
+ * @format GUID
2706
+ */
2707
+ instanceId?: string | null;
2708
+ /**
2709
+ * Event type.
2710
+ * @maxLength 150
2711
+ */
2712
+ eventType?: string;
2713
+ /** The identification type and identity data. */
2714
+ identity?: IdentificationData;
2715
+ /** Details related to the account */
2716
+ accountInfo?: AccountInfo;
2717
+ }
2718
+ interface EventMetadata extends BaseEventMetadata {
2719
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2720
+ _id?: string;
2721
+ /**
2722
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2723
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2724
+ */
2725
+ entityFqdn?: string;
2726
+ /**
2727
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
2728
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2729
+ */
2730
+ slug?: string;
2731
+ /** ID of the entity associated with the event. */
2732
+ entityId?: string;
2733
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2734
+ eventTime?: Date | null;
2735
+ /**
2736
+ * Whether the event was triggered as a result of a privacy regulation application
2737
+ * (for example, GDPR).
2738
+ */
2739
+ triggeredByAnonymizeRequest?: boolean | null;
2740
+ /** If present, indicates the action that triggered the event. */
2741
+ originatedFrom?: string | null;
2742
+ /**
2743
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
2744
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
2745
+ */
2746
+ entityEventSequence?: string | null;
2747
+ accountInfo?: AccountInfoMetadata;
2748
+ }
2749
+ interface AccountInfoMetadata {
2750
+ /** ID of the Wix account associated with the event */
2751
+ accountId: string;
2752
+ /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
2753
+ siteId?: string;
2754
+ /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
2755
+ parentAccountId?: string;
2756
+ }
2757
+ interface ProgramCreatedEnvelope {
2758
+ entity: Program;
2759
+ metadata: EventMetadata;
2760
+ }
2761
+ /**
2762
+ * Triggered when a program is created.
2763
+ * @permissionScope Manage Online Programs
2764
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2765
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2766
+ * @webhook
2767
+ * @eventType wix.online_programs.v3.program_created
2768
+ * @slug created
2769
+ * @documentationMaturity preview
2770
+ */
2771
+ declare function onProgramCreated(handler: (event: ProgramCreatedEnvelope) => void | Promise<void>): void;
2772
+ interface ProgramDeletedEnvelope {
2773
+ metadata: EventMetadata;
2774
+ }
2775
+ /**
2776
+ * Triggered when a program is deleted.
2777
+ * @permissionScope Manage Online Programs
2778
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2779
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2780
+ * @webhook
2781
+ * @eventType wix.online_programs.v3.program_deleted
2782
+ * @slug deleted
2783
+ * @documentationMaturity preview
2784
+ */
2785
+ declare function onProgramDeleted(handler: (event: ProgramDeletedEnvelope) => void | Promise<void>): void;
2786
+ interface ProgramArchivedEnvelope {
2787
+ data: ProgramArchived;
2788
+ metadata: EventMetadata;
2789
+ }
2790
+ /**
2791
+ * Triggered when a program is archived.
2792
+ * @permissionScope Manage Online Programs
2793
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2794
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2795
+ * @webhook
2796
+ * @eventType wix.online_programs.v3.program_program_archived
2797
+ * @slug program_archived
2798
+ * @documentationMaturity preview
2799
+ */
2800
+ declare function onProgramArchived(handler: (event: ProgramArchivedEnvelope) => void | Promise<void>): void;
2801
+ interface ProgramDuplicatedEnvelope {
2802
+ data: ProgramDuplicated;
2803
+ metadata: EventMetadata;
2804
+ }
2805
+ /**
2806
+ * Triggered when a program is duplicated.
2807
+ * @permissionScope Manage Online Programs
2808
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2809
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2810
+ * @webhook
2811
+ * @eventType wix.online_programs.v3.program_program_duplicated
2812
+ * @slug program_duplicated
2813
+ * @documentationMaturity preview
2814
+ */
2815
+ declare function onProgramDuplicated(handler: (event: ProgramDuplicatedEnvelope) => void | Promise<void>): void;
2816
+ interface ProgramEndedEnvelope {
2817
+ data: ProgramEnded;
2818
+ metadata: EventMetadata;
2819
+ }
2820
+ /**
2821
+ * Triggered when a program ends, either automatically or manually by the owner.
2822
+ * @permissionScope Manage Online Programs
2823
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2824
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2825
+ * @webhook
2826
+ * @eventType wix.online_programs.v3.program_program_ended
2827
+ * @slug program_ended
2828
+ * @documentationMaturity preview
2829
+ */
2830
+ declare function onProgramEnded(handler: (event: ProgramEndedEnvelope) => void | Promise<void>): void;
2831
+ interface ProgramPublishedEnvelope {
2832
+ data: ProgramPublished;
2833
+ metadata: EventMetadata;
2834
+ }
2835
+ /**
2836
+ * Triggered when a program is published.
2837
+ * @permissionScope Manage Online Programs
2838
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2839
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2840
+ * @webhook
2841
+ * @eventType wix.online_programs.v3.program_program_published
2842
+ * @slug program_published
2843
+ * @documentationMaturity preview
2844
+ */
2845
+ declare function onProgramPublished(handler: (event: ProgramPublishedEnvelope) => void | Promise<void>): void;
2846
+ interface ProgramUpdatedEnvelope {
2847
+ entity: Program;
2848
+ metadata: EventMetadata;
2849
+ /** @hidden */
2850
+ modifiedFields: Record<string, any>;
2851
+ }
2852
+ /**
2853
+ * Triggered when a program is updated.
2854
+ * @permissionScope Manage Online Programs
2855
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
2856
+ * @permissionId ONLINE_PROGRAMS.PROGRAM_READ
2857
+ * @webhook
2858
+ * @eventType wix.online_programs.v3.program_updated
2859
+ * @slug updated
2860
+ * @documentationMaturity preview
2861
+ */
2862
+ declare function onProgramUpdated(handler: (event: ProgramUpdatedEnvelope) => void | Promise<void>): void;
2702
2863
  /**
2703
2864
  * Creates a draft program.
2704
2865
  *
@@ -3319,4 +3480,4 @@ interface CountProgramsOptions {
3319
3480
  */
3320
3481
  declare function listSamplePrograms(): 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`, 4>>;
3321
3482
 
3322
- export { type Settings as $, type ArchiveProgramResponse as A, type BulkUpdateProgramsOptions as B, type CountProgramsOptions as C, type DuplicateProgramResponse as D, type EndProgramResponse as E, DayOfWeek as F, type Description as G, type DescriptionMediaOneOf as H, Interval as I, type FocalPoint as J, type Timeline as K, type ListSampleProgramsResponse as L, type MaskedProgram as M, NestedAggregationType as N, type Restrictions as O, type Program as P, type Money as Q, ResolutionMethod as R, type SearchProgramsResponse as S, Trigger as T, type UpdateProgram as U, type VideoResolution as V, WebhookIdentityType as W, type Seo as X, type SeoSchema as Y, type Keyword as Z, type Tag as _, type UpdateProgramApplicationErrors as a, type PagingMetadataV2 as a$, type Reward as a0, type Certificate as a1, type ExtendedFields as a2, type VideoStepsSettings as a3, type ContentSummary as a4, type UpdateDocumentsEvent as a5, type UpdateDocumentsEventOperationOneOf as a6, type DocumentUpdateOperation as a7, type IndexDocument as a8, type DocumentPayload as a9, type ProgramMigration as aA, type BulkCreateProgramsMigrationResponse as aB, type BulkProgramResult as aC, type ItemMetadata as aD, type ApplicationError as aE, type BulkActionMetadata as aF, type DeleteAllProgramsMigrationRequest as aG, type DeleteAllProgramsMigrationResponse as aH, type DuplicateProgramRequest as aI, type GetProgramRequest as aJ, type GetProgramResponse as aK, type UpdateProgramRequest as aL, type UpdateProgramResponse as aM, type WrongStateErrorDetails as aN, type WrongStartDateErrorDetails as aO, type WrongParticipantsNumberErrorDetails as aP, type DuplicatedSlugErrorDetails as aQ, type TimelineSwitchForbiddenErrorDetails as aR, type DeleteProgramRequest as aS, type DeleteProgramResponse as aT, type QueryProgramsRequest as aU, type QueryV2 as aV, type QueryV2PagingMethodOneOf as aW, type Sorting as aX, type Paging as aY, type CursorPaging as aZ, type QueryProgramsResponse as a_, type DocumentImage as aa, type DeleteByIdsOperation as ab, type DeleteByFilterOperation as ac, type UpdateByFilterOperation as ad, type UpdateExistingOperation as ae, type InvalidateCache as af, type InvalidateCacheGetByOneOf as ag, type App as ah, type Page as ai, type URI as aj, type File as ak, type CustomTag as al, type Pages as am, type URIs as an, type ReindexMessage as ao, type ReindexMessageActionOneOf as ap, type Upsert as aq, type Delete as ar, type Schema as as, type ProgramPublished as at, type ProgramEnded as au, type ProgramArchived as av, type ProgramDuplicated as aw, type CreateProgramRequest as ax, type CreateProgramResponse as ay, type BulkCreateProgramsMigrationRequest as az, type ProgramSearch as b, type SiteCreated as b$, type Cursors as b0, type SearchProgramsRequest as b1, type CursorSearch as b2, type CursorSearchPagingMethodOneOf as b3, type Aggregation as b4, type AggregationKindOneOf as b5, type RangeBucket as b6, type IncludeMissingValuesOptions as b7, type ValueAggregation as b8, type ValueAggregationOptionsOneOf as b9, type GroupByValueResults as bA, type DateHistogramResults as bB, type NestedResults as bC, type AggregationResults as bD, type AggregationResultsResultOneOf as bE, type PublishProgramRequest as bF, type EndProgramRequest as bG, type ArchiveProgramRequest as bH, type BulkUpdateProgramsRequest as bI, type BulkUpdateProgramResult as bJ, type CountProgramsRequest as bK, type ListSampleProgramsRequest as bL, type LabeledProgram as bM, type DomainEvent as bN, type DomainEventBodyOneOf as bO, type EntityCreatedEvent as bP, type RestoreInfo as bQ, type EntityUpdatedEvent as bR, type EntityDeletedEvent as bS, type ActionEvent as bT, type Empty as bU, type ResolveProgramSlugRequest as bV, type ResolveProgramSlugResponse as bW, type MissingMetasiteIdErrorDetails as bX, type MetaSiteSpecialEvent as bY, type MetaSiteSpecialEventPayloadOneOf as bZ, type Asset as b_, type RangeAggregation as ba, type ScalarAggregation as bb, type DateHistogramAggregation as bc, type NestedAggregationItem as bd, type NestedAggregationItemKindOneOf as be, type NestedAggregation as bf, type GroupByAggregation as bg, type GroupByAggregationKindOneOf as bh, type SearchDetails as bi, type CursorPagingMetadata as bj, type AggregationData as bk, type ValueAggregationResult as bl, type RangeAggregationResult as bm, type NestedAggregationResults as bn, type NestedAggregationResultsResultOneOf as bo, type ValueResults as bp, type RangeResults as bq, type AggregationResultsScalarResult as br, type NestedValueAggregationResult as bs, type ValueResult as bt, type RangeResult as bu, type ScalarResult as bv, type NestedResultValue as bw, type NestedResultValueResultOneOf as bx, type Results as by, type DateHistogramResult as bz, type PublishProgramResponse as c, type IntervalWithLiterals as c$, type SiteTransferred as c0, type SiteDeleted as c1, type DeleteContext as c2, type SiteUndeleted as c3, type SitePublished as c4, type SiteUnpublished as c5, type SiteMarkedAsTemplate as c6, type SiteMarkedAsWixSite as c7, type ServiceProvisioned as c8, type ServiceRemoved as c9, type AddressHint as cA, type GeoCoordinates as cB, type BusinessSchedule as cC, type TimePeriod as cD, type SpecialHourPeriod as cE, type Multilingual as cF, type SupportedLanguage as cG, type ConsentPolicy as cH, type MessageEnvelope as cI, type IdentificationData as cJ, type IdentificationDataIdOneOf as cK, type AccountInfo as cL, type ProgramsQueryResult as cM, type ProgramQuerySpec as cN, type ProgramSearchSpec as cO, utils as cP, type StatusWithLiterals as cQ, type AccessTypeWithLiterals as cR, type TriggerWithLiterals as cS, type EnumWithLiterals as cT, type BulkActionTypeWithLiterals as cU, type SortOrderWithLiterals as cV, type SortTypeWithLiterals as cW, type SortDirectionWithLiterals as cX, type MissingValuesWithLiterals as cY, type ScalarTypeWithLiterals as cZ, type NestedAggregationTypeWithLiterals as c_, type SiteRenamed as ca, type SiteHardDeleted as cb, type NamespaceChanged as cc, type StudioAssigned as cd, type StudioUnassigned as ce, type SiteUrlChanged as cf, type SitePurgedExternally as cg, type OdeditorAssigned as ch, type OdeditorUnassigned as ci, type PicassoAssigned as cj, type PicassoUnassigned as ck, type WixelAssigned as cl, type WixelUnassigned as cm, type StudioTwoAssigned as cn, type StudioTwoUnassigned as co, type UserDomainMediaEnabled as cp, type UserDomainMediaDisabled as cq, type EditorlessAssigned as cr, type EditorlessUnassigned as cs, type SearchIndexingNotification as ct, type SitePropertiesUpdated as cu, type SitePropertiesEvent as cv, type Properties as cw, type Categories as cx, type Locale as cy, type Address as cz, type PublishProgramApplicationErrors as d, type AggregationTypeWithLiterals as d0, type ModeWithLiterals as d1, type StateWithLiterals as d2, type SiteCreatedContextWithLiterals as d3, type NamespaceWithLiterals as d4, type DeleteStatusWithLiterals as d5, type SearchIndexingNotificationStateWithLiterals as d6, type PlacementTypeWithLiterals as d7, type DayOfWeekWithLiterals as d8, type ResolutionMethodWithLiterals as d9, type WebhookIdentityTypeWithLiterals as da, type CommonQueryWithEntityContext as db, type CommonSearchWithEntityContext as dc, createProgram as dd, duplicateProgram as de, getProgram as df, updateProgram as dg, deleteProgram as dh, queryPrograms as di, publishProgram as dj, endProgram as dk, archiveProgram as dl, bulkUpdatePrograms as dm, countPrograms as dn, listSamplePrograms as dp, type BulkUpdateProgramsResponse as e, type CountProgramsResponse as f, type ProgramsQueryBuilder as g, type ProgramQuery as h, Status as i, AccessType as j, Enum as k, BulkActionType as l, SortOrder as m, SortType as n, SortDirection as o, MissingValues as p, ScalarType as q, AggregationType as r, Mode as s, typedQueryPrograms as t, State as u, SiteCreatedContext as v, Namespace as w, DeleteStatus as x, SearchIndexingNotificationState as y, PlacementType as z };
3483
+ export { type Timeline as $, type ArchiveProgramResponse as A, type BulkUpdateProgramsOptions as B, type CountProgramsOptions as C, type DuplicateProgramResponse as D, type EndProgramResponse as E, Mode as F, State as G, SiteCreatedContext as H, Interval as I, Namespace as J, DeleteStatus as K, type ListSampleProgramsResponse as L, type MaskedProgram as M, NestedAggregationType as N, SearchIndexingNotificationState as O, type Program as P, PlacementType as Q, DayOfWeek as R, type SearchProgramsResponse as S, Trigger as T, type UpdateProgram as U, ResolutionMethod as V, WebhookIdentityType as W, type Description as X, type DescriptionMediaOneOf as Y, type FocalPoint as Z, type VideoResolution as _, type UpdateProgramApplicationErrors as a, type QueryProgramsRequest as a$, type Restrictions as a0, type Money as a1, type Seo as a2, type SeoSchema as a3, type Keyword as a4, type Tag as a5, type Settings as a6, type Reward as a7, type Certificate as a8, type ExtendedFields as a9, type ProgramPublished as aA, type ProgramEnded as aB, type ProgramArchived as aC, type ProgramDuplicated as aD, type CreateProgramRequest as aE, type CreateProgramResponse as aF, type BulkCreateProgramsMigrationRequest as aG, type ProgramMigration as aH, type BulkCreateProgramsMigrationResponse as aI, type BulkProgramResult as aJ, type ItemMetadata as aK, type ApplicationError as aL, type BulkActionMetadata as aM, type DeleteAllProgramsMigrationRequest as aN, type DeleteAllProgramsMigrationResponse as aO, type DuplicateProgramRequest as aP, type GetProgramRequest as aQ, type GetProgramResponse as aR, type UpdateProgramRequest as aS, type UpdateProgramResponse as aT, type WrongStateErrorDetails as aU, type WrongStartDateErrorDetails as aV, type WrongParticipantsNumberErrorDetails as aW, type DuplicatedSlugErrorDetails as aX, type TimelineSwitchForbiddenErrorDetails as aY, type DeleteProgramRequest as aZ, type DeleteProgramResponse as a_, type VideoStepsSettings as aa, type ContentSummary as ab, type UpdateDocumentsEvent as ac, type UpdateDocumentsEventOperationOneOf as ad, type DocumentUpdateOperation as ae, type IndexDocument as af, type DocumentPayload as ag, type DocumentImage as ah, type DeleteByIdsOperation as ai, type DeleteByFilterOperation as aj, type UpdateByFilterOperation as ak, type UpdateExistingOperation as al, type InvalidateCache as am, type InvalidateCacheGetByOneOf as an, type App as ao, type Page as ap, type URI as aq, type File as ar, type CustomTag as as, type Pages as at, type URIs as au, type ReindexMessage as av, type ReindexMessageActionOneOf as aw, type Upsert as ax, type Delete as ay, type Schema as az, type ProgramSearch as b, type Empty as b$, type QueryV2 as b0, type QueryV2PagingMethodOneOf as b1, type Sorting as b2, type Paging as b3, type CursorPaging as b4, type QueryProgramsResponse as b5, type PagingMetadataV2 as b6, type Cursors as b7, type SearchProgramsRequest as b8, type CursorSearch as b9, type ValueResult as bA, type RangeResult as bB, type ScalarResult as bC, type NestedResultValue as bD, type NestedResultValueResultOneOf as bE, type Results as bF, type DateHistogramResult as bG, type GroupByValueResults as bH, type DateHistogramResults as bI, type NestedResults as bJ, type AggregationResults as bK, type AggregationResultsResultOneOf as bL, type PublishProgramRequest as bM, type EndProgramRequest as bN, type ArchiveProgramRequest as bO, type BulkUpdateProgramsRequest as bP, type BulkUpdateProgramResult as bQ, type CountProgramsRequest as bR, type ListSampleProgramsRequest as bS, type LabeledProgram as bT, type DomainEvent as bU, type DomainEventBodyOneOf as bV, type EntityCreatedEvent as bW, type RestoreInfo as bX, type EntityUpdatedEvent as bY, type EntityDeletedEvent as bZ, type ActionEvent as b_, type CursorSearchPagingMethodOneOf as ba, type Aggregation as bb, type AggregationKindOneOf as bc, type RangeBucket as bd, type IncludeMissingValuesOptions as be, type ValueAggregation as bf, type ValueAggregationOptionsOneOf as bg, type RangeAggregation as bh, type ScalarAggregation as bi, type DateHistogramAggregation as bj, type NestedAggregationItem as bk, type NestedAggregationItemKindOneOf as bl, type NestedAggregation as bm, type GroupByAggregation as bn, type GroupByAggregationKindOneOf as bo, type SearchDetails as bp, type CursorPagingMetadata as bq, type AggregationData as br, type ValueAggregationResult as bs, type RangeAggregationResult as bt, type NestedAggregationResults as bu, type NestedAggregationResultsResultOneOf as bv, type ValueResults as bw, type RangeResults as bx, type AggregationResultsScalarResult as by, type NestedValueAggregationResult as bz, type PublishProgramResponse as c, type AccessTypeWithLiterals as c$, type ResolveProgramSlugRequest as c0, type ResolveProgramSlugResponse as c1, type MissingMetasiteIdErrorDetails as c2, type MetaSiteSpecialEvent as c3, type MetaSiteSpecialEventPayloadOneOf as c4, type Asset as c5, type SiteCreated as c6, type SiteTransferred as c7, type SiteDeleted as c8, type DeleteContext as c9, type SearchIndexingNotification as cA, type SitePropertiesUpdated as cB, type SitePropertiesEvent as cC, type Properties as cD, type Categories as cE, type Locale as cF, type Address as cG, type AddressHint as cH, type GeoCoordinates as cI, type BusinessSchedule as cJ, type TimePeriod as cK, type SpecialHourPeriod as cL, type Multilingual as cM, type SupportedLanguage as cN, type ConsentPolicy as cO, type MessageEnvelope as cP, type IdentificationData as cQ, type IdentificationDataIdOneOf as cR, type AccountInfo as cS, type BaseEventMetadata as cT, type EventMetadata as cU, type AccountInfoMetadata as cV, type ProgramsQueryResult as cW, type ProgramQuerySpec as cX, type ProgramSearchSpec as cY, utils as cZ, type StatusWithLiterals as c_, type SiteUndeleted as ca, type SitePublished as cb, type SiteUnpublished as cc, type SiteMarkedAsTemplate as cd, type SiteMarkedAsWixSite as ce, type ServiceProvisioned as cf, type ServiceRemoved as cg, type SiteRenamed as ch, type SiteHardDeleted as ci, type NamespaceChanged as cj, type StudioAssigned as ck, type StudioUnassigned as cl, type SiteUrlChanged as cm, type SitePurgedExternally as cn, type OdeditorAssigned as co, type OdeditorUnassigned as cp, type PicassoAssigned as cq, type PicassoUnassigned as cr, type WixelAssigned as cs, type WixelUnassigned as ct, type StudioTwoAssigned as cu, type StudioTwoUnassigned as cv, type UserDomainMediaEnabled as cw, type UserDomainMediaDisabled as cx, type EditorlessAssigned as cy, type EditorlessUnassigned as cz, type PublishProgramApplicationErrors as d, type TriggerWithLiterals as d0, type EnumWithLiterals as d1, type BulkActionTypeWithLiterals as d2, type SortOrderWithLiterals as d3, type SortTypeWithLiterals as d4, type SortDirectionWithLiterals as d5, type MissingValuesWithLiterals as d6, type ScalarTypeWithLiterals as d7, type NestedAggregationTypeWithLiterals as d8, type IntervalWithLiterals as d9, queryPrograms as dA, publishProgram as dB, endProgram as dC, archiveProgram as dD, bulkUpdatePrograms as dE, countPrograms as dF, listSamplePrograms as dG, type AggregationTypeWithLiterals as da, type ModeWithLiterals as db, type StateWithLiterals as dc, type SiteCreatedContextWithLiterals as dd, type NamespaceWithLiterals as de, type DeleteStatusWithLiterals as df, type SearchIndexingNotificationStateWithLiterals as dg, type PlacementTypeWithLiterals as dh, type DayOfWeekWithLiterals as di, type ResolutionMethodWithLiterals as dj, type WebhookIdentityTypeWithLiterals as dk, type CommonQueryWithEntityContext as dl, type CommonSearchWithEntityContext as dm, onProgramCreated as dn, onProgramDeleted as dp, onProgramArchived as dq, onProgramDuplicated as dr, onProgramEnded as ds, onProgramPublished as dt, onProgramUpdated as du, createProgram as dv, duplicateProgram as dw, getProgram as dx, updateProgram as dy, deleteProgram as dz, type BulkUpdateProgramsResponse as e, type CountProgramsResponse as f, type ProgramCreatedEnvelope as g, type ProgramDeletedEnvelope as h, type ProgramArchivedEnvelope as i, type ProgramDuplicatedEnvelope as j, type ProgramEndedEnvelope as k, type ProgramPublishedEnvelope as l, type ProgramUpdatedEnvelope as m, type ProgramsQueryBuilder as n, type ProgramQuery as o, Status as p, AccessType as q, Enum as r, BulkActionType as s, typedQueryPrograms as t, SortOrder as u, SortType as v, SortDirection as w, MissingValues as x, ScalarType as y, AggregationType as z };
@@ -1,6 +1,6 @@
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-DVoymVrV.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-DVoymVrV.mjs';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } 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 ProgramCreatedEnvelope, h as ProgramDeletedEnvelope, i as ProgramArchivedEnvelope, j as ProgramDuplicatedEnvelope, k as ProgramEndedEnvelope, l as ProgramPublishedEnvelope, m as ProgramUpdatedEnvelope, n as ProgramsQueryBuilder, o as ProgramQuery, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-D_zbRqi7.mjs';
3
+ export { q as AccessType, c$ as AccessTypeWithLiterals, cS as AccountInfo, cV as AccountInfoMetadata, b_ as ActionEvent, cG as Address, cH as AddressHint, bb as Aggregation, br as AggregationData, bc as AggregationKindOneOf, bK as AggregationResults, bL as AggregationResultsResultOneOf, by as AggregationResultsScalarResult, z as AggregationType, da as AggregationTypeWithLiterals, ao as App, aL as ApplicationError, bO as ArchiveProgramRequest, c5 as Asset, cT as BaseEventMetadata, aM as BulkActionMetadata, s as BulkActionType, d2 as BulkActionTypeWithLiterals, aG as BulkCreateProgramsMigrationRequest, aI as BulkCreateProgramsMigrationResponse, aJ as BulkProgramResult, bQ as BulkUpdateProgramResult, bP as BulkUpdateProgramsRequest, cJ as BusinessSchedule, cE as Categories, a8 as Certificate, dl as CommonQueryWithEntityContext, dm as CommonSearchWithEntityContext, cO as ConsentPolicy, ab as ContentSummary, bR as CountProgramsRequest, aE as CreateProgramRequest, aF as CreateProgramResponse, b4 as CursorPaging, bq as CursorPagingMetadata, b9 as CursorSearch, ba as CursorSearchPagingMethodOneOf, b7 as Cursors, as as CustomTag, bj as DateHistogramAggregation, bG as DateHistogramResult, bI as DateHistogramResults, R as DayOfWeek, di as DayOfWeekWithLiterals, ay as Delete, aN as DeleteAllProgramsMigrationRequest, aO as DeleteAllProgramsMigrationResponse, aj as DeleteByFilterOperation, ai as DeleteByIdsOperation, c9 as DeleteContext, aZ as DeleteProgramRequest, a_ as DeleteProgramResponse, K as DeleteStatus, df as DeleteStatusWithLiterals, X as Description, Y as DescriptionMediaOneOf, ah as DocumentImage, ag as DocumentPayload, ae as DocumentUpdateOperation, bU as DomainEvent, bV as DomainEventBodyOneOf, aP as DuplicateProgramRequest, aX as DuplicatedSlugErrorDetails, cy as EditorlessAssigned, cz as EditorlessUnassigned, b$ as Empty, bN as EndProgramRequest, bW as EntityCreatedEvent, bZ as EntityDeletedEvent, bY as EntityUpdatedEvent, r as Enum, d1 as EnumWithLiterals, cU as EventMetadata, a9 as ExtendedFields, ar as File, Z as FocalPoint, cI as GeoCoordinates, aQ as GetProgramRequest, aR as GetProgramResponse, bn as GroupByAggregation, bo as GroupByAggregationKindOneOf, bH as GroupByValueResults, cQ as IdentificationData, cR as IdentificationDataIdOneOf, be as IncludeMissingValuesOptions, af as IndexDocument, I as Interval, d9 as IntervalWithLiterals, am as InvalidateCache, an as InvalidateCacheGetByOneOf, aK as ItemMetadata, a4 as Keyword, bT as LabeledProgram, bS as ListSampleProgramsRequest, cF as Locale, cP as MessageEnvelope, c3 as MetaSiteSpecialEvent, c4 as MetaSiteSpecialEventPayloadOneOf, c2 as MissingMetasiteIdErrorDetails, x as MissingValues, d6 as MissingValuesWithLiterals, F as Mode, db as ModeWithLiterals, a1 as Money, cM as Multilingual, J as Namespace, cj as NamespaceChanged, de as NamespaceWithLiterals, bm as NestedAggregation, bk as NestedAggregationItem, bl as NestedAggregationItemKindOneOf, bu as NestedAggregationResults, bv as NestedAggregationResultsResultOneOf, N as NestedAggregationType, d8 as NestedAggregationTypeWithLiterals, bD as NestedResultValue, bE as NestedResultValueResultOneOf, bJ as NestedResults, bz as NestedValueAggregationResult, co as OdeditorAssigned, cp as OdeditorUnassigned, ap as Page, at as Pages, b3 as Paging, b6 as PagingMetadataV2, cq as PicassoAssigned, cr as PicassoUnassigned, Q as PlacementType, dh as PlacementTypeWithLiterals, aC as ProgramArchived, aD as ProgramDuplicated, aB as ProgramEnded, aH as ProgramMigration, aA as ProgramPublished, cX as ProgramQuerySpec, cY as ProgramSearchSpec, cW as ProgramsQueryResult, cD as Properties, bM as PublishProgramRequest, a$ as QueryProgramsRequest, b5 as QueryProgramsResponse, b0 as QueryV2, b1 as QueryV2PagingMethodOneOf, bh as RangeAggregation, bt as RangeAggregationResult, bd as RangeBucket, bB as RangeResult, bx as RangeResults, av as ReindexMessage, aw as ReindexMessageActionOneOf, V as ResolutionMethod, dj as ResolutionMethodWithLiterals, c0 as ResolveProgramSlugRequest, c1 as ResolveProgramSlugResponse, bX as RestoreInfo, a0 as Restrictions, bF as Results, a7 as Reward, bi as ScalarAggregation, bC as ScalarResult, y as ScalarType, d7 as ScalarTypeWithLiterals, az as Schema, bp as SearchDetails, cA as SearchIndexingNotification, O as SearchIndexingNotificationState, dg as SearchIndexingNotificationStateWithLiterals, b8 as SearchProgramsRequest, a2 as Seo, a3 as SeoSchema, cf as ServiceProvisioned, cg as ServiceRemoved, a6 as Settings, c6 as SiteCreated, H as SiteCreatedContext, dd as SiteCreatedContextWithLiterals, c8 as SiteDeleted, ci as SiteHardDeleted, cd as SiteMarkedAsTemplate, ce as SiteMarkedAsWixSite, cC as SitePropertiesEvent, cB as SitePropertiesUpdated, cb as SitePublished, cn as SitePurgedExternally, ch as SiteRenamed, c7 as SiteTransferred, ca as SiteUndeleted, cc as SiteUnpublished, cm as SiteUrlChanged, w as SortDirection, d5 as SortDirectionWithLiterals, u as SortOrder, d3 as SortOrderWithLiterals, v as SortType, d4 as SortTypeWithLiterals, b2 as Sorting, cL as SpecialHourPeriod, G as State, dc as StateWithLiterals, p as Status, c_ as StatusWithLiterals, ck as StudioAssigned, cu as StudioTwoAssigned, cv as StudioTwoUnassigned, cl as StudioUnassigned, cN as SupportedLanguage, a5 as Tag, cK as TimePeriod, $ as Timeline, aY as TimelineSwitchForbiddenErrorDetails, T as Trigger, d0 as TriggerWithLiterals, aq as URI, au as URIs, ak as UpdateByFilterOperation, ac as UpdateDocumentsEvent, ad as UpdateDocumentsEventOperationOneOf, al as UpdateExistingOperation, aS as UpdateProgramRequest, aT as UpdateProgramResponse, ax as Upsert, cx as UserDomainMediaDisabled, cw as UserDomainMediaEnabled, bf as ValueAggregation, bg as ValueAggregationOptionsOneOf, bs as ValueAggregationResult, bA as ValueResult, bw as ValueResults, _ as VideoResolution, aa as VideoStepsSettings, W as WebhookIdentityType, dk as WebhookIdentityTypeWithLiterals, cs as WixelAssigned, ct as WixelUnassigned, aW as WrongParticipantsNumberErrorDetails, aV as WrongStartDateErrorDetails, aU as WrongStateErrorDetails, cZ as utils } from './online-programs-v3-program-programs.universal-D_zbRqi7.mjs';
4
4
 
5
5
  declare function createProgram$1(httpClient: HttpClient): CreateProgramSignature;
6
6
  interface CreateProgramSignature {
@@ -145,6 +145,13 @@ interface ListSampleProgramsSignature {
145
145
  */
146
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`, 4>>;
147
147
  }
148
+ declare const onProgramCreated$1: EventDefinition<ProgramCreatedEnvelope, "wix.online_programs.v3.program_created">;
149
+ declare const onProgramDeleted$1: EventDefinition<ProgramDeletedEnvelope, "wix.online_programs.v3.program_deleted">;
150
+ declare const onProgramArchived$1: EventDefinition<ProgramArchivedEnvelope, "wix.online_programs.v3.program_program_archived">;
151
+ declare const onProgramDuplicated$1: EventDefinition<ProgramDuplicatedEnvelope, "wix.online_programs.v3.program_program_duplicated">;
152
+ declare const onProgramEnded$1: EventDefinition<ProgramEndedEnvelope, "wix.online_programs.v3.program_program_ended">;
153
+ declare const onProgramPublished$1: EventDefinition<ProgramPublishedEnvelope, "wix.online_programs.v3.program_program_published">;
154
+ declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.online_programs.v3.program_updated">;
148
155
 
149
156
  declare function customQueryPrograms(httpClient: HttpClient): {
150
157
  (): ProgramsQueryBuilder;
@@ -163,5 +170,33 @@ declare const bulkUpdatePrograms: MaybeContext<BuildRESTFunction<typeof bulkUpda
163
170
  declare const countPrograms: MaybeContext<BuildRESTFunction<typeof countPrograms$1> & typeof countPrograms$1>;
164
171
  declare const listSamplePrograms: MaybeContext<BuildRESTFunction<typeof listSamplePrograms$1> & typeof listSamplePrograms$1>;
165
172
  declare const queryPrograms: MaybeContext<BuildRESTFunction<typeof customQueryPrograms> & typeof customQueryPrograms>;
173
+ /**
174
+ * Triggered when a program is created.
175
+ */
176
+ declare const onProgramCreated: BuildEventDefinition<typeof onProgramCreated$1> & typeof onProgramCreated$1;
177
+ /**
178
+ * Triggered when a program is deleted.
179
+ */
180
+ declare const onProgramDeleted: BuildEventDefinition<typeof onProgramDeleted$1> & typeof onProgramDeleted$1;
181
+ /**
182
+ * Triggered when a program is archived.
183
+ */
184
+ declare const onProgramArchived: BuildEventDefinition<typeof onProgramArchived$1> & typeof onProgramArchived$1;
185
+ /**
186
+ * Triggered when a program is duplicated.
187
+ */
188
+ declare const onProgramDuplicated: BuildEventDefinition<typeof onProgramDuplicated$1> & typeof onProgramDuplicated$1;
189
+ /**
190
+ * Triggered when a program ends, either automatically or manually by the owner.
191
+ */
192
+ declare const onProgramEnded: BuildEventDefinition<typeof onProgramEnded$1> & typeof onProgramEnded$1;
193
+ /**
194
+ * Triggered when a program is published.
195
+ */
196
+ declare const onProgramPublished: BuildEventDefinition<typeof onProgramPublished$1> & typeof onProgramPublished$1;
197
+ /**
198
+ * Triggered when a program is updated.
199
+ */
200
+ declare const onProgramUpdated: BuildEventDefinition<typeof onProgramUpdated$1> & typeof onProgramUpdated$1;
166
201
 
167
- export { ArchiveProgramResponse, BulkUpdateProgramsOptions, BulkUpdateProgramsResponse, CountProgramsOptions, CountProgramsResponse, DuplicateProgramResponse, EndProgramResponse, ListSampleProgramsResponse, MaskedProgram, Program, ProgramQuery, ProgramSearch, ProgramsQueryBuilder, PublishProgramApplicationErrors, PublishProgramResponse, SearchProgramsResponse, UpdateProgram, UpdateProgramApplicationErrors, archiveProgram, bulkUpdatePrograms, countPrograms, createProgram, deleteProgram, duplicateProgram, endProgram, getProgram, listSamplePrograms, publishProgram, queryPrograms, searchPrograms, updateProgram };
202
+ export { ArchiveProgramResponse, BulkUpdateProgramsOptions, BulkUpdateProgramsResponse, CountProgramsOptions, CountProgramsResponse, DuplicateProgramResponse, EndProgramResponse, ListSampleProgramsResponse, MaskedProgram, Program, ProgramArchivedEnvelope, ProgramCreatedEnvelope, ProgramDeletedEnvelope, ProgramDuplicatedEnvelope, ProgramEndedEnvelope, ProgramPublishedEnvelope, ProgramQuery, ProgramSearch, ProgramUpdatedEnvelope, ProgramsQueryBuilder, PublishProgramApplicationErrors, PublishProgramResponse, SearchProgramsResponse, UpdateProgram, UpdateProgramApplicationErrors, archiveProgram, bulkUpdatePrograms, countPrograms, createProgram, deleteProgram, duplicateProgram, endProgram, getProgram, listSamplePrograms, onProgramArchived, onProgramCreated, onProgramDeleted, onProgramDuplicated, onProgramEnded, onProgramPublished, onProgramUpdated, publishProgram, queryPrograms, searchPrograms, updateProgram };
@@ -1,5 +1,5 @@
1
- import { b2 as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-DVoymVrV.mjs';
2
- 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, A as ArchiveProgramResponse, b_ as Asset, aF as BulkActionMetadata, l as BulkActionType, cU as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bJ as BulkUpdateProgramResult, B as BulkUpdateProgramsOptions, bI as BulkUpdateProgramsRequest, e as BulkUpdateProgramsResponse, cC as BusinessSchedule, cx as Categories, a1 as Certificate, db as CommonQueryWithEntityContext, dc as CommonSearchWithEntityContext, cH as ConsentPolicy, a4 as ContentSummary, C as CountProgramsOptions, bK as CountProgramsRequest, f as CountProgramsResponse, ax as CreateProgramRequest, ay as CreateProgramResponse, aZ as CursorPaging, bj as CursorPagingMetadata, 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, D as DuplicateProgramResponse, aQ as DuplicatedSlugErrorDetails, cr as EditorlessAssigned, cs as EditorlessUnassigned, bU as Empty, bG as EndProgramRequest, E as EndProgramResponse, 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, L as ListSampleProgramsResponse, cy as Locale, M as MaskedProgram, 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, P as Program, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, h as ProgramQuery, cN as ProgramQuerySpec, cO as ProgramSearchSpec, g as ProgramsQueryBuilder, cM as ProgramsQueryResult, cw as Properties, d as PublishProgramApplicationErrors, bF as PublishProgramRequest, c as PublishProgramResponse, 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, U as UpdateProgram, a as UpdateProgramApplicationErrors, 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, dl as archiveProgram, dm as bulkUpdatePrograms, dn as countPrograms, dd as createProgram, dh as deleteProgram, de as duplicateProgram, dk as endProgram, df as getProgram, dp as listSamplePrograms, dj as publishProgram, di as queryPrograms, t as typedQueryPrograms, dg as updateProgram, cP as utils } from './online-programs-v3-program-programs.universal-DVoymVrV.mjs';
1
+ import { b9 as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-D_zbRqi7.mjs';
2
+ export { q as AccessType, c$ as AccessTypeWithLiterals, cS as AccountInfo, cV as AccountInfoMetadata, b_ as ActionEvent, cG as Address, cH as AddressHint, bb as Aggregation, br as AggregationData, bc as AggregationKindOneOf, bK as AggregationResults, bL as AggregationResultsResultOneOf, by as AggregationResultsScalarResult, z as AggregationType, da as AggregationTypeWithLiterals, ao as App, aL as ApplicationError, bO as ArchiveProgramRequest, A as ArchiveProgramResponse, c5 as Asset, cT as BaseEventMetadata, aM as BulkActionMetadata, s as BulkActionType, d2 as BulkActionTypeWithLiterals, aG as BulkCreateProgramsMigrationRequest, aI as BulkCreateProgramsMigrationResponse, aJ as BulkProgramResult, bQ as BulkUpdateProgramResult, B as BulkUpdateProgramsOptions, bP as BulkUpdateProgramsRequest, e as BulkUpdateProgramsResponse, cJ as BusinessSchedule, cE as Categories, a8 as Certificate, dl as CommonQueryWithEntityContext, dm as CommonSearchWithEntityContext, cO as ConsentPolicy, ab as ContentSummary, C as CountProgramsOptions, bR as CountProgramsRequest, f as CountProgramsResponse, aE as CreateProgramRequest, aF as CreateProgramResponse, b4 as CursorPaging, bq as CursorPagingMetadata, ba as CursorSearchPagingMethodOneOf, b7 as Cursors, as as CustomTag, bj as DateHistogramAggregation, bG as DateHistogramResult, bI as DateHistogramResults, R as DayOfWeek, di as DayOfWeekWithLiterals, ay as Delete, aN as DeleteAllProgramsMigrationRequest, aO as DeleteAllProgramsMigrationResponse, aj as DeleteByFilterOperation, ai as DeleteByIdsOperation, c9 as DeleteContext, aZ as DeleteProgramRequest, a_ as DeleteProgramResponse, K as DeleteStatus, df as DeleteStatusWithLiterals, X as Description, Y as DescriptionMediaOneOf, ah as DocumentImage, ag as DocumentPayload, ae as DocumentUpdateOperation, bU as DomainEvent, bV as DomainEventBodyOneOf, aP as DuplicateProgramRequest, D as DuplicateProgramResponse, aX as DuplicatedSlugErrorDetails, cy as EditorlessAssigned, cz as EditorlessUnassigned, b$ as Empty, bN as EndProgramRequest, E as EndProgramResponse, bW as EntityCreatedEvent, bZ as EntityDeletedEvent, bY as EntityUpdatedEvent, r as Enum, d1 as EnumWithLiterals, cU as EventMetadata, a9 as ExtendedFields, ar as File, Z as FocalPoint, cI as GeoCoordinates, aQ as GetProgramRequest, aR as GetProgramResponse, bn as GroupByAggregation, bo as GroupByAggregationKindOneOf, bH as GroupByValueResults, cQ as IdentificationData, cR as IdentificationDataIdOneOf, be as IncludeMissingValuesOptions, af as IndexDocument, I as Interval, d9 as IntervalWithLiterals, am as InvalidateCache, an as InvalidateCacheGetByOneOf, aK as ItemMetadata, a4 as Keyword, bT as LabeledProgram, bS as ListSampleProgramsRequest, L as ListSampleProgramsResponse, cF as Locale, M as MaskedProgram, cP as MessageEnvelope, c3 as MetaSiteSpecialEvent, c4 as MetaSiteSpecialEventPayloadOneOf, c2 as MissingMetasiteIdErrorDetails, x as MissingValues, d6 as MissingValuesWithLiterals, F as Mode, db as ModeWithLiterals, a1 as Money, cM as Multilingual, J as Namespace, cj as NamespaceChanged, de as NamespaceWithLiterals, bm as NestedAggregation, bk as NestedAggregationItem, bl as NestedAggregationItemKindOneOf, bu as NestedAggregationResults, bv as NestedAggregationResultsResultOneOf, N as NestedAggregationType, d8 as NestedAggregationTypeWithLiterals, bD as NestedResultValue, bE as NestedResultValueResultOneOf, bJ as NestedResults, bz as NestedValueAggregationResult, co as OdeditorAssigned, cp as OdeditorUnassigned, ap as Page, at as Pages, b3 as Paging, b6 as PagingMetadataV2, cq as PicassoAssigned, cr as PicassoUnassigned, Q as PlacementType, dh as PlacementTypeWithLiterals, P as Program, aC as ProgramArchived, i as ProgramArchivedEnvelope, g as ProgramCreatedEnvelope, h as ProgramDeletedEnvelope, aD as ProgramDuplicated, j as ProgramDuplicatedEnvelope, aB as ProgramEnded, k as ProgramEndedEnvelope, aH as ProgramMigration, aA as ProgramPublished, l as ProgramPublishedEnvelope, o as ProgramQuery, cX as ProgramQuerySpec, cY as ProgramSearchSpec, m as ProgramUpdatedEnvelope, n as ProgramsQueryBuilder, cW as ProgramsQueryResult, cD as Properties, d as PublishProgramApplicationErrors, bM as PublishProgramRequest, c as PublishProgramResponse, a$ as QueryProgramsRequest, b5 as QueryProgramsResponse, b0 as QueryV2, b1 as QueryV2PagingMethodOneOf, bh as RangeAggregation, bt as RangeAggregationResult, bd as RangeBucket, bB as RangeResult, bx as RangeResults, av as ReindexMessage, aw as ReindexMessageActionOneOf, V as ResolutionMethod, dj as ResolutionMethodWithLiterals, c0 as ResolveProgramSlugRequest, c1 as ResolveProgramSlugResponse, bX as RestoreInfo, a0 as Restrictions, bF as Results, a7 as Reward, bi as ScalarAggregation, bC as ScalarResult, y as ScalarType, d7 as ScalarTypeWithLiterals, az as Schema, bp as SearchDetails, cA as SearchIndexingNotification, O as SearchIndexingNotificationState, dg as SearchIndexingNotificationStateWithLiterals, b8 as SearchProgramsRequest, a2 as Seo, a3 as SeoSchema, cf as ServiceProvisioned, cg as ServiceRemoved, a6 as Settings, c6 as SiteCreated, H as SiteCreatedContext, dd as SiteCreatedContextWithLiterals, c8 as SiteDeleted, ci as SiteHardDeleted, cd as SiteMarkedAsTemplate, ce as SiteMarkedAsWixSite, cC as SitePropertiesEvent, cB as SitePropertiesUpdated, cb as SitePublished, cn as SitePurgedExternally, ch as SiteRenamed, c7 as SiteTransferred, ca as SiteUndeleted, cc as SiteUnpublished, cm as SiteUrlChanged, w as SortDirection, d5 as SortDirectionWithLiterals, u as SortOrder, d3 as SortOrderWithLiterals, v as SortType, d4 as SortTypeWithLiterals, b2 as Sorting, cL as SpecialHourPeriod, G as State, dc as StateWithLiterals, p as Status, c_ as StatusWithLiterals, ck as StudioAssigned, cu as StudioTwoAssigned, cv as StudioTwoUnassigned, cl as StudioUnassigned, cN as SupportedLanguage, a5 as Tag, cK as TimePeriod, $ as Timeline, aY as TimelineSwitchForbiddenErrorDetails, T as Trigger, d0 as TriggerWithLiterals, aq as URI, au as URIs, ak as UpdateByFilterOperation, ac as UpdateDocumentsEvent, ad as UpdateDocumentsEventOperationOneOf, al as UpdateExistingOperation, U as UpdateProgram, a as UpdateProgramApplicationErrors, aS as UpdateProgramRequest, aT as UpdateProgramResponse, ax as Upsert, cx as UserDomainMediaDisabled, cw as UserDomainMediaEnabled, bf as ValueAggregation, bg as ValueAggregationOptionsOneOf, bs as ValueAggregationResult, bA as ValueResult, bw as ValueResults, _ as VideoResolution, aa as VideoStepsSettings, W as WebhookIdentityType, dk as WebhookIdentityTypeWithLiterals, cs as WixelAssigned, ct as WixelUnassigned, aW as WrongParticipantsNumberErrorDetails, aV as WrongStartDateErrorDetails, aU as WrongStateErrorDetails, dD as archiveProgram, dE as bulkUpdatePrograms, dF as countPrograms, dv as createProgram, dz as deleteProgram, dw as duplicateProgram, dC as endProgram, dx as getProgram, dG as listSamplePrograms, dq as onProgramArchived, dn as onProgramCreated, dp as onProgramDeleted, dr as onProgramDuplicated, ds as onProgramEnded, dt as onProgramPublished, du as onProgramUpdated, dB as publishProgram, dA as queryPrograms, t as typedQueryPrograms, dy as updateProgram, cZ as utils } from './online-programs-v3-program-programs.universal-D_zbRqi7.mjs';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /** @hidden */
@@ -1,4 +1,4 @@
1
- import { ax as CreateProgramRequest$1, ay as CreateProgramResponse$1, aI as DuplicateProgramRequest$1, D as DuplicateProgramResponse$1, aJ as GetProgramRequest$1, aK as GetProgramResponse$1, aL as UpdateProgramRequest$1, aM as UpdateProgramResponse$1, aS as DeleteProgramRequest$1, aT as DeleteProgramResponse$1, aU as QueryProgramsRequest$1, a_ as QueryProgramsResponse$1, b1 as SearchProgramsRequest$1, S as SearchProgramsResponse$1, bF as PublishProgramRequest$1, c as PublishProgramResponse$1, bG as EndProgramRequest$1, E as EndProgramResponse$1, bH as ArchiveProgramRequest$1, A as ArchiveProgramResponse$1, bI as BulkUpdateProgramsRequest$1, e as BulkUpdateProgramsResponse$1, bK as CountProgramsRequest$1, f as CountProgramsResponse$1, bL as ListSampleProgramsRequest$1, L as ListSampleProgramsResponse$1 } from './online-programs-v3-program-programs.universal-DVoymVrV.mjs';
1
+ import { aE as CreateProgramRequest$1, aF as CreateProgramResponse$1, aP as DuplicateProgramRequest$1, D as DuplicateProgramResponse$1, aQ as GetProgramRequest$1, aR as GetProgramResponse$1, aS as UpdateProgramRequest$1, aT as UpdateProgramResponse$1, aZ as DeleteProgramRequest$1, a_ as DeleteProgramResponse$1, a$ as QueryProgramsRequest$1, b5 as QueryProgramsResponse$1, b8 as SearchProgramsRequest$1, S as SearchProgramsResponse$1, bM as PublishProgramRequest$1, c as PublishProgramResponse$1, bN as EndProgramRequest$1, E as EndProgramResponse$1, bO as ArchiveProgramRequest$1, A as ArchiveProgramResponse$1, bP as BulkUpdateProgramsRequest$1, e as BulkUpdateProgramsResponse$1, bR as CountProgramsRequest$1, f as CountProgramsResponse$1, bS as ListSampleProgramsRequest$1, L as ListSampleProgramsResponse$1 } from './online-programs-v3-program-programs.universal-D_zbRqi7.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -863,24 +863,24 @@ interface Schema {
863
863
  label?: string;
864
864
  clusterName?: string;
865
865
  }
866
- /** Domain event emitted when a program is published. */
866
+ /** Triggered when a program is published. */
867
867
  interface ProgramPublished {
868
868
  /** Snapshot of the program after it was published. */
869
869
  program?: Program;
870
870
  }
871
- /** Domain event emitted when a program ends. */
871
+ /** Triggered when a program ends, either automatically or manually by the owner. */
872
872
  interface ProgramEnded {
873
873
  /** Whether the program was ended manually by the owner. */
874
874
  endedByOwner?: boolean;
875
875
  /** Snapshot of the program after it ended. */
876
876
  program?: Program;
877
877
  }
878
- /** Domain event emitted when a program is archived. */
878
+ /** Triggered when a program is archived. */
879
879
  interface ProgramArchived {
880
880
  /** Snapshot of the program after it was archived. */
881
881
  program?: Program;
882
882
  }
883
- /** Domain event emitted when a program is duplicated. */
883
+ /** Triggered when a program is duplicated. */
884
884
  interface ProgramDuplicated {
885
885
  /** Newly created program. */
886
886
  program?: Program;