@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.
- package/build/cjs/index.d.ts +39 -4
- package/build/cjs/index.js +338 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-7yJy1Sk4.d.ts → online-programs-v3-program-programs.universal-Z6YlRtAm.d.ts} +166 -5
- package/build/es/index.d.mts +39 -4
- package/build/es/index.mjs +331 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-7yJy1Sk4.d.mts → online-programs-v3-program-programs.universal-Z6YlRtAm.d.mts} +166 -5
- package/build/internal/cjs/index.d.ts +39 -4
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +5 -5
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-DVoymVrV.d.ts → online-programs-v3-program-programs.universal-D_zbRqi7.d.ts} +166 -5
- package/build/internal/es/index.d.mts +39 -4
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +5 -5
- package/build/internal/es/{online-programs-v3-program-programs.universal-DVoymVrV.d.mts → online-programs-v3-program-programs.universal-D_zbRqi7.d.mts} +166 -5
- package/package.json +2 -2
|
@@ -687,24 +687,24 @@ interface Schema {
|
|
|
687
687
|
label?: string;
|
|
688
688
|
clusterName?: string;
|
|
689
689
|
}
|
|
690
|
-
/**
|
|
690
|
+
/** Triggered when a program is published. */
|
|
691
691
|
interface ProgramPublished {
|
|
692
692
|
/** Snapshot of the program after it was published. */
|
|
693
693
|
program?: Program;
|
|
694
694
|
}
|
|
695
|
-
/**
|
|
695
|
+
/** Triggered when a program ends, either automatically or manually by the owner. */
|
|
696
696
|
interface ProgramEnded {
|
|
697
697
|
/** Whether the program was ended manually by the owner. */
|
|
698
698
|
endedByOwner?: boolean;
|
|
699
699
|
/** Snapshot of the program after it ended. */
|
|
700
700
|
program?: Program;
|
|
701
701
|
}
|
|
702
|
-
/**
|
|
702
|
+
/** Triggered when a program is archived. */
|
|
703
703
|
interface ProgramArchived {
|
|
704
704
|
/** Snapshot of the program after it was archived. */
|
|
705
705
|
program?: Program;
|
|
706
706
|
}
|
|
707
|
-
/**
|
|
707
|
+
/** Triggered when a program is duplicated. */
|
|
708
708
|
interface ProgramDuplicated {
|
|
709
709
|
/** Newly created program. */
|
|
710
710
|
program?: Program;
|
|
@@ -2596,6 +2596,167 @@ type PublishProgramApplicationErrors = {
|
|
|
2596
2596
|
description?: string;
|
|
2597
2597
|
data?: Record<string, any>;
|
|
2598
2598
|
};
|
|
2599
|
+
interface BaseEventMetadata {
|
|
2600
|
+
/**
|
|
2601
|
+
* App instance ID.
|
|
2602
|
+
* @format GUID
|
|
2603
|
+
*/
|
|
2604
|
+
instanceId?: string | null;
|
|
2605
|
+
/**
|
|
2606
|
+
* Event type.
|
|
2607
|
+
* @maxLength 150
|
|
2608
|
+
*/
|
|
2609
|
+
eventType?: string;
|
|
2610
|
+
/** The identification type and identity data. */
|
|
2611
|
+
identity?: IdentificationData;
|
|
2612
|
+
/** Details related to the account */
|
|
2613
|
+
accountInfo?: AccountInfo;
|
|
2614
|
+
}
|
|
2615
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
2616
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
2617
|
+
_id?: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
2620
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
2621
|
+
*/
|
|
2622
|
+
entityFqdn?: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
2625
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
2626
|
+
*/
|
|
2627
|
+
slug?: string;
|
|
2628
|
+
/** ID of the entity associated with the event. */
|
|
2629
|
+
entityId?: string;
|
|
2630
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
2631
|
+
eventTime?: Date | null;
|
|
2632
|
+
/**
|
|
2633
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2634
|
+
* (for example, GDPR).
|
|
2635
|
+
*/
|
|
2636
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
2637
|
+
/** If present, indicates the action that triggered the event. */
|
|
2638
|
+
originatedFrom?: string | null;
|
|
2639
|
+
/**
|
|
2640
|
+
* 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.
|
|
2641
|
+
* 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.
|
|
2642
|
+
*/
|
|
2643
|
+
entityEventSequence?: string | null;
|
|
2644
|
+
accountInfo?: AccountInfoMetadata;
|
|
2645
|
+
}
|
|
2646
|
+
interface AccountInfoMetadata {
|
|
2647
|
+
/** ID of the Wix account associated with the event */
|
|
2648
|
+
accountId: string;
|
|
2649
|
+
/** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
|
|
2650
|
+
siteId?: string;
|
|
2651
|
+
/** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
|
|
2652
|
+
parentAccountId?: string;
|
|
2653
|
+
}
|
|
2654
|
+
interface ProgramCreatedEnvelope {
|
|
2655
|
+
entity: Program;
|
|
2656
|
+
metadata: EventMetadata;
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* Triggered when a program is created.
|
|
2660
|
+
* @permissionScope Manage Online Programs
|
|
2661
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2662
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2663
|
+
* @webhook
|
|
2664
|
+
* @eventType wix.online_programs.v3.program_created
|
|
2665
|
+
* @slug created
|
|
2666
|
+
* @documentationMaturity preview
|
|
2667
|
+
*/
|
|
2668
|
+
declare function onProgramCreated(handler: (event: ProgramCreatedEnvelope) => void | Promise<void>): void;
|
|
2669
|
+
interface ProgramDeletedEnvelope {
|
|
2670
|
+
metadata: EventMetadata;
|
|
2671
|
+
}
|
|
2672
|
+
/**
|
|
2673
|
+
* Triggered when a program is deleted.
|
|
2674
|
+
* @permissionScope Manage Online Programs
|
|
2675
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2676
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2677
|
+
* @webhook
|
|
2678
|
+
* @eventType wix.online_programs.v3.program_deleted
|
|
2679
|
+
* @slug deleted
|
|
2680
|
+
* @documentationMaturity preview
|
|
2681
|
+
*/
|
|
2682
|
+
declare function onProgramDeleted(handler: (event: ProgramDeletedEnvelope) => void | Promise<void>): void;
|
|
2683
|
+
interface ProgramArchivedEnvelope {
|
|
2684
|
+
data: ProgramArchived;
|
|
2685
|
+
metadata: EventMetadata;
|
|
2686
|
+
}
|
|
2687
|
+
/**
|
|
2688
|
+
* Triggered when a program is archived.
|
|
2689
|
+
* @permissionScope Manage Online Programs
|
|
2690
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2691
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2692
|
+
* @webhook
|
|
2693
|
+
* @eventType wix.online_programs.v3.program_program_archived
|
|
2694
|
+
* @slug program_archived
|
|
2695
|
+
* @documentationMaturity preview
|
|
2696
|
+
*/
|
|
2697
|
+
declare function onProgramArchived(handler: (event: ProgramArchivedEnvelope) => void | Promise<void>): void;
|
|
2698
|
+
interface ProgramDuplicatedEnvelope {
|
|
2699
|
+
data: ProgramDuplicated;
|
|
2700
|
+
metadata: EventMetadata;
|
|
2701
|
+
}
|
|
2702
|
+
/**
|
|
2703
|
+
* Triggered when a program is duplicated.
|
|
2704
|
+
* @permissionScope Manage Online Programs
|
|
2705
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2706
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2707
|
+
* @webhook
|
|
2708
|
+
* @eventType wix.online_programs.v3.program_program_duplicated
|
|
2709
|
+
* @slug program_duplicated
|
|
2710
|
+
* @documentationMaturity preview
|
|
2711
|
+
*/
|
|
2712
|
+
declare function onProgramDuplicated(handler: (event: ProgramDuplicatedEnvelope) => void | Promise<void>): void;
|
|
2713
|
+
interface ProgramEndedEnvelope {
|
|
2714
|
+
data: ProgramEnded;
|
|
2715
|
+
metadata: EventMetadata;
|
|
2716
|
+
}
|
|
2717
|
+
/**
|
|
2718
|
+
* Triggered when a program ends, either automatically or manually by the owner.
|
|
2719
|
+
* @permissionScope Manage Online Programs
|
|
2720
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2721
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2722
|
+
* @webhook
|
|
2723
|
+
* @eventType wix.online_programs.v3.program_program_ended
|
|
2724
|
+
* @slug program_ended
|
|
2725
|
+
* @documentationMaturity preview
|
|
2726
|
+
*/
|
|
2727
|
+
declare function onProgramEnded(handler: (event: ProgramEndedEnvelope) => void | Promise<void>): void;
|
|
2728
|
+
interface ProgramPublishedEnvelope {
|
|
2729
|
+
data: ProgramPublished;
|
|
2730
|
+
metadata: EventMetadata;
|
|
2731
|
+
}
|
|
2732
|
+
/**
|
|
2733
|
+
* Triggered when a program is published.
|
|
2734
|
+
* @permissionScope Manage Online Programs
|
|
2735
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2736
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2737
|
+
* @webhook
|
|
2738
|
+
* @eventType wix.online_programs.v3.program_program_published
|
|
2739
|
+
* @slug program_published
|
|
2740
|
+
* @documentationMaturity preview
|
|
2741
|
+
*/
|
|
2742
|
+
declare function onProgramPublished(handler: (event: ProgramPublishedEnvelope) => void | Promise<void>): void;
|
|
2743
|
+
interface ProgramUpdatedEnvelope {
|
|
2744
|
+
entity: Program;
|
|
2745
|
+
metadata: EventMetadata;
|
|
2746
|
+
/** @hidden */
|
|
2747
|
+
modifiedFields: Record<string, any>;
|
|
2748
|
+
}
|
|
2749
|
+
/**
|
|
2750
|
+
* Triggered when a program is updated.
|
|
2751
|
+
* @permissionScope Manage Online Programs
|
|
2752
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2753
|
+
* @permissionId ONLINE_PROGRAMS.PROGRAM_READ
|
|
2754
|
+
* @webhook
|
|
2755
|
+
* @eventType wix.online_programs.v3.program_updated
|
|
2756
|
+
* @slug updated
|
|
2757
|
+
* @documentationMaturity preview
|
|
2758
|
+
*/
|
|
2759
|
+
declare function onProgramUpdated(handler: (event: ProgramUpdatedEnvelope) => void | Promise<void>): void;
|
|
2599
2760
|
/**
|
|
2600
2761
|
* Creates a draft program.
|
|
2601
2762
|
*
|
|
@@ -3188,4 +3349,4 @@ interface CountProgramsOptions {
|
|
|
3188
3349
|
*/
|
|
3189
3350
|
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>>;
|
|
3190
3351
|
|
|
3191
|
-
export { type
|
|
3352
|
+
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
|
|
3
|
-
export {
|
|
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.js';
|
|
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.js';
|
|
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 {
|
|
2
|
-
export {
|
|
1
|
+
import { b9 as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-D_zbRqi7.js';
|
|
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.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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.js';
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
883
|
+
/** Triggered when a program is duplicated. */
|
|
884
884
|
interface ProgramDuplicated {
|
|
885
885
|
/** Newly created program. */
|
|
886
886
|
program?: Program;
|