@wix/auto_sdk_multilingual_translation-schemas 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +4 -19
- package/build/cjs/index.js +0 -77
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +11 -86
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +11 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -19
- package/build/es/index.mjs +0 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +11 -86
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +11 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -19
- package/build/internal/cjs/index.js +0 -77
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -86
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +11 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -19
- package/build/internal/es/index.mjs +0 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -86
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +11 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, NonNullablePaths,
|
|
2
|
-
import { Schema, GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, UpdateSchema, SchemasQueryBuilder, ListSiteSchemasOptions, ListSiteSchemasResponse
|
|
3
|
-
export { ActionEvent, Asset,
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { Schema, GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, UpdateSchema, SchemasQueryBuilder, ListSiteSchemasOptions, ListSiteSchemasResponse } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Asset, CreateSchemaRequest, CreateSchemaResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteContext, DeleteSchemaRequest, DeleteSchemaResponse, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FieldType, FieldTypeWithLiterals, GetSchemaByKeyRequest, GetSchemaRequest, GetSchemaResponse, IdentificationData, IdentificationDataIdOneOf, ListSiteSchemasRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, PreviewFields, QuerySchemasRequest, QuerySchemasResponse, RestoreInfo, SchemaField, SchemaKey, SchemaScope, SchemaScopeWithLiterals, SchemasQueryResult, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, UpdateSchemaRequest, UpdateSchemaResponse, ValidateSchemaRequest, ValidateSchemaResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature;
|
|
6
6
|
interface CreateSchemaSignature {
|
|
@@ -91,9 +91,6 @@ interface ListSiteSchemasSignature {
|
|
|
91
91
|
*/
|
|
92
92
|
(options?: ListSiteSchemasOptions): Promise<NonNullablePaths<ListSiteSchemasResponse, `schemas` | `schemas.${number}.key.appId` | `schemas.${number}.key.entityType` | `schemas.${number}.key.scope`, 5>>;
|
|
93
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
94
|
|
|
98
95
|
declare const createSchema: MaybeContext<BuildRESTFunction<typeof createSchema$1> & typeof createSchema$1>;
|
|
99
96
|
declare const getSchema: MaybeContext<BuildRESTFunction<typeof getSchema$1> & typeof getSchema$1>;
|
|
@@ -102,17 +99,5 @@ declare const updateSchema: MaybeContext<BuildRESTFunction<typeof updateSchema$1
|
|
|
102
99
|
declare const deleteSchema: MaybeContext<BuildRESTFunction<typeof deleteSchema$1> & typeof deleteSchema$1>;
|
|
103
100
|
declare const querySchemas: MaybeContext<BuildRESTFunction<typeof querySchemas$1> & typeof querySchemas$1>;
|
|
104
101
|
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> & typeof onSchemaCreated$1;
|
|
109
|
-
/**
|
|
110
|
-
* Triggered when translation schema is deleted.
|
|
111
|
-
*/
|
|
112
|
-
declare const onSchemaDeleted: BuildEventDefinition<typeof onSchemaDeleted$1> & typeof onSchemaDeleted$1;
|
|
113
|
-
/**
|
|
114
|
-
* Triggered when translation schema is updated.
|
|
115
|
-
*/
|
|
116
|
-
declare const onSchemaUpdated: BuildEventDefinition<typeof onSchemaUpdated$1> & typeof onSchemaUpdated$1;
|
|
117
102
|
|
|
118
|
-
export { GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, ListSiteSchemasOptions, ListSiteSchemasResponse, Schema,
|
|
103
|
+
export { GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, ListSiteSchemasOptions, ListSiteSchemasResponse, Schema, SchemasQueryBuilder, UpdateSchema, createSchema, deleteSchema, getSchema, getSchemaByKey, listSiteSchemas, querySchemas, updateSchema };
|
package/build/cjs/index.js
CHANGED
|
@@ -33,21 +33,11 @@ __export(index_exports, {
|
|
|
33
33
|
getSchema: () => getSchema4,
|
|
34
34
|
getSchemaByKey: () => getSchemaByKey4,
|
|
35
35
|
listSiteSchemas: () => listSiteSchemas4,
|
|
36
|
-
onSchemaCreated: () => onSchemaCreated2,
|
|
37
|
-
onSchemaDeleted: () => onSchemaDeleted2,
|
|
38
|
-
onSchemaUpdated: () => onSchemaUpdated2,
|
|
39
36
|
querySchemas: () => querySchemas4,
|
|
40
37
|
updateSchema: () => updateSchema4
|
|
41
38
|
});
|
|
42
39
|
module.exports = __toCommonJS(index_exports);
|
|
43
40
|
|
|
44
|
-
// src/multilingual-translation-v1-schema-translation-schemas.public.ts
|
|
45
|
-
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
46
|
-
var import_float3 = require("@wix/sdk-runtime/transformations/float");
|
|
47
|
-
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
48
|
-
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
49
|
-
var import_sdk_types = require("@wix/sdk-types");
|
|
50
|
-
|
|
51
41
|
// src/multilingual-translation-v1-schema-translation-schemas.universal.ts
|
|
52
42
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
53
43
|
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
@@ -706,70 +696,9 @@ function listSiteSchemas3(httpClient) {
|
|
|
706
696
|
{ httpClient }
|
|
707
697
|
);
|
|
708
698
|
}
|
|
709
|
-
var onSchemaCreated = (0, import_sdk_types.EventDefinition)(
|
|
710
|
-
"wix.multilingual.translation.v1.schema_created",
|
|
711
|
-
true,
|
|
712
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
713
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
714
|
-
{
|
|
715
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
716
|
-
paths: [
|
|
717
|
-
{ path: "entity.createdDate" },
|
|
718
|
-
{ path: "entity.updatedDate" },
|
|
719
|
-
{ path: "metadata.eventTime" }
|
|
720
|
-
]
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
724
|
-
paths: [{ path: "entity.fields.*.index" }]
|
|
725
|
-
}
|
|
726
|
-
])
|
|
727
|
-
)
|
|
728
|
-
)();
|
|
729
|
-
var onSchemaDeleted = (0, import_sdk_types.EventDefinition)(
|
|
730
|
-
"wix.multilingual.translation.v1.schema_deleted",
|
|
731
|
-
true,
|
|
732
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
733
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
734
|
-
{
|
|
735
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
736
|
-
paths: [
|
|
737
|
-
{ path: "undefined.createdDate" },
|
|
738
|
-
{ path: "undefined.updatedDate" },
|
|
739
|
-
{ path: "metadata.eventTime" }
|
|
740
|
-
]
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
744
|
-
paths: [{ path: "undefined.fields.*.index" }]
|
|
745
|
-
}
|
|
746
|
-
])
|
|
747
|
-
)
|
|
748
|
-
)();
|
|
749
|
-
var onSchemaUpdated = (0, import_sdk_types.EventDefinition)(
|
|
750
|
-
"wix.multilingual.translation.v1.schema_updated",
|
|
751
|
-
true,
|
|
752
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
753
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
754
|
-
{
|
|
755
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
756
|
-
paths: [
|
|
757
|
-
{ path: "entity.createdDate" },
|
|
758
|
-
{ path: "entity.updatedDate" },
|
|
759
|
-
{ path: "metadata.eventTime" }
|
|
760
|
-
]
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
764
|
-
paths: [{ path: "entity.fields.*.index" }]
|
|
765
|
-
}
|
|
766
|
-
])
|
|
767
|
-
)
|
|
768
|
-
)();
|
|
769
699
|
|
|
770
700
|
// src/multilingual-translation-v1-schema-translation-schemas.context.ts
|
|
771
701
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
772
|
-
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
773
702
|
var createSchema4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSchema3);
|
|
774
703
|
var getSchema4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSchema3);
|
|
775
704
|
var getSchemaByKey4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSchemaByKey3);
|
|
@@ -777,9 +706,6 @@ var updateSchema4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(u
|
|
|
777
706
|
var deleteSchema4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSchema3);
|
|
778
707
|
var querySchemas4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(querySchemas3);
|
|
779
708
|
var listSiteSchemas4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listSiteSchemas3);
|
|
780
|
-
var onSchemaCreated2 = (0, import_event_definition_modules.createEventModule)(onSchemaCreated);
|
|
781
|
-
var onSchemaDeleted2 = (0, import_event_definition_modules.createEventModule)(onSchemaDeleted);
|
|
782
|
-
var onSchemaUpdated2 = (0, import_event_definition_modules.createEventModule)(onSchemaUpdated);
|
|
783
709
|
// Annotate the CommonJS export names for ESM import in node:
|
|
784
710
|
0 && (module.exports = {
|
|
785
711
|
DeleteStatus,
|
|
@@ -795,9 +721,6 @@ var onSchemaUpdated2 = (0, import_event_definition_modules.createEventModule)(on
|
|
|
795
721
|
getSchema,
|
|
796
722
|
getSchemaByKey,
|
|
797
723
|
listSiteSchemas,
|
|
798
|
-
onSchemaCreated,
|
|
799
|
-
onSchemaDeleted,
|
|
800
|
-
onSchemaUpdated,
|
|
801
724
|
querySchemas,
|
|
802
725
|
updateSchema
|
|
803
726
|
});
|