@wix/auto_sdk_online-programs_programs 1.0.34 → 1.0.36
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 +25 -4
- package/build/cjs/index.js +338 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +9 -7
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-erOiQXbV.d.ts → online-programs-v3-program-programs.universal-OTa3YFTd.d.ts} +161 -8
- package/build/es/index.d.mts +25 -4
- package/build/es/index.mjs +331 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +9 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-erOiQXbV.d.mts → online-programs-v3-program-programs.universal-OTa3YFTd.d.mts} +161 -8
- package/build/internal/cjs/index.d.ts +25 -4
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +9 -7
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-vESCpzQL.d.ts → online-programs-v3-program-programs.universal-CZBplA-8.d.ts} +161 -8
- package/build/internal/es/index.d.mts +25 -4
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +9 -7
- package/build/internal/es/{online-programs-v3-program-programs.universal-vESCpzQL.d.mts → online-programs-v3-program-programs.universal-CZBplA-8.d.mts} +161 -8
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { P as Program, D as DuplicateProgramResponse, U as UpdateProgram, a as UpdateProgramApplicationErrors, b as ProgramSearch, S as SearchProgramsResponse, c as PublishProgramResponse, d as PublishProgramApplicationErrors, E as EndProgramResponse, A as ArchiveProgramResponse, M as MaskedProgram, B as BulkUpdateProgramsOptions, e as BulkUpdateProgramsResponse, C as CountProgramsOptions, f as CountProgramsResponse, L as ListSampleProgramsResponse, g as
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { P as Program, D as DuplicateProgramResponse, U as UpdateProgram, a as UpdateProgramApplicationErrors, b as ProgramSearch, S as SearchProgramsResponse, c as PublishProgramResponse, d as PublishProgramApplicationErrors, E as EndProgramResponse, A as ArchiveProgramResponse, M as MaskedProgram, B as BulkUpdateProgramsOptions, e as BulkUpdateProgramsResponse, C as CountProgramsOptions, f as CountProgramsResponse, L as ListSampleProgramsResponse, g as ProgramCreatedEnvelope, h as ProgramDeletedEnvelope, i as ProgramArchivedEnvelope, j as ProgramDuplicatedEnvelope, k as ProgramEndedEnvelope, l as ProgramPublishedEnvelope, m as ProgramUpdatedEnvelope, n as ProgramsQueryBuilder, o as ProgramQuery, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-OTa3YFTd.js';
|
|
3
|
+
export { q as AccessType, c$ as AccessTypeWithLiterals, cS as AccountInfo, cV as AccountInfoMetadata, b_ as ActionEvent, cG as Address, cH as AddressHint, bb as Aggregation, br as AggregationData, bc as AggregationKindOneOf, bK as AggregationResults, bL as AggregationResultsResultOneOf, by as AggregationResultsScalarResult, z as AggregationType, da as AggregationTypeWithLiterals, ao as App, aL as ApplicationError, bO as ArchiveProgramRequest, c5 as Asset, cT as BaseEventMetadata, aM as BulkActionMetadata, s as BulkActionType, d2 as BulkActionTypeWithLiterals, aG as BulkCreateProgramsMigrationRequest, aI as BulkCreateProgramsMigrationResponse, aJ as BulkProgramResult, bQ as BulkUpdateProgramResult, bP as BulkUpdateProgramsRequest, cJ as BusinessSchedule, cE as Categories, a8 as Certificate, dl as CommonQueryWithEntityContext, dm as CommonSearchWithEntityContext, cO as ConsentPolicy, ab as ContentSummary, bR as CountProgramsRequest, aE as CreateProgramRequest, aF as CreateProgramResponse, b4 as CursorPaging, bq as CursorPagingMetadata, b9 as CursorSearch, ba as CursorSearchPagingMethodOneOf, b7 as Cursors, as as CustomTag, bj as DateHistogramAggregation, bG as DateHistogramResult, bI as DateHistogramResults, R as DayOfWeek, di as DayOfWeekWithLiterals, ay as Delete, aN as DeleteAllProgramsMigrationRequest, aO as DeleteAllProgramsMigrationResponse, aj as DeleteByFilterOperation, ai as DeleteByIdsOperation, c9 as DeleteContext, aZ as DeleteProgramRequest, a_ as DeleteProgramResponse, K as DeleteStatus, df as DeleteStatusWithLiterals, X as Description, Y as DescriptionMediaOneOf, ah as DocumentImage, ag as DocumentPayload, ae as DocumentUpdateOperation, bU as DomainEvent, bV as DomainEventBodyOneOf, aP as DuplicateProgramRequest, aX as DuplicatedSlugErrorDetails, cy as EditorlessAssigned, cz as EditorlessUnassigned, b$ as Empty, bN as EndProgramRequest, bW as EntityCreatedEvent, bZ as EntityDeletedEvent, bY as EntityUpdatedEvent, r as Enum, d1 as EnumWithLiterals, cU as EventMetadata, a9 as ExtendedFields, ar as File, Z as FocalPoint, cI as GeoCoordinates, aQ as GetProgramRequest, aR as GetProgramResponse, bn as GroupByAggregation, bo as GroupByAggregationKindOneOf, bH as GroupByValueResults, cQ as IdentificationData, cR as IdentificationDataIdOneOf, be as IncludeMissingValuesOptions, af as IndexDocument, I as Interval, d9 as IntervalWithLiterals, am as InvalidateCache, an as InvalidateCacheGetByOneOf, aK as ItemMetadata, a4 as Keyword, bT as LabeledProgram, bS as ListSampleProgramsRequest, cF as Locale, cP as MessageEnvelope, c3 as MetaSiteSpecialEvent, c4 as MetaSiteSpecialEventPayloadOneOf, c2 as MissingMetasiteIdErrorDetails, x as MissingValues, d6 as MissingValuesWithLiterals, F as Mode, db as ModeWithLiterals, a1 as Money, cM as Multilingual, J as Namespace, cj as NamespaceChanged, de as NamespaceWithLiterals, bm as NestedAggregation, bk as NestedAggregationItem, bl as NestedAggregationItemKindOneOf, bu as NestedAggregationResults, bv as NestedAggregationResultsResultOneOf, N as NestedAggregationType, d8 as NestedAggregationTypeWithLiterals, bD as NestedResultValue, bE as NestedResultValueResultOneOf, bJ as NestedResults, bz as NestedValueAggregationResult, co as OdeditorAssigned, cp as OdeditorUnassigned, ap as Page, at as Pages, b3 as Paging, b6 as PagingMetadataV2, cq as PicassoAssigned, cr as PicassoUnassigned, Q as PlacementType, dh as PlacementTypeWithLiterals, aC as ProgramArchived, aD as ProgramDuplicated, aB as ProgramEnded, aH as ProgramMigration, aA as ProgramPublished, cX as ProgramQuerySpec, cY as ProgramSearchSpec, cW as ProgramsQueryResult, cD as Properties, bM as PublishProgramRequest, a$ as QueryProgramsRequest, b5 as QueryProgramsResponse, b0 as QueryV2, b1 as QueryV2PagingMethodOneOf, bh as RangeAggregation, bt as RangeAggregationResult, bd as RangeBucket, bB as RangeResult, bx as RangeResults, av as ReindexMessage, aw as ReindexMessageActionOneOf, V as ResolutionMethod, dj as ResolutionMethodWithLiterals, c0 as ResolveProgramSlugRequest, c1 as ResolveProgramSlugResponse, bX as RestoreInfo, a0 as Restrictions, bF as Results, a7 as Reward, bi as ScalarAggregation, bC as ScalarResult, y as ScalarType, d7 as ScalarTypeWithLiterals, az as Schema, bp as SearchDetails, cA as SearchIndexingNotification, O as SearchIndexingNotificationState, dg as SearchIndexingNotificationStateWithLiterals, b8 as SearchProgramsRequest, a2 as Seo, a3 as SeoSchema, cf as ServiceProvisioned, cg as ServiceRemoved, a6 as Settings, c6 as SiteCreated, H as SiteCreatedContext, dd as SiteCreatedContextWithLiterals, c8 as SiteDeleted, ci as SiteHardDeleted, cd as SiteMarkedAsTemplate, ce as SiteMarkedAsWixSite, cC as SitePropertiesEvent, cB as SitePropertiesUpdated, cb as SitePublished, cn as SitePurgedExternally, ch as SiteRenamed, c7 as SiteTransferred, ca as SiteUndeleted, cc as SiteUnpublished, cm as SiteUrlChanged, w as SortDirection, d5 as SortDirectionWithLiterals, u as SortOrder, d3 as SortOrderWithLiterals, v as SortType, d4 as SortTypeWithLiterals, b2 as Sorting, cL as SpecialHourPeriod, G as State, dc as StateWithLiterals, p as Status, c_ as StatusWithLiterals, ck as StudioAssigned, cu as StudioTwoAssigned, cv as StudioTwoUnassigned, cl as StudioUnassigned, cN as SupportedLanguage, a5 as Tag, cK as TimePeriod, $ as Timeline, aY as TimelineSwitchForbiddenErrorDetails, T as Trigger, d0 as TriggerWithLiterals, aq as URI, au as URIs, ak as UpdateByFilterOperation, ac as UpdateDocumentsEvent, ad as UpdateDocumentsEventOperationOneOf, al as UpdateExistingOperation, aS as UpdateProgramRequest, aT as UpdateProgramResponse, ax as Upsert, cx as UserDomainMediaDisabled, cw as UserDomainMediaEnabled, bf as ValueAggregation, bg as ValueAggregationOptionsOneOf, bs as ValueAggregationResult, bA as ValueResult, bw as ValueResults, _ as VideoResolution, aa as VideoStepsSettings, W as WebhookIdentityType, dk as WebhookIdentityTypeWithLiterals, cs as WixelAssigned, ct as WixelUnassigned, aW as WrongParticipantsNumberErrorDetails, aV as WrongStartDateErrorDetails, aU as WrongStateErrorDetails, cZ as utils } from './online-programs-v3-program-programs.universal-OTa3YFTd.js';
|
|
4
4
|
|
|
5
5
|
declare function createProgram$1(httpClient: HttpClient): CreateProgramSignature;
|
|
6
6
|
interface CreateProgramSignature {
|
|
@@ -145,6 +145,13 @@ interface ListSampleProgramsSignature {
|
|
|
145
145
|
*/
|
|
146
146
|
(): Promise<NonNullablePaths<ListSampleProgramsResponse, `programs` | `programs.${number}.program.status` | `programs.${number}.program.description.title` | `programs.${number}.program.timeline.selfPaced` | `programs.${number}.program.restrictions.hideFutureSteps` | `programs.${number}.program.restrictions.resolveStepsInOrder` | `programs.${number}.program.restrictions.shareProgress` | `programs.${number}.program.restrictions.accessType` | `programs.${number}.program.price.value` | `programs.${number}.program.price.currency` | `programs.${number}.program.seo.slug` | `programs.${number}.program.seo.imageAlt` | `programs.${number}.program.seo.courseWorkload` | `programs.${number}.program.shouldSendInvoice` | `programs.${number}.program.videoStepsSettings.autoNavigate` | `programs.${number}.program.videoStepsSettings.requiredCompletionPercentage` | `programs.${number}.program.contentSummary.stepCount` | `programs.${number}.program.contentSummary.sectionCount` | `programs.${number}.label`, 4>>;
|
|
147
147
|
}
|
|
148
|
+
declare const onProgramCreated$1: EventDefinition<ProgramCreatedEnvelope, "wix.online_programs.v3.program_created">;
|
|
149
|
+
declare const onProgramDeleted$1: EventDefinition<ProgramDeletedEnvelope, "wix.online_programs.v3.program_deleted">;
|
|
150
|
+
declare const onProgramArchived$1: EventDefinition<ProgramArchivedEnvelope, "wix.online_programs.v3.program_program_archived">;
|
|
151
|
+
declare const onProgramDuplicated$1: EventDefinition<ProgramDuplicatedEnvelope, "wix.online_programs.v3.program_program_duplicated">;
|
|
152
|
+
declare const onProgramEnded$1: EventDefinition<ProgramEndedEnvelope, "wix.online_programs.v3.program_program_ended">;
|
|
153
|
+
declare const onProgramPublished$1: EventDefinition<ProgramPublishedEnvelope, "wix.online_programs.v3.program_program_published">;
|
|
154
|
+
declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.online_programs.v3.program_updated">;
|
|
148
155
|
|
|
149
156
|
declare function customQueryPrograms(httpClient: HttpClient): {
|
|
150
157
|
(): ProgramsQueryBuilder;
|
|
@@ -163,5 +170,19 @@ declare const bulkUpdatePrograms: MaybeContext<BuildRESTFunction<typeof bulkUpda
|
|
|
163
170
|
declare const countPrograms: MaybeContext<BuildRESTFunction<typeof countPrograms$1> & typeof countPrograms$1>;
|
|
164
171
|
declare const listSamplePrograms: MaybeContext<BuildRESTFunction<typeof listSamplePrograms$1> & typeof listSamplePrograms$1>;
|
|
165
172
|
declare const queryPrograms: MaybeContext<BuildRESTFunction<typeof customQueryPrograms> & typeof customQueryPrograms>;
|
|
173
|
+
/** */
|
|
174
|
+
declare const onProgramCreated: BuildEventDefinition<typeof onProgramCreated$1> & typeof onProgramCreated$1;
|
|
175
|
+
/** */
|
|
176
|
+
declare const onProgramDeleted: BuildEventDefinition<typeof onProgramDeleted$1> & typeof onProgramDeleted$1;
|
|
177
|
+
/** */
|
|
178
|
+
declare const onProgramArchived: BuildEventDefinition<typeof onProgramArchived$1> & typeof onProgramArchived$1;
|
|
179
|
+
/** */
|
|
180
|
+
declare const onProgramDuplicated: BuildEventDefinition<typeof onProgramDuplicated$1> & typeof onProgramDuplicated$1;
|
|
181
|
+
/** */
|
|
182
|
+
declare const onProgramEnded: BuildEventDefinition<typeof onProgramEnded$1> & typeof onProgramEnded$1;
|
|
183
|
+
/** */
|
|
184
|
+
declare const onProgramPublished: BuildEventDefinition<typeof onProgramPublished$1> & typeof onProgramPublished$1;
|
|
185
|
+
/** */
|
|
186
|
+
declare const onProgramUpdated: BuildEventDefinition<typeof onProgramUpdated$1> & typeof onProgramUpdated$1;
|
|
166
187
|
|
|
167
|
-
export { ArchiveProgramResponse, BulkUpdateProgramsOptions, BulkUpdateProgramsResponse, CountProgramsOptions, CountProgramsResponse, DuplicateProgramResponse, EndProgramResponse, ListSampleProgramsResponse, MaskedProgram, Program, ProgramQuery, ProgramSearch, ProgramsQueryBuilder, PublishProgramApplicationErrors, PublishProgramResponse, SearchProgramsResponse, UpdateProgram, UpdateProgramApplicationErrors, archiveProgram, bulkUpdatePrograms, countPrograms, createProgram, deleteProgram, duplicateProgram, endProgram, getProgram, listSamplePrograms, publishProgram, queryPrograms, searchPrograms, updateProgram };
|
|
188
|
+
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 };
|
package/build/cjs/index.js
CHANGED
|
@@ -52,6 +52,13 @@ __export(index_exports, {
|
|
|
52
52
|
endProgram: () => endProgram4,
|
|
53
53
|
getProgram: () => getProgram4,
|
|
54
54
|
listSamplePrograms: () => listSamplePrograms4,
|
|
55
|
+
onProgramArchived: () => onProgramArchived2,
|
|
56
|
+
onProgramCreated: () => onProgramCreated2,
|
|
57
|
+
onProgramDeleted: () => onProgramDeleted2,
|
|
58
|
+
onProgramDuplicated: () => onProgramDuplicated2,
|
|
59
|
+
onProgramEnded: () => onProgramEnded2,
|
|
60
|
+
onProgramPublished: () => onProgramPublished2,
|
|
61
|
+
onProgramUpdated: () => onProgramUpdated2,
|
|
55
62
|
publishProgram: () => publishProgram4,
|
|
56
63
|
queryPrograms: () => queryPrograms4,
|
|
57
64
|
searchPrograms: () => searchPrograms4,
|
|
@@ -60,6 +67,16 @@ __export(index_exports, {
|
|
|
60
67
|
});
|
|
61
68
|
module.exports = __toCommonJS(index_exports);
|
|
62
69
|
|
|
70
|
+
// src/online-programs-v3-program-programs.public.ts
|
|
71
|
+
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
72
|
+
var import_float3 = require("@wix/sdk-runtime/transformations/float");
|
|
73
|
+
var import_image3 = require("@wix/sdk-runtime/transformations/image");
|
|
74
|
+
var import_page_url3 = require("@wix/sdk-runtime/transformations/page-url");
|
|
75
|
+
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
76
|
+
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
77
|
+
var import_video_v23 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
78
|
+
var import_sdk_types = require("@wix/sdk-types");
|
|
79
|
+
|
|
63
80
|
// src/online-programs-v3-program-programs.universal.ts
|
|
64
81
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
65
82
|
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
@@ -1864,9 +1881,304 @@ function listSamplePrograms3(httpClient) {
|
|
|
1864
1881
|
{ httpClient }
|
|
1865
1882
|
);
|
|
1866
1883
|
}
|
|
1884
|
+
var onProgramCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1885
|
+
"wix.online_programs.v3.program_created",
|
|
1886
|
+
true,
|
|
1887
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1888
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1889
|
+
{
|
|
1890
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1891
|
+
paths: [
|
|
1892
|
+
{ path: "entity.createdDate" },
|
|
1893
|
+
{ path: "entity.updatedDate" },
|
|
1894
|
+
{ path: "entity.statusUpdatedDate" },
|
|
1895
|
+
{ path: "entity.rewards.certificate.connectedDate" },
|
|
1896
|
+
{ path: "metadata.eventTime" }
|
|
1897
|
+
]
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1901
|
+
paths: [{ path: "entity.description.image" }]
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
1905
|
+
paths: [{ path: "entity.description.video" }]
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
1909
|
+
paths: [{ path: "entity.seo.url" }]
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1913
|
+
paths: [
|
|
1914
|
+
{ path: "entity.videoStepsSettings.requiredCompletionPercentage" }
|
|
1915
|
+
]
|
|
1916
|
+
}
|
|
1917
|
+
])
|
|
1918
|
+
)
|
|
1919
|
+
)();
|
|
1920
|
+
var onProgramDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1921
|
+
"wix.online_programs.v3.program_deleted",
|
|
1922
|
+
true,
|
|
1923
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1924
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1925
|
+
{
|
|
1926
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1927
|
+
paths: [
|
|
1928
|
+
{ path: "undefined.createdDate" },
|
|
1929
|
+
{ path: "undefined.updatedDate" },
|
|
1930
|
+
{ path: "undefined.statusUpdatedDate" },
|
|
1931
|
+
{ path: "undefined.rewards.certificate.connectedDate" },
|
|
1932
|
+
{ path: "metadata.eventTime" }
|
|
1933
|
+
]
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1937
|
+
paths: [{ path: "undefined.description.image" }]
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
1941
|
+
paths: [{ path: "undefined.description.video" }]
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
1945
|
+
paths: [{ path: "undefined.seo.url" }]
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1949
|
+
paths: [
|
|
1950
|
+
{
|
|
1951
|
+
path: "undefined.videoStepsSettings.requiredCompletionPercentage"
|
|
1952
|
+
}
|
|
1953
|
+
]
|
|
1954
|
+
}
|
|
1955
|
+
])
|
|
1956
|
+
)
|
|
1957
|
+
)();
|
|
1958
|
+
var onProgramArchived = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1959
|
+
"wix.online_programs.v3.program_program_archived",
|
|
1960
|
+
true,
|
|
1961
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1962
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1963
|
+
{
|
|
1964
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1965
|
+
paths: [
|
|
1966
|
+
{ path: "data.program.createdDate" },
|
|
1967
|
+
{ path: "data.program.updatedDate" },
|
|
1968
|
+
{ path: "data.program.statusUpdatedDate" },
|
|
1969
|
+
{ path: "data.program.rewards.certificate.connectedDate" },
|
|
1970
|
+
{ path: "metadata.eventTime" }
|
|
1971
|
+
]
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1975
|
+
paths: [{ path: "data.program.description.image" }]
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
1979
|
+
paths: [{ path: "data.program.description.video" }]
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
1983
|
+
paths: [{ path: "data.program.seo.url" }]
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1987
|
+
paths: [
|
|
1988
|
+
{
|
|
1989
|
+
path: "data.program.videoStepsSettings.requiredCompletionPercentage"
|
|
1990
|
+
}
|
|
1991
|
+
]
|
|
1992
|
+
}
|
|
1993
|
+
])
|
|
1994
|
+
)
|
|
1995
|
+
)();
|
|
1996
|
+
var onProgramDuplicated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1997
|
+
"wix.online_programs.v3.program_program_duplicated",
|
|
1998
|
+
true,
|
|
1999
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2000
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2001
|
+
{
|
|
2002
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2003
|
+
paths: [
|
|
2004
|
+
{ path: "data.program.createdDate" },
|
|
2005
|
+
{ path: "data.program.updatedDate" },
|
|
2006
|
+
{ path: "data.program.statusUpdatedDate" },
|
|
2007
|
+
{ path: "data.program.rewards.certificate.connectedDate" },
|
|
2008
|
+
{ path: "data.duplicatedFrom.createdDate" },
|
|
2009
|
+
{ path: "data.duplicatedFrom.updatedDate" },
|
|
2010
|
+
{ path: "data.duplicatedFrom.statusUpdatedDate" },
|
|
2011
|
+
{ path: "data.duplicatedFrom.rewards.certificate.connectedDate" },
|
|
2012
|
+
{ path: "metadata.eventTime" }
|
|
2013
|
+
]
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2017
|
+
paths: [
|
|
2018
|
+
{ path: "data.program.description.image" },
|
|
2019
|
+
{ path: "data.duplicatedFrom.description.image" }
|
|
2020
|
+
]
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
2024
|
+
paths: [
|
|
2025
|
+
{ path: "data.program.description.video" },
|
|
2026
|
+
{ path: "data.duplicatedFrom.description.video" }
|
|
2027
|
+
]
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
2031
|
+
paths: [
|
|
2032
|
+
{ path: "data.program.seo.url" },
|
|
2033
|
+
{ path: "data.duplicatedFrom.seo.url" }
|
|
2034
|
+
]
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2038
|
+
paths: [
|
|
2039
|
+
{
|
|
2040
|
+
path: "data.program.videoStepsSettings.requiredCompletionPercentage"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
path: "data.duplicatedFrom.videoStepsSettings.requiredCompletionPercentage"
|
|
2044
|
+
}
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
])
|
|
2048
|
+
)
|
|
2049
|
+
)();
|
|
2050
|
+
var onProgramEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2051
|
+
"wix.online_programs.v3.program_program_ended",
|
|
2052
|
+
true,
|
|
2053
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2054
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2055
|
+
{
|
|
2056
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2057
|
+
paths: [
|
|
2058
|
+
{ path: "data.program.createdDate" },
|
|
2059
|
+
{ path: "data.program.updatedDate" },
|
|
2060
|
+
{ path: "data.program.statusUpdatedDate" },
|
|
2061
|
+
{ path: "data.program.rewards.certificate.connectedDate" },
|
|
2062
|
+
{ path: "metadata.eventTime" }
|
|
2063
|
+
]
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2067
|
+
paths: [{ path: "data.program.description.image" }]
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
2071
|
+
paths: [{ path: "data.program.description.video" }]
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
2075
|
+
paths: [{ path: "data.program.seo.url" }]
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2079
|
+
paths: [
|
|
2080
|
+
{
|
|
2081
|
+
path: "data.program.videoStepsSettings.requiredCompletionPercentage"
|
|
2082
|
+
}
|
|
2083
|
+
]
|
|
2084
|
+
}
|
|
2085
|
+
])
|
|
2086
|
+
)
|
|
2087
|
+
)();
|
|
2088
|
+
var onProgramPublished = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2089
|
+
"wix.online_programs.v3.program_program_published",
|
|
2090
|
+
true,
|
|
2091
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2092
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2093
|
+
{
|
|
2094
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2095
|
+
paths: [
|
|
2096
|
+
{ path: "data.program.createdDate" },
|
|
2097
|
+
{ path: "data.program.updatedDate" },
|
|
2098
|
+
{ path: "data.program.statusUpdatedDate" },
|
|
2099
|
+
{ path: "data.program.rewards.certificate.connectedDate" },
|
|
2100
|
+
{ path: "metadata.eventTime" }
|
|
2101
|
+
]
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2105
|
+
paths: [{ path: "data.program.description.image" }]
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
2109
|
+
paths: [{ path: "data.program.description.video" }]
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
2113
|
+
paths: [{ path: "data.program.seo.url" }]
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2117
|
+
paths: [
|
|
2118
|
+
{
|
|
2119
|
+
path: "data.program.videoStepsSettings.requiredCompletionPercentage"
|
|
2120
|
+
}
|
|
2121
|
+
]
|
|
2122
|
+
}
|
|
2123
|
+
])
|
|
2124
|
+
)
|
|
2125
|
+
)();
|
|
2126
|
+
var onProgramUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2127
|
+
"wix.online_programs.v3.program_updated",
|
|
2128
|
+
true,
|
|
2129
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2130
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2131
|
+
{
|
|
2132
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2133
|
+
paths: [
|
|
2134
|
+
{ path: "entity.createdDate" },
|
|
2135
|
+
{ path: "entity.updatedDate" },
|
|
2136
|
+
{ path: "entity.statusUpdatedDate" },
|
|
2137
|
+
{ path: "entity.rewards.certificate.connectedDate" },
|
|
2138
|
+
{ path: "metadata.eventTime" },
|
|
2139
|
+
{ path: "modifiedFields.createdDate" },
|
|
2140
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2141
|
+
{ path: "modifiedFields.statusUpdatedDate" },
|
|
2142
|
+
{ path: "modifiedFields.rewards.certificate.connectedDate" }
|
|
2143
|
+
]
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2147
|
+
paths: [
|
|
2148
|
+
{ path: "entity.description.image" },
|
|
2149
|
+
{ path: "modifiedFields.description.image" }
|
|
2150
|
+
]
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
2154
|
+
paths: [
|
|
2155
|
+
{ path: "entity.description.video" },
|
|
2156
|
+
{ path: "modifiedFields.description.video" }
|
|
2157
|
+
]
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
|
|
2161
|
+
paths: [
|
|
2162
|
+
{ path: "entity.seo.url" },
|
|
2163
|
+
{ path: "modifiedFields.seo.url" }
|
|
2164
|
+
]
|
|
2165
|
+
},
|
|
2166
|
+
{
|
|
2167
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2168
|
+
paths: [
|
|
2169
|
+
{ path: "entity.videoStepsSettings.requiredCompletionPercentage" },
|
|
2170
|
+
{
|
|
2171
|
+
path: "modifiedFields.videoStepsSettings.requiredCompletionPercentage"
|
|
2172
|
+
}
|
|
2173
|
+
]
|
|
2174
|
+
}
|
|
2175
|
+
])
|
|
2176
|
+
)
|
|
2177
|
+
)();
|
|
1867
2178
|
|
|
1868
2179
|
// src/online-programs-v3-program-programs.context.ts
|
|
1869
2180
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
2181
|
+
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1870
2182
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1871
2183
|
function customQueryPrograms(httpClient) {
|
|
1872
2184
|
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
@@ -1892,6 +2204,25 @@ var bulkUpdatePrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMod
|
|
|
1892
2204
|
var countPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countPrograms3);
|
|
1893
2205
|
var listSamplePrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listSamplePrograms3);
|
|
1894
2206
|
var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPrograms);
|
|
2207
|
+
var onProgramCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2208
|
+
onProgramCreated
|
|
2209
|
+
);
|
|
2210
|
+
var onProgramDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2211
|
+
onProgramDeleted
|
|
2212
|
+
);
|
|
2213
|
+
var onProgramArchived2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2214
|
+
onProgramArchived
|
|
2215
|
+
);
|
|
2216
|
+
var onProgramDuplicated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2217
|
+
onProgramDuplicated
|
|
2218
|
+
);
|
|
2219
|
+
var onProgramEnded2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onProgramEnded);
|
|
2220
|
+
var onProgramPublished2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2221
|
+
onProgramPublished
|
|
2222
|
+
);
|
|
2223
|
+
var onProgramUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2224
|
+
onProgramUpdated
|
|
2225
|
+
);
|
|
1895
2226
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1896
2227
|
0 && (module.exports = {
|
|
1897
2228
|
AccessType,
|
|
@@ -1926,6 +2257,13 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
1926
2257
|
endProgram,
|
|
1927
2258
|
getProgram,
|
|
1928
2259
|
listSamplePrograms,
|
|
2260
|
+
onProgramArchived,
|
|
2261
|
+
onProgramCreated,
|
|
2262
|
+
onProgramDeleted,
|
|
2263
|
+
onProgramDuplicated,
|
|
2264
|
+
onProgramEnded,
|
|
2265
|
+
onProgramPublished,
|
|
2266
|
+
onProgramUpdated,
|
|
1929
2267
|
publishProgram,
|
|
1930
2268
|
queryPrograms,
|
|
1931
2269
|
searchPrograms,
|