@wix/auto_sdk_multilingual_translation-schemas 1.0.23 → 1.0.24

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.
Files changed (134) hide show
  1. package/build/index.d.mts +118 -0
  2. package/build/index.d.ts +118 -0
  3. package/build/index.js +784 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +743 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +118 -0
  8. package/build/internal/index.d.ts +118 -0
  9. package/build/internal/index.js +784 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +743 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +363 -0
  14. package/build/internal/meta.d.ts +363 -0
  15. package/build/internal/meta.js +466 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +433 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts → multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.d.mts} +89 -252
  20. package/build/{cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts → internal/multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.d.ts} +89 -252
  21. package/build/meta.d.mts +363 -0
  22. package/build/meta.d.ts +363 -0
  23. package/build/meta.js +466 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +433 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{es/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts → multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.d.mts} +89 -252
  28. package/build/{internal/es/src/multilingual-translation-v1-schema-translation-schemas.universal.d.ts → multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.d.ts} +89 -252
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +0 -27
  40. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js +0 -38
  41. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +0 -1
  42. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +0 -52
  43. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js +0 -339
  44. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +0 -1
  45. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +0 -29
  46. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js +0 -171
  47. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +0 -1
  48. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +0 -98
  49. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js +0 -104
  50. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +0 -1
  51. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +0 -926
  52. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js +0 -160
  53. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +0 -1
  54. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js +0 -507
  55. package/build/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +0 -27
  67. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.context.js +0 -27
  68. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +0 -1
  69. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +0 -52
  70. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.http.js +0 -329
  71. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +0 -1
  72. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +0 -29
  73. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js +0 -138
  74. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +0 -1
  75. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +0 -98
  76. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.public.js +0 -86
  77. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +0 -1
  78. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +0 -926
  79. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.types.js +0 -157
  80. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +0 -1
  81. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js +0 -474
  82. package/build/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +0 -27
  93. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js +0 -38
  94. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +0 -1
  95. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +0 -52
  96. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js +0 -339
  97. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +0 -1
  98. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +0 -29
  99. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js +0 -171
  100. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +0 -1
  101. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +0 -98
  102. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js +0 -104
  103. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +0 -1
  104. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +0 -926
  105. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js +0 -160
  106. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +0 -1
  107. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js +0 -507
  108. package/build/internal/cjs/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.context.d.ts +0 -27
  119. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.context.js +0 -27
  120. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.context.js.map +0 -1
  121. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.http.d.ts +0 -52
  122. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.http.js +0 -329
  123. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.http.js.map +0 -1
  124. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.meta.d.ts +0 -29
  125. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js +0 -138
  126. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.meta.js.map +0 -1
  127. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.public.d.ts +0 -98
  128. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.public.js +0 -86
  129. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.public.js.map +0 -1
  130. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.types.d.ts +0 -926
  131. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.types.js +0 -157
  132. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.types.js.map +0 -1
  133. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js +0 -474
  134. package/build/internal/es/src/multilingual-translation-v1-schema-translation-schemas.universal.js.map +0 -1
