@wix/auto_sdk_online-programs_programs 1.0.43 → 1.0.45

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 +271 -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 +247 -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 +178 -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 +268 -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 +244 -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 +175 -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 +3 -3
@@ -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,117 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
192
192
  };
193
193
  return resolveUrl(Object.assign(opts, { domainToMappings }));
194
194
  }
195
+ function resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl(opts) {
196
+ const domainToMappings = {
197
+ "manage._base_domain_": [
198
+ {
199
+ srcPath: "/_api/programs-service",
200
+ destPath: ""
201
+ }
202
+ ],
203
+ _: [
204
+ {
205
+ srcPath: "/_api/programs-service",
206
+ destPath: ""
207
+ }
208
+ ],
209
+ "editor.wixapps.net": [
210
+ {
211
+ srcPath: "/_api/programs-service",
212
+ destPath: ""
213
+ }
214
+ ],
215
+ "www.wixapis.com": [
216
+ {
217
+ srcPath: "/online-programs/v3/programs",
218
+ destPath: "/v3/programs"
219
+ },
220
+ {
221
+ srcPath: "/online-programs/v3/bulk/programs",
222
+ destPath: "/v3/bulk/programs"
223
+ },
224
+ {
225
+ srcPath: "/_api/programs-service",
226
+ destPath: ""
227
+ }
228
+ ],
229
+ "*.dev.wix-code.com": [
230
+ {
231
+ srcPath: "/online-programs/v3/programs",
232
+ destPath: "/v3/programs"
233
+ },
234
+ {
235
+ srcPath: "/online-programs/v3/bulk/programs",
236
+ destPath: "/v3/bulk/programs"
237
+ }
238
+ ]
239
+ };
240
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
241
+ }
195
242
  var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
