@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.
- package/build/cjs/index.d.ts +29 -3
- package/build/cjs/index.js +271 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +247 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +361 -189
- package/build/cjs/meta.js +178 -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 +268 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +244 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +361 -189
- package/build/es/meta.mjs +175 -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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bA as CursorSearch, S as SearchProgramsResponse } from './online-programs-v3-program-programs.universal-BIitHGTm.mjs';
|
|
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.mjs';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -182,7 +182,117 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
|
|
|
182
182
|
};
|
|
183
183
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
184
184
|
}
|
|
185
|
+
function resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl(opts) {
|
|
186
|
+
const domainToMappings = {
|
|
187
|
+
"manage._base_domain_": [
|
|
188
|
+
{
|
|
189
|
+
srcPath: "/_api/programs-service",
|
|
190
|
+
destPath: ""
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
_: [
|
|
194
|
+
{
|
|
195
|
+
srcPath: "/_api/programs-service",
|
|
196
|
+
destPath: ""
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"editor.wixapps.net": [
|
|
200
|
+
{
|
|
201
|
+
srcPath: "/_api/programs-service",
|
|
202
|
+
destPath: ""
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"www.wixapis.com": [
|
|
206
|
+
{
|
|
207
|
+
srcPath: "/online-programs/v3/programs",
|
|
208
|
+
destPath: "/v3/programs"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
srcPath: "/online-programs/v3/bulk/programs",
|
|
212
|
+
destPath: "/v3/bulk/programs"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
srcPath: "/_api/programs-service",
|
|
216
|
+
destPath: ""
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"*.dev.wix-code.com": [
|
|
220
|
+
{
|
|
221
|
+
srcPath: "/online-programs/v3/programs",
|
|
222
|
+
destPath: "/v3/programs"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
srcPath: "/online-programs/v3/bulk/programs",
|
|
226
|
+
destPath: "/v3/bulk/programs"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
};
|
|
230
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
231
|
+
}
|
|
185
232
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
|
|
233
|
+
function getPage(payload) {
|
|
234
|
+
function __getPage({ host }) {
|
|
235
|
+
const metadata = {
|
|
236
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
237
|
+
method: "POST",
|
|
238
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetPage",
|
|
239
|
+
packageName: PACKAGE_NAME,
|
|
240
|
+
migrationOptions: {
|
|
241
|
+
optInTransformResponse: true
|
|
242
|
+
},
|
|
243
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
244
|
+
protoPath: "/v3/programs/router/pages",
|
|
245
|
+
data: payload,
|
|
246
|
+
host
|
|
247
|
+
}),
|
|
248
|
+
data: payload
|
|
249
|
+
};
|
|
250
|
+
return metadata;
|
|
251
|
+
}
|
|
252
|
+
return __getPage;
|
|
253
|
+
}
|
|
254
|
+
function getSitemap(payload) {
|
|
255
|
+
function __getSitemap({ host }) {
|
|
256
|
+
const metadata = {
|
|
257
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
258
|
+
method: "POST",
|
|
259
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemap",
|
|
260
|
+
packageName: PACKAGE_NAME,
|
|
261
|
+
migrationOptions: {
|
|
262
|
+
optInTransformResponse: true
|
|
263
|
+
},
|
|
264
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
265
|
+
protoPath: "/v3/programs/router/sitemap",
|
|
266
|
+
data: payload,
|
|
267
|
+
host
|
|
268
|
+
}),
|
|
269
|
+
data: payload
|
|
270
|
+
};
|
|
271
|
+
return metadata;
|
|
272
|
+
}
|
|
273
|
+
return __getSitemap;
|
|
274
|
+
}
|
|
275
|
+
function getSitemapCount(payload) {
|
|
276
|
+
function __getSitemapCount({ host }) {
|
|
277
|
+
const metadata = {
|
|
278
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
279
|
+
method: "POST",
|
|
280
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemapCount",
|
|
281
|
+
packageName: PACKAGE_NAME,
|
|
282
|
+
migrationOptions: {
|
|
283
|
+
optInTransformResponse: true
|
|
284
|
+
},
|
|
285
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
286
|
+
protoPath: "/v3/programs/router/sitemapCount",
|
|
287
|
+
data: payload,
|
|
288
|
+
host
|
|
289
|
+
}),
|
|
290
|
+
data: payload
|
|
291
|
+
};
|
|
292
|
+
return metadata;
|
|
293
|
+
}
|
|
294
|
+
return __getSitemapCount;
|
|
295
|
+
}
|
|
186
296
|
function createProgram(payload) {
|
|
187
297
|
function __createProgram({ host }) {
|
|
188
298
|
const serializedData = transformPaths(payload, [
|
|
@@ -714,6 +824,14 @@ var Trigger = /* @__PURE__ */ ((Trigger2) => {
|
|
|
714
824
|
Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
|
|
715
825
|
return Trigger2;
|
|
716
826
|
})(Trigger || {});
|
|
827
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
828
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
829
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
830
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
831
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
832
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
833
|
+
return WebhookIdentityType2;
|
|
834
|
+
})(WebhookIdentityType || {});
|
|
717
835
|
var Enum = /* @__PURE__ */ ((Enum2) => {
|
|
718
836
|
Enum2["UNKNOWN"] = "UNKNOWN";
|
|
719
837
|
Enum2["PROTECTED"] = "PROTECTED";
|
|
@@ -884,14 +1002,129 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
884
1002
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
885
1003
|
return ResolutionMethod2;
|
|
886
1004
|
})(ResolutionMethod || {});
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
1005
|
+
async function getPage2(options) {
|
|
1006
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1007
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1008
|
+
routerPrefix: options?.routerPrefix,
|
|
1009
|
+
routerSuffix: options?.routerSuffix,
|
|
1010
|
+
fullUrl: options?.fullUrl,
|
|
1011
|
+
pageRoles: options?.pageRoles,
|
|
1012
|
+
config: options?.config,
|
|
1013
|
+
requestInfo: options?.requestInfo,
|
|
1014
|
+
roleVariations: options?.roleVariations,
|
|
1015
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1016
|
+
});
|
|
1017
|
+
const reqOpts = getPage(payload);
|
|
1018
|
+
sideEffects?.onSiteCall?.();
|
|
1019
|
+
try {
|
|
1020
|
+
const result = await httpClient.request(reqOpts);
|
|
1021
|
+
sideEffects?.onSuccess?.(result);
|
|
1022
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1023
|
+
} catch (err) {
|
|
1024
|
+
const transformedError = sdkTransformError(
|
|
1025
|
+
err,
|
|
1026
|
+
{
|
|
1027
|
+
spreadPathsToArguments: {},
|
|
1028
|
+
explicitPathsToArguments: {
|
|
1029
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1030
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1031
|
+
fullUrl: "$[0].fullUrl",
|
|
1032
|
+
pageRoles: "$[0].pageRoles",
|
|
1033
|
+
config: "$[0].config",
|
|
1034
|
+
requestInfo: "$[0].requestInfo",
|
|
1035
|
+
roleVariations: "$[0].roleVariations",
|
|
1036
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1037
|
+
},
|
|
1038
|
+
singleArgumentUnchanged: false
|
|
1039
|
+
},
|
|
1040
|
+
["options"]
|
|
1041
|
+
);
|
|
1042
|
+
sideEffects?.onError?.(err);
|
|
1043
|
+
throw transformedError;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
async function getSitemap2(options) {
|
|
1047
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1048
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1049
|
+
routerPrefix: options?.routerPrefix,
|
|
1050
|
+
routerSuffix: options?.routerSuffix,
|
|
1051
|
+
fullUrl: options?.fullUrl,
|
|
1052
|
+
pageRoles: options?.pageRoles,
|
|
1053
|
+
config: options?.config,
|
|
1054
|
+
requestInfo: options?.requestInfo,
|
|
1055
|
+
roleVariations: options?.roleVariations,
|
|
1056
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1057
|
+
});
|
|
1058
|
+
const reqOpts = getSitemap(payload);
|
|
1059
|
+
sideEffects?.onSiteCall?.();
|
|
1060
|
+
try {
|
|
1061
|
+
const result = await httpClient.request(reqOpts);
|
|
1062
|
+
sideEffects?.onSuccess?.(result);
|
|
1063
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1064
|
+
} catch (err) {
|
|
1065
|
+
const transformedError = sdkTransformError(
|
|
1066
|
+
err,
|
|
1067
|
+
{
|
|
1068
|
+
spreadPathsToArguments: {},
|
|
1069
|
+
explicitPathsToArguments: {
|
|
1070
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1071
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1072
|
+
fullUrl: "$[0].fullUrl",
|
|
1073
|
+
pageRoles: "$[0].pageRoles",
|
|
1074
|
+
config: "$[0].config",
|
|
1075
|
+
requestInfo: "$[0].requestInfo",
|
|
1076
|
+
roleVariations: "$[0].roleVariations",
|
|
1077
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1078
|
+
},
|
|
1079
|
+
singleArgumentUnchanged: false
|
|
1080
|
+
},
|
|
1081
|
+
["options"]
|
|
1082
|
+
);
|
|
1083
|
+
sideEffects?.onError?.(err);
|
|
1084
|
+
throw transformedError;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
async function getSitemapCount2(options) {
|
|
1088
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1089
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1090
|
+
routerPrefix: options?.routerPrefix,
|
|
1091
|
+
routerSuffix: options?.routerSuffix,
|
|
1092
|
+
fullUrl: options?.fullUrl,
|
|
1093
|
+
pageRoles: options?.pageRoles,
|
|
1094
|
+
config: options?.config,
|
|
1095
|
+
requestInfo: options?.requestInfo,
|
|
1096
|
+
roleVariations: options?.roleVariations,
|
|
1097
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1098
|
+
});
|
|
1099
|
+
const reqOpts = getSitemapCount(payload);
|
|
1100
|
+
sideEffects?.onSiteCall?.();
|
|
1101
|
+
try {
|
|
1102
|
+
const result = await httpClient.request(reqOpts);
|
|
1103
|
+
sideEffects?.onSuccess?.(result);
|
|
1104
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1105
|
+
} catch (err) {
|
|
1106
|
+
const transformedError = sdkTransformError(
|
|
1107
|
+
err,
|
|
1108
|
+
{
|
|
1109
|
+
spreadPathsToArguments: {},
|
|
1110
|
+
explicitPathsToArguments: {
|
|
1111
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1112
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1113
|
+
fullUrl: "$[0].fullUrl",
|
|
1114
|
+
pageRoles: "$[0].pageRoles",
|
|
1115
|
+
config: "$[0].config",
|
|
1116
|
+
requestInfo: "$[0].requestInfo",
|
|
1117
|
+
roleVariations: "$[0].roleVariations",
|
|
1118
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1119
|
+
},
|
|
1120
|
+
singleArgumentUnchanged: false
|
|
1121
|
+
},
|
|
1122
|
+
["options"]
|
|
1123
|
+
);
|
|
1124
|
+
sideEffects?.onError?.(err);
|
|
1125
|
+
throw transformedError;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
895
1128
|
async function createProgram2(program) {
|
|
896
1129
|
const { httpClient, sideEffects } = arguments[1];
|
|
897
1130
|
const payload = transformPaths2(
|
|
@@ -1596,7 +1829,10 @@ export {
|
|
|
1596
1829
|
duplicateProgram2 as duplicateProgram,
|
|
1597
1830
|
enableProgramFreemium2 as enableProgramFreemium,
|
|
1598
1831
|
endProgram2 as endProgram,
|
|
1832
|
+
getPage2 as getPage,
|
|
1599
1833
|
getProgram2 as getProgram,
|
|
1834
|
+
getSitemap2 as getSitemap,
|
|
1835
|
+
getSitemapCount2 as getSitemapCount,
|
|
1600
1836
|
listSamplePrograms2 as listSamplePrograms,
|
|
1601
1837
|
publishProgram2 as publishProgram,
|
|
1602
1838
|
queryPrograms2 as queryPrograms,
|