@wix/auto_sdk_online-programs_programs 1.0.43 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/cjs/index.d.ts +29 -3
  2. package/build/cjs/index.js +228 -8
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +204 -8
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +361 -189
  8. package/build/cjs/meta.js +135 -8
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/{online-programs-v3-program-programs.universal-Lt33oe5u.d.ts → online-programs-v3-program-programs.universal-BIitHGTm.d.ts} +480 -186
  11. package/build/es/index.d.mts +29 -3
  12. package/build/es/index.mjs +225 -8
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +201 -8
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +361 -189
  18. package/build/es/meta.mjs +132 -8
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/{online-programs-v3-program-programs.universal-Lt33oe5u.d.mts → online-programs-v3-program-programs.universal-BIitHGTm.d.mts} +480 -186
  21. package/build/internal/cjs/index.d.ts +29 -3
  22. package/build/internal/cjs/index.typings.d.ts +2 -2
  23. package/build/internal/cjs/meta.d.ts +413 -241
  24. package/build/internal/cjs/{online-programs-v3-program-programs.universal-DJ1omkE9.d.ts → online-programs-v3-program-programs.universal-CYvJsYoR.d.ts} +490 -196
  25. package/build/internal/es/index.d.mts +29 -3
  26. package/build/internal/es/index.typings.d.mts +2 -2
  27. package/build/internal/es/meta.d.mts +413 -241
  28. package/build/internal/es/{online-programs-v3-program-programs.universal-DJ1omkE9.d.mts → online-programs-v3-program-programs.universal-CYvJsYoR.d.mts} +490 -196
  29. package/package.json +2 -2
