@wix/auto_sdk_online-programs_programs 1.0.42 → 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.
- package/build/cjs/index.d.ts +29 -3
- package/build/cjs/index.js +228 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +204 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +465 -232
- package/build/cjs/meta.js +135 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-CXWw_Yap.d.ts → online-programs-v3-program-programs.universal-BIitHGTm.d.ts} +591 -236
- package/build/es/index.d.mts +29 -3
- package/build/es/index.mjs +225 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +201 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +465 -232
- package/build/es/meta.mjs +132 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-CXWw_Yap.d.mts → online-programs-v3-program-programs.universal-BIitHGTm.d.mts} +591 -236
- package/build/internal/cjs/index.d.ts +29 -3
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +527 -294
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-C2QeyOXB.d.ts → online-programs-v3-program-programs.universal-CYvJsYoR.d.ts} +595 -240
- package/build/internal/es/index.d.mts +29 -3
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +527 -294
- package/build/internal/es/{online-programs-v3-program-programs.universal-C2QeyOXB.d.mts → online-programs-v3-program-programs.universal-CYvJsYoR.d.mts} +595 -240
- package/package.json +4 -4
package/build/es/index.d.mts
CHANGED
|
@@ -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,
|
|
3
|
-
export {
|
|
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 };
|
package/build/es/index.mjs
CHANGED
|
@@ -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
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
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,
|