@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
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,117 @@ 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
|
+
"manage._base_domain_": [
|
|
269
|
+
{
|
|
270
|
+
srcPath: "/_api/programs-service",
|
|
271
|
+
destPath: ""
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
_: [
|
|
275
|
+
{
|
|
276
|
+
srcPath: "/_api/programs-service",
|
|
277
|
+
destPath: ""
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"editor.wixapps.net": [
|
|
281
|
+
{
|
|
282
|
+
srcPath: "/_api/programs-service",
|
|
283
|
+
destPath: ""
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"www.wixapis.com": [
|
|
287
|
+
{
|
|
288
|
+
srcPath: "/online-programs/v3/programs",
|
|
289
|
+
destPath: "/v3/programs"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
srcPath: "/online-programs/v3/bulk/programs",
|
|
293
|
+
destPath: "/v3/bulk/programs"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
srcPath: "/_api/programs-service",
|
|
297
|
+
destPath: ""
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"*.dev.wix-code.com": [
|
|
301
|
+
{
|
|
302
|
+
srcPath: "/online-programs/v3/programs",
|
|
303
|
+
destPath: "/v3/programs"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
srcPath: "/online-programs/v3/bulk/programs",
|
|
307
|
+
destPath: "/v3/bulk/programs"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
};
|
|
311
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
312
|
+
}
|
|
263
313
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
|
|
314
|
+
function getPage(payload) {
|
|
315
|
+
function __getPage({ host }) {
|
|
316
|
+
const metadata = {
|
|
317
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
318
|
+
method: "POST",
|
|
319
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetPage",
|
|
320
|
+
packageName: PACKAGE_NAME,
|
|
321
|
+
migrationOptions: {
|
|
322
|
+
optInTransformResponse: true
|
|
323
|
+
},
|
|
324
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
325
|
+
protoPath: "/v3/programs/router/pages",
|
|
326
|
+
data: payload,
|
|
327
|
+
host
|
|
328
|
+
}),
|
|
329
|
+
data: payload
|
|
330
|
+
};
|
|
331
|
+
return metadata;
|
|
332
|
+
}
|
|
333
|
+
return __getPage;
|
|
334
|
+
}
|
|
335
|
+
function getSitemap(payload) {
|
|
336
|
+
function __getSitemap({ host }) {
|
|
337
|
+
const metadata = {
|
|
338
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
339
|
+
method: "POST",
|
|
340
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemap",
|
|
341
|
+
packageName: PACKAGE_NAME,
|
|
342
|
+
migrationOptions: {
|
|
343
|
+
optInTransformResponse: true
|
|
344
|
+
},
|
|
345
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
346
|
+
protoPath: "/v3/programs/router/sitemap",
|
|
347
|
+
data: payload,
|
|
348
|
+
host
|
|
349
|
+
}),
|
|
350
|
+
data: payload
|
|
351
|
+
};
|
|
352
|
+
return metadata;
|
|
353
|
+
}
|
|
354
|
+
return __getSitemap;
|
|
355
|
+
}
|
|
356
|
+
function getSitemapCount(payload) {
|
|
357
|
+
function __getSitemapCount({ host }) {
|
|
358
|
+
const metadata = {
|
|
359
|
+
entityFqdn: "wix.online_programs.v3.program",
|
|
360
|
+
method: "POST",
|
|
361
|
+
methodFqn: "wix.onlineprograms.programs.v3.ProgramsRouterService.GetSitemapCount",
|
|
362
|
+
packageName: PACKAGE_NAME,
|
|
363
|
+
migrationOptions: {
|
|
364
|
+
optInTransformResponse: true
|
|
365
|
+
},
|
|
366
|
+
url: resolveWixOnlineprogramsProgramsV3ProgramsRouterServiceUrl({
|
|
367
|
+
protoPath: "/v3/programs/router/sitemapCount",
|
|
368
|
+
data: payload,
|
|
369
|
+
host
|
|
370
|
+
}),
|
|
371
|
+
data: payload
|
|
372
|
+
};
|
|
373
|
+
return metadata;
|
|
374
|
+
}
|
|
375
|
+
return __getSitemapCount;
|
|
376
|
+
}
|
|
264
377
|
function createProgram(payload) {
|
|
265
378
|
function __createProgram({ host }) {
|
|
266
379
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -792,6 +905,14 @@ var Trigger = /* @__PURE__ */ ((Trigger2) => {
|
|
|
792
905
|
Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
|
|
793
906
|
return Trigger2;
|
|
794
907
|
})(Trigger || {});
|
|
908
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
909
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
910
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
911
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
912
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
913
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
914
|
+
return WebhookIdentityType2;
|
|
915
|
+
})(WebhookIdentityType || {});
|
|
795
916
|
var Enum = /* @__PURE__ */ ((Enum2) => {
|
|
796
917
|
Enum2["UNKNOWN"] = "UNKNOWN";
|
|
797
918
|
Enum2["PROTECTED"] = "PROTECTED";
|
|
@@ -962,14 +1083,129 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
962
1083
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
963
1084
|
return ResolutionMethod2;
|
|
964
1085
|
})(ResolutionMethod || {});
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1086
|
+
async function getPage2(options) {
|
|
1087
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1088
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1089
|
+
routerPrefix: options?.routerPrefix,
|
|
1090
|
+
routerSuffix: options?.routerSuffix,
|
|
1091
|
+
fullUrl: options?.fullUrl,
|
|
1092
|
+
pageRoles: options?.pageRoles,
|
|
1093
|
+
config: options?.config,
|
|
1094
|
+
requestInfo: options?.requestInfo,
|
|
1095
|
+
roleVariations: options?.roleVariations,
|
|
1096
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1097
|
+
});
|
|
1098
|
+
const reqOpts = getPage(payload);
|
|
1099
|
+
sideEffects?.onSiteCall?.();
|
|
1100
|
+
try {
|
|
1101
|
+
const result = await httpClient.request(reqOpts);
|
|
1102
|
+
sideEffects?.onSuccess?.(result);
|
|
1103
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1104
|
+
} catch (err) {
|
|
1105
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1106
|
+
err,
|
|
1107
|
+
{
|
|
1108
|
+
spreadPathsToArguments: {},
|
|
1109
|
+
explicitPathsToArguments: {
|
|
1110
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1111
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1112
|
+
fullUrl: "$[0].fullUrl",
|
|
1113
|
+
pageRoles: "$[0].pageRoles",
|
|
1114
|
+
config: "$[0].config",
|
|
1115
|
+
requestInfo: "$[0].requestInfo",
|
|
1116
|
+
roleVariations: "$[0].roleVariations",
|
|
1117
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1118
|
+
},
|
|
1119
|
+
singleArgumentUnchanged: false
|
|
1120
|
+
},
|
|
1121
|
+
["options"]
|
|
1122
|
+
);
|
|
1123
|
+
sideEffects?.onError?.(err);
|
|
1124
|
+
throw transformedError;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
async function getSitemap2(options) {
|
|
1128
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1129
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1130
|
+
routerPrefix: options?.routerPrefix,
|
|
1131
|
+
routerSuffix: options?.routerSuffix,
|
|
1132
|
+
fullUrl: options?.fullUrl,
|
|
1133
|
+
pageRoles: options?.pageRoles,
|
|
1134
|
+
config: options?.config,
|
|
1135
|
+
requestInfo: options?.requestInfo,
|
|
1136
|
+
roleVariations: options?.roleVariations,
|
|
1137
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1138
|
+
});
|
|
1139
|
+
const reqOpts = getSitemap(payload);
|
|
1140
|
+
sideEffects?.onSiteCall?.();
|
|
1141
|
+
try {
|
|
1142
|
+
const result = await httpClient.request(reqOpts);
|
|
1143
|
+
sideEffects?.onSuccess?.(result);
|
|
1144
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1145
|
+
} catch (err) {
|
|
1146
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1147
|
+
err,
|
|
1148
|
+
{
|
|
1149
|
+
spreadPathsToArguments: {},
|
|
1150
|
+
explicitPathsToArguments: {
|
|
1151
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1152
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1153
|
+
fullUrl: "$[0].fullUrl",
|
|
1154
|
+
pageRoles: "$[0].pageRoles",
|
|
1155
|
+
config: "$[0].config",
|
|
1156
|
+
requestInfo: "$[0].requestInfo",
|
|
1157
|
+
roleVariations: "$[0].roleVariations",
|
|
1158
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1159
|
+
},
|
|
1160
|
+
singleArgumentUnchanged: false
|
|
1161
|
+
},
|
|
1162
|
+
["options"]
|
|
1163
|
+
);
|
|
1164
|
+
sideEffects?.onError?.(err);
|
|
1165
|
+
throw transformedError;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
async function getSitemapCount2(options) {
|
|
1169
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1170
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1171
|
+
routerPrefix: options?.routerPrefix,
|
|
1172
|
+
routerSuffix: options?.routerSuffix,
|
|
1173
|
+
fullUrl: options?.fullUrl,
|
|
1174
|
+
pageRoles: options?.pageRoles,
|
|
1175
|
+
config: options?.config,
|
|
1176
|
+
requestInfo: options?.requestInfo,
|
|
1177
|
+
roleVariations: options?.roleVariations,
|
|
1178
|
+
dynamicPageIdOverride: options?.dynamicPageIdOverride
|
|
1179
|
+
});
|
|
1180
|
+
const reqOpts = getSitemapCount(payload);
|
|
1181
|
+
sideEffects?.onSiteCall?.();
|
|
1182
|
+
try {
|
|
1183
|
+
const result = await httpClient.request(reqOpts);
|
|
1184
|
+
sideEffects?.onSuccess?.(result);
|
|
1185
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1186
|
+
} catch (err) {
|
|
1187
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1188
|
+
err,
|
|
1189
|
+
{
|
|
1190
|
+
spreadPathsToArguments: {},
|
|
1191
|
+
explicitPathsToArguments: {
|
|
1192
|
+
routerPrefix: "$[0].routerPrefix",
|
|
1193
|
+
routerSuffix: "$[0].routerSuffix",
|
|
1194
|
+
fullUrl: "$[0].fullUrl",
|
|
1195
|
+
pageRoles: "$[0].pageRoles",
|
|
1196
|
+
config: "$[0].config",
|
|
1197
|
+
requestInfo: "$[0].requestInfo",
|
|
1198
|
+
roleVariations: "$[0].roleVariations",
|
|
1199
|
+
dynamicPageIdOverride: "$[0].dynamicPageIdOverride"
|
|
1200
|
+
},
|
|
1201
|
+
singleArgumentUnchanged: false
|
|
1202
|
+
},
|
|
1203
|
+
["options"]
|
|
1204
|
+
);
|
|
1205
|
+
sideEffects?.onError?.(err);
|
|
1206
|
+
throw transformedError;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
973
1209
|
async function createProgram2(program) {
|
|
974
1210
|
const { httpClient, sideEffects } = arguments[1];
|
|
975
1211
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -1738,6 +1974,27 @@ var TRANSFORM_PATHS_24 = [
|
|
|
1738
1974
|
{ path: "entity.videoStepsSettings.requiredCompletionPercentage" },
|
|
1739
1975
|
{ path: "modifiedFields.videoStepsSettings.requiredCompletionPercentage" }
|
|
1740
1976
|
];
|
|
1977
|
+
function getPage3(httpClient) {
|
|
1978
|
+
return (options) => getPage2(
|
|
1979
|
+
options,
|
|
1980
|
+
// @ts-ignore
|
|
1981
|
+
{ httpClient }
|
|
1982
|
+
);
|
|
1983
|
+
}
|
|
1984
|
+
function getSitemap3(httpClient) {
|
|
1985
|
+
return (options) => getSitemap2(
|
|
1986
|
+
options,
|
|
1987
|
+
// @ts-ignore
|
|
1988
|
+
{ httpClient }
|
|
1989
|
+
);
|
|
1990
|
+
}
|
|
1991
|
+
function getSitemapCount3(httpClient) {
|
|
1992
|
+
return (options) => getSitemapCount2(
|
|
1993
|
+
options,
|
|
1994
|
+
// @ts-ignore
|
|
1995
|
+
{ httpClient }
|
|
1996
|
+
);
|
|
1997
|
+
}
|
|
1741
1998
|
function createProgram3(httpClient) {
|
|
1742
1999
|
return (program) => createProgram2(
|
|
1743
2000
|
program,
|
|
@@ -2062,6 +2319,9 @@ function customQueryPrograms(httpClient) {
|
|
|
2062
2319
|
}
|
|
2063
2320
|
return overloadedQuery;
|
|
2064
2321
|
}
|
|
2322
|
+
var getPage4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPage3);
|
|
2323
|
+
var getSitemap4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSitemap3);
|
|
2324
|
+
var getSitemapCount4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSitemapCount3);
|
|
2065
2325
|
var createProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createProgram3);
|
|
2066
2326
|
var duplicateProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(duplicateProgram3);
|
|
2067
2327
|
var getProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getProgram3);
|
|
@@ -2130,7 +2390,10 @@ var onProgramUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.crea
|
|
|
2130
2390
|
duplicateProgram,
|
|
2131
2391
|
enableProgramFreemium,
|
|
2132
2392
|
endProgram,
|
|
2393
|
+
getPage,
|
|
2133
2394
|
getProgram,
|
|
2395
|
+
getSitemap,
|
|
2396
|
+
getSitemapCount,
|
|
2134
2397
|
listSamplePrograms,
|
|
2135
2398
|
onProgramArchived,
|
|
2136
2399
|
onProgramCreated,
|