@@ -0,0 +1,118 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { S as Schema, G as GetSchemaByKeyIdentifiers, a as GetSchemaByKeyResponse, U as UpdateSchema, Q as QuerySchemasOptions, b as SchemasQueryBuilder, L as ListSiteSchemasOptions, c as ListSiteSchemasResponse, d as SchemaCreatedEnvelope, e as SchemaDeletedEnvelope, f as SchemaUpdatedEnvelope } from './multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.mjs';
3
+ export { ai as ActionEvent, I as Asset, am as BaseEventMetadata, C as CreateSchemaRequest, m as CreateSchemaResponse, y as CursorPaging, A as CursorPagingMetadata, v as CursorQuery, w as CursorQueryPagingMethodOneOf, B as Cursors, R as DeleteContext, s as DeleteSchemaRequest, t as DeleteSchemaResponse, D as DeleteStatus, ac as DomainEvent, ad as DomainEventBodyOneOf, ab as Empty, ae as EntityCreatedEvent, ah as EntityDeletedEvent, ag as EntityUpdatedEvent, an as EventMetadata, F as FieldType, p as GetSchemaByKeyRequest, n as GetSchemaRequest, o as GetSchemaResponse, ak as IdentificationData, al as IdentificationDataIdOneOf, E as ListSiteSchemasRequest, aj as MessageEnvelope, M as MetaSiteSpecialEvent, H as MetaSiteSpecialEventPayloadOneOf, N as Namespace, a2 as NamespaceChanged, a7 as OdeditorAssigned, a8 as OdeditorUnassigned, a9 as PicassoAssigned, aa as PicassoUnassigned, P as PreviewFields, u as QuerySchemasRequest, z as QuerySchemasResponse, af as RestoreInfo, l as SchemaField, k as SchemaKey, g as SchemaScope, ao as SchemasQueryResult, _ as ServiceProvisioned, $ as ServiceRemoved, J as SiteCreated, j as SiteCreatedContext, O as SiteDeleted, a1 as SiteHardDeleted, Y as SiteMarkedAsTemplate, Z as SiteMarkedAsWixSite, V as SitePublished, a6 as SitePurgedExternally, a0 as SiteRenamed, K as SiteTransferred, T as SiteUndeleted, X as SiteUnpublished, a5 as SiteUrlChanged, h as SortOrder, x as Sorting, i as State, a3 as StudioAssigned, a4 as StudioUnassigned, q as UpdateSchemaRequest, r as UpdateSchemaResponse, W as WebhookIdentityType } from './multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.mjs';
4
+
5
+ declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature;
6
+ interface CreateSchemaSignature {
7
+ /**
8
+ * Creates a translation schema.
9
+ * @param - Translation schema to create.
10
+ * @returns Newly created translation schema.
11
+ */
12
+ (schema: Schema): Promise<Schema>;
13
+ }
14
+ declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
15
+ interface GetSchemaSignature {
16
+ /**
17
+ * Retrieves a translation schema by ID.
18
+ * @param - ID of the translation schema to retrieve.
19
+ * @returns The requested translation schema.
20
+ */
21
+ (schemaId: string): Promise<Schema>;
22
+ }
23
+ declare function getSchemaByKey$1(httpClient: HttpClient): GetSchemaByKeySignature;
24
+ interface GetSchemaByKeySignature {
25
+ /**
26
+ * Retrieves a translation schema by key.
27
+ */
28
+ (identifiers: GetSchemaByKeyIdentifiers): Promise<GetSchemaByKeyResponse>;
29
+ }
30
+ declare function updateSchema$1(httpClient: HttpClient): UpdateSchemaSignature;
31
+ interface UpdateSchemaSignature {
32
+ /**
33
+ * Updates a translation schema.
34
+ *
35
+ * To remove a field, pass the field key with an empty object as the value. For example:
36
+ *
37
+ * ```json
38
+ * {
39
+ * "fields": {
40
+ * "title": {}
41
+ * }
42
+ * }
43
+ * ```
44
+ *
45
+ * <blockquote class="caution">
46
+ * <strong>Caution:</strong>
47
+ *
48
+ * Removing a schema field makes the corresponding content field unavailable.
49
+ * </blockquote>
50
+ * @param - Translation schema ID.
51
+ * @returns Updated Schema.
52
+ */
53
+ (_id: string, schema: UpdateSchema): Promise<Schema>;
54
+ }
55
+ declare function deleteSchema$1(httpClient: HttpClient): DeleteSchemaSignature;
56
+ interface DeleteSchemaSignature {
57
+ /**
58
+ * Deletes a translation schema.
59
+ * @param - ID of the translation schema to delete.
60
+ */
61
+ (schemaId: string): Promise<void>;
62
+ }
63
+ declare function querySchemas$1(httpClient: HttpClient): QuerySchemasSignature;
64
+ interface QuerySchemasSignature {
65
+ /**
66
+ * Creates a query to retrieve a list of schemas.
67
+ *
68
+ * > **Note:**
69
+ * >
70
+ * > This method can retrieve all schemas with a `GLOBAL` scope and schemas with a `SITE` scope for the site the API request is authorized to access.
71
+ *
72
+ * The `querySchemas()` function builds a query to retrieve a list of translation schemas and returns a `SchemasQueryBuilder` object.
73
+ *
74
+ * 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-schema/schemas-query-builder/find) function.
75
+ *
76
+ * You can refine the query by chaining `SchemasQueryBuilder` functions onto the query. `SchemasQueryBuilder` functions enable you to filter, sort, and control the results that `querySchemas()` returns.
77
+ *
78
+ * `querySchemas()` runs with the following `SchemasQueryBuilder` defaults which you can override:
79
+ *
80
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/limit)
81
+ * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/ascending)
82
+ *
83
+ * The following `SchemasQueryBuilder` functions are supported for `querySchemas()`. 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-schema/schemas-query-result/items) property in `SchemasQueryResult`.
84
+ */
85
+ (options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
86
+ }
87
+ declare function listSiteSchemas$1(httpClient: HttpClient): ListSiteSchemasSignature;
88
+ interface ListSiteSchemasSignature {
89
+ /**
90
+ * Retrieves a list of all translation schemas associated with a site, regardless of which app created them.
91
+ */
92
+ (options?: ListSiteSchemasOptions | undefined): Promise<ListSiteSchemasResponse>;
93
+ }
94
+ declare const onSchemaCreated$1: EventDefinition<SchemaCreatedEnvelope, "wix.multilingual.translation.v1.schema_created">;
95
+ declare const onSchemaDeleted$1: EventDefinition<SchemaDeletedEnvelope, "wix.multilingual.translation.v1.schema_deleted">;
96
+ declare const onSchemaUpdated$1: EventDefinition<SchemaUpdatedEnvelope, "wix.multilingual.translation.v1.schema_updated">;
97
+
98
+ declare const createSchema: MaybeContext<BuildRESTFunction<typeof createSchema$1> & typeof createSchema$1>;
99
+ declare const getSchema: MaybeContext<BuildRESTFunction<typeof getSchema$1> & typeof getSchema$1>;
100
+ declare const getSchemaByKey: MaybeContext<BuildRESTFunction<typeof getSchemaByKey$1> & typeof getSchemaByKey$1>;
101
+ declare const updateSchema: MaybeContext<BuildRESTFunction<typeof updateSchema$1> & typeof updateSchema$1>;
102
+ declare const deleteSchema: MaybeContext<BuildRESTFunction<typeof deleteSchema$1> & typeof deleteSchema$1>;
103
+ declare const querySchemas: MaybeContext<BuildRESTFunction<typeof querySchemas$1> & typeof querySchemas$1>;
104
+ declare const listSiteSchemas: MaybeContext<BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1>;
105
+ /**
106
+ * Triggered when translation schema is created.
107
+ */
108
+ declare const onSchemaCreated: BuildEventDefinition<typeof onSchemaCreated$1>;
109
+ /**
110
+ * Triggered when translation schema is deleted.
111
+ */
112
+ declare const onSchemaDeleted: BuildEventDefinition<typeof onSchemaDeleted$1>;
113
+ /**
114
+ * Triggered when translation schema is updated.
115
+ */
116
+ declare const onSchemaUpdated: BuildEventDefinition<typeof onSchemaUpdated$1>;
117
+
118
+ export { GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, ListSiteSchemasOptions, ListSiteSchemasResponse, QuerySchemasOptions, Schema, SchemaCreatedEnvelope, SchemaDeletedEnvelope, SchemaUpdatedEnvelope, SchemasQueryBuilder, UpdateSchema, createSchema, deleteSchema, getSchema, getSchemaByKey, listSiteSchemas, onSchemaCreated, onSchemaDeleted, onSchemaUpdated, querySchemas, updateSchema };
@@ -0,0 +1,118 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { S as Schema, G as GetSchemaByKeyIdentifiers, a as GetSchemaByKeyResponse, U as UpdateSchema, Q as QuerySchemasOptions, b as SchemasQueryBuilder, L as ListSiteSchemasOptions, c as ListSiteSchemasResponse, d as SchemaCreatedEnvelope, e as SchemaDeletedEnvelope, f as SchemaUpdatedEnvelope } from './multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.js';
3
+ export { ai as ActionEvent, I as Asset, am as BaseEventMetadata, C as CreateSchemaRequest, m as CreateSchemaResponse, y as CursorPaging, A as CursorPagingMetadata, v as CursorQuery, w as CursorQueryPagingMethodOneOf, B as Cursors, R as DeleteContext, s as DeleteSchemaRequest, t as DeleteSchemaResponse, D as DeleteStatus, ac as DomainEvent, ad as DomainEventBodyOneOf, ab as Empty, ae as EntityCreatedEvent, ah as EntityDeletedEvent, ag as EntityUpdatedEvent, an as EventMetadata, F as FieldType, p as GetSchemaByKeyRequest, n as GetSchemaRequest, o as GetSchemaResponse, ak as IdentificationData, al as IdentificationDataIdOneOf, E as ListSiteSchemasRequest, aj as MessageEnvelope, M as MetaSiteSpecialEvent, H as MetaSiteSpecialEventPayloadOneOf, N as Namespace, a2 as NamespaceChanged, a7 as OdeditorAssigned, a8 as OdeditorUnassigned, a9 as PicassoAssigned, aa as PicassoUnassigned, P as PreviewFields, u as QuerySchemasRequest, z as QuerySchemasResponse, af as RestoreInfo, l as SchemaField, k as SchemaKey, g as SchemaScope, ao as SchemasQueryResult, _ as ServiceProvisioned, $ as ServiceRemoved, J as SiteCreated, j as SiteCreatedContext, O as SiteDeleted, a1 as SiteHardDeleted, Y as SiteMarkedAsTemplate, Z as SiteMarkedAsWixSite, V as SitePublished, a6 as SitePurgedExternally, a0 as SiteRenamed, K as SiteTransferred, T as SiteUndeleted, X as SiteUnpublished, a5 as SiteUrlChanged, h as SortOrder, x as Sorting, i as State, a3 as StudioAssigned, a4 as StudioUnassigned, q as UpdateSchemaRequest, r as UpdateSchemaResponse, W as WebhookIdentityType } from './multilingual-translation-v1-schema-translation-schemas.universal-C2dk9sn4.js';
4
+
5
+ declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature;
6
+ interface CreateSchemaSignature {
7
+ /**
8
+ * Creates a translation schema.
9
+ * @param - Translation schema to create.
10
+ * @returns Newly created translation schema.
11
+ */
12
+ (schema: Schema): Promise<Schema>;
13
+ }
14
+ declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
15
+ interface GetSchemaSignature {
16
+ /**
17
+ * Retrieves a translation schema by ID.
18
+ * @param - ID of the translation schema to retrieve.
19
+ * @returns The requested translation schema.
20
+ */
21
+ (schemaId: string): Promise<Schema>;
22
+ }
23
+ declare function getSchemaByKey$1(httpClient: HttpClient): GetSchemaByKeySignature;
24
+ interface GetSchemaByKeySignature {
25
+ /**
26
+ * Retrieves a translation schema by key.
27
+ */
28
+ (identifiers: GetSchemaByKeyIdentifiers): Promise<GetSchemaByKeyResponse>;
29
+ }
30
+ declare function updateSchema$1(httpClient: HttpClient): UpdateSchemaSignature;
31
+ interface UpdateSchemaSignature {
32
+ /**
33
+ * Updates a translation schema.
34
+ *
35
+ * To remove a field, pass the field key with an empty object as the value. For example:
36
+ *
37
+ * ```json
38
+ * {
39
+ * "fields": {
40
+ * "title": {}
41
+ * }
42
+ * }
43
+ * ```
44
+ *
45
+ * <blockquote class="caution">
46
+ * <strong>Caution:</strong>
47
+ *
48
+ * Removing a schema field makes the corresponding content field unavailable.
49
+ * </blockquote>
50
+ * @param - Translation schema ID.
51
+ * @returns Updated Schema.
52
+ */
53
+ (_id: string, schema: UpdateSchema): Promise<Schema>;
54
+ }
55
+ declare function deleteSchema$1(httpClient: HttpClient): DeleteSchemaSignature;
56
+ interface DeleteSchemaSignature {
57
+ /**
58
+ * Deletes a translation schema.
59
+ * @param - ID of the translation schema to delete.
60
+ */
61
+ (schemaId: string): Promise<void>;
62
+ }
63
+ declare function querySchemas$1(httpClient: HttpClient): QuerySchemasSignature;
64
+ interface QuerySchemasSignature {
65
+ /**
66
+ * Creates a query to retrieve a list of schemas.
67
+ *
68
+ * > **Note:**
69
+ * >
70
+ * > This method can retrieve all schemas with a `GLOBAL` scope and schemas with a `SITE` scope for the site the API request is authorized to access.
71
+ *
72
+ * The `querySchemas()` function builds a query to retrieve a list of translation schemas and returns a `SchemasQueryBuilder` object.
73
+ *
74
+ * 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-schema/schemas-query-builder/find) function.
75
+ *
76
+ * You can refine the query by chaining `SchemasQueryBuilder` functions onto the query. `SchemasQueryBuilder` functions enable you to filter, sort, and control the results that `querySchemas()` returns.
77
+ *
78
+ * `querySchemas()` runs with the following `SchemasQueryBuilder` defaults which you can override:
79
+ *
80
+ * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/limit)
81
+ * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/ascending)
82
+ *
83
+ * The following `SchemasQueryBuilder` functions are supported for `querySchemas()`. 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-schema/schemas-query-result/items) property in `SchemasQueryResult`.
84
+ */
85
+ (options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
86
+ }
87
+ declare function listSiteSchemas$1(httpClient: HttpClient): ListSiteSchemasSignature;
88
+ interface ListSiteSchemasSignature {
89
+ /**
90
+ * Retrieves a list of all translation schemas associated with a site, regardless of which app created them.
91
+ */
92
+ (options?: ListSiteSchemasOptions | undefined): Promise<ListSiteSchemasResponse>;
93
+ }
94
+ declare const onSchemaCreated$1: EventDefinition<SchemaCreatedEnvelope, "wix.multilingual.translation.v1.schema_created">;
95
+ declare const onSchemaDeleted$1: EventDefinition<SchemaDeletedEnvelope, "wix.multilingual.translation.v1.schema_deleted">;
96
+ declare const onSchemaUpdated$1: EventDefinition<SchemaUpdatedEnvelope, "wix.multilingual.translation.v1.schema_updated">;
97
+
98
+ declare const createSchema: MaybeContext<BuildRESTFunction<typeof createSchema$1> & typeof createSchema$1>;
99
+ declare const getSchema: MaybeContext<BuildRESTFunction<typeof getSchema$1> & typeof getSchema$1>;
100
+ declare const getSchemaByKey: MaybeContext<BuildRESTFunction<typeof getSchemaByKey$1> & typeof getSchemaByKey$1>;
101
+ declare const updateSchema: MaybeContext<BuildRESTFunction<typeof updateSchema$1> & typeof updateSchema$1>;
102
+ declare const deleteSchema: MaybeContext<BuildRESTFunction<typeof deleteSchema$1> & typeof deleteSchema$1>;
103
+ declare const querySchemas: MaybeContext<BuildRESTFunction<typeof querySchemas$1> & typeof querySchemas$1>;
104
+ declare const listSiteSchemas: MaybeContext<BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1>;
105
+ /**
106
+ * Triggered when translation schema is created.
107
+ */
108
+ declare const onSchemaCreated: BuildEventDefinition<typeof onSchemaCreated$1>;
109
+ /**
110
+ * Triggered when translation schema is deleted.
111
+ */
112
+ declare const onSchemaDeleted: BuildEventDefinition<typeof onSchemaDeleted$1>;
113
+ /**
114
+ * Triggered when translation schema is updated.
115
+ */
116
+ declare const onSchemaUpdated: BuildEventDefinition<typeof onSchemaUpdated$1>;
117
+
118
+ export { GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, ListSiteSchemasOptions, ListSiteSchemasResponse, QuerySchemasOptions, Schema, SchemaCreatedEnvelope, SchemaDeletedEnvelope, SchemaUpdatedEnvelope, SchemasQueryBuilder, UpdateSchema, createSchema, deleteSchema, getSchema, getSchemaByKey, listSiteSchemas, onSchemaCreated, onSchemaDeleted, onSchemaUpdated, querySchemas, updateSchema };