@wix/auto_sdk_online-programs_programs 1.0.34 → 1.0.36

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.
@@ -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-erOiQXbV.js';
3
- export { j as AccessType, cR as AccessTypeWithLiterals, cL as AccountInfo, bT as ActionEvent, cz as Address, cA as AddressHint, b4 as Aggregation, bk as AggregationData, b5 as AggregationKindOneOf, bD as AggregationResults, bE as AggregationResultsResultOneOf, br as AggregationResultsScalarResult, r as AggregationType, d0 as AggregationTypeWithLiterals, ah as App, aE as ApplicationError, bH as ArchiveProgramRequest, b_ as Asset, aF as BulkActionMetadata, l as BulkActionType, cU as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bJ as BulkUpdateProgramResult, bI as BulkUpdateProgramsRequest, cC as BusinessSchedule, cx as Categories, a1 as Certificate, db as CommonQueryWithEntityContext, dc as CommonSearchWithEntityContext, cH as ConsentPolicy, a4 as ContentSummary, bK as CountProgramsRequest, ax as CreateProgramRequest, ay as CreateProgramResponse, aZ as CursorPaging, bj as CursorPagingMetadata, b2 as CursorSearch, b3 as CursorSearchPagingMethodOneOf, b0 as Cursors, al as CustomTag, bc as DateHistogramAggregation, bz as DateHistogramResult, bB as DateHistogramResults, F as DayOfWeek, d8 as DayOfWeekWithLiterals, ar as Delete, aG as DeleteAllProgramsMigrationRequest, aH as DeleteAllProgramsMigrationResponse, ac as DeleteByFilterOperation, ab as DeleteByIdsOperation, c2 as DeleteContext, aS as DeleteProgramRequest, aT as DeleteProgramResponse, x as DeleteStatus, d5 as DeleteStatusWithLiterals, G as Description, H as DescriptionMediaOneOf, aa as DocumentImage, a9 as DocumentPayload, a7 as DocumentUpdateOperation, bN as DomainEvent, bO as DomainEventBodyOneOf, aI as DuplicateProgramRequest, aQ as DuplicatedSlugErrorDetails, cr as EditorlessAssigned, cs as EditorlessUnassigned, bU as Empty, bG as EndProgramRequest, bP as EntityCreatedEvent, bS as EntityDeletedEvent, bR as EntityUpdatedEvent, k as Enum, cT as EnumWithLiterals, a2 as ExtendedFields, ak as File, J as FocalPoint, cB as GeoCoordinates, aJ as GetProgramRequest, aK as GetProgramResponse, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, cJ as IdentificationData, cK as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, a8 as IndexDocument, I as Interval, c$ as IntervalWithLiterals, af as InvalidateCache, ag as InvalidateCacheGetByOneOf, aD as ItemMetadata, Z as Keyword, bM as LabeledProgram, bL as ListSampleProgramsRequest, cy as Locale, cI as MessageEnvelope, bY as MetaSiteSpecialEvent, bZ as MetaSiteSpecialEventPayloadOneOf, bX as MissingMetasiteIdErrorDetails, p as MissingValues, cY as MissingValuesWithLiterals, s as Mode, d1 as ModeWithLiterals, Q as Money, cF as Multilingual, w as Namespace, cc as NamespaceChanged, d4 as NamespaceWithLiterals, bf as NestedAggregation, bd as NestedAggregationItem, be as NestedAggregationItemKindOneOf, bn as NestedAggregationResults, bo as NestedAggregationResultsResultOneOf, N as NestedAggregationType, c_ as NestedAggregationTypeWithLiterals, bw as NestedResultValue, bx as NestedResultValueResultOneOf, bC as NestedResults, bs as NestedValueAggregationResult, ch as OdeditorAssigned, ci as OdeditorUnassigned, ai as Page, am as Pages, aY as Paging, a$ as PagingMetadataV2, cj as PicassoAssigned, ck as PicassoUnassigned, z as PlacementType, d7 as PlacementTypeWithLiterals, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, cN as ProgramQuerySpec, cO as ProgramSearchSpec, cM as ProgramsQueryResult, cw as Properties, bF as PublishProgramRequest, aU as QueryProgramsRequest, a_ as QueryProgramsResponse, aV as QueryV2, aW as QueryV2PagingMethodOneOf, ba as RangeAggregation, bm as RangeAggregationResult, b6 as RangeBucket, bu as RangeResult, bq as RangeResults, ao as ReindexMessage, ap as ReindexMessageActionOneOf, R as ResolutionMethod, d9 as ResolutionMethodWithLiterals, bV as ResolveProgramSlugRequest, bW as ResolveProgramSlugResponse, bQ as RestoreInfo, O as Restrictions, by as Results, a0 as Reward, bb as ScalarAggregation, bv as ScalarResult, q as ScalarType, cZ as ScalarTypeWithLiterals, as as Schema, bi as SearchDetails, ct as SearchIndexingNotification, y as SearchIndexingNotificationState, d6 as SearchIndexingNotificationStateWithLiterals, b1 as SearchProgramsRequest, X as Seo, Y as SeoSchema, c8 as ServiceProvisioned, c9 as ServiceRemoved, $ as Settings, b$ as SiteCreated, v as SiteCreatedContext, d3 as SiteCreatedContextWithLiterals, c1 as SiteDeleted, cb as SiteHardDeleted, c6 as SiteMarkedAsTemplate, c7 as SiteMarkedAsWixSite, cv as SitePropertiesEvent, cu as SitePropertiesUpdated, c4 as SitePublished, cg as SitePurgedExternally, ca as SiteRenamed, c0 as SiteTransferred, c3 as SiteUndeleted, c5 as SiteUnpublished, cf as SiteUrlChanged, o as SortDirection, cX as SortDirectionWithLiterals, m as SortOrder, cV as SortOrderWithLiterals, n as SortType, cW as SortTypeWithLiterals, aX as Sorting, cE as SpecialHourPeriod, u as State, d2 as StateWithLiterals, i as Status, cQ as StatusWithLiterals, cd as StudioAssigned, cn as StudioTwoAssigned, co as StudioTwoUnassigned, ce as StudioUnassigned, cG as SupportedLanguage, _ as Tag, cD as TimePeriod, K as Timeline, aR as TimelineSwitchForbiddenErrorDetails, T as Trigger, cS as TriggerWithLiterals, aj as URI, an as URIs, ad as UpdateByFilterOperation, a5 as UpdateDocumentsEvent, a6 as UpdateDocumentsEventOperationOneOf, ae as UpdateExistingOperation, aL as UpdateProgramRequest, aM as UpdateProgramResponse, aq as Upsert, cq as UserDomainMediaDisabled, cp as UserDomainMediaEnabled, b8 as ValueAggregation, b9 as ValueAggregationOptionsOneOf, bl as ValueAggregationResult, bt as ValueResult, bp as ValueResults, V as VideoResolution, a3 as VideoStepsSettings, W as WebhookIdentityType, da as WebhookIdentityTypeWithLiterals, cl as WixelAssigned, cm as WixelUnassigned, aP as WrongParticipantsNumberErrorDetails, aO as WrongStartDateErrorDetails, aN as WrongStateErrorDetails, cP as utils } from './online-programs-v3-program-programs.universal-erOiQXbV.js';
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-OTa3YFTd.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-OTa3YFTd.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,19 @@ 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
+ declare const onProgramCreated: BuildEventDefinition<typeof onProgramCreated$1> & typeof onProgramCreated$1;
175
+ /** */
176
+ declare const onProgramDeleted: BuildEventDefinition<typeof onProgramDeleted$1> & typeof onProgramDeleted$1;
177
+ /** */
178
+ declare const onProgramArchived: BuildEventDefinition<typeof onProgramArchived$1> & typeof onProgramArchived$1;
179
+ /** */
180
+ declare const onProgramDuplicated: BuildEventDefinition<typeof onProgramDuplicated$1> & typeof onProgramDuplicated$1;
181
+ /** */
182
+ declare const onProgramEnded: BuildEventDefinition<typeof onProgramEnded$1> & typeof onProgramEnded$1;
183
+ /** */
184
+ declare const onProgramPublished: BuildEventDefinition<typeof onProgramPublished$1> & typeof onProgramPublished$1;
185
+ /** */
186
+ declare const onProgramUpdated: BuildEventDefinition<typeof onProgramUpdated$1> & typeof onProgramUpdated$1;
166
187
 
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 };
188
+ 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 };
@@ -52,6 +52,13 @@ __export(index_exports, {
52
52
  endProgram: () => endProgram4,
53
53
  getProgram: () => getProgram4,
54
54
  listSamplePrograms: () => listSamplePrograms4,
55
+ onProgramArchived: () => onProgramArchived2,
56
+ onProgramCreated: () => onProgramCreated2,
57
+ onProgramDeleted: () => onProgramDeleted2,
58
+ onProgramDuplicated: () => onProgramDuplicated2,
59
+ onProgramEnded: () => onProgramEnded2,
60
+ onProgramPublished: () => onProgramPublished2,
61
+ onProgramUpdated: () => onProgramUpdated2,
55
62
  publishProgram: () => publishProgram4,
56
63
  queryPrograms: () => queryPrograms4,
57
64
  searchPrograms: () => searchPrograms4,
@@ -60,6 +67,16 @@ __export(index_exports, {
60
67
  });
61
68
  module.exports = __toCommonJS(index_exports);
62
69
 
70
+ // src/online-programs-v3-program-programs.public.ts
71
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
72
+ var import_float3 = require("@wix/sdk-runtime/transformations/float");
73
+ var import_image3 = require("@wix/sdk-runtime/transformations/image");
74
+ var import_page_url3 = require("@wix/sdk-runtime/transformations/page-url");
75
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
76
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
77
+ var import_video_v23 = require("@wix/sdk-runtime/transformations/video-v2");
78
+ var import_sdk_types = require("@wix/sdk-types");
79
+
63
80
  // src/online-programs-v3-program-programs.universal.ts
64
81
  var import_transform_error = require("@wix/sdk-runtime/transform-error");
65
82
  var import_query_builder = require("@wix/sdk-runtime/query-builder");
@@ -1864,9 +1881,304 @@ function listSamplePrograms3(httpClient) {
1864
1881
  { httpClient }
1865
1882
  );
1866
1883
  }
1884
+ var onProgramCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1885
+ "wix.online_programs.v3.program_created",
1886
+ true,
1887
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1888
+ (0, import_transform_paths3.transformPaths)(event, [
1889
+ {
1890
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1891
+ paths: [
1892
+ { path: "entity.createdDate" },
1893
+ { path: "entity.updatedDate" },
1894
+ { path: "entity.statusUpdatedDate" },
1895
+ { path: "entity.rewards.certificate.connectedDate" },
1896
+ { path: "metadata.eventTime" }
1897
+ ]
1898
+ },
1899
+ {
1900
+ transformFn: import_image3.transformRESTImageToSDKImage,
1901
+ paths: [{ path: "entity.description.image" }]
1902
+ },
1903
+ {
1904
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
1905
+ paths: [{ path: "entity.description.video" }]
1906
+ },
1907
+ {
1908
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
1909
+ paths: [{ path: "entity.seo.url" }]
1910
+ },
1911
+ {
1912
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
1913
+ paths: [
1914
+ { path: "entity.videoStepsSettings.requiredCompletionPercentage" }
1915
+ ]
1916
+ }
1917
+ ])
1918
+ )
1919
+ )();
1920
+ var onProgramDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1921
+ "wix.online_programs.v3.program_deleted",
1922
+ true,
1923
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1924
+ (0, import_transform_paths3.transformPaths)(event, [
1925
+ {
1926
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1927
+ paths: [
1928
+ { path: "undefined.createdDate" },
1929
+ { path: "undefined.updatedDate" },
1930
+ { path: "undefined.statusUpdatedDate" },
1931
+ { path: "undefined.rewards.certificate.connectedDate" },
1932
+ { path: "metadata.eventTime" }
1933
+ ]
1934
+ },
1935
+ {
1936
+ transformFn: import_image3.transformRESTImageToSDKImage,
1937
+ paths: [{ path: "undefined.description.image" }]
1938
+ },
1939
+ {
1940
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
1941
+ paths: [{ path: "undefined.description.video" }]
1942
+ },
1943
+ {
1944
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
1945
+ paths: [{ path: "undefined.seo.url" }]
1946
+ },
1947
+ {
1948
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
1949
+ paths: [
1950
+ {
1951
+ path: "undefined.videoStepsSettings.requiredCompletionPercentage"
1952
+ }
1953
+ ]
1954
+ }
1955
+ ])
1956
+ )
1957
+ )();
1958
+ var onProgramArchived = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1959
+ "wix.online_programs.v3.program_program_archived",
1960
+ true,
1961
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1962
+ (0, import_transform_paths3.transformPaths)(event, [
1963
+ {
1964
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1965
+ paths: [
1966
+ { path: "data.program.createdDate" },
1967
+ { path: "data.program.updatedDate" },
1968
+ { path: "data.program.statusUpdatedDate" },
1969
+ { path: "data.program.rewards.certificate.connectedDate" },
1970
+ { path: "metadata.eventTime" }
1971
+ ]
1972
+ },
1973
+ {
1974
+ transformFn: import_image3.transformRESTImageToSDKImage,
1975
+ paths: [{ path: "data.program.description.image" }]
1976
+ },
1977
+ {
1978
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
1979
+ paths: [{ path: "data.program.description.video" }]
1980
+ },
1981
+ {
1982
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
1983
+ paths: [{ path: "data.program.seo.url" }]
1984
+ },
1985
+ {
1986
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
1987
+ paths: [
1988
+ {
1989
+ path: "data.program.videoStepsSettings.requiredCompletionPercentage"
1990
+ }
1991
+ ]
1992
+ }
1993
+ ])
1994
+ )
1995
+ )();
1996
+ var onProgramDuplicated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1997
+ "wix.online_programs.v3.program_program_duplicated",
1998
+ true,
1999
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2000
+ (0, import_transform_paths3.transformPaths)(event, [
2001
+ {
2002
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2003
+ paths: [
2004
+ { path: "data.program.createdDate" },
2005
+ { path: "data.program.updatedDate" },
2006
+ { path: "data.program.statusUpdatedDate" },
2007
+ { path: "data.program.rewards.certificate.connectedDate" },
2008
+ { path: "data.duplicatedFrom.createdDate" },
2009
+ { path: "data.duplicatedFrom.updatedDate" },
2010
+ { path: "data.duplicatedFrom.statusUpdatedDate" },
2011
+ { path: "data.duplicatedFrom.rewards.certificate.connectedDate" },
2012
+ { path: "metadata.eventTime" }
2013
+ ]
2014
+ },
2015
+ {
2016
+ transformFn: import_image3.transformRESTImageToSDKImage,
2017
+ paths: [
2018
+ { path: "data.program.description.image" },
2019
+ { path: "data.duplicatedFrom.description.image" }
2020
+ ]
2021
+ },
2022
+ {
2023
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
2024
+ paths: [
2025
+ { path: "data.program.description.video" },
2026
+ { path: "data.duplicatedFrom.description.video" }
2027
+ ]
2028
+ },
2029
+ {
2030
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
2031
+ paths: [
2032
+ { path: "data.program.seo.url" },
2033
+ { path: "data.duplicatedFrom.seo.url" }
2034
+ ]
2035
+ },
2036
+ {
2037
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2038
+ paths: [
2039
+ {
2040
+ path: "data.program.videoStepsSettings.requiredCompletionPercentage"
2041
+ },
2042
+ {
2043
+ path: "data.duplicatedFrom.videoStepsSettings.requiredCompletionPercentage"
2044
+ }
2045
+ ]
2046
+ }
2047
+ ])
2048
+ )
2049
+ )();
2050
+ var onProgramEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
2051
+ "wix.online_programs.v3.program_program_ended",
2052
+ true,
2053
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2054
+ (0, import_transform_paths3.transformPaths)(event, [
2055
+ {
2056
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2057
+ paths: [
2058
+ { path: "data.program.createdDate" },
2059
+ { path: "data.program.updatedDate" },
2060
+ { path: "data.program.statusUpdatedDate" },
2061
+ { path: "data.program.rewards.certificate.connectedDate" },
2062
+ { path: "metadata.eventTime" }
2063
+ ]
2064
+ },
2065
+ {
2066
+ transformFn: import_image3.transformRESTImageToSDKImage,
2067
+ paths: [{ path: "data.program.description.image" }]
2068
+ },
2069
+ {
2070
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
2071
+ paths: [{ path: "data.program.description.video" }]
2072
+ },
2073
+ {
2074
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
2075
+ paths: [{ path: "data.program.seo.url" }]
2076
+ },
2077
+ {
2078
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2079
+ paths: [
2080
+ {
2081
+ path: "data.program.videoStepsSettings.requiredCompletionPercentage"
2082
+ }
2083
+ ]
2084
+ }
2085
+ ])
2086
+ )
2087
+ )();
2088
+ var onProgramPublished = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
2089
+ "wix.online_programs.v3.program_program_published",
2090
+ true,
2091
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2092
+ (0, import_transform_paths3.transformPaths)(event, [
2093
+ {
2094
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2095
+ paths: [
2096
+ { path: "data.program.createdDate" },
2097
+ { path: "data.program.updatedDate" },
2098
+ { path: "data.program.statusUpdatedDate" },
2099
+ { path: "data.program.rewards.certificate.connectedDate" },
2100
+ { path: "metadata.eventTime" }
2101
+ ]
2102
+ },
2103
+ {
2104
+ transformFn: import_image3.transformRESTImageToSDKImage,
2105
+ paths: [{ path: "data.program.description.image" }]
2106
+ },
2107
+ {
2108
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
2109
+ paths: [{ path: "data.program.description.video" }]
2110
+ },
2111
+ {
2112
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
2113
+ paths: [{ path: "data.program.seo.url" }]
2114
+ },
2115
+ {
2116
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2117
+ paths: [
2118
+ {
2119
+ path: "data.program.videoStepsSettings.requiredCompletionPercentage"
2120
+ }
2121
+ ]
2122
+ }
2123
+ ])
2124
+ )
2125
+ )();
2126
+ var onProgramUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
2127
+ "wix.online_programs.v3.program_updated",
2128
+ true,
2129
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2130
+ (0, import_transform_paths3.transformPaths)(event, [
2131
+ {
2132
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2133
+ paths: [
2134
+ { path: "entity.createdDate" },
2135
+ { path: "entity.updatedDate" },
2136
+ { path: "entity.statusUpdatedDate" },
2137
+ { path: "entity.rewards.certificate.connectedDate" },
2138
+ { path: "metadata.eventTime" },
2139
+ { path: "modifiedFields.createdDate" },
2140
+ { path: "modifiedFields.updatedDate" },
2141
+ { path: "modifiedFields.statusUpdatedDate" },
2142
+ { path: "modifiedFields.rewards.certificate.connectedDate" }
2143
+ ]
2144
+ },
2145
+ {
2146
+ transformFn: import_image3.transformRESTImageToSDKImage,
2147
+ paths: [
2148
+ { path: "entity.description.image" },
2149
+ { path: "modifiedFields.description.image" }
2150
+ ]
2151
+ },
2152
+ {
2153
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
2154
+ paths: [
2155
+ { path: "entity.description.video" },
2156
+ { path: "modifiedFields.description.video" }
2157
+ ]
2158
+ },
2159
+ {
2160
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
2161
+ paths: [
2162
+ { path: "entity.seo.url" },
2163
+ { path: "modifiedFields.seo.url" }
2164
+ ]
2165
+ },
2166
+ {
2167
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2168
+ paths: [
2169
+ { path: "entity.videoStepsSettings.requiredCompletionPercentage" },
2170
+ {
2171
+ path: "modifiedFields.videoStepsSettings.requiredCompletionPercentage"
2172
+ }
2173
+ ]
2174
+ }
2175
+ ])
2176
+ )
2177
+ )();
1867
2178
 
