@wix/auto_sdk_multilingual_translation-schemas 1.0.62 → 1.0.64
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 +7 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +27 -58
- package/build/cjs/index.typings.js +6 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -5
- package/build/cjs/meta.js +1 -0
- 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 +7 -17
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +27 -58
- package/build/es/index.typings.mjs +6 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -5
- package/build/es/meta.mjs +1 -0
- 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 +7 -17
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -58
- package/build/internal/cjs/index.typings.js +6 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +7 -5
- package/build/internal/cjs/meta.js +1 -0
- 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 +7 -17
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +27 -58
- package/build/internal/es/index.typings.mjs +6 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +7 -5
- package/build/internal/es/meta.mjs +1 -0
- 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
|
@@ -427,6 +427,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
427
427
|
Namespace2["NANO"] = "NANO";
|
|
428
428
|
Namespace2["BASE44"] = "BASE44";
|
|
429
429
|
Namespace2["CHANNELS"] = "CHANNELS";
|
|
430
|
+
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
430
431
|
return Namespace2;
|
|
431
432
|
})(Namespace || {});
|
|
432
433
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
@@ -491,15 +492,9 @@ async function getSchema2(schemaId) {
|
|
|
491
492
|
throw transformedError;
|
|
492
493
|
}
|
|
493
494
|
}
|
|
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
|
-
});
|
|
495
|
+
async function getSchemaByKey2() {
|
|
496
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
497
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
503
498
|
const reqOpts = getSchemaByKey(payload);
|
|
504
499
|
sideEffects?.onSiteCall?.();
|
|
505
500
|
try {
|
|
@@ -511,14 +506,10 @@ async function getSchemaByKey2(identifiers) {
|
|
|
511
506
|
err,
|
|
512
507
|
{
|
|
513
508
|
spreadPathsToArguments: {},
|
|
514
|
-
explicitPathsToArguments: {
|
|
515
|
-
"key.appId": "$[0].keyAppId",
|
|
516
|
-
"key.entityType": "$[0].keyEntityType",
|
|
517
|
-
"key.scope": "$[0].keyScope"
|
|
518
|
-
},
|
|
509
|
+
explicitPathsToArguments: {},
|
|
519
510
|
singleArgumentUnchanged: false
|
|
520
511
|
},
|
|
521
|
-
[
|
|
512
|
+
[]
|
|
522
513
|
);
|
|
523
514
|
sideEffects?.onError?.(err);
|
|
524
515
|
throw transformedError;
|
|
@@ -697,8 +688,7 @@ function getSchema3(httpClient) {
|
|
|
697
688
|
);
|
|
698
689
|
}
|
|
699
690
|
function getSchemaByKey3(httpClient) {
|
|
700
|
-
return (
|
|
701
|
-
identifiers,
|
|
691
|
+
return () => getSchemaByKey2(
|
|
702
692
|
// @ts-ignore
|
|
703
693
|
{ httpClient }
|
|
704
694
|
);
|