@@ -1,7 +1,30 @@
1
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-Lt33oe5u.mjs';
3
- export { q as AccessType, d6 as AccessTypeWithLiterals, cZ as AccountInfo, d0 as AccountInfoMetadata, c5 as ActionEvent, cN as Address, cO as AddressHint, be as Aggregation, bu as AggregationData, bf as AggregationKindOneOf, bN as AggregationResults, bO as AggregationResultsResultOneOf, bB as AggregationResultsScalarResult, z as AggregationType, dh as AggregationTypeWithLiterals, ap as App, aO as ApplicationError, bR as ArchiveProgramRequest, cc as Asset, c_ as BaseEventMetadata, aP as BulkActionMetadata, s as BulkActionType, d9 as BulkActionTypeWithLiterals, aJ as BulkCreateProgramsMigrationRequest, aL as BulkCreateProgramsMigrationResponse, aM as BulkProgramResult, bX as BulkUpdateProgramResult, bW as BulkUpdateProgramsRequest, cQ as BusinessSchedule, cL as Categories, a8 as Certificate, du as CommonQueryWithEntityContext, dv as CommonSearchWithEntityContext, cV as ConsentPolicy, ab as ContentSummary, bY as CountProgramsRequest, aH as CreateProgramRequest, aI as CreateProgramResponse, b7 as CursorPaging, bt as CursorPagingMetadata, bc as CursorSearch, bd as CursorSearchPagingMethodOneOf, ba as Cursors, at as CustomTag, bm as DateHistogramAggregation, bJ as DateHistogramResult, bL as DateHistogramResults, R as DayOfWeek, dq as DayOfWeekWithLiterals, az as Delete, aQ as DeleteAllProgramsMigrationRequest, aR as DeleteAllProgramsMigrationResponse, ak as DeleteByFilterOperation, aj as DeleteByIdsOperation, cg as DeleteContext, b0 as DeleteProgramRequest, b1 as DeleteProgramResponse, K as DeleteStatus, dm as DeleteStatusWithLiterals, X as Description, Y as DescriptionMediaOneOf, bU as DisableProgramFreemiumRequest, bV as DisableProgramFreemiumResponse, ai as DocumentImage, ah as DocumentPayload, af as DocumentUpdateOperation, b$ as DomainEvent, c0 as DomainEventBodyOneOf, aS as DuplicateProgramRequest, a_ as DuplicatedSlugErrorDetails, cF as EditorlessAssigned, cG as EditorlessUnassigned, c6 as Empty, dt as EnableProgramFreemiumApplicationErrors, bS as EnableProgramFreemiumRequest, bT as EnableProgramFreemiumResponse, bQ as EndProgramRequest, c1 as EntityCreatedEvent, c4 as EntityDeletedEvent, c3 as EntityUpdatedEvent, r as Enum, d8 as EnumWithLiterals, c$ as EventMetadata, a9 as ExtendedFields, as as File, Z as FocalPoint, ac as FreemiumSettings, cP as GeoCoordinates, aT as GetProgramRequest, aU as GetProgramResponse, bq as GroupByAggregation, br as GroupByAggregationKindOneOf, bK as GroupByValueResults, cX as IdentificationData, cY as IdentificationDataIdOneOf, bh as IncludeMissingValuesOptions, ag as IndexDocument, I as Interval, dg as IntervalWithLiterals, an as InvalidateCache, ao as InvalidateCacheGetByOneOf, aN as ItemMetadata, a4 as Keyword, b_ as LabeledProgram, bZ as ListSampleProgramsRequest, cM as Locale, cW as MessageEnvelope, ca as MetaSiteSpecialEvent, cb as MetaSiteSpecialEventPayloadOneOf, c9 as MissingMetasiteIdErrorDetails, x as MissingValues, dd as MissingValuesWithLiterals, F as Mode, di as ModeWithLiterals, a1 as Money, cT as Multilingual, J as Namespace, cq as NamespaceChanged, dl as NamespaceWithLiterals, bp as NestedAggregation, bn as NestedAggregationItem, bo as NestedAggregationItemKindOneOf, bx as NestedAggregationResults, by as NestedAggregationResultsResultOneOf, N as NestedAggregationType, df as NestedAggregationTypeWithLiterals, bG as NestedResultValue, bH as NestedResultValueResultOneOf, bM as NestedResults, bC as NestedValueAggregationResult, cv as OdeditorAssigned, cw as OdeditorUnassigned, aq as Page, au as Pages, b6 as Paging, b9 as PagingMetadataV2, cx as PicassoAssigned, cy as PicassoUnassigned, Q as PlacementType, dp as PlacementTypeWithLiterals, aD as ProgramArchived, aE as ProgramDuplicated, aC as ProgramEnded, aG as ProgramFreemiumDisabled, aF as ProgramFreemiumEnabled, aK as ProgramMigration, aB as ProgramPublished, d2 as ProgramQuerySpec, d3 as ProgramSearchSpec, d1 as ProgramsQueryResult, cK as Properties, bP as PublishProgramRequest, b2 as QueryProgramsRequest, b8 as QueryProgramsResponse, b3 as QueryV2, b4 as QueryV2PagingMethodOneOf, bk as RangeAggregation, bw as RangeAggregationResult, bg as RangeBucket, bE as RangeResult, bA as RangeResults, aw as ReindexMessage, ax as ReindexMessageActionOneOf, V as ResolutionMethod, dr as ResolutionMethodWithLiterals, c7 as ResolveProgramSlugRequest, c8 as ResolveProgramSlugResponse, c2 as RestoreInfo, a0 as Restrictions, bI as Results, a7 as Reward, bl as ScalarAggregation, bF as ScalarResult, y as ScalarType, de as ScalarTypeWithLiterals, aA as Schema, bs as SearchDetails, cH as SearchIndexingNotification, O as SearchIndexingNotificationState, dn as SearchIndexingNotificationStateWithLiterals, bb as SearchProgramsRequest, a2 as Seo, a3 as SeoSchema, cm as ServiceProvisioned, cn as ServiceRemoved, a6 as Settings, cd as SiteCreated, H as SiteCreatedContext, dk as SiteCreatedContextWithLiterals, cf as SiteDeleted, cp as SiteHardDeleted, ck as SiteMarkedAsTemplate, cl as SiteMarkedAsWixSite, cJ as SitePropertiesEvent, cI as SitePropertiesUpdated, ci as SitePublished, cu as SitePurgedExternally, co as SiteRenamed, ce as SiteTransferred, ch as SiteUndeleted, cj as SiteUnpublished, ct as SiteUrlChanged, w as SortDirection, dc as SortDirectionWithLiterals, u as SortOrder, da as SortOrderWithLiterals, v as SortType, db as SortTypeWithLiterals, b5 as Sorting, cS as SpecialHourPeriod, G as State, dj as StateWithLiterals, p as Status, d5 as StatusWithLiterals, cr as StudioAssigned, cB as StudioTwoAssigned, cC as StudioTwoUnassigned, cs as StudioUnassigned, cU as SupportedLanguage, a5 as Tag, cR as TimePeriod, $ as Timeline, a$ as TimelineSwitchForbiddenErrorDetails, T as Trigger, d7 as TriggerWithLiterals, ar as URI, av as URIs, al as UpdateByFilterOperation, ad as UpdateDocumentsEvent, ae as UpdateDocumentsEventOperationOneOf, am as UpdateExistingOperation, aV as UpdateProgramRequest, aW as UpdateProgramResponse, ay as Upsert, cE as UserDomainMediaDisabled, cD as UserDomainMediaEnabled, bi as ValueAggregation, bj as ValueAggregationOptionsOneOf, bv as ValueAggregationResult, bD as ValueResult, bz as ValueResults, _ as VideoResolution, aa as VideoStepsSettings, W as WebhookIdentityType, ds as WebhookIdentityTypeWithLiterals, cz as WixelAssigned, cA as WixelUnassigned, aZ as WrongParticipantsNumberErrorDetails, aY as WrongStartDateErrorDetails, aX as WrongStateErrorDetails, d4 as utils } from './online-programs-v3-program-programs.universal-Lt33oe5u.mjs';
2
+ import { G as GetPageOptions, a as GetPageResponse, b as GetSitemapOptions, c as GetSitemapResponse, d as GetSitemapCountOptions, e as GetSitemapCountResponse, P as Program, D as DuplicateProgramResponse, U as UpdateProgram, f as UpdateProgramApplicationErrors, g as ProgramSearch, S as SearchProgramsResponse, h as PublishProgramResponse, i as PublishProgramApplicationErrors, E as EndProgramResponse, A as ArchiveProgramResponse, M as MaskedProgram, B as BulkUpdateProgramsOptions, j as BulkUpdateProgramsResponse, C as CountProgramsOptions, k as CountProgramsResponse, L as ListSampleProgramsResponse, l as ProgramCreatedEnvelope, m as ProgramDeletedEnvelope, n as ProgramArchivedEnvelope, o as ProgramDuplicatedEnvelope, p as ProgramEndedEnvelope, q as ProgramPublishedEnvelope, r as ProgramUpdatedEnvelope, s as ProgramsQueryBuilder, t as ProgramQuery, u as typedQueryPrograms } from './online-programs-v3-program-programs.universal-BIitHGTm.mjs';
3
+ export { w as AccessType, dj as AccessTypeWithLiterals, aG as AccountInfo, dd as AccountInfoMetadata, aC as ActionEvent, d2 as Address, d3 as AddressHint, bC as Aggregation, bS as AggregationData, bD as AggregationKindOneOf, c9 as AggregationResults, ca as AggregationResultsResultOneOf, bZ as AggregationResultsScalarResult, O as AggregationType, dw as AggregationTypeWithLiterals, aT as App, ba as ApplicationError, cd as ArchiveProgramRequest, ct as Asset, db as BaseEventMetadata, bb as BulkActionMetadata, y as BulkActionType, dn as BulkActionTypeWithLiterals, b5 as BulkCreateProgramsMigrationRequest, b7 as BulkCreateProgramsMigrationResponse, b8 as BulkProgramResult, cj as BulkUpdateProgramResult, ci as BulkUpdateProgramsRequest, d5 as BusinessSchedule, d0 as Categories, ae as Certificate, dH as CommonQueryWithEntityContext, dI as CommonSearchWithEntityContext, da as ConsentPolicy, ah as ContentSummary, ck as CountProgramsRequest, b3 as CreateProgramRequest, b4 as CreateProgramResponse, bv as CursorPaging, bR as CursorPagingMetadata, bA as CursorSearch, bB as CursorSearchPagingMethodOneOf, by as Cursors, aX as CustomTag, bK as DateHistogramAggregation, c5 as DateHistogramResult, c7 as DateHistogramResults, $ as DayOfWeek, dE as DayOfWeekWithLiterals, b1 as Delete, bc as DeleteAllProgramsMigrationRequest, bd as DeleteAllProgramsMigrationResponse, aO as DeleteByFilterOperation, aN as DeleteByIdsOperation, cx as DeleteContext, bo as DeleteProgramRequest, bp as DeleteProgramResponse, Y as DeleteStatus, dB as DeleteStatusWithLiterals, a1 as Description, a2 as DescriptionMediaOneOf, cg as DisableProgramFreemiumRequest, ch as DisableProgramFreemiumResponse, aM as DocumentImage, aL as DocumentPayload, aJ as DocumentUpdateOperation, aw as DomainEvent, ax as DomainEventBodyOneOf, be as DuplicateProgramRequest, bm as DuplicatedSlugErrorDetails, cW as EditorlessAssigned, cX as EditorlessUnassigned, cn as Empty, dG as EnableProgramFreemiumApplicationErrors, ce as EnableProgramFreemiumRequest, cf as EnableProgramFreemiumResponse, cc as EndProgramRequest, ay as EntityCreatedEvent, aB as EntityDeletedEvent, aA as EntityUpdatedEvent, x as Enum, dm as EnumWithLiterals, dc as EventMetadata, af as ExtendedFields, aW as File, a3 as FocalPoint, ai as FreemiumSettings, d4 as GeoCoordinates, ap as GetPageRequest, bf as GetProgramRequest, bg as GetProgramResponse, av as GetSitemapCountRequest, au as GetSitemapRequest, bO as GroupByAggregation, bP as GroupByAggregationKindOneOf, c6 as GroupByValueResults, aE as IdentificationData, aF as IdentificationDataIdOneOf, bF as IncludeMissingValuesOptions, aK as IndexDocument, K as Interval, dv as IntervalWithLiterals, aR as InvalidateCache, aS as InvalidateCacheGetByOneOf, b9 as ItemMetadata, aa as Keyword, cm as LabeledProgram, cl as ListSampleProgramsRequest, d1 as Locale, aD as MessageEnvelope, cr as MetaSiteSpecialEvent, cs as MetaSiteSpecialEventPayloadOneOf, cq as MissingMetasiteIdErrorDetails, I as MissingValues, ds as MissingValuesWithLiterals, Q as Mode, dx as ModeWithLiterals, a7 as Money, d8 as Multilingual, X as Namespace, cH as NamespaceChanged, dA as NamespaceWithLiterals, bN as NestedAggregation, bL as NestedAggregationItem, bM as NestedAggregationItemKindOneOf, bV as NestedAggregationResults, bW as NestedAggregationResultsResultOneOf, N as NestedAggregationType, du as NestedAggregationTypeWithLiterals, c2 as NestedResultValue, c3 as NestedResultValueResultOneOf, c8 as NestedResults, b_ as NestedValueAggregationResult, cM as OdeditorAssigned, cN as OdeditorUnassigned, aU as Page, aY as Pages, bu as Paging, bx as PagingMetadataV2, cO as PicassoAssigned, cP as PicassoUnassigned, _ as PlacementType, dD as PlacementTypeWithLiterals, al as ProgramArchived, am as ProgramDuplicated, ak as ProgramEnded, ao as ProgramFreemiumDisabled, an as ProgramFreemiumEnabled, b6 as ProgramMigration, aj as ProgramPublished, df as ProgramQuerySpec, as as ProgramRouterData, at as ProgramRouterDataSelectionOneOf, ar as ProgramRouterPageResult, aq as ProgramRouterPageRole, dg as ProgramSearchSpec, de as ProgramsQueryResult, c$ as Properties, cb as PublishProgramRequest, bq as QueryProgramsRequest, bw as QueryProgramsResponse, br as QueryV2, bs as QueryV2PagingMethodOneOf, bI as RangeAggregation, bU as RangeAggregationResult, bE as RangeBucket, c0 as RangeResult, bY as RangeResults, a_ as ReindexMessage, a$ as ReindexMessageActionOneOf, a0 as ResolutionMethod, dF as ResolutionMethodWithLiterals, co as ResolveProgramSlugRequest, cp as ResolveProgramSlugResponse, az as RestoreInfo, a6 as Restrictions, c4 as Results, ad as Reward, bJ as ScalarAggregation, c1 as ScalarResult, J as ScalarType, dt as ScalarTypeWithLiterals, b2 as Schema, bQ as SearchDetails, cY as SearchIndexingNotification, Z as SearchIndexingNotificationState, dC as SearchIndexingNotificationStateWithLiterals, bz as SearchProgramsRequest, a8 as Seo, a9 as SeoSchema, cD as ServiceProvisioned, cE as ServiceRemoved, ac as Settings, cu as SiteCreated, V as SiteCreatedContext, dz as SiteCreatedContextWithLiterals, cw as SiteDeleted, cG as SiteHardDeleted, cB as SiteMarkedAsTemplate, cC as SiteMarkedAsWixSite, c_ as SitePropertiesEvent, cZ as SitePropertiesUpdated, cz as SitePublished, cL as SitePurgedExternally, cF as SiteRenamed, cv as SiteTransferred, cy as SiteUndeleted, cA as SiteUnpublished, cK as SiteUrlChanged, H as SortDirection, dr as SortDirectionWithLiterals, z as SortOrder, dp as SortOrderWithLiterals, F as SortType, dq as SortTypeWithLiterals, bt as Sorting, d7 as SpecialHourPeriod, R as State, dy as StateWithLiterals, v as Status, di as StatusWithLiterals, cI as StudioAssigned, cS as StudioTwoAssigned, cT as StudioTwoUnassigned, cJ as StudioUnassigned, d9 as SupportedLanguage, ab as Tag, d6 as TimePeriod, a5 as Timeline, bn as TimelineSwitchForbiddenErrorDetails, T as Trigger, dk as TriggerWithLiterals, aV as URI, aZ as URIs, aP as UpdateByFilterOperation, aH as UpdateDocumentsEvent, aI as UpdateDocumentsEventOperationOneOf, aQ as UpdateExistingOperation, bh as UpdateProgramRequest, bi as UpdateProgramResponse, b0 as Upsert, cV as UserDomainMediaDisabled, cU as UserDomainMediaEnabled, bG as ValueAggregation, bH as ValueAggregationOptionsOneOf, bT as ValueAggregationResult, b$ as ValueResult, bX as ValueResults, a4 as VideoResolution, ag as VideoStepsSettings, W as WebhookIdentityType, dl as WebhookIdentityTypeWithLiterals, cQ as WixelAssigned, cR as WixelUnassigned, bl as WrongParticipantsNumberErrorDetails, bk as WrongStartDateErrorDetails, bj as WrongStateErrorDetails, dh as utils } from './online-programs-v3-program-programs.universal-BIitHGTm.mjs';
4
4
 
