@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
package/build/cjs/index.d.ts
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.js';
|
|
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.js';
|
|
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/cjs/index.js
CHANGED
|
@@ -52,7 +52,10 @@ __export(index_exports, {
|
|
|
52
52
|
duplicateProgram: () => duplicateProgram4,
|
|
53
53
|
enableProgramFreemium: () => enableProgramFreemium4,
|
|
54
54
|
endProgram: () => endProgram4,
|
|
55
|
+
getPage: () => getPage4,
|
|
55
56
|
getProgram: () => getProgram4,
|
|
57
|
+
getSitemap: () => getSitemap4,
|
|
58
|
+
getSitemapCount: () => getSitemapCount4,
|
|
56
59
|
listSamplePrograms: () => listSamplePrograms4,
|
|
57
60
|
onProgramArchived: () => onProgramArchived2,
|
|
58
61
|
onProgramCreated: () => onProgramCreated2,
|
|
@@ -260,7 +263,74 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
|
|
|
260
263
|
};
|
|
261
264
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
262
265
|
}
|
|
266
|
+
function resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl(opts) {
|
|
267
|
+
const domainToMappings = {};
|
|
268
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
269
|
+
}
|
|
263
270
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
|
|
271
|
+
function getPage(payload) {
|
|
272
|
+
function __getPage({ host }) {
|
|
273
|
+
const metadata = {
|
|
274
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
275
|
+
method: "POST",
|
|
276
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetPage",
|
|
277
|
+
packageName: PACKAGE_NAME,
|
|
278
|
+
migrationOptions: {
|
|
279
|
+
optInTransformResponse: true
|
|
280
|
+
},
|
|
281
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
282
|
+
protoPath: "/v3/programs/router/pages",
|
|
283
|
+
data: payload,
|
|
284
|
+
host
|
|
285
|
+
}),
|
|
286
|
+
data: payload
|
|
287
|
+
};
|
|
288
|
+
return metadata;
|
|
289
|
+
}
|
|
290
|
+
return __getPage;
|
|
291
|
+
}
|
|
292
|
+
function getSitemap(payload) {
|
|
293
|
+
function __getSitemap({ host }) {
|
|
294
|
+
const metadata = {
|
|
295
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
296
|
+
method: "POST",
|
|
297
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemap",
|
|
298
|
+
packageName: PACKAGE_NAME,
|
|
299
|
+
migrationOptions: {
|
|
300
|
+
optInTransformResponse: true
|
|
301
|
+
},
|
|
302
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
303
|
+
protoPath: "/v3/programs/router/sitemap",
|
|
304
|
+
data: payload,
|
|
305
|
+
host
|
|
306
|
+
}),
|
|
307
|
+
data: payload
|
|
308
|
+
};
|
|
309
|
+
return metadata;
|
|
310
|
+
}
|
|
311
|
+
return __getSitemap;
|
|
312
|
+
}
|
|
313
|
+
function getSitemapCount(payload) {
|
|
314
|
+
function __getSitemapCount({ host }) {
|
|
315
|
+
const metadata = {
|
|
316
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
317
|
+
method: "POST",
|
|
318
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemapCount",
|
|
319
|
+
packageName: PACKAGE_NAME,
|
|
320
|
+
migrationOptions: {
|
|
321
|
+
optInTransformResponse: true
|
|
322
|
+
},
|
|
323
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
324
|
+
protoPath: "/v3/programs/router/sitemapCount",
|
|
325
|
+
data: payload,
|
|
326
|
+
host
|
|
327
|
+
}),
|
|
328
|
+
data: payload
|
|
329
|
+
};
|
|
330
|
+
return metadata;
|
|
331
|
+
}
|
|
332
|
+
return __getSitemapCount;
|
|
333
|
+
}
|
|
264
334
|
function createProgram(payload) {
|
|
265
335
|
function __createProgram({ host }) {
|
|
266
336
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -792,6 +862,14 @@ var Trigger = /* @__PURE__ */ ((Trigger2) => {
|
|
|
792
862
|
Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
|
|
793
863
|
return Trigger2;
|
|
794
864
|
})(Trigger || {});
|
|
865
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
866
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
867
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
868
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
869
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
870
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
871
|
+
return WebhookIdentityType2;
|
|
872
|
+
})(WebhookIdentityType || {});
|
|
795
873
|
var Enum = /* @__PURE__ */ ((Enum2) => {
|
|
796
874
|
Enum2["UNKNOWN"] = "UNKNOWN";
|
|
797
875
|
Enum2["PROTECTED"] = "PROTECTED";
|
|
@@ -962,14 +1040,129 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
962
1040
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
963
1041
|
return ResolutionMethod2;
|
|
964
1042
|
})(ResolutionMethod || {});
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1043
|
+
async function getPage2(options) {
|
|
1044
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1045
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1046
|
+
routerPrefix: options?.routerPrefix,
|
|
1047
|
+
routerSuffix: options?.routerSuffix,
|
|
1048
|
+
fullUrl: options?.fullUrl,
|
|
1049
|
+
pageRoles: options?.pageRoles,
|
|
1050
|
+
config: options?.config,
|
|
1051
|
+
requestInfo: options?.requestInfo,
|
|
1052
|
+
roleVariations: options?.roleVariations,
|
|
1053
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1054
|
+
});
|
|
1055
|
+
const reqOpts = getPage(payload);
|
|
1056
|
+
sideEffects?.onSiteCall?.();
|
|
1057
|
+
try {
|
|
1058
|
+
const result = await httpClient.request(reqOpts);
|
|
1059
|
+
sideEffects?.onSuccess?.(result);
|
|
1060
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1061
|
+
} catch (err) {
|
|
1062
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1063
|
+
err,
|
|
1064
|
+
{
|
|
1065
|
+
spreadPathsToArguments: {},
|
|
1066
|
+
explicitPathsToArguments: {
|
|
1067
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1068
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1069
|
+
fullUrl: "$[0].fullUrl",
|
|
1070
|
+
pageRoles: "$[0].pageRoles",
|
|
1071
|
+
config: "$[0].config",
|
|
1072
|
+
requestInfo: "$[0].requestInfo",
|
|
1073
|
+
roleVariations: "$[0].roleVariations",
|
|
1074
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1075
|
+
},
|
|
1076
|
+
singleArgumentUnchanged: false
|
|
1077
|
+
},
|
|
1078
|
+
["options"]
|
|
1079
|
+
);
|
|
1080
|
+
sideEffects?.onError?.(err);
|
|
1081
|
+
throw transformedError;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
async function getSitemap2(options) {
|
|
1085
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1086
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1087
|
+
routerPrefix: options?.routerPrefix,
|
|
1088
|
+
routerSuffix: options?.routerSuffix,
|
|
1089
|
+
fullUrl: options?.fullUrl,
|
|
1090
|
+
pageRoles: options?.pageRoles,
|
|
1091
|
+
config: options?.config,
|
|
1092
|
+
requestInfo: options?.requestInfo,
|
|
1093
|
+
roleVariations: options?.roleVariations,
|
|
1094
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1095
|
+
});
|
|
1096
|
+
const reqOpts = getSitemap(payload);
|
|
1097
|
+
sideEffects?.onSiteCall?.();
|
|
1098
|
+
try {
|
|
1099
|
+
const result = await httpClient.request(reqOpts);
|
|
1100
|
+
sideEffects?.onSuccess?.(result);
|
|
1101
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1102
|
+
} catch (err) {
|
|
1103
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1104
|
+
err,
|
|
1105
|
+
{
|
|
1106
|
+
spreadPathsToArguments: {},
|
|
1107
|
+
explicitPathsToArguments: {
|
|
1108
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1109
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1110
|
+
fullUrl: "$[0].fullUrl",
|
|
1111
|
+
pageRoles: "$[0].pageRoles",
|
|
1112
|
+
config: "$[0].config",
|
|
1113
|
+
requestInfo: "$[0].requestInfo",
|
|
1114
|
+
roleVariations: "$[0].roleVariations",
|
|
1115
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1116
|
+
},
|
|
1117
|
+
singleArgumentUnchanged: false
|
|
1118
|
+
},
|
|
1119
|
+
["options"]
|
|
1120
|
+
);
|
|
1121
|
+
sideEffects?.onError?.(err);
|
|
1122
|
+
throw transformedError;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
async function getSitemapCount2(options) {
|
|
1126
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1127
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1128
|
+
routerPrefix: options?.routerPrefix,
|
|
1129
|
+
routerSuffix: options?.routerSuffix,
|
|
1130
|
+
fullUrl: options?.fullUrl,
|
|
1131
|
+
pageRoles: options?.pageRoles,
|
|
1132
|
+
config: options?.config,
|
|
1133
|
+
requestInfo: options?.requestInfo,
|
|
1134
|
+
roleVariations: options?.roleVariations,
|
|
1135
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1136
|
+
});
|
|
1137
|
+
const reqOpts = getSitemapCount(payload);
|
|
1138
|
+
sideEffects?.onSiteCall?.();
|
|
1139
|
+
try {
|
|
1140
|
+
const result = await httpClient.request(reqOpts);
|
|
1141
|
+
sideEffects?.onSuccess?.(result);
|
|
1142
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1143
|
+
} catch (err) {
|
|
1144
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1145
|
+
err,
|
|
1146
|
+
{
|
|
1147
|
+
spreadPathsToArguments: {},
|
|
1148
|
+
explicitPathsToArguments: {
|
|
1149
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1150
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1151
|
+
fullUrl: "$[0].fullUrl",
|
|
1152
|
+
pageRoles: "$[0].pageRoles",
|
|
1153
|
+
config: "$[0].config",
|
|
1154
|
+
requestInfo: "$[0].requestInfo",
|
|
1155
|
+
roleVariations: "$[0].roleVariations",
|
|
1156
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1157
|
+
},
|
|
1158
|
+
singleArgumentUnchanged: false
|
|
1159
|
+
},
|
|
1160
|
+
["options"]
|
|
1161
|
+
);
|
|
1162
|
+
sideEffects?.onError?.(err);
|
|
1163
|
+
throw transformedError;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
973
1166
|
async function createProgram2(program) {
|
|
974
1167
|
const { httpClient, sideEffects } = arguments[1];
|
|
975
1168
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -1738,6 +1931,27 @@ var TRANSFORM_PATHS_24 = [
|
|
|
1738
1931
|
{ path: "entity.videoStepsSettings.requiredCompletionPercentage" },
|
|
1739
1932
|
{ path: "modifiedFields.videoStepsSettings.requiredCompletionPercentage" }
|
|
1740
1933
|
];
|
|
1934
|
+
function getPage3(httpClient) {
|
|
1935
|
+
return (options) => getPage2(
|
|
1936
|
+
options,
|
|
1937
|
+
// @ts-ignore
|
|
1938
|
+
{ httpClient }
|
|
1939
|
+
);
|
|
1940
|
+
}
|
|
1941
|
+
function getSitemap3(httpClient) {
|
|
1942
|
+
return (options) => getSitemap2(
|
|
1943
|
+
options,
|
|
1944
|
+
// @ts-ignore
|
|
1945
|
+
{ httpClient }
|
|
1946
|
+
);
|
|
1947
|
+
}
|
|
1948
|
+
function getSitemapCount3(httpClient) {
|
|
1949
|
+
return (options) => getSitemapCount2(
|
|
1950
|
+
options,
|
|
1951
|
+
// @ts-ignore
|
|
1952
|
+
{ httpClient }
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1741
1955
|
function createProgram3(httpClient) {
|
|
1742
1956
|
return (program) => createProgram2(
|
|
1743
1957
|
program,
|
|
@@ -2062,6 +2276,9 @@ function customQueryPrograms(httpClient) {
|
|
|
2062
2276
|
}
|
|
2063
2277
|
return overloadedQuery;
|
|
2064
2278
|
}
|
|
2279
|
+
var getPage4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPage3);
|
|
2280
|
+
var getSitemap4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSitemap3);
|
|
2281
|
+
var getSitemapCount4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSitemapCount3);
|
|
2065
2282
|
var createProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createProgram3);
|
|
2066
2283
|
var duplicateProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(duplicateProgram3);
|
|
2067
2284
|
var getProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getProgram3);
|
|
@@ -2130,7 +2347,10 @@ var onProgramUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.crea
|
|
|
2130
2347
|
duplicateProgram,
|
|
2131
2348
|
enableProgramFreemium,
|
|
2132
2349
|
endProgram,
|
|
2350
|
+
getPage,
|
|
2133
2351
|
getProgram,
|
|
2352
|
+
getSitemap,
|
|
2353
|
+
getSitemapCount,
|
|
2134
2354
|
listSamplePrograms,
|
|
2135
2355
|
onProgramArchived,
|
|
2136
2356
|
onProgramCreated,
|