243
+ function getPage(payload) {
244
+ function __getPage({ host }) {
245
+ const metadata = {
246
+ entityFqdn: "wix.online_programs.v3.program",
247
+ method: "POST",
248
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetPage",
249
+ packageName: PACKAGE_NAME,
250
+ migrationOptions: {
251
+ optInTransformResponse: true
252
+ },
253
+ url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
254
+ protoPath: "/v3/programs/router/pages",
255
+ data: payload,
256
+ host
257
+ }),
258
+ data: payload
259
+ };
260
+ return metadata;
261
+ }
262
+ return __getPage;
263
+ }
264
+ function getSitemap(payload) {
265
+ function __getSitemap({ host }) {
266
+ const metadata = {
267
+ entityFqdn: "wix.online_programs.v3.program",
268
+ method: "POST",
269
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemap",
270
+ packageName: PACKAGE_NAME,
271
+ migrationOptions: {
272
+ optInTransformResponse: true
273
+ },
274
+ url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
275
+ protoPath: "/v3/programs/router/sitemap",
276
+ data: payload,
277
+ host
278
+ }),
279
+ data: payload
280
+ };
281
+ return metadata;
282
+ }
283
+ return __getSitemap;
284
+ }
285
+ function getSitemapCount(payload) {
286
+ function __getSitemapCount({ host }) {
287
+ const metadata = {
288
+ entityFqdn: "wix.online_programs.v3.program",
289
+ method: "POST",
290
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemapCount",
291
+ packageName: PACKAGE_NAME,
292
+ migrationOptions: {
293
+ optInTransformResponse: true
294
+ },
295
+ url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
296
+ protoPath: "/v3/programs/router/sitemapCount",
297
+ data: payload,
298
+ host
299
+ }),
300
+ data: payload
301
+ };
302
+ return metadata;
303
+ }
304
+ return __getSitemapCount;
305
+ }
196
306
  function createProgram(payload) {
197
307
  function __createProgram({ host }) {
198
308
  const serializedData = transformPaths(payload, [
@@ -724,6 +834,14 @@ var Trigger = /* @__PURE__ */ ((Trigger2) => {
724
834
  Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
725
835
  return Trigger2;
726
836
  })(Trigger || {});
837
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
838
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
839
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
840
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
841
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
842
+ WebhookIdentityType2["APP"] = "APP";
843
+ return WebhookIdentityType2;
844
+ })(WebhookIdentityType || {});
727
845
  var Enum = /* @__PURE__ */ ((Enum2) => {
728
846
  Enum2["UNKNOWN"] = "UNKNOWN";
729
847
  Enum2["PROTECTED"] = "PROTECTED";
@@ -894,14 +1012,129 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
894
1012
  ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
895
1013
  return ResolutionMethod2;
896
1014
  })(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 || {});
1015
+ async function getPage2(options) {
1016
+ const { httpClient, sideEffects } = arguments[1];
1017
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1018
+ routerPrefix: options?.routerPrefix,
1019
+ routerSuffix: options?.routerSuffix,
1020
+ fullUrl: options?.fullUrl,
1021
+ pageRoles: options?.pageRoles,
1022
+ config: options?.config,
1023
+ requestInfo: options?.requestInfo,
1024
+ roleVariations: options?.roleVariations,
1025
+ dynamicPageIdOverride: options?.dynamicPageIdOverride
1026
+ });
1027
+ const reqOpts = getPage(payload);
1028
+ sideEffects?.onSiteCall?.();
1029
+ try {
1030
+ const result = await httpClient.request(reqOpts);
1031
+ sideEffects?.onSuccess?.(result);
1032
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1033
+ } catch (err) {
1034
+ const transformedError = sdkTransformError(
1035
+ err,
1036
+ {
1037
+ spreadPathsToArguments: {},
1038
+ explicitPathsToArguments: {
1039
+ routerPrefix: "$[0].routerPrefix",
1040
+ routerSuffix: "$[0].routerSuffix",
1041
+ fullUrl: "$[0].fullUrl",
1042
+ pageRoles: "$[0].pageRoles",
1043
+ config: "$[0].config",
1044
+ requestInfo: "$[0].requestInfo",
1045
+ roleVariations: "$[0].roleVariations",
1046
+ dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
1047
+ },
1048
+ singleArgumentUnchanged: false
1049
+ },
1050
+ ["options"]
1051
+ );
1052
+ sideEffects?.onError?.(err);
1053
+ throw transformedError;
1054
+ }
1055
+ }
1056
+ async function getSitemap2(options) {
1057
+ const { httpClient, sideEffects } = arguments[1];
1058
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1059
+ routerPrefix: options?.routerPrefix,
1060
+ routerSuffix: options?.routerSuffix,
1061
+ fullUrl: options?.fullUrl,
1062
+ pageRoles: options?.pageRoles,
1063
+ config: options?.config,
1064
+ requestInfo: options?.requestInfo,
1065
+ roleVariations: options?.roleVariations,
1066
+ dynamicPageIdOverride: options?.dynamicPageIdOverride
1067
+ });
1068
+ const reqOpts = getSitemap(payload);
1069
+ sideEffects?.onSiteCall?.();
1070
+ try {
1071
+ const result = await httpClient.request(reqOpts);
1072
+ sideEffects?.onSuccess?.(result);
1073
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1074
+ } catch (err) {
1075
+ const transformedError = sdkTransformError(
1076
+ err,
1077
+ {
1078
+ spreadPathsToArguments: {},
1079
+ explicitPathsToArguments: {
1080
+ routerPrefix: "$[0].routerPrefix",
1081
+ routerSuffix: "$[0].routerSuffix",
1082
+ fullUrl: "$[0].fullUrl",
1083
+ pageRoles: "$[0].pageRoles",
1084
+ config: "$[0].config",
1085
+ requestInfo: "$[0].requestInfo",
1086
+ roleVariations: "$[0].roleVariations",
1087
+ dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
1088
+ },
1089
+ singleArgumentUnchanged: false
1090
+ },
1091
+ ["options"]
1092
+ );
1093
+ sideEffects?.onError?.(err);
1094
+ throw transformedError;
1095
+ }
1096
+ }
1097
+ async function getSitemapCount2(options) {
1098
+ const { httpClient, sideEffects } = arguments[1];
1099
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1100
+ routerPrefix: options?.routerPrefix,
1101
+ routerSuffix: options?.routerSuffix,
1102
+ fullUrl: options?.fullUrl,
1103
+ pageRoles: options?.pageRoles,
1104
+ config: options?.config,
1105
+ requestInfo: options?.requestInfo,
1106
+ roleVariations: options?.roleVariations,
1107
+ dynamicPageIdOverride: options?.dynamicPageIdOverride
1108
+ });
1109
+ const reqOpts = getSitemapCount(payload);
1110
+ sideEffects?.onSiteCall?.();
1111
+ try {
1112
+ const result = await httpClient.request(reqOpts);
1113
+ sideEffects?.onSuccess?.(result);
1114
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1115
+ } catch (err) {
1116
+ const transformedError = sdkTransformError(
1117
+ err,
1118
+ {
1119
+ spreadPathsToArguments: {},
1120
+ explicitPathsToArguments: {
1121
+ routerPrefix: "$[0].routerPrefix",
1122
+ routerSuffix: "$[0].routerSuffix",
1123
+ fullUrl: "$[0].fullUrl",
1124
+ pageRoles: "$[0].pageRoles",
1125
+ config: "$[0].config",
1126
+ requestInfo: "$[0].requestInfo",
1127
+ roleVariations: "$[0].roleVariations",
1128
+ dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
1129
+ },
1130
+ singleArgumentUnchanged: false
1131
+ },
1132
+ ["options"]
1133
+ );
1134
+ sideEffects?.onError?.(err);
1135
+ throw transformedError;
1136
+ }
1137
+ }
905
1138
  async function createProgram2(program) {
906
1139
  const { httpClient, sideEffects } = arguments[1];
907
1140
  const payload = transformPaths2(
@@ -1670,6 +1903,27 @@ var TRANSFORM_PATHS_24 = [
1670
1903
  { path: "entity.videoStepsSettings.requiredCompletionPercentage" },
1671
1904
  { path: "modifiedFields.videoStepsSettings.requiredCompletionPercentage" }
1672
1905
  ];
1906
+ function getPage3(httpClient) {
1907
+ return (options) => getPage2(
1908
+ options,
1909
+ // @ts-ignore
1910
+ { httpClient }
1911
+ );
1912
+ }
1913
+ function getSitemap3(httpClient) {
1914
+ return (options) => getSitemap2(
1915
+ options,
1916
+ // @ts-ignore
1917
+ { httpClient }
1918
+ );
1919
+ }
1920
+ function getSitemapCount3(httpClient) {
1921
+ return (options) => getSitemapCount2(
1922
+ options,
1923
+ // @ts-ignore
1924
+ { httpClient }
1925
+ );
1926
+ }
1673
1927
  function createProgram3(httpClient) {
1674
1928
  return (program) => createProgram2(
1675
1929
  program,
@@ -1994,6 +2248,9 @@ function customQueryPrograms(httpClient) {
1994
2248
  }
1995
2249
  return overloadedQuery;
1996
2250
  }
2251
+ var getPage4 = /* @__PURE__ */ createRESTModule(getPage3);
2252
+ var getSitemap4 = /* @__PURE__ */ createRESTModule(getSitemap3);
2253
+ var getSitemapCount4 = /* @__PURE__ */ createRESTModule(getSitemapCount3);
1997
2254
  var createProgram4 = /* @__PURE__ */ createRESTModule(createProgram3);
1998
2255
  var duplicateProgram4 = /* @__PURE__ */ createRESTModule(duplicateProgram3);
1999
2256
  var getProgram4 = /* @__PURE__ */ createRESTModule(getProgram3);
@@ -2061,7 +2318,10 @@ export {
2061
2318
  duplicateProgram4 as duplicateProgram,
2062
2319
  enableProgramFreemium4 as enableProgramFreemium,
2063
2320
  endProgram4 as endProgram,
2321
+ getPage4 as getPage,
2064
2322
  getProgram4 as getProgram,
2323
+ getSitemap4 as getSitemap,
2324
+ getSitemapCount4 as getSitemapCount,
2065
2325
  listSamplePrograms4 as listSamplePrograms,
2066
2326
  onProgramArchived2 as onProgramArchived,
2067
2327
  onProgramCreated2 as onProgramCreated,