5
+ declare function getPage$1(httpClient: HttpClient): GetPageSignature;
6
+ interface GetPageSignature {
7
+ /**
8
+ * Resolves an encoded program route to a connected Builder page.
9
+ */
10
+ (options?: GetPageOptions): Promise<NonNullablePaths<GetPageResponse, `result.status` | `result.page` | `result.publicData.stepId` | `result.publicData.description` | `result.publicData.programId` | `result.message`, 2>>;
11
+ }
12
+ declare function getSitemap$1(httpClient: HttpClient): GetSitemapSignature;
13
+ interface GetSitemapSignature {
14
+ /**
15
+ * Lists connected Builder routes for editor navigation, not crawler indexing.
16
+ */
17
+ (options?: GetSitemapOptions): Promise<GetSitemapResponse>;
18
+ }
19
+ declare function getSitemapCount$1(httpClient: HttpClient): GetSitemapCountSignature;
20
+ interface GetSitemapCountSignature {
21
+ /**
22
+ * Counts editor navigation entries using the same visibility policy as sitemap.
23
+ * NOT-PRECEDENT: `/sitemapCount` is required by the App Router contract:
24
+ * https://github.com/wix-private/editor-platform/blob/master/packages/platform-editor-sdk/docs/articles/routers.md#sitemap-count-request
25
+ */
26
+ (options?: GetSitemapCountOptions): Promise<GetSitemapCountResponse>;
27
+ }
5
28
  declare function createProgram$1(httpClient: HttpClient): CreateProgramSignature;
