@wix/auto_sdk_online-programs_programs 1.0.18 → 1.0.19
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 +78 -37
- package/build/cjs/index.js +35 -45
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -4
- package/build/cjs/index.typings.js +35 -45
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +208 -156
- package/build/cjs/meta.js +21 -43
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/cjs/online-programs-v3-program-programs.universal-DYH-_E7Y.d.ts → cjs/online-programs-v3-program-programs.universal-s9OPdNxX.d.ts} +334 -275
- package/build/cjs/schemas.d.ts +1895 -0
- package/build/cjs/schemas.js +3155 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +78 -37
- package/build/es/index.mjs +33 -42
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -4
- package/build/es/index.typings.mjs +33 -42
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +208 -156
- package/build/es/meta.mjs +21 -41
- package/build/es/meta.mjs.map +1 -1
- package/build/{internal/es/online-programs-v3-program-programs.universal-DYH-_E7Y.d.mts → es/online-programs-v3-program-programs.universal-s9OPdNxX.d.mts} +334 -275
- package/build/es/schemas.d.mts +1895 -0
- package/build/es/schemas.mjs +3093 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +78 -37
- package/build/internal/cjs/index.js +35 -45
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -4
- package/build/internal/cjs/index.typings.js +35 -45
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +208 -156
- package/build/internal/cjs/meta.js +21 -43
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{cjs/online-programs-v3-program-programs.universal-nj9IWrAz.d.ts → internal/cjs/online-programs-v3-program-programs.universal-s9OPdNxX.d.ts} +344 -257
- package/build/internal/cjs/schemas.d.ts +1895 -0
- package/build/internal/cjs/schemas.js +3155 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +78 -37
- package/build/internal/es/index.mjs +33 -42
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -4
- package/build/internal/es/index.typings.mjs +33 -42
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +208 -156
- package/build/internal/es/meta.mjs +21 -41
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/{es/online-programs-v3-program-programs.universal-nj9IWrAz.d.mts → internal/es/online-programs-v3-program-programs.universal-s9OPdNxX.d.mts} +344 -257
- package/build/internal/es/schemas.d.mts +1895 -0
- package/build/internal/es/schemas.mjs +3093 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -1,108 +1,149 @@
|
|
|
1
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 ProgramsQueryBuilder, h as ProgramQuery, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-
|
|
3
|
-
export { j as AccessType, cR as AccessTypeWithLiterals,
|
|
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 ProgramsQueryBuilder, h as ProgramQuery, t as typedQueryPrograms } from './online-programs-v3-program-programs.universal-s9OPdNxX.js';
|
|
3
|
+
export { j as AccessType, cR as AccessTypeWithLiterals, cL as AccountInfo, bT as ActionEvent, cz as Address, cA as AddressHint, b4 as Aggregation, bk as AggregationData, b5 as AggregationKindOneOf, bD as AggregationResults, bE as AggregationResultsResultOneOf, br as AggregationResultsScalarResult, r as AggregationType, d0 as AggregationTypeWithLiterals, ah as App, aE as ApplicationError, bH as ArchiveProgramRequest, b_ as Asset, aF as BulkActionMetadata, l as BulkActionType, cU as BulkActionTypeWithLiterals, az as BulkCreateProgramsMigrationRequest, aB as BulkCreateProgramsMigrationResponse, aC as BulkProgramResult, bJ as BulkUpdateProgramResult, bI as BulkUpdateProgramsRequest, cC as BusinessSchedule, cx as Categories, a1 as Certificate, db as CommonQueryWithEntityContext, dc as CommonSearchWithEntityContext, cH as ConsentPolicy, a4 as ContentSummary, bK as CountProgramsRequest, ax as CreateProgramRequest, ay as CreateProgramResponse, aZ as CursorPaging, bj as CursorPagingMetadata, b2 as CursorSearch, b3 as CursorSearchPagingMethodOneOf, b0 as Cursors, al as CustomTag, bc as DateHistogramAggregation, bz as DateHistogramResult, bB as DateHistogramResults, F as DayOfWeek, d8 as DayOfWeekWithLiterals, ar as Delete, aG as DeleteAllProgramsMigrationRequest, aH as DeleteAllProgramsMigrationResponse, ac as DeleteByFilterOperation, ab as DeleteByIdsOperation, c2 as DeleteContext, aS as DeleteProgramRequest, aT as DeleteProgramResponse, x as DeleteStatus, d5 as DeleteStatusWithLiterals, G as Description, H as DescriptionMediaOneOf, aa as DocumentImage, a9 as DocumentPayload, a7 as DocumentUpdateOperation, bN as DomainEvent, bO as DomainEventBodyOneOf, aI as DuplicateProgramRequest, aQ as DuplicatedSlugErrorDetails, cr as EditorlessAssigned, cs as EditorlessUnassigned, bU as Empty, bG as EndProgramRequest, bP as EntityCreatedEvent, bS as EntityDeletedEvent, bR as EntityUpdatedEvent, k as Enum, cT as EnumWithLiterals, a2 as ExtendedFields, ak as File, J as FocalPoint, cB as GeoCoordinates, aJ as GetProgramRequest, aK as GetProgramResponse, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, cJ as IdentificationData, cK as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, a8 as IndexDocument, I as Interval, c$ as IntervalWithLiterals, af as InvalidateCache, ag as InvalidateCacheGetByOneOf, aD as ItemMetadata, Z as Keyword, bM as LabeledProgram, bL as ListSampleProgramsRequest, cy as Locale, cI as MessageEnvelope, bY as MetaSiteSpecialEvent, bZ as MetaSiteSpecialEventPayloadOneOf, bX as MissingMetasiteIdErrorDetails, p as MissingValues, cY as MissingValuesWithLiterals, s as Mode, d1 as ModeWithLiterals, Q as Money, cF as Multilingual, w as Namespace, cc as NamespaceChanged, d4 as NamespaceWithLiterals, bf as NestedAggregation, bd as NestedAggregationItem, be as NestedAggregationItemKindOneOf, bn as NestedAggregationResults, bo as NestedAggregationResultsResultOneOf, N as NestedAggregationType, c_ as NestedAggregationTypeWithLiterals, bw as NestedResultValue, bx as NestedResultValueResultOneOf, bC as NestedResults, bs as NestedValueAggregationResult, ch as OdeditorAssigned, ci as OdeditorUnassigned, ai as Page, am as Pages, aY as Paging, a$ as PagingMetadataV2, cj as PicassoAssigned, ck as PicassoUnassigned, z as PlacementType, d7 as PlacementTypeWithLiterals, av as ProgramArchived, aw as ProgramDuplicated, au as ProgramEnded, aA as ProgramMigration, at as ProgramPublished, cN as ProgramQuerySpec, cO as ProgramSearchSpec, cM as ProgramsQueryResult, cw as Properties, bF as PublishProgramRequest, aU as QueryProgramsRequest, a_ as QueryProgramsResponse, aV as QueryV2, aW as QueryV2PagingMethodOneOf, ba as RangeAggregation, bm as RangeAggregationResult, b6 as RangeBucket, bu as RangeResult, bq as RangeResults, ao as ReindexMessage, ap as ReindexMessageActionOneOf, R as ResolutionMethod, d9 as ResolutionMethodWithLiterals, bV as ResolveProgramSlugRequest, bW as ResolveProgramSlugResponse, bQ as RestoreInfo, O as Restrictions, by as Results, a0 as Reward, bb as ScalarAggregation, bv as ScalarResult, q as ScalarType, cZ as ScalarTypeWithLiterals, as as Schema, bi as SearchDetails, ct as SearchIndexingNotification, y as SearchIndexingNotificationState, d6 as SearchIndexingNotificationStateWithLiterals, b1 as SearchProgramsRequest, X as Seo, Y as SeoSchema, c8 as ServiceProvisioned, c9 as ServiceRemoved, $ as Settings, b$ as SiteCreated, v as SiteCreatedContext, d3 as SiteCreatedContextWithLiterals, c1 as SiteDeleted, cb as SiteHardDeleted, c6 as SiteMarkedAsTemplate, c7 as SiteMarkedAsWixSite, cv as SitePropertiesEvent, cu as SitePropertiesUpdated, c4 as SitePublished, cg as SitePurgedExternally, ca as SiteRenamed, c0 as SiteTransferred, c3 as SiteUndeleted, c5 as SiteUnpublished, cf as SiteUrlChanged, o as SortDirection, cX as SortDirectionWithLiterals, m as SortOrder, cV as SortOrderWithLiterals, n as SortType, cW as SortTypeWithLiterals, aX as Sorting, cE as SpecialHourPeriod, u as State, d2 as StateWithLiterals, i as Status, cQ as StatusWithLiterals, cd as StudioAssigned, cn as StudioTwoAssigned, co as StudioTwoUnassigned, ce as StudioUnassigned, cG as SupportedLanguage, _ as Tag, cD as TimePeriod, K as Timeline, aR as TimelineSwitchForbiddenErrorDetails, T as Trigger, cS as TriggerWithLiterals, aj as URI, an as URIs, ad as UpdateByFilterOperation, a5 as UpdateDocumentsEvent, a6 as UpdateDocumentsEventOperationOneOf, ae as UpdateExistingOperation, aL as UpdateProgramRequest, aM as UpdateProgramResponse, aq as Upsert, cq as UserDomainMediaDisabled, cp as UserDomainMediaEnabled, b8 as ValueAggregation, b9 as ValueAggregationOptionsOneOf, bl as ValueAggregationResult, bt as ValueResult, bp as ValueResults, V as VideoResolution, a3 as VideoStepsSettings, W as WebhookIdentityType, da as WebhookIdentityTypeWithLiterals, cl as WixelAssigned, cm as WixelUnassigned, aP as WrongParticipantsNumberErrorDetails, aO as WrongStartDateErrorDetails, aN as WrongStateErrorDetails, cP as utils } from './online-programs-v3-program-programs.universal-s9OPdNxX.js';
|
|
4
4
|
|
|
5
5
|
declare function createProgram$1(httpClient: HttpClient): CreateProgramSignature;
|
|
6
6
|
interface CreateProgramSignature {
|
|
7
7
|
/**
|
|
8
|
-
* Creates a
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Creates a draft program.
|
|
9
|
+
*
|
|
10
|
+
* The service sets the program ID, revision, creation dates, owner, and initial
|
|
11
|
+
* `DRAFT` status. Publish the program when it's ready to be visible
|
|
12
|
+
* according to its access restrictions.
|
|
13
|
+
* @param - Program to create. Server-generated fields such as `id`, `revision`, status, dates, owner, and content summary are ignored on create.
|
|
14
|
+
* @returns Created draft program.
|
|
11
15
|
*/
|
|
12
|
-
(program: Program): Promise<NonNullablePaths<Program, `
|
|
16
|
+
(program: Program): Promise<NonNullablePaths<Program, `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7>>;
|
|
13
17
|
}
|
|
14
18
|
declare function duplicateProgram$1(httpClient: HttpClient): DuplicateProgramSignature;
|
|
15
19
|
interface DuplicateProgramSignature {
|
|
16
20
|
/**
|
|
17
|
-
* Duplicates
|
|
18
|
-
*
|
|
21
|
+
* Duplicates a program as a new draft.
|
|
22
|
+
*
|
|
23
|
+
* The duplicated program gets a new ID and owner, starts in `DRAFT` status,
|
|
24
|
+
* keeps category assignments and translation content, resets the SEO slug to
|
|
25
|
+
* the duplicated program ID, clears the connected social group, and doesn't
|
|
26
|
+
* copy section or step references.
|
|
27
|
+
* @param - ID of the program to duplicate.
|
|
19
28
|
*/
|
|
20
|
-
(programId: string): Promise<NonNullablePaths<DuplicateProgramResponse, `program.
|
|
29
|
+
(programId: string): Promise<NonNullablePaths<DuplicateProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
|
|
21
30
|
}
|
|
22
31
|
declare function getProgram$1(httpClient: HttpClient): GetProgramSignature;
|
|
23
32
|
interface GetProgramSignature {
|
|
24
33
|
/**
|
|
25
|
-
* Retrieves a
|
|
26
|
-
*
|
|
27
|
-
*
|
|
34
|
+
* Retrieves a program by ID.
|
|
35
|
+
*
|
|
36
|
+
* Visibility depends on caller identity and program access settings. Public
|
|
37
|
+
* callers can retrieve published and ended non-secret programs. Site members
|
|
38
|
+
* can retrieve secret programs only when they participate in them. Trusted apps
|
|
39
|
+
* and services can retrieve management views.
|
|
40
|
+
* @param - ID of the program to retrieve.
|
|
41
|
+
* @returns Requested program.
|
|
28
42
|
*/
|
|
29
|
-
(programId: string): Promise<NonNullablePaths<Program, `
|
|
43
|
+
(programId: string): Promise<NonNullablePaths<Program, `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7>>;
|
|
30
44
|
}
|
|
31
45
|
declare function updateProgram$1(httpClient: HttpClient): UpdateProgramSignature;
|
|
32
46
|
interface UpdateProgramSignature {
|
|
33
47
|
/**
|
|
34
|
-
* Updates a
|
|
48
|
+
* Updates selected fields of a program.
|
|
49
|
+
*
|
|
50
|
+
* Each time the program is updated, `revision` increments by 1. The current
|
|
51
|
+
* `revision` must be passed when updating the program. This ensures you're
|
|
52
|
+
* working with the latest program and prevents unintended overwrites.
|
|
53
|
+
*
|
|
54
|
+
* Ended and archived programs can't be updated. Timeline changes are blocked
|
|
55
|
+
* when the program has active participants.
|
|
35
56
|
* @param - Program ID.
|
|
36
|
-
* @returns Updated
|
|
57
|
+
* @returns Updated program.
|
|
37
58
|
*/
|
|
38
|
-
(_id: string, program: NonNullablePaths<UpdateProgram, `revision`, 2>): Promise<NonNullablePaths<Program, `
|
|
59
|
+
(_id: string, program: NonNullablePaths<UpdateProgram, `revision`, 2>): Promise<NonNullablePaths<Program, `status` | `categoryIds` | `description.title` | `timeline.selfPaced` | `restrictions.hideFutureSteps` | `restrictions.resolveStepsInOrder` | `restrictions.shareProgress` | `restrictions.accessType` | `price.value` | `price.currency` | `seo.slug` | `seo.seoData.tags` | `seo.seoData.tags.${number}.type` | `seo.seoData.tags.${number}.children` | `seo.seoData.tags.${number}.custom` | `seo.seoData.tags.${number}.disabled` | `seo.seoData.settings.preventAutoRedirect` | `seo.seoData.settings.keywords` | `seo.seoData.settings.keywords.${number}.term` | `seo.seoData.settings.keywords.${number}.isMain` | `seo.imageAlt` | `seo.courseWorkload` | `rewards` | `rewards.${number}.trigger` | `rewards.${number}.certificate._id` | `shouldSendInvoice` | `videoStepsSettings.autoNavigate` | `videoStepsSettings.requiredCompletionPercentage` | `contentSummary.stepCount` | `contentSummary.sectionCount`, 7> & {
|
|
39
60
|
__applicationErrorsType?: UpdateProgramApplicationErrors;
|
|
40
61
|
}>;
|
|
41
62
|
}
|
|
42
63
|
declare function deleteProgram$1(httpClient: HttpClient): DeleteProgramSignature;
|
|
43
64
|
interface DeleteProgramSignature {
|
|
44
65
|
/**
|
|
45
|
-
* Deletes a
|
|
46
|
-
*
|
|
47
|
-
*
|
|
66
|
+
* Deletes a program.
|
|
67
|
+
*
|
|
68
|
+
* Deleting a program permanently removes it from the program list, cancels its
|
|
69
|
+
* scheduled end task, removes related member groups, and removes it from search.
|
|
70
|
+
* @param - ID of the program to delete.
|
|
48
71
|
*/
|
|
49
72
|
(programId: string): Promise<void>;
|
|
50
73
|
}
|
|
51
74
|
declare function searchPrograms$1(httpClient: HttpClient): SearchProgramsSignature;
|
|
52
75
|
interface SearchProgramsSignature {
|
|
53
76
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
77
|
+
* Searches programs by title and structured filters.
|
|
78
|
+
*
|
|
79
|
+
* Use this method when you need full-text search over `description.title`.
|
|
80
|
+
* Results are visibility-filtered according to the caller identity.
|
|
81
|
+
* @param - Search expression, filters, sorting, and cursor paging options.
|
|
56
82
|
*/
|
|
57
|
-
(search: ProgramSearch): Promise<NonNullablePaths<SearchProgramsResponse, `programs` | `programs.${number}.
|
|
83
|
+
(search: ProgramSearch): Promise<NonNullablePaths<SearchProgramsResponse, `programs` | `programs.${number}.status` | `programs.${number}.description.title` | `programs.${number}.timeline.selfPaced` | `programs.${number}.restrictions.hideFutureSteps` | `programs.${number}.restrictions.resolveStepsInOrder` | `programs.${number}.restrictions.shareProgress` | `programs.${number}.restrictions.accessType` | `programs.${number}.price.value` | `programs.${number}.price.currency` | `programs.${number}.seo.slug` | `programs.${number}.seo.imageAlt` | `programs.${number}.seo.courseWorkload` | `programs.${number}.shouldSendInvoice` | `programs.${number}.videoStepsSettings.autoNavigate` | `programs.${number}.videoStepsSettings.requiredCompletionPercentage` | `programs.${number}.contentSummary.stepCount` | `programs.${number}.contentSummary.sectionCount` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
|
|
58
84
|
}
|
|
59
85
|
declare function publishProgram$1(httpClient: HttpClient): PublishProgramSignature;
|
|
60
86
|
interface PublishProgramSignature {
|
|
61
87
|
/**
|
|
62
|
-
* Publishes draft program.
|
|
63
|
-
*
|
|
88
|
+
* Publishes a draft program.
|
|
89
|
+
*
|
|
90
|
+
* A scheduled program can't be published when its start date is in the past.
|
|
91
|
+
* If the program has an end date, the service schedules an automatic transition
|
|
92
|
+
* to `ENDED` using the site's timezone.
|
|
93
|
+
* @param - ID of the draft program to publish.
|
|
64
94
|
*/
|
|
65
|
-
(programId: string): Promise<NonNullablePaths<PublishProgramResponse, `program.
|
|
95
|
+
(programId: string): Promise<NonNullablePaths<PublishProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8> & {
|
|
66
96
|
__applicationErrorsType?: PublishProgramApplicationErrors;
|
|
67
97
|
}>;
|
|
68
98
|
}
|
|
69
99
|
declare function endProgram$1(httpClient: HttpClient): EndProgramSignature;
|
|
70
100
|
interface EndProgramSignature {
|
|
71
101
|
/**
|
|
72
|
-
* Ends program.
|
|
73
|
-
*
|
|
102
|
+
* Ends a published program.
|
|
103
|
+
*
|
|
104
|
+
* Ending a program changes its status to `ENDED` and cancels any scheduled end
|
|
105
|
+
* task. The operation succeeds only for currently published programs.
|
|
106
|
+
* @param - ID of the published program to end.
|
|
74
107
|
*/
|
|
75
|
-
(programId: string): Promise<NonNullablePaths<EndProgramResponse, `program.
|
|
108
|
+
(programId: string): Promise<NonNullablePaths<EndProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
|
|
76
109
|
}
|
|
77
110
|
declare function archiveProgram$1(httpClient: HttpClient): ArchiveProgramSignature;
|
|
78
111
|
interface ArchiveProgramSignature {
|
|
79
112
|
/**
|
|
80
|
-
* Archives program
|
|
81
|
-
*
|
|
113
|
+
* Archives a program.
|
|
114
|
+
*
|
|
115
|
+
* Archiving closes the program, removes it from normal public discovery, and
|
|
116
|
+
* replaces its SEO slug with the program ID so the previous slug can be reused.
|
|
117
|
+
* @param - ID of the program to archive.
|
|
82
118
|
*/
|
|
83
|
-
(programId: string): Promise<NonNullablePaths<ArchiveProgramResponse, `program.
|
|
119
|
+
(programId: string): Promise<NonNullablePaths<ArchiveProgramResponse, `program.status` | `program.categoryIds` | `program.description.title` | `program.timeline.selfPaced` | `program.restrictions.hideFutureSteps` | `program.restrictions.resolveStepsInOrder` | `program.restrictions.shareProgress` | `program.restrictions.accessType` | `program.price.value` | `program.price.currency` | `program.seo.slug` | `program.seo.seoData.tags` | `program.seo.seoData.tags.${number}.type` | `program.seo.seoData.tags.${number}.children` | `program.seo.seoData.tags.${number}.custom` | `program.seo.seoData.tags.${number}.disabled` | `program.seo.seoData.settings.preventAutoRedirect` | `program.seo.seoData.settings.keywords` | `program.seo.seoData.settings.keywords.${number}.term` | `program.seo.seoData.settings.keywords.${number}.isMain` | `program.seo.imageAlt` | `program.seo.courseWorkload` | `program.rewards` | `program.rewards.${number}.trigger` | `program.rewards.${number}.certificate._id` | `program.shouldSendInvoice` | `program.videoStepsSettings.autoNavigate` | `program.videoStepsSettings.requiredCompletionPercentage` | `program.contentSummary.stepCount` | `program.contentSummary.sectionCount`, 8>>;
|
|
84
120
|
}
|
|
85
121
|
declare function bulkUpdatePrograms$1(httpClient: HttpClient): BulkUpdateProgramsSignature;
|
|
86
122
|
interface BulkUpdateProgramsSignature {
|
|
87
123
|
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
124
|
+
* Updates multiple programs in a single synchronous request.
|
|
125
|
+
*
|
|
126
|
+
* Each item includes its own program data and revision. Set `returnEntity` to
|
|
127
|
+
* return updated programs in the response.
|
|
128
|
+
* @param - Programs to update. Each item contains partial program data.
|
|
90
129
|
*/
|
|
91
|
-
(programs: NonNullablePaths<MaskedProgram, `program.revision`, 3>[], options?: BulkUpdateProgramsOptions): Promise<NonNullablePaths<BulkUpdateProgramsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.
|
|
130
|
+
(programs: NonNullablePaths<MaskedProgram, `program.revision`, 3>[], options?: BulkUpdateProgramsOptions): Promise<NonNullablePaths<BulkUpdateProgramsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.status` | `results.${number}.item.description.title` | `results.${number}.item.timeline.selfPaced` | `results.${number}.item.restrictions.hideFutureSteps` | `results.${number}.item.restrictions.resolveStepsInOrder` | `results.${number}.item.restrictions.shareProgress` | `results.${number}.item.restrictions.accessType` | `results.${number}.item.price.value` | `results.${number}.item.price.currency` | `results.${number}.item.seo.slug` | `results.${number}.item.seo.imageAlt` | `results.${number}.item.seo.courseWorkload` | `results.${number}.item.shouldSendInvoice` | `results.${number}.item.videoStepsSettings.autoNavigate` | `results.${number}.item.videoStepsSettings.requiredCompletionPercentage` | `results.${number}.item.contentSummary.stepCount` | `results.${number}.item.contentSummary.sectionCount` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
92
131
|
}
|
|
93
132
|
declare function countPrograms$1(httpClient: HttpClient): CountProgramsSignature;
|
|
94
133
|
interface CountProgramsSignature {
|
|
95
134
|
/**
|
|
96
|
-
* Counts programs
|
|
135
|
+
* Counts programs that match a filter.
|
|
136
|
+
*
|
|
137
|
+
* Results use the same visibility rules as `QueryPrograms`.
|
|
97
138
|
*/
|
|
98
139
|
(options?: CountProgramsOptions): Promise<NonNullablePaths<CountProgramsResponse, `count`, 2>>;
|
|
99
140
|
}
|
|
100
141
|
declare function listSamplePrograms$1(httpClient: HttpClient): ListSampleProgramsSignature;
|
|
101
142
|
interface ListSampleProgramsSignature {
|
|
102
143
|
/**
|
|
103
|
-
*
|
|
144
|
+
* Lists sample programs used as templates for creating new programs.
|
|
104
145
|
*/
|
|
105
|
-
(): Promise<NonNullablePaths<ListSampleProgramsResponse, `programs` | `programs.${number}.program.
|
|
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`, 6>>;
|
|
106
147
|
}
|
|
107
148
|
|
|
108
149
|
declare function customQueryPrograms(httpClient: HttpClient): {
|
|
@@ -33,7 +33,6 @@ __export(index_exports, {
|
|
|
33
33
|
NestedAggregationType: () => NestedAggregationType,
|
|
34
34
|
PlacementType: () => PlacementType,
|
|
35
35
|
ResolutionMethod: () => ResolutionMethod,
|
|
36
|
-
RestrictionsAccessType: () => RestrictionsAccessType,
|
|
37
36
|
ScalarType: () => ScalarType,
|
|
38
37
|
SearchIndexingNotificationState: () => SearchIndexingNotificationState,
|
|
39
38
|
SiteCreatedContext: () => SiteCreatedContext,
|
|
@@ -43,7 +42,6 @@ __export(index_exports, {
|
|
|
43
42
|
State: () => State,
|
|
44
43
|
Status: () => Status,
|
|
45
44
|
Trigger: () => Trigger,
|
|
46
|
-
V3State: () => V3State,
|
|
47
45
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
48
46
|
archiveProgram: () => archiveProgram4,
|
|
49
47
|
bulkUpdatePrograms: () => bulkUpdatePrograms4,
|
|
@@ -57,7 +55,8 @@ __export(index_exports, {
|
|
|
57
55
|
publishProgram: () => publishProgram4,
|
|
58
56
|
queryPrograms: () => queryPrograms4,
|
|
59
57
|
searchPrograms: () => searchPrograms4,
|
|
60
|
-
updateProgram: () => updateProgram4
|
|
58
|
+
updateProgram: () => updateProgram4,
|
|
59
|
+
utils: () => utils
|
|
61
60
|
});
|
|
62
61
|
module.exports = __toCommonJS(index_exports);
|
|
63
62
|
|
|
@@ -99,6 +98,20 @@ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
|
|
|
99
98
|
{
|
|
100
99
|
srcPath: "/_api/programs-service",
|
|
101
100
|
destPath: ""
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
srcPath: "/online-programs/v3/programs",
|
|
104
|
+
destPath: "/v3/programs"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/online-programs/v3/bulk/programs",
|
|
108
|
+
destPath: "/v3/bulk/programs"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"*.dev.wix-code.com": [
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/online-programs/v3/programs",
|
|
114
|
+
destPath: "/v3/programs"
|
|
102
115
|
}
|
|
103
116
|
]
|
|
104
117
|
};
|
|
@@ -113,7 +126,6 @@ function createProgram(payload) {
|
|
|
113
126
|
paths: [
|
|
114
127
|
{ path: "program.createdDate" },
|
|
115
128
|
{ path: "program.updatedDate" },
|
|
116
|
-
{ path: "program.stateUpdatedDate" },
|
|
117
129
|
{ path: "program.statusUpdatedDate" },
|
|
118
130
|
{ path: "program.description.image.urlExpirationDate" },
|
|
119
131
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -158,7 +170,6 @@ function createProgram(payload) {
|
|
|
158
170
|
paths: [
|
|
159
171
|
{ path: "program.createdDate" },
|
|
160
172
|
{ path: "program.updatedDate" },
|
|
161
|
-
{ path: "program.stateUpdatedDate" },
|
|
162
173
|
{ path: "program.statusUpdatedDate" },
|
|
163
174
|
{ path: "program.description.image.urlExpirationDate" },
|
|
164
175
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -218,7 +229,6 @@ function duplicateProgram(payload) {
|
|
|
218
229
|
paths: [
|
|
219
230
|
{ path: "program.createdDate" },
|
|
220
231
|
{ path: "program.updatedDate" },
|
|
221
|
-
{ path: "program.stateUpdatedDate" },
|
|
222
232
|
{ path: "program.statusUpdatedDate" },
|
|
223
233
|
{ path: "program.description.image.urlExpirationDate" },
|
|
224
234
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -278,7 +288,6 @@ function getProgram(payload) {
|
|
|
278
288
|
paths: [
|
|
279
289
|
{ path: "program.createdDate" },
|
|
280
290
|
{ path: "program.updatedDate" },
|
|
281
|
-
{ path: "program.stateUpdatedDate" },
|
|
282
291
|
{ path: "program.statusUpdatedDate" },
|
|
283
292
|
{ path: "program.description.image.urlExpirationDate" },
|
|
284
293
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -328,7 +337,6 @@ function updateProgram(payload) {
|
|
|
328
337
|
paths: [
|
|
329
338
|
{ path: "program.createdDate" },
|
|
330
339
|
{ path: "program.updatedDate" },
|
|
331
|
-
{ path: "program.stateUpdatedDate" },
|
|
332
340
|
{ path: "program.statusUpdatedDate" },
|
|
333
341
|
{ path: "program.description.image.urlExpirationDate" },
|
|
334
342
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -373,7 +381,6 @@ function updateProgram(payload) {
|
|
|
373
381
|
paths: [
|
|
374
382
|
{ path: "program.createdDate" },
|
|
375
383
|
{ path: "program.updatedDate" },
|
|
376
|
-
{ path: "program.stateUpdatedDate" },
|
|
377
384
|
{ path: "program.statusUpdatedDate" },
|
|
378
385
|
{ path: "program.description.image.urlExpirationDate" },
|
|
379
386
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -454,7 +461,6 @@ function queryPrograms(payload) {
|
|
|
454
461
|
paths: [
|
|
455
462
|
{ path: "programs.createdDate" },
|
|
456
463
|
{ path: "programs.updatedDate" },
|
|
457
|
-
{ path: "programs.stateUpdatedDate" },
|
|
458
464
|
{ path: "programs.statusUpdatedDate" },
|
|
459
465
|
{ path: "programs.description.image.urlExpirationDate" },
|
|
460
466
|
{ path: "programs.description.video.urlExpirationDate" },
|
|
@@ -529,7 +535,6 @@ function searchPrograms(payload) {
|
|
|
529
535
|
paths: [
|
|
530
536
|
{ path: "programs.createdDate" },
|
|
531
537
|
{ path: "programs.updatedDate" },
|
|
532
|
-
{ path: "programs.stateUpdatedDate" },
|
|
533
538
|
{ path: "programs.statusUpdatedDate" },
|
|
534
539
|
{ path: "programs.description.image.urlExpirationDate" },
|
|
535
540
|
{ path: "programs.description.video.urlExpirationDate" },
|
|
@@ -610,7 +615,6 @@ function publishProgram(payload) {
|
|
|
610
615
|
paths: [
|
|
611
616
|
{ path: "program.createdDate" },
|
|
612
617
|
{ path: "program.updatedDate" },
|
|
613
|
-
{ path: "program.stateUpdatedDate" },
|
|
614
618
|
{ path: "program.statusUpdatedDate" },
|
|
615
619
|
{ path: "program.description.image.urlExpirationDate" },
|
|
616
620
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -670,7 +674,6 @@ function endProgram(payload) {
|
|
|
670
674
|
paths: [
|
|
671
675
|
{ path: "program.createdDate" },
|
|
672
676
|
{ path: "program.updatedDate" },
|
|
673
|
-
{ path: "program.stateUpdatedDate" },
|
|
674
677
|
{ path: "program.statusUpdatedDate" },
|
|
675
678
|
{ path: "program.description.image.urlExpirationDate" },
|
|
676
679
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -730,7 +733,6 @@ function archiveProgram(payload) {
|
|
|
730
733
|
paths: [
|
|
731
734
|
{ path: "program.createdDate" },
|
|
732
735
|
{ path: "program.updatedDate" },
|
|
733
|
-
{ path: "program.stateUpdatedDate" },
|
|
734
736
|
{ path: "program.statusUpdatedDate" },
|
|
735
737
|
{ path: "program.description.image.urlExpirationDate" },
|
|
736
738
|
{ path: "program.description.video.urlExpirationDate" },
|
|
@@ -780,7 +782,6 @@ function bulkUpdatePrograms(payload) {
|
|
|
780
782
|
paths: [
|
|
781
783
|
{ path: "programs.program.createdDate" },
|
|
782
784
|
{ path: "programs.program.updatedDate" },
|
|
783
|
-
{ path: "programs.program.stateUpdatedDate" },
|
|
784
785
|
{ path: "programs.program.statusUpdatedDate" },
|
|
785
786
|
{ path: "programs.program.description.image.urlExpirationDate" },
|
|
786
787
|
{ path: "programs.program.description.video.urlExpirationDate" },
|
|
@@ -835,7 +836,6 @@ function bulkUpdatePrograms(payload) {
|
|
|
835
836
|
paths: [
|
|
836
837
|
{ path: "results.item.createdDate" },
|
|
837
838
|
{ path: "results.item.updatedDate" },
|
|
838
|
-
{ path: "results.item.stateUpdatedDate" },
|
|
839
839
|
{ path: "results.item.statusUpdatedDate" },
|
|
840
840
|
{ path: "results.item.description.image.urlExpirationDate" },
|
|
841
841
|
{ path: "results.item.description.video.urlExpirationDate" },
|
|
@@ -918,7 +918,6 @@ function listSamplePrograms(payload) {
|
|
|
918
918
|
paths: [
|
|
919
919
|
{ path: "programs.program.createdDate" },
|
|
920
920
|
{ path: "programs.program.updatedDate" },
|
|
921
|
-
{ path: "programs.program.stateUpdatedDate" },
|
|
922
921
|
{ path: "programs.program.statusUpdatedDate" },
|
|
923
922
|
{ path: "programs.program.description.image.urlExpirationDate" },
|
|
924
923
|
{ path: "programs.program.description.video.urlExpirationDate" },
|
|
@@ -971,40 +970,27 @@ var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
|
971
970
|
var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
|
|
972
971
|
var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
|
|
973
972
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
974
|
-
var
|
|
975
|
-
|
|
976
|
-
V3State2["PUBLISHED"] = "PUBLISHED";
|
|
977
|
-
V3State2["ENDED"] = "ENDED";
|
|
978
|
-
V3State2["ARCHIVED"] = "ARCHIVED";
|
|
979
|
-
return V3State2;
|
|
980
|
-
})(V3State || {});
|
|
973
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
974
|
+
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
981
975
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
982
|
-
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
983
976
|
Status2["DRAFT"] = "DRAFT";
|
|
984
977
|
Status2["PUBLISHED"] = "PUBLISHED";
|
|
985
978
|
Status2["ENDED"] = "ENDED";
|
|
986
979
|
Status2["ARCHIVED"] = "ARCHIVED";
|
|
987
980
|
return Status2;
|
|
988
981
|
})(Status || {});
|
|
989
|
-
var RestrictionsAccessType = /* @__PURE__ */ ((RestrictionsAccessType2) => {
|
|
990
|
-
RestrictionsAccessType2["UNKNOWN_ACCESS_TYPE"] = "UNKNOWN_ACCESS_TYPE";
|
|
991
|
-
RestrictionsAccessType2["PUBLIC"] = "PUBLIC";
|
|
992
|
-
RestrictionsAccessType2["PRIVATE"] = "PRIVATE";
|
|
993
|
-
RestrictionsAccessType2["SECRET"] = "SECRET";
|
|
994
|
-
return RestrictionsAccessType2;
|
|
995
|
-
})(RestrictionsAccessType || {});
|
|
996
|
-
var Trigger = /* @__PURE__ */ ((Trigger2) => {
|
|
997
|
-
Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
|
|
998
|
-
Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
|
|
999
|
-
Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
|
|
1000
|
-
return Trigger2;
|
|
1001
|
-
})(Trigger || {});
|
|
1002
982
|
var AccessType = /* @__PURE__ */ ((AccessType2) => {
|
|
1003
983
|
AccessType2["PUBLIC"] = "PUBLIC";
|
|
1004
984
|
AccessType2["PRIVATE"] = "PRIVATE";
|
|
1005
985
|
AccessType2["SECRET"] = "SECRET";
|
|
1006
986
|
return AccessType2;
|
|
1007
987
|
})(AccessType || {});
|
|
988
|
+
var Trigger = /* @__PURE__ */ ((Trigger2) => {
|
|
989
|
+
Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
|
|
990
|
+
Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
|
|
991
|
+
Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
|
|
992
|
+
return Trigger2;
|
|
993
|
+
})(Trigger || {});
|
|
1008
994
|
var Enum = /* @__PURE__ */ ((Enum2) => {
|
|
1009
995
|
Enum2["UNKNOWN"] = "UNKNOWN";
|
|
1010
996
|
Enum2["PROTECTED"] = "PROTECTED";
|
|
@@ -1042,14 +1028,12 @@ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
|
1042
1028
|
return MissingValues2;
|
|
1043
1029
|
})(MissingValues || {});
|
|
1044
1030
|
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
1045
|
-
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
1046
1031
|
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
1047
1032
|
ScalarType2["MIN"] = "MIN";
|
|
1048
1033
|
ScalarType2["MAX"] = "MAX";
|
|
1049
1034
|
return ScalarType2;
|
|
1050
1035
|
})(ScalarType || {});
|
|
1051
1036
|
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
1052
|
-
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
1053
1037
|
NestedAggregationType2["VALUE"] = "VALUE";
|
|
1054
1038
|
NestedAggregationType2["RANGE"] = "RANGE";
|
|
1055
1039
|
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
@@ -1057,7 +1041,6 @@ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
|
1057
1041
|
return NestedAggregationType2;
|
|
1058
1042
|
})(NestedAggregationType || {});
|
|
1059
1043
|
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
1060
|
-
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
1061
1044
|
Interval2["YEAR"] = "YEAR";
|
|
1062
1045
|
Interval2["MONTH"] = "MONTH";
|
|
1063
1046
|
Interval2["WEEK"] = "WEEK";
|
|
@@ -1068,7 +1051,6 @@ var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
|
1068
1051
|
return Interval2;
|
|
1069
1052
|
})(Interval || {});
|
|
1070
1053
|
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
1071
|
-
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
1072
1054
|
AggregationType2["VALUE"] = "VALUE";
|
|
1073
1055
|
AggregationType2["RANGE"] = "RANGE";
|
|
1074
1056
|
AggregationType2["SCALAR"] = "SCALAR";
|
|
@@ -1133,6 +1115,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
1133
1115
|
Namespace2["NANO"] = "NANO";
|
|
1134
1116
|
Namespace2["BASE44"] = "BASE44";
|
|
1135
1117
|
Namespace2["CHANNELS"] = "CHANNELS";
|
|
1118
|
+
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
1136
1119
|
return Namespace2;
|
|
1137
1120
|
})(Namespace || {});
|
|
1138
1121
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
@@ -1485,6 +1468,14 @@ async function typedQueryPrograms(query) {
|
|
|
1485
1468
|
throw transformedError;
|
|
1486
1469
|
}
|
|
1487
1470
|
}
|
|
1471
|
+
var utils = {
|
|
1472
|
+
query: {
|
|
1473
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1474
|
+
},
|
|
1475
|
+
search: {
|
|
1476
|
+
...(0, import_search_builder_utils.createSearchUtils)()
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1488
1479
|
async function searchPrograms2(search) {
|
|
1489
1480
|
const { httpClient, sideEffects } = arguments[1];
|
|
1490
1481
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
@@ -1909,7 +1900,6 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
1909
1900
|
NestedAggregationType,
|
|
1910
1901
|
PlacementType,
|
|
1911
1902
|
ResolutionMethod,
|
|
1912
|
-
RestrictionsAccessType,
|
|
1913
1903
|
ScalarType,
|
|
1914
1904
|
SearchIndexingNotificationState,
|
|
1915
1905
|
SiteCreatedContext,
|
|
@@ -1919,7 +1909,6 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
1919
1909
|
State,
|
|
1920
1910
|
Status,
|
|
1921
1911
|
Trigger,
|
|
1922
|
-
V3State,
|
|
1923
1912
|
WebhookIdentityType,
|
|
1924
1913
|
archiveProgram,
|
|
1925
1914
|
bulkUpdatePrograms,
|
|
@@ -1933,6 +1922,7 @@ var queryPrograms4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
1933
1922
|
publishProgram,
|
|
1934
1923
|
queryPrograms,
|
|
1935
1924
|
searchPrograms,
|
|
1936
|
-
updateProgram
|
|
1925
|
+
updateProgram,
|
|
1926
|
+
utils
|
|
1937
1927
|
});
|
|
1938
1928
|
//# sourceMappingURL=index.js.map
|