@wix/multilingual 1.0.58 → 1.0.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/multilingual",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,9 +21,9 @@
21
21
  "@wix/multilingual_entity-mapper": "1.0.16",
22
22
  "@wix/multilingual_machine-translation": "1.0.30",
23
23
  "@wix/multilingual_site-translator": "1.0.15",
24
- "@wix/multilingual_translation-contents": "1.0.28",
25
- "@wix/multilingual_translation-published-contents": "1.0.11",
26
- "@wix/multilingual_translation-schemas": "1.0.24"
24
+ "@wix/multilingual_translation-contents": "1.0.29",
25
+ "@wix/multilingual_translation-published-contents": "1.0.12",
26
+ "@wix/multilingual_translation-schemas": "1.0.25"
27
27
  },
28
28
  "devDependencies": {
29
29
  "glob": "^10.4.1",
@@ -48,5 +48,5 @@
48
48
  "fqdn": ""
49
49
  }
50
50
  },
51
- "falconPackageHash": "b2aea331dfc7f33ef7e4804083e75976a5ebad3d31878bc232067665"
51
+ "falconPackageHash": "73f5ba8f9132d37840b49065a3a42c9477a78d84ade9dfe71adf4ee6"
52
52
  }
@@ -2816,9 +2816,18 @@ interface PublishedContentQueryBuilder {
2816
2816
  declare function queryPublishedContent$1(httpClient: HttpClient): QueryPublishedContentSignature;
2817
2817
  interface QueryPublishedContentSignature {
2818
2818
  /**
2819
- * Retrieves a list of published translation content given the provided paging, filtering, and sorting. Up to 100 published content items can be returned per request.
2819
+ * Creates a query to retrieve a list of translation content items.
2820
2820
  *
2821
- * The default `sort` is `id` in `ASC`.
2821
+ * The `queryPublishedContent()` function builds a query to retrieve a list of translation content items and returns a `PublishedContentQueryBuilder` object.
2822
+ *
2823
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/find) function.
2824
+ *
2825
+ * You can refine the query by chaining `PublishedContentQueryBuilder` functions onto the query. `PublishedContentQueryBuilder` functions enable you to filter, sort, and control the results that `queryPublishedContent()` returns.
2826
+ *
2827
+ * `queryPublishedContent()` runs with the following `PublishedContentQueryBuilder` defaults which you can override:
2828
+ *
2829
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/limit)
2830
+ * + [`ascending('id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/ascending)
2822
2831
  *
2823
2832
  * The following query filter fields are required:
2824
2833
  *
@@ -2826,9 +2835,7 @@ interface QueryPublishedContentSignature {
2826
2835
  * + `schemaKey.entityType`
2827
2836
  * + `schemaKey.scope`
2828
2837
  *
2829
- * For additional field support for filters and sorting, see [Translation Published Content: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-published-content/sort-and-filter).
2830
- *
2831
- * To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
2838
+ * The following `PublishedContentQueryBuilder` functions are supported for `queryPublishedContent()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-result/items) property in `PublishedContentQueryResult`.
2832
2839
  */
2833
2840
  (): PublishedContentQueryBuilder;
2834
2841
  }
@@ -5317,7 +5324,7 @@ interface ContentField extends ContentFieldValueOneOf {
5317
5324
  */
5318
5325
  published?: boolean;
5319
5326
  /**
5320
- * *Required.** The source that updated the translation content.
5327
+ * **Required.** The source that updated the translation content.
5321
5328
  * Supported values:
5322
5329
  * + `USER`: The Wix user.
5323
5330
  * + `EXTERNAL_APP`: An external translation app.
@@ -8067,9 +8074,11 @@ interface UpdateContentSignature {
8067
8074
  * To remove a field, pass the field key with an empty object as the value. For example:
8068
8075
  *
8069
8076
  * ```json
8077
+ * {
8070
8078
  * "fields": {
8071
8079
  * "title": {}
8072
8080
  * }
8081
+ * }
8073
8082
  * ```
8074
8083
  * @param - Translation content ID.
8075
8084
  * @returns Updated translation content.
@@ -8083,10 +8092,12 @@ interface UpdateContentByKeySignature {
8083
8092
  *
8084
8093
  * To remove a field, pass the field key with an empty object as the value. For example:
8085
8094
  *
8086
- * ```js
8095
+ * ```json
8096
+ * {
8087
8097
  * "fields": {
8088
8098
  * "title": {}
8089
8099
  * }
8100
+ * }
8090
8101
  * ```
8091
8102
  * @param - Content to update.
8092
8103
  */
@@ -8103,13 +8114,20 @@ interface DeleteContentSignature {
8103
8114
  declare function queryContents$1(httpClient: HttpClient): QueryContentsSignature;
8104
8115
  interface QueryContentsSignature {
8105
8116
  /**
8106
- * Retrieves a list of translation content items given the provided paging, filtering, and sorting. Up to 100 translation content items can be returned per request.
8117
+ * Creates a query to retrieve a list of translation content items.
8107
8118
  *
8108
- * The default `sort` is `id` in `ASC`.
8119
+ * The `queryContents()` function builds a query to retrieve a list of translation content items and returns a `ContentsQueryBuilder` object.
8120
+ *
8121
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-builder/find) function.
8109
8122
  *
8110
- * For field support for filters and sorting, see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sort-filter-and-search).
8123
+ * You can refine the query by chaining `ContentsQueryBuilder` functions onto the query. `ContentsQueryBuilder` functions enable you to filter, sort, and control the results that `queryContents()` returns.
8111
8124
  *
8112
- * To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
8125
+ * `queryContents()` runs with the following `ContentsQueryBuilder` defaults which you can override:
8126
+ *
8127
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-builder/limit)
8128
+ * + [`ascending('id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-builder/ascending)
8129
+ *
8130
+ * The following `ContentsQueryBuilder` functions are supported for `queryContents()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-result/items) property in `ContentsQueryResult`.
8113
8131
  */
8114
8132
  (options?: QueryContentsOptions | undefined): ContentsQueryBuilder;
8115
8133
  }
@@ -8122,7 +8140,7 @@ interface SearchContentsSignature {
8122
8140
  *
8123
8141
  * Use this method to search translation content fields on a site for a given expression, and/or to perform data aggregations on a site's translation content fields.
8124
8142
  *
8125
- * For field support for filters, sorting, and free-text searching see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/translation-content-supported-filters-sorting-and-search).
8143
+ * For field support for filters, sorting, and free-text searching see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sort-filter-and-search).
8126
8144
  *
8127
8145
  * To learn more about working with the search query, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
8128
8146
  */
@@ -8146,9 +8164,11 @@ interface BulkUpdateContentSignature {
8146
8164
  * To remove a field, pass the field key with an empty object as the value. For example:
8147
8165
  *
8148
8166
  * ```json
8167
+ * {
8149
8168
  * "fields": {
8150
8169
  * "title": {}
8151
8170
  * }
8171
+ * }
8152
8172
  * ```
8153
8173
  * @param - Translation content items to update.
8154
8174
  */
@@ -8162,9 +8182,11 @@ interface BulkUpdateContentByKeySignature {
8162
8182
  * To remove a field, pass the field key with an empty object as the value. For example:
8163
8183
  *
8164
8184
  * ```json
8185
+ * {
8165
8186
  * "fields": {
8166
8187
  * "title": {}
8167
8188
  * }
8189
+ * }
8168
8190
  * ```
8169
8191
  * @param - Translation content items to update.
8170
8192
  */
@@ -8600,7 +8622,7 @@ interface SchemaField {
8600
8622
  */
8601
8623
  _id?: string;
8602
8624
  /**
8603
- * *Required.** Field type.
8625
+ * **Required.** Field type.
8604
8626
  * Supported values:
8605
8627
  * + `SHORT_TEXT`: Short plain text displayed as a single line in the UI.
8606
8628
  * + `LONG_TEXT`: Long plain text displayed as multiple lines in the UI.
@@ -8659,7 +8681,7 @@ interface PreviewFields {
8659
8681
  }
8660
8682
  interface CreateSchemaRequest {
8661
8683
  /** Translation schema to create. */
8662
- schema?: Schema;
8684
+ schema: Schema;
8663
8685
  }
8664
8686
  interface CreateSchemaResponse {
8665
8687
  /** Newly created translation schema. */
@@ -8683,7 +8705,7 @@ interface GetSchemaByKeyResponse {
8683
8705
  }
8684
8706
  interface UpdateSchemaRequest {
8685
8707
  /** Translation schema to update. */
8686
- schema?: Schema;
8708
+ schema: Schema;
8687
8709
  }
8688
8710
  interface UpdateSchemaResponse {
8689
8711
  /** Updated Schema. */
@@ -8691,7 +8713,7 @@ interface UpdateSchemaResponse {
8691
8713
  }
8692
8714
  interface DeleteSchemaRequest {
8693
8715
  /** ID of the translation schema to delete. */
8694
- schemaId?: string;
8716
+ schemaId: string;
8695
8717
  }
8696
8718
  interface DeleteSchemaResponse {
8697
8719
  }
@@ -9195,12 +9217,18 @@ interface SchemaKeyNonNullableFields {
9195
9217
  interface SchemaNonNullableFields {
9196
9218
  key?: SchemaKeyNonNullableFields;
9197
9219
  }
9220
+ interface CreateSchemaResponseNonNullableFields {
9221
+ schema?: SchemaNonNullableFields;
9222
+ }
9198
9223
  interface GetSchemaResponseNonNullableFields {
9199
9224
  schema?: SchemaNonNullableFields;
9200
9225
  }
9201
9226
  interface GetSchemaByKeyResponseNonNullableFields {
9202
9227
  schema?: SchemaNonNullableFields;
9203
9228
  }
9229
+ interface UpdateSchemaResponseNonNullableFields {
9230
+ schema?: SchemaNonNullableFields;
9231
+ }
9204
9232
  interface QuerySchemasResponseNonNullableFields {
9205
9233
  schemas: SchemaNonNullableFields[];
9206
9234
  }
@@ -9282,6 +9310,50 @@ interface GetSchemaByKeyIdentifiers {
9282
9310
  */
9283
9311
  keyScope?: SchemaScope;
9284
9312
  }
9313
+ interface UpdateSchema {
9314
+ /**
9315
+ * Translation schema ID.
9316
+ * @readonly
9317
+ */
9318
+ _id?: string | null;
9319
+ /** Translation schema unique key identifier. */
9320
+ key?: SchemaKey;
9321
+ /** List of fields for the translation schema. This property uses a string to map to a `SchemaField` (`Map<string, SchemaField>`). The string serves as a key, which you'll need to access each field in the schema and when adding translation content. */
9322
+ fields?: Record<string, SchemaField>;
9323
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
9324
+ previewFields?: PreviewFields;
9325
+ /**
9326
+ * Whether the translation schema is hidden from the site.
9327
+ *
9328
+ * Default: `false`
9329
+ */
9330
+ hidden?: boolean | null;
9331
+ /** Translation schema name displayed in the https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager. */
9332
+ displayName?: string | null;
9333
+ /** A reference to the parent schema. For example, if the schema is for a menu item, this property would contain the schema ID of the menu it belongs to. */
9334
+ parentId?: string | null;
9335
+ /**
9336
+ * Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing `revision` must be used when updating a schema.
9337
+ * @readonly
9338
+ */
9339
+ revision?: string | null;
9340
+ /**
9341
+ * Date and time the translation schema was created.
9342
+ * @readonly
9343
+ */
9344
+ _createdDate?: Date;
9345
+ /**
9346
+ * Date and time the translation schema was updated.
9347
+ * @readonly
9348
+ */
9349
+ _updatedDate?: Date;
9350
+ /**
9351
+ * Whether to duplicate the translated content when a site containing the translation schema and content is duplicated.
9352
+ *
9353
+ * Default: `false`
9354
+ */
9355
+ duplicateContent?: boolean | null;
9356
+ }
9285
9357
  interface QuerySchemasOptions {
9286
9358
  }
9287
9359
  interface QueryCursorResult {
@@ -9357,6 +9429,15 @@ interface ListSiteSchemasOptions {
9357
9429
  scope?: SchemaScope;
9358
9430
  }
9359
9431
 
9432
+ declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature;
9433
+ interface CreateSchemaSignature {
9434
+ /**
9435
+ * Creates a translation schema.
9436
+ * @param - Translation schema to create.
9437
+ * @returns Newly created translation schema.
9438
+ */
9439
+ (schema: Schema): Promise<Schema & SchemaNonNullableFields>;
9440
+ }
9360
9441
  declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
9361
9442
  interface GetSchemaSignature {
9362
9443
  /**
@@ -9373,6 +9454,39 @@ interface GetSchemaByKeySignature {
9373
9454
  */
9374
9455
  (identifiers: GetSchemaByKeyIdentifiers, key: GetSchemaByKey): Promise<GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields>;
9375
9456
  }
9457
+ declare function updateSchema$1(httpClient: HttpClient): UpdateSchemaSignature;
9458
+ interface UpdateSchemaSignature {
9459
+ /**
9460
+ * Updates a translation schema.
9461
+ *
9462
+ * To remove a field, pass the field key with an empty object as the value. For example:
9463
+ *
9464
+ * ```json
9465
+ * {
9466
+ * "fields": {
9467
+ * "title": {}
9468
+ * }
9469
+ * }
9470
+ * ```
9471
+ *
9472
+ * <blockquote class="caution">
9473
+ * <strong>Caution:</strong>
9474
+ *
9475
+ * Removing a schema field makes the corresponding content field unavailable.
9476
+ * </blockquote>
9477
+ * @param - Translation schema ID.
9478
+ * @returns Updated Schema.
9479
+ */
9480
+ (_id: string | null, schema: UpdateSchema): Promise<Schema & SchemaNonNullableFields>;
9481
+ }
9482
+ declare function deleteSchema$1(httpClient: HttpClient): DeleteSchemaSignature;
9483
+ interface DeleteSchemaSignature {
9484
+ /**
9485
+ * Deletes a translation schema.
9486
+ * @param - ID of the translation schema to delete.
9487
+ */
9488
+ (schemaId: string): Promise<void>;
9489
+ }
9376
9490
  declare function querySchemas$1(httpClient: HttpClient): QuerySchemasSignature;
9377
9491
  interface QuerySchemasSignature {
9378
9492
  /**
@@ -9420,8 +9534,11 @@ declare global {
9420
9534
 
9421
9535
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
9422
9536
 
9537
+ declare const createSchema: MaybeContext<BuildRESTFunction<typeof createSchema$1> & typeof createSchema$1>;
9423
9538
  declare const getSchema: MaybeContext<BuildRESTFunction<typeof getSchema$1> & typeof getSchema$1>;
9424
9539
  declare const getSchemaByKey: MaybeContext<BuildRESTFunction<typeof getSchemaByKey$1> & typeof getSchemaByKey$1>;
9540
+ declare const updateSchema: MaybeContext<BuildRESTFunction<typeof updateSchema$1> & typeof updateSchema$1>;
9541
+ declare const deleteSchema: MaybeContext<BuildRESTFunction<typeof deleteSchema$1> & typeof deleteSchema$1>;
9425
9542
  declare const querySchemas: MaybeContext<BuildRESTFunction<typeof querySchemas$1> & typeof querySchemas$1>;
9426
9543
  declare const listSiteSchemas: MaybeContext<BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1>;
9427
9544
 
@@ -9448,6 +9565,7 @@ type context_Asset = Asset;
9448
9565
  type context_BaseEventMetadata = BaseEventMetadata;
9449
9566
  type context_CreateSchemaRequest = CreateSchemaRequest;
9450
9567
  type context_CreateSchemaResponse = CreateSchemaResponse;
9568
+ type context_CreateSchemaResponseNonNullableFields = CreateSchemaResponseNonNullableFields;
9451
9569
  type context_CursorPaging = CursorPaging;
9452
9570
  type context_CursorPagingMetadata = CursorPagingMetadata;
9453
9571
  type context_CursorQuery = CursorQuery;
@@ -9525,13 +9643,17 @@ type context_State = State;
9525
9643
  declare const context_State: typeof State;
9526
9644
  type context_StudioAssigned = StudioAssigned;
9527
9645
  type context_StudioUnassigned = StudioUnassigned;
9646
+ type context_UpdateSchema = UpdateSchema;
9528
9647
  type context_UpdateSchemaRequest = UpdateSchemaRequest;
9529
9648
  type context_UpdateSchemaResponse = UpdateSchemaResponse;
9649
+ type context_UpdateSchemaResponseNonNullableFields = UpdateSchemaResponseNonNullableFields;
9530
9650
  type context_WebhookIdentityType = WebhookIdentityType;
9531
9651
  declare const context_WebhookIdentityType: typeof WebhookIdentityType;
9532
9652
  type context__publicOnSchemaCreatedType = _publicOnSchemaCreatedType;
9533
9653
  type context__publicOnSchemaDeletedType = _publicOnSchemaDeletedType;
9534
9654
  type context__publicOnSchemaUpdatedType = _publicOnSchemaUpdatedType;
9655
+ declare const context_createSchema: typeof createSchema;
9656
+ declare const context_deleteSchema: typeof deleteSchema;
9535
9657
  declare const context_getSchema: typeof getSchema;
9536
9658
  declare const context_getSchemaByKey: typeof getSchemaByKey;
9537
9659
  declare const context_listSiteSchemas: typeof listSiteSchemas;
@@ -9539,8 +9661,9 @@ declare const context_onSchemaCreated: typeof onSchemaCreated;
9539
9661
  declare const context_onSchemaDeleted: typeof onSchemaDeleted;
9540
9662
  declare const context_onSchemaUpdated: typeof onSchemaUpdated;
9541
9663
  declare const context_querySchemas: typeof querySchemas;
9664
+ declare const context_updateSchema: typeof updateSchema;
9542
9665
  declare namespace context {
9543
- export { type context_ActionEvent as ActionEvent, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateSchemaRequest as CreateSchemaRequest, type context_CreateSchemaResponse as CreateSchemaResponse, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteContext as DeleteContext, type context_DeleteSchemaRequest as DeleteSchemaRequest, type context_DeleteSchemaResponse as DeleteSchemaResponse, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, context_FieldType as FieldType, type context_GetSchemaByKey as GetSchemaByKey, type context_GetSchemaByKeyIdentifiers as GetSchemaByKeyIdentifiers, type context_GetSchemaByKeyRequest as GetSchemaByKeyRequest, type context_GetSchemaByKeyResponse as GetSchemaByKeyResponse, type context_GetSchemaByKeyResponseNonNullableFields as GetSchemaByKeyResponseNonNullableFields, type context_GetSchemaRequest as GetSchemaRequest, type context_GetSchemaResponse as GetSchemaResponse, type context_GetSchemaResponseNonNullableFields as GetSchemaResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListSiteSchemasOptions as ListSiteSchemasOptions, type context_ListSiteSchemasRequest as ListSiteSchemasRequest, type context_ListSiteSchemasResponse as ListSiteSchemasResponse, type context_ListSiteSchemasResponseNonNullableFields as ListSiteSchemasResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, type context_PreviewFields as PreviewFields, type context_QuerySchemasOptions as QuerySchemasOptions, type context_QuerySchemasRequest as QuerySchemasRequest, type context_QuerySchemasResponse as QuerySchemasResponse, type context_QuerySchemasResponseNonNullableFields as QuerySchemasResponseNonNullableFields, type context_RestoreInfo as RestoreInfo, type context_Schema as Schema, type context_SchemaCreatedEnvelope as SchemaCreatedEnvelope, type context_SchemaDeletedEnvelope as SchemaDeletedEnvelope, type context_SchemaField as SchemaField, type context_SchemaKey as SchemaKey, type context_SchemaNonNullableFields as SchemaNonNullableFields, context_SchemaScope as SchemaScope, type context_SchemaUpdatedEnvelope as SchemaUpdatedEnvelope, type context_SchemasQueryBuilder as SchemasQueryBuilder, type context_SchemasQueryResult as SchemasQueryResult, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_UpdateSchemaRequest as UpdateSchemaRequest, type context_UpdateSchemaResponse as UpdateSchemaResponse, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSchemaCreatedType as _publicOnSchemaCreatedType, type context__publicOnSchemaDeletedType as _publicOnSchemaDeletedType, type context__publicOnSchemaUpdatedType as _publicOnSchemaUpdatedType, context_getSchema as getSchema, context_getSchemaByKey as getSchemaByKey, context_listSiteSchemas as listSiteSchemas, context_onSchemaCreated as onSchemaCreated, context_onSchemaDeleted as onSchemaDeleted, context_onSchemaUpdated as onSchemaUpdated, onSchemaCreated$1 as publicOnSchemaCreated, onSchemaDeleted$1 as publicOnSchemaDeleted, onSchemaUpdated$1 as publicOnSchemaUpdated, context_querySchemas as querySchemas };
9666
+ export { type context_ActionEvent as ActionEvent, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateSchemaRequest as CreateSchemaRequest, type context_CreateSchemaResponse as CreateSchemaResponse, type context_CreateSchemaResponseNonNullableFields as CreateSchemaResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteContext as DeleteContext, type context_DeleteSchemaRequest as DeleteSchemaRequest, type context_DeleteSchemaResponse as DeleteSchemaResponse, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, context_FieldType as FieldType, type context_GetSchemaByKey as GetSchemaByKey, type context_GetSchemaByKeyIdentifiers as GetSchemaByKeyIdentifiers, type context_GetSchemaByKeyRequest as GetSchemaByKeyRequest, type context_GetSchemaByKeyResponse as GetSchemaByKeyResponse, type context_GetSchemaByKeyResponseNonNullableFields as GetSchemaByKeyResponseNonNullableFields, type context_GetSchemaRequest as GetSchemaRequest, type context_GetSchemaResponse as GetSchemaResponse, type context_GetSchemaResponseNonNullableFields as GetSchemaResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListSiteSchemasOptions as ListSiteSchemasOptions, type context_ListSiteSchemasRequest as ListSiteSchemasRequest, type context_ListSiteSchemasResponse as ListSiteSchemasResponse, type context_ListSiteSchemasResponseNonNullableFields as ListSiteSchemasResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, type context_PreviewFields as PreviewFields, type context_QuerySchemasOptions as QuerySchemasOptions, type context_QuerySchemasRequest as QuerySchemasRequest, type context_QuerySchemasResponse as QuerySchemasResponse, type context_QuerySchemasResponseNonNullableFields as QuerySchemasResponseNonNullableFields, type context_RestoreInfo as RestoreInfo, type context_Schema as Schema, type context_SchemaCreatedEnvelope as SchemaCreatedEnvelope, type context_SchemaDeletedEnvelope as SchemaDeletedEnvelope, type context_SchemaField as SchemaField, type context_SchemaKey as SchemaKey, type context_SchemaNonNullableFields as SchemaNonNullableFields, context_SchemaScope as SchemaScope, type context_SchemaUpdatedEnvelope as SchemaUpdatedEnvelope, type context_SchemasQueryBuilder as SchemasQueryBuilder, type context_SchemasQueryResult as SchemasQueryResult, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_UpdateSchema as UpdateSchema, type context_UpdateSchemaRequest as UpdateSchemaRequest, type context_UpdateSchemaResponse as UpdateSchemaResponse, type context_UpdateSchemaResponseNonNullableFields as UpdateSchemaResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSchemaCreatedType as _publicOnSchemaCreatedType, type context__publicOnSchemaDeletedType as _publicOnSchemaDeletedType, type context__publicOnSchemaUpdatedType as _publicOnSchemaUpdatedType, context_createSchema as createSchema, context_deleteSchema as deleteSchema, context_getSchema as getSchema, context_getSchemaByKey as getSchemaByKey, context_listSiteSchemas as listSiteSchemas, context_onSchemaCreated as onSchemaCreated, context_onSchemaDeleted as onSchemaDeleted, context_onSchemaUpdated as onSchemaUpdated, onSchemaCreated$1 as publicOnSchemaCreated, onSchemaDeleted$1 as publicOnSchemaDeleted, onSchemaUpdated$1 as publicOnSchemaUpdated, context_querySchemas as querySchemas, context_updateSchema as updateSchema };
9544
9667
  }
9545
9668
 
9546
9669
  export { context$5 as entityMapper, context$3 as machineTranslation, context$2 as siteTranslator, context$1 as translationContents, context$4 as translationPublishedContents, context as translationSchemas };
@@ -2816,9 +2816,18 @@ interface PublishedContentQueryBuilder {
2816
2816
  declare function queryPublishedContent$1(httpClient: HttpClient): QueryPublishedContentSignature;
2817
2817
  interface QueryPublishedContentSignature {
2818
2818
  /**
2819
- * Retrieves a list of published translation content given the provided paging, filtering, and sorting. Up to 100 published content items can be returned per request.
2819
+ * Creates a query to retrieve a list of translation content items.
2820
2820
  *
2821
- * The default `sort` is `id` in `ASC`.
2821
+ * The `queryPublishedContent()` function builds a query to retrieve a list of translation content items and returns a `PublishedContentQueryBuilder` object.
2822
+ *
2823
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/find) function.
2824
+ *
2825
+ * You can refine the query by chaining `PublishedContentQueryBuilder` functions onto the query. `PublishedContentQueryBuilder` functions enable you to filter, sort, and control the results that `queryPublishedContent()` returns.
2826
+ *
2827
+ * `queryPublishedContent()` runs with the following `PublishedContentQueryBuilder` defaults which you can override:
2828
+ *
2829
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/limit)
2830
+ * + [`ascending('id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/ascending)
2822
2831
  *
2823
2832
  * The following query filter fields are required:
2824
2833
  *
@@ -2826,9 +2835,7 @@ interface QueryPublishedContentSignature {
2826
2835
  * + `schemaKey.entityType`
2827
2836
  * + `schemaKey.scope`
2828
2837
  *
2829
- * For additional field support for filters and sorting, see [Translation Published Content: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-published-content/sort-and-filter).
2830
- *
2831
- * To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
2838
+ * The following `PublishedContentQueryBuilder` functions are supported for `queryPublishedContent()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-result/items) property in `PublishedContentQueryResult`.
2832
2839
  */
2833
2840
  (): PublishedContentQueryBuilder;
2834
2841
  }
@@ -5317,7 +5324,7 @@ interface ContentField extends ContentFieldValueOneOf {
5317
5324
  */
5318
5325
  published?: boolean;
5319
5326
  /**
5320
- * *Required.** The source that updated the translation content.
5327
+ * **Required.** The source that updated the translation content.
5321
5328
  * Supported values:
5322
5329
  * + `USER`: The Wix user.
5323
5330
  * + `EXTERNAL_APP`: An external translation app.
@@ -8067,9 +8074,11 @@ interface UpdateContentSignature {
8067
8074
  * To remove a field, pass the field key with an empty object as the value. For example:
8068
8075
  *
8069
8076
  * ```json
8077
+ * {
8070
8078
  * "fields": {
8071
8079
  * "title": {}
8072
8080
  * }
8081
+ * }
8073
8082
  * ```
8074
8083
  * @param - Translation content ID.
8075
8084
  * @returns Updated translation content.
@@ -8083,10 +8092,12 @@ interface UpdateContentByKeySignature {
8083
8092
  *
8084
8093
  * To remove a field, pass the field key with an empty object as the value. For example:
8085
8094
  *
8086
- * ```js
8095
+ * ```json
8096
+ * {
8087
8097
  * "fields": {
8088
8098
  * "title": {}
8089
8099
  * }
8100
+ * }
8090
8101
  * ```
8091
8102
  * @param - Content to update.
8092
8103
  */
@@ -8103,13 +8114,20 @@ interface DeleteContentSignature {
8103
8114
  declare function queryContents$1(httpClient: HttpClient): QueryContentsSignature;
8104
8115
  interface QueryContentsSignature {
8105
8116
  /**
8106
- * Retrieves a list of translation content items given the provided paging, filtering, and sorting. Up to 100 translation content items can be returned per request.
8117
+ * Creates a query to retrieve a list of translation content items.
8107
8118
  *
8108
- * The default `sort` is `id` in `ASC`.
8119
+ * The `queryContents()` function builds a query to retrieve a list of translation content items and returns a `ContentsQueryBuilder` object.
8120
+ *
8121
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-builder/find) function.
8109
8122
  *
8110
- * For field support for filters and sorting, see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sort-filter-and-search).
8123
+ * You can refine the query by chaining `ContentsQueryBuilder` functions onto the query. `ContentsQueryBuilder` functions enable you to filter, sort, and control the results that `queryContents()` returns.
8111
8124
  *
8112
- * To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
8125
+ * `queryContents()` runs with the following `ContentsQueryBuilder` defaults which you can override:
8126
+ *
8127
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-builder/limit)
8128
+ * + [`ascending('id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-builder/ascending)
8129
+ *
8130
+ * The following `ContentsQueryBuilder` functions are supported for `queryContents()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-content/contents-query-result/items) property in `ContentsQueryResult`.
8113
8131
  */
8114
8132
  (options?: QueryContentsOptions | undefined): ContentsQueryBuilder;
8115
8133
  }
@@ -8122,7 +8140,7 @@ interface SearchContentsSignature {
8122
8140
  *
8123
8141
  * Use this method to search translation content fields on a site for a given expression, and/or to perform data aggregations on a site's translation content fields.
8124
8142
  *
8125
- * For field support for filters, sorting, and free-text searching see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/translation-content-supported-filters-sorting-and-search).
8143
+ * For field support for filters, sorting, and free-text searching see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sort-filter-and-search).
8126
8144
  *
8127
8145
  * To learn more about working with the search query, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
8128
8146
  */
@@ -8146,9 +8164,11 @@ interface BulkUpdateContentSignature {
8146
8164
  * To remove a field, pass the field key with an empty object as the value. For example:
8147
8165
  *
8148
8166
  * ```json
8167
+ * {
8149
8168
  * "fields": {
8150
8169
  * "title": {}
8151
8170
  * }
8171
+ * }
8152
8172
  * ```
8153
8173
  * @param - Translation content items to update.
8154
8174
  */
@@ -8162,9 +8182,11 @@ interface BulkUpdateContentByKeySignature {
8162
8182
  * To remove a field, pass the field key with an empty object as the value. For example:
8163
8183
  *
8164
8184
  * ```json
8185
+ * {
8165
8186
  * "fields": {
8166
8187
  * "title": {}
8167
8188
  * }
8189
+ * }
8168
8190
  * ```
8169
8191
  * @param - Translation content items to update.
8170
8192
  */
@@ -8600,7 +8622,7 @@ interface SchemaField {
8600
8622
  */
8601
8623
  _id?: string;
8602
8624
  /**
8603
- * *Required.** Field type.
8625
+ * **Required.** Field type.
8604
8626
  * Supported values:
8605
8627
  * + `SHORT_TEXT`: Short plain text displayed as a single line in the UI.
8606
8628
  * + `LONG_TEXT`: Long plain text displayed as multiple lines in the UI.
@@ -8659,7 +8681,7 @@ interface PreviewFields {
8659
8681
  }
8660
8682
  interface CreateSchemaRequest {
8661
8683
  /** Translation schema to create. */
8662
- schema?: Schema;
8684
+ schema: Schema;
8663
8685
  }
8664
8686
  interface CreateSchemaResponse {
8665
8687
  /** Newly created translation schema. */
@@ -8683,7 +8705,7 @@ interface GetSchemaByKeyResponse {
8683
8705
  }
8684
8706
  interface UpdateSchemaRequest {
8685
8707
  /** Translation schema to update. */
8686
- schema?: Schema;
8708
+ schema: Schema;
8687
8709
  }
8688
8710
  interface UpdateSchemaResponse {
8689
8711
  /** Updated Schema. */
@@ -8691,7 +8713,7 @@ interface UpdateSchemaResponse {
8691
8713
  }
8692
8714
  interface DeleteSchemaRequest {
8693
8715
  /** ID of the translation schema to delete. */
8694
- schemaId?: string;
8716
+ schemaId: string;
8695
8717
  }
8696
8718
  interface DeleteSchemaResponse {
8697
8719
  }
@@ -9195,12 +9217,18 @@ interface SchemaKeyNonNullableFields {
9195
9217
  interface SchemaNonNullableFields {
9196
9218
  key?: SchemaKeyNonNullableFields;
9197
9219
  }
9220
+ interface CreateSchemaResponseNonNullableFields {
9221
+ schema?: SchemaNonNullableFields;
9222
+ }
9198
9223
  interface GetSchemaResponseNonNullableFields {
9199
9224
  schema?: SchemaNonNullableFields;
9200
9225
  }
9201
9226
  interface GetSchemaByKeyResponseNonNullableFields {
9202
9227
  schema?: SchemaNonNullableFields;
9203
9228
  }
9229
+ interface UpdateSchemaResponseNonNullableFields {
9230
+ schema?: SchemaNonNullableFields;
9231
+ }
9204
9232
  interface QuerySchemasResponseNonNullableFields {
9205
9233
  schemas: SchemaNonNullableFields[];
9206
9234
  }
@@ -9282,6 +9310,50 @@ interface GetSchemaByKeyIdentifiers {
9282
9310
  */
9283
9311
  keyScope?: SchemaScope;
9284
9312
  }
9313
+ interface UpdateSchema {
9314
+ /**
9315
+ * Translation schema ID.
9316
+ * @readonly
9317
+ */
9318
+ _id?: string | null;
9319
+ /** Translation schema unique key identifier. */
9320
+ key?: SchemaKey;
9321
+ /** List of fields for the translation schema. This property uses a string to map to a `SchemaField` (`Map<string, SchemaField>`). The string serves as a key, which you'll need to access each field in the schema and when adding translation content. */
9322
+ fields?: Record<string, SchemaField>;
9323
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
9324
+ previewFields?: PreviewFields;
9325
+ /**
9326
+ * Whether the translation schema is hidden from the site.
9327
+ *
9328
+ * Default: `false`
9329
+ */
9330
+ hidden?: boolean | null;
9331
+ /** Translation schema name displayed in the https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager. */
9332
+ displayName?: string | null;
9333
+ /** A reference to the parent schema. For example, if the schema is for a menu item, this property would contain the schema ID of the menu it belongs to. */
9334
+ parentId?: string | null;
9335
+ /**
9336
+ * Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing `revision` must be used when updating a schema.
9337
+ * @readonly
9338
+ */
9339
+ revision?: string | null;
9340
+ /**
9341
+ * Date and time the translation schema was created.
9342
+ * @readonly
9343
+ */
9344
+ _createdDate?: Date;
9345
+ /**
9346
+ * Date and time the translation schema was updated.
9347
+ * @readonly
9348
+ */
9349
+ _updatedDate?: Date;
9350
+ /**
9351
+ * Whether to duplicate the translated content when a site containing the translation schema and content is duplicated.
9352
+ *
9353
+ * Default: `false`
9354
+ */
9355
+ duplicateContent?: boolean | null;
9356
+ }
9285
9357
  interface QuerySchemasOptions {
9286
9358
  }
9287
9359
  interface QueryCursorResult {
@@ -9357,6 +9429,15 @@ interface ListSiteSchemasOptions {
9357
9429
  scope?: SchemaScope;
9358
9430
  }
9359
9431
 
9432
+ declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature;
9433
+ interface CreateSchemaSignature {
9434
+ /**
9435
+ * Creates a translation schema.
9436
+ * @param - Translation schema to create.
9437
+ * @returns Newly created translation schema.
9438
+ */
9439
+ (schema: Schema): Promise<Schema & SchemaNonNullableFields>;
9440
+ }
9360
9441
  declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
9361
9442
  interface GetSchemaSignature {
9362
9443
  /**
@@ -9373,6 +9454,39 @@ interface GetSchemaByKeySignature {
9373
9454
  */
9374
9455
  (identifiers: GetSchemaByKeyIdentifiers, key: GetSchemaByKey): Promise<GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields>;
9375
9456
  }
9457
+ declare function updateSchema$1(httpClient: HttpClient): UpdateSchemaSignature;
9458
+ interface UpdateSchemaSignature {
9459
+ /**
9460
+ * Updates a translation schema.
9461
+ *
9462
+ * To remove a field, pass the field key with an empty object as the value. For example:
9463
+ *
9464
+ * ```json
9465
+ * {
9466
+ * "fields": {
9467
+ * "title": {}
9468
+ * }
9469
+ * }
9470
+ * ```
9471
+ *
9472
+ * <blockquote class="caution">
9473
+ * <strong>Caution:</strong>
9474
+ *
9475
+ * Removing a schema field makes the corresponding content field unavailable.
9476
+ * </blockquote>
9477
+ * @param - Translation schema ID.
9478
+ * @returns Updated Schema.
9479
+ */
9480
+ (_id: string | null, schema: UpdateSchema): Promise<Schema & SchemaNonNullableFields>;
9481
+ }
9482
+ declare function deleteSchema$1(httpClient: HttpClient): DeleteSchemaSignature;
9483
+ interface DeleteSchemaSignature {
9484
+ /**
9485
+ * Deletes a translation schema.
9486
+ * @param - ID of the translation schema to delete.
9487
+ */
9488
+ (schemaId: string): Promise<void>;
9489
+ }
9376
9490
  declare function querySchemas$1(httpClient: HttpClient): QuerySchemasSignature;
9377
9491
  interface QuerySchemasSignature {
9378
9492
  /**
@@ -9420,8 +9534,11 @@ declare global {
9420
9534
 
9421
9535
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
9422
9536
 
9537
+ declare const createSchema: MaybeContext<BuildRESTFunction<typeof createSchema$1> & typeof createSchema$1>;
9423
9538
  declare const getSchema: MaybeContext<BuildRESTFunction<typeof getSchema$1> & typeof getSchema$1>;
9424
9539
  declare const getSchemaByKey: MaybeContext<BuildRESTFunction<typeof getSchemaByKey$1> & typeof getSchemaByKey$1>;
9540
+ declare const updateSchema: MaybeContext<BuildRESTFunction<typeof updateSchema$1> & typeof updateSchema$1>;
9541
+ declare const deleteSchema: MaybeContext<BuildRESTFunction<typeof deleteSchema$1> & typeof deleteSchema$1>;
9425
9542
  declare const querySchemas: MaybeContext<BuildRESTFunction<typeof querySchemas$1> & typeof querySchemas$1>;
9426
9543
  declare const listSiteSchemas: MaybeContext<BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1>;
9427
9544
 
@@ -9448,6 +9565,7 @@ type index_d_Asset = Asset;
9448
9565
  type index_d_BaseEventMetadata = BaseEventMetadata;
9449
9566
  type index_d_CreateSchemaRequest = CreateSchemaRequest;
9450
9567
  type index_d_CreateSchemaResponse = CreateSchemaResponse;
9568
+ type index_d_CreateSchemaResponseNonNullableFields = CreateSchemaResponseNonNullableFields;
9451
9569
  type index_d_CursorPaging = CursorPaging;
9452
9570
  type index_d_CursorPagingMetadata = CursorPagingMetadata;
9453
9571
  type index_d_CursorQuery = CursorQuery;
@@ -9525,13 +9643,17 @@ type index_d_State = State;
9525
9643
  declare const index_d_State: typeof State;
9526
9644
  type index_d_StudioAssigned = StudioAssigned;
9527
9645
  type index_d_StudioUnassigned = StudioUnassigned;
9646
+ type index_d_UpdateSchema = UpdateSchema;
9528
9647
  type index_d_UpdateSchemaRequest = UpdateSchemaRequest;
9529
9648
  type index_d_UpdateSchemaResponse = UpdateSchemaResponse;
9649
+ type index_d_UpdateSchemaResponseNonNullableFields = UpdateSchemaResponseNonNullableFields;
9530
9650
  type index_d_WebhookIdentityType = WebhookIdentityType;
9531
9651
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
9532
9652
  type index_d__publicOnSchemaCreatedType = _publicOnSchemaCreatedType;
9533
9653
  type index_d__publicOnSchemaDeletedType = _publicOnSchemaDeletedType;
9534
9654
  type index_d__publicOnSchemaUpdatedType = _publicOnSchemaUpdatedType;
9655
+ declare const index_d_createSchema: typeof createSchema;
9656
+ declare const index_d_deleteSchema: typeof deleteSchema;
9535
9657
  declare const index_d_getSchema: typeof getSchema;
9536
9658
  declare const index_d_getSchemaByKey: typeof getSchemaByKey;
9537
9659
  declare const index_d_listSiteSchemas: typeof listSiteSchemas;
@@ -9539,8 +9661,9 @@ declare const index_d_onSchemaCreated: typeof onSchemaCreated;
9539
9661
  declare const index_d_onSchemaDeleted: typeof onSchemaDeleted;
9540
9662
  declare const index_d_onSchemaUpdated: typeof onSchemaUpdated;
9541
9663
  declare const index_d_querySchemas: typeof querySchemas;
9664
+ declare const index_d_updateSchema: typeof updateSchema;
9542
9665
  declare namespace index_d {
9543
- export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateSchemaRequest as CreateSchemaRequest, type index_d_CreateSchemaResponse as CreateSchemaResponse, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, type index_d_DeleteSchemaRequest as DeleteSchemaRequest, type index_d_DeleteSchemaResponse as DeleteSchemaResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_FieldType as FieldType, type index_d_GetSchemaByKey as GetSchemaByKey, type index_d_GetSchemaByKeyIdentifiers as GetSchemaByKeyIdentifiers, type index_d_GetSchemaByKeyRequest as GetSchemaByKeyRequest, type index_d_GetSchemaByKeyResponse as GetSchemaByKeyResponse, type index_d_GetSchemaByKeyResponseNonNullableFields as GetSchemaByKeyResponseNonNullableFields, type index_d_GetSchemaRequest as GetSchemaRequest, type index_d_GetSchemaResponse as GetSchemaResponse, type index_d_GetSchemaResponseNonNullableFields as GetSchemaResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSiteSchemasOptions as ListSiteSchemasOptions, type index_d_ListSiteSchemasRequest as ListSiteSchemasRequest, type index_d_ListSiteSchemasResponse as ListSiteSchemasResponse, type index_d_ListSiteSchemasResponseNonNullableFields as ListSiteSchemasResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_PreviewFields as PreviewFields, type index_d_QuerySchemasOptions as QuerySchemasOptions, type index_d_QuerySchemasRequest as QuerySchemasRequest, type index_d_QuerySchemasResponse as QuerySchemasResponse, type index_d_QuerySchemasResponseNonNullableFields as QuerySchemasResponseNonNullableFields, type index_d_RestoreInfo as RestoreInfo, type index_d_Schema as Schema, type index_d_SchemaCreatedEnvelope as SchemaCreatedEnvelope, type index_d_SchemaDeletedEnvelope as SchemaDeletedEnvelope, type index_d_SchemaField as SchemaField, type index_d_SchemaKey as SchemaKey, type index_d_SchemaNonNullableFields as SchemaNonNullableFields, index_d_SchemaScope as SchemaScope, type index_d_SchemaUpdatedEnvelope as SchemaUpdatedEnvelope, type index_d_SchemasQueryBuilder as SchemasQueryBuilder, type index_d_SchemasQueryResult as SchemasQueryResult, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateSchemaRequest as UpdateSchemaRequest, type index_d_UpdateSchemaResponse as UpdateSchemaResponse, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnSchemaCreatedType as _publicOnSchemaCreatedType, type index_d__publicOnSchemaDeletedType as _publicOnSchemaDeletedType, type index_d__publicOnSchemaUpdatedType as _publicOnSchemaUpdatedType, index_d_getSchema as getSchema, index_d_getSchemaByKey as getSchemaByKey, index_d_listSiteSchemas as listSiteSchemas, index_d_onSchemaCreated as onSchemaCreated, index_d_onSchemaDeleted as onSchemaDeleted, index_d_onSchemaUpdated as onSchemaUpdated, onSchemaCreated$1 as publicOnSchemaCreated, onSchemaDeleted$1 as publicOnSchemaDeleted, onSchemaUpdated$1 as publicOnSchemaUpdated, index_d_querySchemas as querySchemas };
9666
+ export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateSchemaRequest as CreateSchemaRequest, type index_d_CreateSchemaResponse as CreateSchemaResponse, type index_d_CreateSchemaResponseNonNullableFields as CreateSchemaResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, type index_d_DeleteSchemaRequest as DeleteSchemaRequest, type index_d_DeleteSchemaResponse as DeleteSchemaResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_FieldType as FieldType, type index_d_GetSchemaByKey as GetSchemaByKey, type index_d_GetSchemaByKeyIdentifiers as GetSchemaByKeyIdentifiers, type index_d_GetSchemaByKeyRequest as GetSchemaByKeyRequest, type index_d_GetSchemaByKeyResponse as GetSchemaByKeyResponse, type index_d_GetSchemaByKeyResponseNonNullableFields as GetSchemaByKeyResponseNonNullableFields, type index_d_GetSchemaRequest as GetSchemaRequest, type index_d_GetSchemaResponse as GetSchemaResponse, type index_d_GetSchemaResponseNonNullableFields as GetSchemaResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSiteSchemasOptions as ListSiteSchemasOptions, type index_d_ListSiteSchemasRequest as ListSiteSchemasRequest, type index_d_ListSiteSchemasResponse as ListSiteSchemasResponse, type index_d_ListSiteSchemasResponseNonNullableFields as ListSiteSchemasResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_PreviewFields as PreviewFields, type index_d_QuerySchemasOptions as QuerySchemasOptions, type index_d_QuerySchemasRequest as QuerySchemasRequest, type index_d_QuerySchemasResponse as QuerySchemasResponse, type index_d_QuerySchemasResponseNonNullableFields as QuerySchemasResponseNonNullableFields, type index_d_RestoreInfo as RestoreInfo, type index_d_Schema as Schema, type index_d_SchemaCreatedEnvelope as SchemaCreatedEnvelope, type index_d_SchemaDeletedEnvelope as SchemaDeletedEnvelope, type index_d_SchemaField as SchemaField, type index_d_SchemaKey as SchemaKey, type index_d_SchemaNonNullableFields as SchemaNonNullableFields, index_d_SchemaScope as SchemaScope, type index_d_SchemaUpdatedEnvelope as SchemaUpdatedEnvelope, type index_d_SchemasQueryBuilder as SchemasQueryBuilder, type index_d_SchemasQueryResult as SchemasQueryResult, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateSchema as UpdateSchema, type index_d_UpdateSchemaRequest as UpdateSchemaRequest, type index_d_UpdateSchemaResponse as UpdateSchemaResponse, type index_d_UpdateSchemaResponseNonNullableFields as UpdateSchemaResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnSchemaCreatedType as _publicOnSchemaCreatedType, type index_d__publicOnSchemaDeletedType as _publicOnSchemaDeletedType, type index_d__publicOnSchemaUpdatedType as _publicOnSchemaUpdatedType, index_d_createSchema as createSchema, index_d_deleteSchema as deleteSchema, index_d_getSchema as getSchema, index_d_getSchemaByKey as getSchemaByKey, index_d_listSiteSchemas as listSiteSchemas, index_d_onSchemaCreated as onSchemaCreated, index_d_onSchemaDeleted as onSchemaDeleted, index_d_onSchemaUpdated as onSchemaUpdated, onSchemaCreated$1 as publicOnSchemaCreated, onSchemaDeleted$1 as publicOnSchemaDeleted, onSchemaUpdated$1 as publicOnSchemaUpdated, index_d_querySchemas as querySchemas, index_d_updateSchema as updateSchema };
9544
9667
  }
9545
9668
 
9546
9669
  export { index_d$5 as entityMapper, index_d$3 as machineTranslation, index_d$2 as siteTranslator, index_d$1 as translationContents, index_d$4 as translationPublishedContents, index_d as translationSchemas };
@@ -7875,7 +7875,7 @@ interface ContentField$1 extends ContentFieldValueOneOf$1 {
7875
7875
  */
7876
7876
  published?: boolean;
7877
7877
  /**
7878
- * *Required.** The source that updated the translation content.
7878
+ * **Required.** The source that updated the translation content.
7879
7879
  * Supported values:
7880
7880
  * + `USER`: The Wix user.
7881
7881
  * + `EXTERNAL_APP`: An external translation app.
@@ -10032,7 +10032,7 @@ interface ContentField extends ContentFieldValueOneOf {
10032
10032
  */
10033
10033
  published?: boolean;
10034
10034
  /**
10035
- * *Required.** The source that updated the translation content.
10035
+ * **Required.** The source that updated the translation content.
10036
10036
  * Supported values:
10037
10037
  * + `USER`: The Wix user.
10038
10038
  * + `EXTERNAL_APP`: An external translation app.
@@ -12182,7 +12182,7 @@ interface SchemaField$1 {
12182
12182
  */
12183
12183
  id?: string;
12184
12184
  /**
12185
- * *Required.** Field type.
12185
+ * **Required.** Field type.
12186
12186
  * Supported values:
12187
12187
  * + `SHORT_TEXT`: Short plain text displayed as a single line in the UI.
12188
12188
  * + `LONG_TEXT`: Long plain text displayed as multiple lines in the UI.
@@ -12239,6 +12239,14 @@ interface PreviewFields$1 {
12239
12239
  /** ID of the field representing the schema's image. */
12240
12240
  imageFieldId?: string | null;
12241
12241
  }
12242
+ interface CreateSchemaRequest$1 {
12243
+ /** Translation schema to create. */
12244
+ schema: Schema$1;
12245
+ }
12246
+ interface CreateSchemaResponse$1 {
12247
+ /** Newly created translation schema. */
12248
+ schema?: Schema$1;
12249
+ }
12242
12250
  interface GetSchemaRequest$1 {
12243
12251
  /** ID of the translation schema to retrieve. */
12244
12252
  schemaId: string;
@@ -12255,6 +12263,20 @@ interface GetSchemaByKeyResponse$1 {
12255
12263
  /** The requested translation schema. */
12256
12264
  schema?: Schema$1;
12257
12265
  }
12266
+ interface UpdateSchemaRequest$1 {
12267
+ /** Translation schema to update. */
12268
+ schema: Schema$1;
12269
+ }
12270
+ interface UpdateSchemaResponse$1 {
12271
+ /** Updated Schema. */
12272
+ schema?: Schema$1;
12273
+ }
12274
+ interface DeleteSchemaRequest$1 {
12275
+ /** ID of the translation schema to delete. */
12276
+ schemaId: string;
12277
+ }
12278
+ interface DeleteSchemaResponse$1 {
12279
+ }
12258
12280
  interface QuerySchemasRequest$1 {
12259
12281
  /** Query options. */
12260
12282
  query?: CursorQuery$1;
@@ -12363,12 +12385,18 @@ interface SchemaKeyNonNullableFields$1 {
12363
12385
  interface SchemaNonNullableFields$1 {
12364
12386
  key?: SchemaKeyNonNullableFields$1;
12365
12387
  }
12388
+ interface CreateSchemaResponseNonNullableFields$1 {
12389
+ schema?: SchemaNonNullableFields$1;
12390
+ }
12366
12391
  interface GetSchemaResponseNonNullableFields$1 {
12367
12392
  schema?: SchemaNonNullableFields$1;
12368
12393
  }
12369
12394
  interface GetSchemaByKeyResponseNonNullableFields$1 {
12370
12395
  schema?: SchemaNonNullableFields$1;
12371
12396
  }
12397
+ interface UpdateSchemaResponseNonNullableFields$1 {
12398
+ schema?: SchemaNonNullableFields$1;
12399
+ }
12372
12400
  interface QuerySchemasResponseNonNullableFields$1 {
12373
12401
  schemas: SchemaNonNullableFields$1[];
12374
12402
  }
@@ -12450,7 +12478,7 @@ interface SchemaField {
12450
12478
  */
12451
12479
  _id?: string;
12452
12480
  /**
12453
- * *Required.** Field type.
12481
+ * **Required.** Field type.
12454
12482
  * Supported values:
12455
12483
  * + `SHORT_TEXT`: Short plain text displayed as a single line in the UI.
12456
12484
  * + `LONG_TEXT`: Long plain text displayed as multiple lines in the UI.
@@ -12507,6 +12535,14 @@ interface PreviewFields {
12507
12535
  /** ID of the field representing the schema's image. */
12508
12536
  imageFieldId?: string | null;
12509
12537
  }
12538
+ interface CreateSchemaRequest {
12539
+ /** Translation schema to create. */
12540
+ schema: Schema;
12541
+ }
12542
+ interface CreateSchemaResponse {
12543
+ /** Newly created translation schema. */
12544
+ schema?: Schema;
12545
+ }
12510
12546
  interface GetSchemaRequest {
12511
12547
  /** ID of the translation schema to retrieve. */
12512
12548
  schemaId: string;
@@ -12523,6 +12559,20 @@ interface GetSchemaByKeyResponse {
12523
12559
  /** The requested translation schema. */
12524
12560
  schema?: Schema;
12525
12561
  }
12562
+ interface UpdateSchemaRequest {
12563
+ /** Translation schema to update. */
12564
+ schema: Schema;
12565
+ }
12566
+ interface UpdateSchemaResponse {
12567
+ /** Updated Schema. */
12568
+ schema?: Schema;
12569
+ }
12570
+ interface DeleteSchemaRequest {
12571
+ /** ID of the translation schema to delete. */
12572
+ schemaId: string;
12573
+ }
12574
+ interface DeleteSchemaResponse {
12575
+ }
12526
12576
  interface QuerySchemasRequest {
12527
12577
  /** Query options. */
12528
12578
  query?: CursorQuery;
@@ -12631,12 +12681,18 @@ interface SchemaKeyNonNullableFields {
12631
12681
  interface SchemaNonNullableFields {
12632
12682
  key?: SchemaKeyNonNullableFields;
12633
12683
  }
12684
+ interface CreateSchemaResponseNonNullableFields {
12685
+ schema?: SchemaNonNullableFields;
12686
+ }
12634
12687
  interface GetSchemaResponseNonNullableFields {
12635
12688
  schema?: SchemaNonNullableFields;
12636
12689
  }
12637
12690
  interface GetSchemaByKeyResponseNonNullableFields {
12638
12691
  schema?: SchemaNonNullableFields;
12639
12692
  }
12693
+ interface UpdateSchemaResponseNonNullableFields {
12694
+ schema?: SchemaNonNullableFields;
12695
+ }
12640
12696
  interface QuerySchemasResponseNonNullableFields {
12641
12697
  schemas: SchemaNonNullableFields[];
12642
12698
  }
@@ -12654,6 +12710,7 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
12654
12710
  __responseType: Q;
12655
12711
  __originalResponseType: R;
12656
12712
  };
12713
+ declare function createSchema(): __PublicMethodMetaInfo<'POST', {}, CreateSchemaRequest, CreateSchemaRequest$1, CreateSchemaResponse & CreateSchemaResponseNonNullableFields, CreateSchemaResponse$1 & CreateSchemaResponseNonNullableFields$1>;
12657
12714
  declare function getSchema(): __PublicMethodMetaInfo<'GET', {
12658
12715
  schemaId: string;
12659
12716
  }, GetSchemaRequest, GetSchemaRequest$1, GetSchemaResponse & GetSchemaResponseNonNullableFields, GetSchemaResponse$1 & GetSchemaResponseNonNullableFields$1>;
@@ -12662,16 +12719,25 @@ declare function getSchemaByKey(): __PublicMethodMetaInfo<'GET', {
12662
12719
  keyEntityType: string;
12663
12720
  keyScope: string;
12664
12721
  }, GetSchemaByKeyRequest, GetSchemaByKeyRequest$1, GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields, GetSchemaByKeyResponse$1 & GetSchemaByKeyResponseNonNullableFields$1>;
12722
+ declare function updateSchema(): __PublicMethodMetaInfo<'PATCH', {
12723
+ schemaId: string;
12724
+ }, UpdateSchemaRequest, UpdateSchemaRequest$1, UpdateSchemaResponse & UpdateSchemaResponseNonNullableFields, UpdateSchemaResponse$1 & UpdateSchemaResponseNonNullableFields$1>;
12725
+ declare function deleteSchema(): __PublicMethodMetaInfo<'DELETE', {
12726
+ schemaId: string;
12727
+ }, DeleteSchemaRequest, DeleteSchemaRequest$1, DeleteSchemaResponse, DeleteSchemaResponse$1>;
12665
12728
  declare function querySchemas(): __PublicMethodMetaInfo<'POST', {}, QuerySchemasRequest, QuerySchemasRequest$1, QuerySchemasResponse & QuerySchemasResponseNonNullableFields, QuerySchemasResponse$1 & QuerySchemasResponseNonNullableFields$1>;
12666
12729
  declare function listSiteSchemas(): __PublicMethodMetaInfo<'GET', {}, ListSiteSchemasRequest, ListSiteSchemasRequest$1, ListSiteSchemasResponse & ListSiteSchemasResponseNonNullableFields, ListSiteSchemasResponse$1 & ListSiteSchemasResponseNonNullableFields$1>;
12667
12730
 
12668
12731
  type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
12732
+ declare const meta_createSchema: typeof createSchema;
12733
+ declare const meta_deleteSchema: typeof deleteSchema;
12669
12734
  declare const meta_getSchema: typeof getSchema;
12670
12735
  declare const meta_getSchemaByKey: typeof getSchemaByKey;
12671
12736
  declare const meta_listSiteSchemas: typeof listSiteSchemas;
12672
12737
  declare const meta_querySchemas: typeof querySchemas;
12738
+ declare const meta_updateSchema: typeof updateSchema;
12673
12739
  declare namespace meta {
12674
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_getSchema as getSchema, meta_getSchemaByKey as getSchemaByKey, meta_listSiteSchemas as listSiteSchemas, meta_querySchemas as querySchemas };
12740
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createSchema as createSchema, meta_deleteSchema as deleteSchema, meta_getSchema as getSchema, meta_getSchemaByKey as getSchemaByKey, meta_listSiteSchemas as listSiteSchemas, meta_querySchemas as querySchemas, meta_updateSchema as updateSchema };
12675
12741
  }
12676
12742
 
12677
12743
  export { meta$5 as entityMapper, meta$3 as machineTranslation, meta$2 as siteTranslator, meta$1 as translationContents, meta$4 as translationPublishedContents, meta as translationSchemas };