6
29
  interface CreateProgramSignature {
7
30
  /**
@@ -157,6 +180,9 @@ declare function customQueryPrograms(httpClient: HttpClient): {
157
180
  (): ProgramsQueryBuilder;
158
181
  (query: ProgramQuery): ReturnType<typeof typedQueryPrograms>;
159
182
  };
183
+ declare const getPage: MaybeContext<BuildRESTFunction<typeof getPage$1> & typeof getPage$1>;
184
+ declare const getSitemap: MaybeContext<BuildRESTFunction<typeof getSitemap$1> & typeof getSitemap$1>;
185
+ declare const getSitemapCount: MaybeContext<BuildRESTFunction<typeof getSitemapCount$1> & typeof getSitemapCount$1>;
160
186
  declare const createProgram: MaybeContext<BuildRESTFunction<typeof createProgram$1> & typeof createProgram$1>;
161
187
  declare const duplicateProgram: MaybeContext<BuildRESTFunction<typeof duplicateProgram$1> & typeof duplicateProgram$1>;
162
188
  declare const getProgram: MaybeContext<BuildRESTFunction<typeof getProgram$1> & typeof getProgram$1>;
@@ -199,4 +225,4 @@ declare const onProgramPublished: BuildEventDefinition<typeof onProgramPublished
199
225
  */
200
226
  declare const onProgramUpdated: BuildEventDefinition<typeof onProgramUpdated$1> & typeof onProgramUpdated$1;
201
227
 
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 };
228
+ export { ArchiveProgramResponse, BulkUpdateProgramsOptions, BulkUpdateProgramsResponse, CountProgramsOptions, CountProgramsResponse, DuplicateProgramResponse, EndProgramResponse, GetPageOptions, GetPageResponse, GetSitemapCountOptions, GetSitemapCountResponse, GetSitemapOptions, GetSitemapResponse, 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, getPage, getProgram, getSitemap, getSitemapCount, listSamplePrograms, onProgramArchived, onProgramCreated, onProgramDeleted, onProgramDuplicated, onProgramEnded, onProgramPublished, onProgramUpdated, publishProgram, queryPrograms, searchPrograms, updateProgram };
@@ -192,7 +192,74 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
192
192
  };
