@wix/auto_sdk_multilingual_translation-schemas 1.0.62 → 1.0.63
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 +7 -7
- package/build/cjs/index.js +6 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +23 -56
- package/build/cjs/index.typings.js +5 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +476 -0
- package/build/cjs/schemas.js +885 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +7 -7
- package/build/es/index.mjs +6 -17
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +23 -56
- package/build/es/index.typings.mjs +5 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +476 -0
- package/build/es/schemas.mjs +835 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +7 -7
- package/build/internal/cjs/index.js +6 -17
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +23 -56
- package/build/internal/cjs/index.typings.js +5 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +476 -0
- package/build/internal/cjs/schemas.js +885 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.mjs +6 -17
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +23 -56
- package/build/internal/es/index.typings.mjs +5 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +476 -0
- package/build/internal/es/schemas.mjs +835 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +11 -4
- package/schemas/package.json +3 -0
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Schema,
|
|
2
|
+
import { Schema, GetSchemaByKeyResponse, UpdateSchema, ListSiteSchemasOptions, ListSiteSchemasResponse, SchemaQuery, QuerySchemasOptions, typedQuerySchemas, SchemasQueryBuilder } from './index.typings.js';
|
|
3
3
|
export { AccountInfo, ActionEvent, Asset, CommonQueryWithEntityContext, CreateSchemaRequest, CreateSchemaResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteContext, DeleteSchemaRequest, DeleteSchemaResponse, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, 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, SchemaQuerySpec, 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, UserDomainMediaDisabled, UserDomainMediaEnabled, ValidateSchemaRequest, ValidateSchemaResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature;
|
|
@@ -9,7 +9,7 @@ interface CreateSchemaSignature {
|
|
|
9
9
|
* @param - Translation schema to create.
|
|
10
10
|
* @returns Newly created translation schema.
|
|
11
11
|
*/
|
|
12
|
-
(schema: NonNullablePaths<Schema, `fields` | `key
|
|
12
|
+
(schema: NonNullablePaths<Schema, `fields` | `key`, 2>): Promise<NonNullablePaths<Schema, `key.keyAppId` | `key.keyEntityType` | `key.keyScope`, 3>>;
|
|
13
13
|
}
|
|
14
14
|
declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
|
|
15
15
|
interface GetSchemaSignature {
|
|
@@ -18,14 +18,14 @@ interface GetSchemaSignature {
|
|
|
18
18
|
* @param - ID of the translation schema to retrieve.
|
|
19
19
|
* @returns The requested translation schema.
|
|
20
20
|
*/
|
|
21
|
-
(schemaId: string): Promise<NonNullablePaths<Schema, `key.
|
|
21
|
+
(schemaId: string): Promise<NonNullablePaths<Schema, `key.keyAppId` | `key.keyEntityType` | `key.keyScope`, 3>>;
|
|
22
22
|
}
|
|
23
23
|
declare function getSchemaByKey$1(httpClient: HttpClient): GetSchemaByKeySignature;
|
|
24
24
|
interface GetSchemaByKeySignature {
|
|
25
25
|
/**
|
|
26
26
|
* Retrieves a translation schema by key.
|
|
27
27
|
*/
|
|
28
|
-
(
|
|
28
|
+
(): Promise<NonNullablePaths<GetSchemaByKeyResponse, `schema.key.keyAppId` | `schema.key.keyEntityType` | `schema.key.keyScope`, 4>>;
|
|
29
29
|
}
|
|
30
30
|
declare function updateSchema$1(httpClient: HttpClient): UpdateSchemaSignature;
|
|
31
31
|
interface UpdateSchemaSignature {
|
|
@@ -50,7 +50,7 @@ interface UpdateSchemaSignature {
|
|
|
50
50
|
* @param - Translation schema ID.
|
|
51
51
|
* @returns Updated Schema.
|
|
52
52
|
*/
|
|
53
|
-
(_id: string, schema: NonNullablePaths<UpdateSchema, `revision`, 2>): Promise<NonNullablePaths<Schema, `key.
|
|
53
|
+
(_id: string, schema: NonNullablePaths<UpdateSchema, `revision`, 2>): Promise<NonNullablePaths<Schema, `key.keyAppId` | `key.keyEntityType` | `key.keyScope`, 3>>;
|
|
54
54
|
}
|
|
55
55
|
declare function deleteSchema$1(httpClient: HttpClient): DeleteSchemaSignature;
|
|
56
56
|
interface DeleteSchemaSignature {
|
|
@@ -65,7 +65,7 @@ interface ListSiteSchemasSignature {
|
|
|
65
65
|
/**
|
|
66
66
|
* Retrieves a list of all translation schemas associated with a site, regardless of which app created them.
|
|
67
67
|
*/
|
|
68
|
-
(options?: ListSiteSchemasOptions): Promise<NonNullablePaths<ListSiteSchemasResponse, `schemas` | `schemas.${number}.key.
|
|
68
|
+
(options?: ListSiteSchemasOptions): Promise<NonNullablePaths<ListSiteSchemasResponse, `schemas` | `schemas.${number}.key.keyAppId` | `schemas.${number}.key.keyEntityType` | `schemas.${number}.key.keyScope`, 5>>;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
declare function customQuerySchemas(httpClient: HttpClient): {
|
|
@@ -80,4 +80,4 @@ declare const deleteSchema: MaybeContext<BuildRESTFunction<typeof deleteSchema$1
|
|
|
80
80
|
declare const listSiteSchemas: MaybeContext<BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1>;
|
|
81
81
|
declare const querySchemas: MaybeContext<BuildRESTFunction<typeof customQuerySchemas> & typeof customQuerySchemas>;
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { GetSchemaByKeyResponse, ListSiteSchemasOptions, ListSiteSchemasResponse, QuerySchemasOptions, Schema, SchemaQuery, SchemasQueryBuilder, UpdateSchema, createSchema, deleteSchema, getSchema, getSchemaByKey, listSiteSchemas, querySchemas, updateSchema };
|
package/build/cjs/index.js
CHANGED
|
@@ -491,15 +491,9 @@ async function getSchema2(schemaId) {
|
|
|
491
491
|
throw transformedError;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
async function getSchemaByKey2(
|
|
495
|
-
const { httpClient, sideEffects } = arguments[
|
|
496
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
497
|
-
key: {
|
|
498
|
-
appId: identifiers?.keyAppId,
|
|
499
|
-
entityType: identifiers?.keyEntityType,
|
|
500
|
-
scope: identifiers?.keyScope
|
|
501
|
-
}
|
|
502
|
-
});
|
|
494
|
+
async function getSchemaByKey2() {
|
|
495
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
496
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
503
497
|
const reqOpts = getSchemaByKey(payload);
|
|
504
498
|
sideEffects?.onSiteCall?.();
|
|
505
499
|
try {
|
|
@@ -511,14 +505,10 @@ async function getSchemaByKey2(identifiers) {
|
|
|
511
505
|
err,
|
|
512
506
|
{
|
|
513
507
|
spreadPathsToArguments: {},
|
|
514
|
-
explicitPathsToArguments: {
|
|
515
|
-
"key.appId": "$[0].keyAppId",
|
|
516
|
-
"key.entityType": "$[0].keyEntityType",
|
|
517
|
-
"key.scope": "$[0].keyScope"
|
|
518
|
-
},
|
|
508
|
+
explicitPathsToArguments: {},
|
|
519
509
|
singleArgumentUnchanged: false
|
|
520
510
|
},
|
|
521
|
-
[
|
|
511
|
+
[]
|
|
522
512
|
);
|
|
523
513
|
sideEffects?.onError?.(err);
|
|
524
514
|
throw transformedError;
|
|
@@ -697,8 +687,7 @@ function getSchema3(httpClient) {
|
|
|
697
687
|
);
|
|
698
688
|
}
|
|
699
689
|
function getSchemaByKey3(httpClient) {
|
|
700
|
-
return (
|
|
701
|
-
identifiers,
|
|
690
|
+
return () => getSchemaByKey2(
|
|
702
691
|
// @ts-ignore
|
|
703
692
|
{ httpClient }
|
|
704
693
|
);
|