1868
2179
  // src/online-programs-v3-program-programs.context.ts
1869
2180
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
2181
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1870
2182
  var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1871
2183
  function customQueryPrograms(httpClient) {
1872
2184
  const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
@@ -1892,6 +2204,25 @@ var bulkUpdatePrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMod
1892
2204
  var countPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countPrograms3);
1893
2205
  var listSamplePrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listSamplePrograms3);
1894
2206
  var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPrograms);
2207
+ var onProgramCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
2208
+ onProgramCreated
2209
+ );
2210
+ var onProgramDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
2211
+ onProgramDeleted
2212
+ );
2213
+ var onProgramArchived2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
2214
+ onProgramArchived
2215
+ );
2216
+ var onProgramDuplicated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
2217
+ onProgramDuplicated
2218
+ );
2219
+ var onProgramEnded2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onProgramEnded);
2220
+ var onProgramPublished2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
2221
+ onProgramPublished
2222
+ );
2223
+ var onProgramUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
2224
+ onProgramUpdated
2225
+ );
1895
2226
  // Annotate the CommonJS export names for ESM import in node:
1896
2227
  0 && (module.exports = {
1897
2228
  AccessType,
@@ -1926,6 +2257,13 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1926
2257
  endProgram,
1927
2258
  getProgram,
1928
2259
  listSamplePrograms,
2260
+ onProgramArchived,
2261
+ onProgramCreated,
2262
+ onProgramDeleted,
2263
+ onProgramDuplicated,
2264
+ onProgramEnded,
2265
+ onProgramPublished,
2266
+ onProgramUpdated,
1929
2267
  publishProgram,
1930
2268
  queryPrograms,
1931
2269
  searchPrograms,