193
193
  return resolveUrl(Object.assign(opts, { domainToMappings }));
194
194
  }
195
+ function resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl(opts) {
196
+ const domainToMappings = {};
197
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
198
+ }
195
199
  var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
200
+ function getPage(payload) {
201
+ function __getPage({ host }) {
202
+ const metadata = {
203
+ entityFqdn: "wix.online_programs.v3.program",
204
+ method: "POST",
205
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetPage",
206
+ packageName: PACKAGE_NAME,
207
+ migrationOptions: {
208
+ optInTransformResponse: true
209
+ },
210
+ url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
211
+ protoPath: "/v3/programs/router/pages",
212
+ data: payload,
213
+ host
214
+ }),
215
+ data: payload
216
+ };
217
+ return metadata;
218
+ }
219
+ return __getPage;
220
+ }
221
+ function getSitemap(payload) {
222
+ function __getSitemap({ host }) {
223
+ const metadata = {
224
+ entityFqdn: "wix.online_programs.v3.program",
225
+ method: "POST",
226
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemap",
227
+ packageName: PACKAGE_NAME,
228
+ migrationOptions: {
229
+ optInTransformResponse: true
230
+ },
231
+ url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
232
+ protoPath: "/v3/programs/router/sitemap",
233
+ data: payload,
234
+ host
235
+ }),
236
+ data: payload
237
+ };
238
+ return metadata;
239
+ }
240
+ return __getSitemap;
241
+ }
242
+ function getSitemapCount(payload) {
243
+ function __getSitemapCount({ host }) {
244
+ const metadata = {
245
+ entityFqdn: "wix.online_programs.v3.program",
246
+ method: "POST",
247
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemapCount",
248
+ packageName: PACKAGE_NAME,
249
+ migrationOptions: {
250
+ optInTransformResponse: true
251
+ },
252
+ url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
253
+ protoPath: "/v3/programs/router/sitemapCount",
254
+ data: payload,
255
+ host
256
+ }),
257
+ data: payload
258
+ };
259
+ return metadata;
260
+ }
261
+ return __getSitemapCount;
262
+ }
196
263
  function createProgram(payload) {
197
264
  function __createProgram({ host }) {
198
265
  const serializedData = transformPaths(payload, [
@@ -724,6 +791,14 @@ var Trigger = /* @__PURE__ */ ((Trigger2) => {
724
791
  Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
725
792
  return Trigger2;
726
793
  })(Trigger || {});
794
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
795
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
796
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
797
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
798
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
799
+ WebhookIdentityType2["APP"] = "APP";
800
+ return WebhookIdentityType2;
801
+ })(WebhookIdentityType || {});
727
802
  var Enum = /* @__PURE__ */ ((Enum2) => {
728
803
  Enum2["UNKNOWN"] = "UNKNOWN";
729
804
  Enum2["PROTECTED"] = "PROTECTED";
@@ -894,14 +969,129 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
894
969
  ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
895
970
  return ResolutionMethod2;
896
971
  })(ResolutionMethod || {});
897
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
898
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
899
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
900
- WebhookIdentityType2["MEMBER"] = "MEMBER";
901
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
902
- WebhookIdentityType2["APP"] = "APP";
903
- return WebhookIdentityType2;
904
- })(WebhookIdentityType || {});
972
+ async function getPage2(options) {
973
+ const { httpClient, sideEffects } = arguments[1];
974
+ const payload = renameKeysFromSDKRequestToRESTRequest({
975
+ routerPrefix: options?.routerPrefix,
976
+ routerSuffix: options?.routerSuffix,
977
+ fullUrl: options?.fullUrl,
978
+ pageRoles: options?.pageRoles,
979
+ config: options?.config,
980
+ requestInfo: options?.requestInfo,
981
+ roleVariations: options?.roleVariations,
982
+ dynamicPageIdOverride: options?.dynamicPageIdOverride
983
+ });
984
+ const reqOpts = getPage(payload);
985
+ sideEffects?.onSiteCall?.();
986
+ try {
987
+ const result = await httpClient.request(reqOpts);
988
+ sideEffects?.onSuccess?.(result);
989
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
990
+ } catch (err) {
991
+ const transformedError = sdkTransformError(
992
+ err,
993
+ {
994
+ spreadPathsToArguments: {},
995
+ explicitPathsToArguments: {
996
+ routerPrefix: "$[0].routerPrefix",
997
+ routerSuffix: "$[0].routerSuffix",
998
+ fullUrl: "$[0].fullUrl",
999
+ pageRoles: "$[0].pageRoles",
1000
+ config: "$[0].config",
1001
+ requestInfo: "$[0].requestInfo",
1002
+ roleVariations: "$[0].roleVariations",
1003
+ dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
1004
+ },
1005
+ singleArgumentUnchanged: false
1006
+ },
1007
+ ["options"]
1008
+ );
1009
+ sideEffects?.onError?.(err);
1010
+ throw transformedError;
1011
+ }
1012
+ }
1013
+ async function getSitemap2(options) {
1014
+ const { httpClient, sideEffects } = arguments[1];
1015
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1016
+ routerPrefix: options?.routerPrefix,
1017
+ routerSuffix: options?.routerSuffix,
1018
+ fullUrl: options?.fullUrl,
1019
+ pageRoles: options?.pageRoles,
1020
+ config: options?.config,
1021
+ requestInfo: options?.requestInfo,
1022
+ roleVariations: options?.roleVariations,
1023
+ dynamicPageIdOverride: options?.dynamicPageIdOverride
1024
+ });
1025
+ const reqOpts = getSitemap(payload);
1026
+ sideEffects?.onSiteCall?.();
1027
+ try {
1028
+ const result = await httpClient.request(reqOpts);
1029
+ sideEffects?.onSuccess?.(result);
1030
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1031
+ } catch (err) {
1032
+ const transformedError = sdkTransformError(
1033
+ err,
1034
+ {
1035
+ spreadPathsToArguments: {},
1036
+ explicitPathsToArguments: {
1037
+ routerPrefix: "$[0].routerPrefix",
1038
+ routerSuffix: "$[0].routerSuffix",
1039
+ fullUrl: "$[0].fullUrl",
1040
+ pageRoles: "$[0].pageRoles",
1041
+ config: "$[0].config",
1042
+ requestInfo: "$[0].requestInfo",
1043
+ roleVariations: "$[0].roleVariations",
1044
+ dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
1045
+ },
1046
+ singleArgumentUnchanged: false
1047
+ },
1048
+ ["options"]
1049
+ );
1050
+ sideEffects?.onError?.(err);
1051
+ throw transformedError;
1052
+ }
1053
+ }
1054
+ async function getSitemapCount2(options) {
1055
+ const { httpClient, sideEffects } = arguments[1];
1056
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1057
+ routerPrefix: options?.routerPrefix,
1058
+ routerSuffix: options?.routerSuffix,
1059
+ fullUrl: options?.fullUrl,
1060
+ pageRoles: options?.pageRoles,
1061
+ config: options?.config,
1062
+ requestInfo: options?.requestInfo,
1063
+ roleVariations: options?.roleVariations,
1064
+ dynamicPageIdOverride: options?.dynamicPageIdOverride
1065
+ });
1066
+ const reqOpts = getSitemapCount(payload);
1067
+ sideEffects?.onSiteCall?.();
1068
+ try {
1069
+ const result = await httpClient.request(reqOpts);
1070
+ sideEffects?.onSuccess?.(result);
1071
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1072
+ } catch (err) {
1073
+ const transformedError = sdkTransformError(
1074
+ err,
1075
+ {
1076
+ spreadPathsToArguments: {},
1077
+ explicitPathsToArguments: {
1078
+ routerPrefix: "$[0].routerPrefix",
1079
+ routerSuffix: "$[0].routerSuffix",
1080
+ fullUrl: "$[0].fullUrl",
1081
+ pageRoles: "$[0].pageRoles",
1082
+ config: "$[0].config",
1083
+ requestInfo: "$[0].requestInfo",
1084
+ roleVariations: "$[0].roleVariations",
1085
+ dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
1086
+ },
1087
+ singleArgumentUnchanged: false
1088
+ },
1089
+ ["options"]
1090
+ );
1091
+ sideEffects?.onError?.(err);
1092
+ throw transformedError;
1093
+ }
1094
+ }
905
1095
  async function createProgram2(program) {
906
1096
  const { httpClient, sideEffects } = arguments[1];
907
1097
  const payload = transformPaths2(
@@ -1670,6 +1860,27 @@ var TRANSFORM_PATHS_24 = [
1670
1860
  { path: "entity.videoStepsSettings.requiredCompletionPercentage" },
1671
1861
  { path: "modifiedFields.videoStepsSettings.requiredCompletionPercentage" }
1672
1862
  ];
1863
+ function getPage3(httpClient) {
1864
+ return (options) => getPage2(
1865
+ options,
1866
+ // @ts-ignore
1867
+ { httpClient }
1868
+ );
1869
+ }
1870
+ function getSitemap3(httpClient) {
1871
+ return (options) => getSitemap2(
1872
+ options,
1873
+ // @ts-ignore
1874
+ { httpClient }
1875
+ );
1876
+ }
1877
+ function getSitemapCount3(httpClient) {
1878
+ return (options) => getSitemapCount2(
1879
+ options,
1880
+ // @ts-ignore
1881
+ { httpClient }
1882
+ );
1883
+ }
1673
1884
  function createProgram3(httpClient) {
1674
1885
  return (program) => createProgram2(
1675
1886
  program,
@@ -1994,6 +2205,9 @@ function customQueryPrograms(httpClient) {
1994
2205
  }
1995
2206
  return overloadedQuery;
1996
2207
  }
2208
+ var getPage4 = /* @__PURE__ */ createRESTModule(getPage3);
2209
+ var getSitemap4 = /* @__PURE__ */ createRESTModule(getSitemap3);
2210
+ var getSitemapCount4 = /* @__PURE__ */ createRESTModule(getSitemapCount3);
1997
2211
  var createProgram4 = /* @__PURE__ */ createRESTModule(createProgram3);
1998
2212
  var duplicateProgram4 = /* @__PURE__ */ createRESTModule(duplicateProgram3);
1999
2213
  var getProgram4 = /* @__PURE__ */ createRESTModule(getProgram3);
@@ -2061,7 +2275,10 @@ export {
2061
2275
  duplicateProgram4 as duplicateProgram,
2062
2276
  enableProgramFreemium4 as enableProgramFreemium,
2063
2277
  endProgram4 as endProgram,
2278
+ getPage4 as getPage,
2064
2279
  getProgram4 as getProgram,
2280
+ getSitemap4 as getSitemap,
2281
+ getSitemapCount4 as getSitemapCount,
2065
2282
  listSamplePrograms4 as listSamplePrograms,
2066
2283
  onProgramArchived2 as onProgramArchived,
2067
2284
  onProgramCreated2 as onProgramCreated,