@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.
- 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 +361 -189
- package/build/cjs/meta.js +135 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-Lt33oe5u.d.ts → online-programs-v3-program-programs.universal-BIitHGTm.d.ts} +480 -186
- 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 +361 -189
- package/build/es/meta.mjs +132 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-Lt33oe5u.d.mts → online-programs-v3-program-programs.universal-BIitHGTm.d.mts} +480 -186
- 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 +413 -241
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-DJ1omkE9.d.ts → online-programs-v3-program-programs.universal-CYvJsYoR.d.ts} +490 -196
- 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 +413 -241
- package/build/internal/es/{online-programs-v3-program-programs.universal-DJ1omkE9.d.mts → online-programs-v3-program-programs.universal-CYvJsYoR.d.mts} +490 -196
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bA as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-BIitHGTm.js';
|
|
2
|
+
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, A as ArchiveProgramResponse, 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, B as BulkUpdateProgramsOptions, ci as BulkUpdateProgramsRequest, j as BulkUpdateProgramsResponse, d5 as BusinessSchedule, d0 as Categories, ae as Certificate, dH as CommonQueryWithEntityContext, dI as CommonSearchWithEntityContext, da as ConsentPolicy, ah as ContentSummary, C as CountProgramsOptions, ck as CountProgramsRequest, k as CountProgramsResponse, b3 as CreateProgramRequest, b4 as CreateProgramResponse, bv as CursorPaging, bR as CursorPagingMetadata, 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, D as DuplicateProgramResponse, bm as DuplicatedSlugErrorDetails, cW as EditorlessAssigned, cX as EditorlessUnassigned, cn as Empty, dG as EnableProgramFreemiumApplicationErrors, ce as EnableProgramFreemiumRequest, cf as EnableProgramFreemiumResponse, cc as EndProgramRequest, E as EndProgramResponse, 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, G as GetPageOptions, ap as GetPageRequest, a as GetPageResponse, bf as GetProgramRequest, bg as GetProgramResponse, d as GetSitemapCountOptions, av as GetSitemapCountRequest, e as GetSitemapCountResponse, b as GetSitemapOptions, au as GetSitemapRequest, c as GetSitemapResponse, 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, L as ListSampleProgramsResponse, d1 as Locale, M as MaskedProgram, 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, P as Program, al as ProgramArchived, n as ProgramArchivedEnvelope, l as ProgramCreatedEnvelope, m as ProgramDeletedEnvelope, am as ProgramDuplicated, o as ProgramDuplicatedEnvelope, ak as ProgramEnded, p as ProgramEndedEnvelope, ao as ProgramFreemiumDisabled, an as ProgramFreemiumEnabled, b6 as ProgramMigration, aj as ProgramPublished, q as ProgramPublishedEnvelope, t as ProgramQuery, df as ProgramQuerySpec, as as ProgramRouterData, at as ProgramRouterDataSelectionOneOf, ar as ProgramRouterPageResult, aq as ProgramRouterPageRole, dg as ProgramSearchSpec, r as ProgramUpdatedEnvelope, s as ProgramsQueryBuilder, de as ProgramsQueryResult, c$ as Properties, i as PublishProgramApplicationErrors, cb as PublishProgramRequest, h as PublishProgramResponse, 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, U as UpdateProgram, f as UpdateProgramApplicationErrors, 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, d$ as archiveProgram, e0 as bulkUpdatePrograms, e1 as countPrograms, dT as createProgram, dX as deleteProgram, dU as duplicateProgram, d_ as endProgram, dQ as getPage, dV as getProgram, dR as getSitemap, dS as getSitemapCount, e2 as listSamplePrograms, dL as onProgramArchived, dJ as onProgramCreated, dK as onProgramDeleted, dM as onProgramDuplicated, dN as onProgramEnded, dO as onProgramPublished, dP as onProgramUpdated, dZ as publishProgram, dY as queryPrograms, u as typedQueryPrograms, dW as updateProgram, dh as utils } from './online-programs-v3-program-programs.universal-BIitHGTm.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -52,7 +52,10 @@ __export(index_typings_exports, {
|
|
|
52
52
|
duplicateProgram: () => duplicateProgram2,
|
|
53
53
|
enableProgramFreemium: () => enableProgramFreemium2,
|
|
54
54
|
endProgram: () => endProgram2,
|
|
55
|
+
getPage: () => getPage2,
|
|
55
56
|
getProgram: () => getProgram2,
|
|
57
|
+
getSitemap: () => getSitemap2,
|
|
58
|
+
getSitemapCount: () => getSitemapCount2,
|
|
56
59
|
listSamplePrograms: () => listSamplePrograms2,
|
|
57
60
|
publishProgram: () => publishProgram2,
|
|
58
61
|
queryPrograms: () => queryPrograms2,
|
|
@@ -244,7 +247,74 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
|
|
|
244
247
|
};
|
|
245
248
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
246
249
|
}
|
|
250
|
+
function resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl(opts) {
|
|
251
|
+
const domainToMappings = {};
|
|
252
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
253
|
+
}
|
|
247
254
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
|
|
255
|
+
function getPage(payload) {
|
|
256
|
+
function __getPage({ host }) {
|
|
257
|
+
const metadata = {
|
|
258
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
259
|
+
method: "POST",
|
|
260
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetPage",
|
|
261
|
+
packageName: PACKAGE_NAME,
|
|
262
|
+
migrationOptions: {
|
|
263
|
+
optInTransformResponse: true
|
|
264
|
+
},
|
|
265
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
266
|
+
protoPath: "/v3/programs/router/pages",
|
|
267
|
+
data: payload,
|
|
268
|
+
host
|
|
269
|
+
}),
|
|
270
|
+
data: payload
|
|
271
|
+
};
|
|
272
|
+
return metadata;
|
|
273
|
+
}
|
|
274
|
+
return __getPage;
|
|
275
|
+
}
|
|
276
|
+
function getSitemap(payload) {
|
|
277
|
+
function __getSitemap({ host }) {
|
|
278
|
+
const metadata = {
|
|
279
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
280
|
+
method: "POST",
|
|
281
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemap",
|
|
282
|
+
packageName: PACKAGE_NAME,
|
|
283
|
+
migrationOptions: {
|
|
284
|
+
optInTransformResponse: true
|
|
285
|
+
},
|
|
286
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
287
|
+
protoPath: "/v3/programs/router/sitemap",
|
|
288
|
+
data: payload,
|
|
289
|
+
host
|
|
290
|
+
}),
|
|
291
|
+
data: payload
|
|
292
|
+
};
|
|
293
|
+
return metadata;
|
|
294
|
+
}
|
|
295
|
+
return __getSitemap;
|
|
296
|
+
}
|
|
297
|
+
function getSitemapCount(payload) {
|
|
298
|
+
function __getSitemapCount({ host }) {
|
|
299
|
+
const metadata = {
|
|
300
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
301
|
+
method: "POST",
|
|
302
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemapCount",
|
|
303
|
+
packageName: PACKAGE_NAME,
|
|
304
|
+
migrationOptions: {
|
|
305
|
+
optInTransformResponse: true
|
|
306
|
+
},
|
|
307
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
308
|
+
protoPath: "/v3/programs/router/sitemapCount",
|
|
309
|
+
data: payload,
|
|
310
|
+
host
|
|
311
|
+
}),
|
|
312
|
+
data: payload
|
|
313
|
+
};
|
|
314
|
+
return metadata;
|
|
315
|
+
}
|
|
316
|
+
return __getSitemapCount;
|
|
317
|
+
}
|
|
248
318
|
function createProgram(payload) {
|
|
249
319
|
function __createProgram({ host }) {
|
|
250
320
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -776,6 +846,14 @@ var Trigger = /* @__PURE__ */ ((Trigger2) => {
|
|
|
776
846
|
Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
|
|
777
847
|
return Trigger2;
|
|
778
848
|
})(Trigger || {});
|
|
849
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
850
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
851
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
852
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
853
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
854
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
855
|
+
return WebhookIdentityType2;
|
|
856
|
+
})(WebhookIdentityType || {});
|
|
779
857
|
var Enum = /* @__PURE__ */ ((Enum2) => {
|
|
780
858
|
Enum2["UNKNOWN"] = "UNKNOWN";
|
|
781
859
|
Enum2["PROTECTED"] = "PROTECTED";
|
|
@@ -946,14 +1024,129 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
946
1024
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
947
1025
|
return ResolutionMethod2;
|
|
948
1026
|
})(ResolutionMethod || {});
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1027
|
+
async function getPage2(options) {
|
|
1028
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1029
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1030
|
+
routerPrefix: options?.routerPrefix,
|
|
1031
|
+
routerSuffix: options?.routerSuffix,
|
|
1032
|
+
fullUrl: options?.fullUrl,
|
|
1033
|
+
pageRoles: options?.pageRoles,
|
|
1034
|
+
config: options?.config,
|
|
1035
|
+
requestInfo: options?.requestInfo,
|
|
1036
|
+
roleVariations: options?.roleVariations,
|
|
1037
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1038
|
+
});
|
|
1039
|
+
const reqOpts = getPage(payload);
|
|
1040
|
+
sideEffects?.onSiteCall?.();
|
|
1041
|
+
try {
|
|
1042
|
+
const result = await httpClient.request(reqOpts);
|
|
1043
|
+
sideEffects?.onSuccess?.(result);
|
|
1044
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1045
|
+
} catch (err) {
|
|
1046
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1047
|
+
err,
|
|
1048
|
+
{
|
|
1049
|
+
spreadPathsToArguments: {},
|
|
1050
|
+
explicitPathsToArguments: {
|
|
1051
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1052
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1053
|
+
fullUrl: "$[0].fullUrl",
|
|
1054
|
+
pageRoles: "$[0].pageRoles",
|
|
1055
|
+
config: "$[0].config",
|
|
1056
|
+
requestInfo: "$[0].requestInfo",
|
|
1057
|
+
roleVariations: "$[0].roleVariations",
|
|
1058
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1059
|
+
},
|
|
1060
|
+
singleArgumentUnchanged: false
|
|
1061
|
+
},
|
|
1062
|
+
["options"]
|
|
1063
|
+
);
|
|
1064
|
+
sideEffects?.onError?.(err);
|
|
1065
|
+
throw transformedError;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
async function getSitemap2(options) {
|
|
1069
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1070
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1071
|
+
routerPrefix: options?.routerPrefix,
|
|
1072
|
+
routerSuffix: options?.routerSuffix,
|
|
1073
|
+
fullUrl: options?.fullUrl,
|
|
1074
|
+
pageRoles: options?.pageRoles,
|
|
1075
|
+
config: options?.config,
|
|
1076
|
+
requestInfo: options?.requestInfo,
|
|
1077
|
+
roleVariations: options?.roleVariations,
|
|
1078
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1079
|
+
});
|
|
1080
|
+
const reqOpts = getSitemap(payload);
|
|
1081
|
+
sideEffects?.onSiteCall?.();
|
|
1082
|
+
try {
|
|
1083
|
+
const result = await httpClient.request(reqOpts);
|
|
1084
|
+
sideEffects?.onSuccess?.(result);
|
|
1085
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1086
|
+
} catch (err) {
|
|
1087
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1088
|
+
err,
|
|
1089
|
+
{
|
|
1090
|
+
spreadPathsToArguments: {},
|
|
1091
|
+
explicitPathsToArguments: {
|
|
1092
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1093
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1094
|
+
fullUrl: "$[0].fullUrl",
|
|
1095
|
+
pageRoles: "$[0].pageRoles",
|
|
1096
|
+
config: "$[0].config",
|
|
1097
|
+
requestInfo: "$[0].requestInfo",
|
|
1098
|
+
roleVariations: "$[0].roleVariations",
|
|
1099
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1100
|
+
},
|
|
1101
|
+
singleArgumentUnchanged: false
|
|
1102
|
+
},
|
|
1103
|
+
["options"]
|
|
1104
|
+
);
|
|
1105
|
+
sideEffects?.onError?.(err);
|
|
1106
|
+
throw transformedError;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
async function getSitemapCount2(options) {
|
|
1110
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1111
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1112
|
+
routerPrefix: options?.routerPrefix,
|
|
1113
|
+
routerSuffix: options?.routerSuffix,
|
|
1114
|
+
fullUrl: options?.fullUrl,
|
|
1115
|
+
pageRoles: options?.pageRoles,
|
|
1116
|
+
config: options?.config,
|
|
1117
|
+
requestInfo: options?.requestInfo,
|
|
1118
|
+
roleVariations: options?.roleVariations,
|
|
1119
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1120
|
+
});
|
|
1121
|
+
const reqOpts = getSitemapCount(payload);
|
|
1122
|
+
sideEffects?.onSiteCall?.();
|
|
1123
|
+
try {
|
|
1124
|
+
const result = await httpClient.request(reqOpts);
|
|
1125
|
+
sideEffects?.onSuccess?.(result);
|
|
1126
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1127
|
+
} catch (err) {
|
|
1128
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1129
|
+
err,
|
|
1130
|
+
{
|
|
1131
|
+
spreadPathsToArguments: {},
|
|
1132
|
+
explicitPathsToArguments: {
|
|
1133
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1134
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1135
|
+
fullUrl: "$[0].fullUrl",
|
|
1136
|
+
pageRoles: "$[0].pageRoles",
|
|
1137
|
+
config: "$[0].config",
|
|
1138
|
+
requestInfo: "$[0].requestInfo",
|
|
1139
|
+
roleVariations: "$[0].roleVariations",
|
|
1140
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1141
|
+
},
|
|
1142
|
+
singleArgumentUnchanged: false
|
|
1143
|
+
},
|
|
1144
|
+
["options"]
|
|
1145
|
+
);
|
|
1146
|
+
sideEffects?.onError?.(err);
|
|
1147
|
+
throw transformedError;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
957
1150
|
async function createProgram2(program) {
|
|
958
1151
|
const { httpClient, sideEffects } = arguments[1];
|
|
959
1152
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -1659,7 +1852,10 @@ async function listSamplePrograms2() {
|
|
|
1659
1852
|
duplicateProgram,
|
|
1660
1853
|
enableProgramFreemium,
|
|
1661
1854
|
endProgram,
|
|
1855
|
+
getPage,
|
|
1662
1856
|
getProgram,
|
|
1857
|
+
getSitemap,
|
|
1858
|
+
getSitemapCount,
|
|
1663
1859
|
listSamplePrograms,
|
|
1664
1860
|
publishProgram,
|
|
1665
1861
|
queryPrograms,
|