@wix/multilingual 1.0.10 → 1.0.11
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 +2 -2
- package/type-bundles/context.bundle.d.ts +134 -49
- package/type-bundles/index.bundle.d.ts +107 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/multilingual",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "964d47cc0bbbbcd7c940d7fc67efc45181affb344dfb7b66fc12876e"
|
|
50
50
|
}
|
|
@@ -2525,46 +2525,36 @@ interface BulkMachineTranslateOptions {
|
|
|
2525
2525
|
contentToTranslate?: TranslatableContent[];
|
|
2526
2526
|
}
|
|
2527
2527
|
|
|
2528
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2529
|
-
interface HttpClient {
|
|
2530
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2528
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
2529
|
+
interface HttpClient$3 {
|
|
2530
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
2531
2531
|
}
|
|
2532
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2533
|
-
type HttpResponse<T = any> = {
|
|
2532
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
2533
|
+
type HttpResponse$3<T = any> = {
|
|
2534
2534
|
data: T;
|
|
2535
2535
|
status: number;
|
|
2536
2536
|
statusText: string;
|
|
2537
2537
|
headers: any;
|
|
2538
2538
|
request?: any;
|
|
2539
2539
|
};
|
|
2540
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2540
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
2541
2541
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2542
2542
|
url: string;
|
|
2543
2543
|
data?: Data;
|
|
2544
2544
|
params?: URLSearchParams;
|
|
2545
|
-
} & APIMetadata;
|
|
2546
|
-
type APIMetadata = {
|
|
2545
|
+
} & APIMetadata$3;
|
|
2546
|
+
type APIMetadata$3 = {
|
|
2547
2547
|
methodFqn?: string;
|
|
2548
2548
|
entityFqdn?: string;
|
|
2549
2549
|
packageName?: string;
|
|
2550
2550
|
};
|
|
2551
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2552
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
2553
|
-
__type: 'event-definition';
|
|
2554
|
-
type: Type;
|
|
2555
|
-
isDomainEvent?: boolean;
|
|
2556
|
-
transformations?: unknown;
|
|
2557
|
-
__payload: Payload;
|
|
2558
|
-
};
|
|
2559
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2560
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
2561
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
2551
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
2562
2552
|
|
|
2563
|
-
declare function machineTranslate$1(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
|
|
2564
|
-
declare function bulkMachineTranslate$1(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
|
|
2553
|
+
declare function machineTranslate$1(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
|
|
2554
|
+
declare function bulkMachineTranslate$1(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
|
|
2565
2555
|
|
|
2566
|
-
declare const machineTranslate: BuildRESTFunction<typeof machineTranslate$1>;
|
|
2567
|
-
declare const bulkMachineTranslate: BuildRESTFunction<typeof bulkMachineTranslate$1>;
|
|
2556
|
+
declare const machineTranslate: BuildRESTFunction$3<typeof machineTranslate$1>;
|
|
2557
|
+
declare const bulkMachineTranslate: BuildRESTFunction$3<typeof bulkMachineTranslate$1>;
|
|
2568
2558
|
|
|
2569
2559
|
declare const context$3_bulkMachineTranslate: typeof bulkMachineTranslate;
|
|
2570
2560
|
declare const context$3_machineTranslate: typeof machineTranslate;
|
|
@@ -2877,11 +2867,36 @@ interface GetSiteTranslatablesPropertiesOptions {
|
|
|
2877
2867
|
translatedLanguage?: Locale;
|
|
2878
2868
|
}
|
|
2879
2869
|
|
|
2880
|
-
|
|
2881
|
-
|
|
2870
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
2871
|
+
interface HttpClient$2 {
|
|
2872
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2873
|
+
}
|
|
2874
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2875
|
+
type HttpResponse$2<T = any> = {
|
|
2876
|
+
data: T;
|
|
2877
|
+
status: number;
|
|
2878
|
+
statusText: string;
|
|
2879
|
+
headers: any;
|
|
2880
|
+
request?: any;
|
|
2881
|
+
};
|
|
2882
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
2883
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2884
|
+
url: string;
|
|
2885
|
+
data?: Data;
|
|
2886
|
+
params?: URLSearchParams;
|
|
2887
|
+
} & APIMetadata$2;
|
|
2888
|
+
type APIMetadata$2 = {
|
|
2889
|
+
methodFqn?: string;
|
|
2890
|
+
entityFqdn?: string;
|
|
2891
|
+
packageName?: string;
|
|
2892
|
+
};
|
|
2893
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
2894
|
+
|
|
2895
|
+
declare function translateSite$1(httpClient: HttpClient$2): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
|
|
2896
|
+
declare function getSiteTranslatablesProperties$1(httpClient: HttpClient$2): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
|
|
2882
2897
|
|
|
2883
|
-
declare const translateSite: BuildRESTFunction<typeof translateSite$1>;
|
|
2884
|
-
declare const getSiteTranslatablesProperties: BuildRESTFunction<typeof getSiteTranslatablesProperties$1>;
|
|
2898
|
+
declare const translateSite: BuildRESTFunction$2<typeof translateSite$1>;
|
|
2899
|
+
declare const getSiteTranslatablesProperties: BuildRESTFunction$2<typeof getSiteTranslatablesProperties$1>;
|
|
2885
2900
|
|
|
2886
2901
|
declare const context$2_getSiteTranslatablesProperties: typeof getSiteTranslatablesProperties;
|
|
2887
2902
|
declare const context$2_translateSite: typeof translateSite;
|
|
@@ -5918,7 +5933,42 @@ interface BulkUpdateContentOptions {
|
|
|
5918
5933
|
returnEntity?: boolean;
|
|
5919
5934
|
}
|
|
5920
5935
|
|
|
5921
|
-
|
|
5936
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
5937
|
+
interface HttpClient$1 {
|
|
5938
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
5939
|
+
}
|
|
5940
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
5941
|
+
type HttpResponse$1<T = any> = {
|
|
5942
|
+
data: T;
|
|
5943
|
+
status: number;
|
|
5944
|
+
statusText: string;
|
|
5945
|
+
headers: any;
|
|
5946
|
+
request?: any;
|
|
5947
|
+
};
|
|
5948
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
5949
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5950
|
+
url: string;
|
|
5951
|
+
data?: Data;
|
|
5952
|
+
params?: URLSearchParams;
|
|
5953
|
+
} & APIMetadata$1;
|
|
5954
|
+
type APIMetadata$1 = {
|
|
5955
|
+
methodFqn?: string;
|
|
5956
|
+
entityFqdn?: string;
|
|
5957
|
+
packageName?: string;
|
|
5958
|
+
};
|
|
5959
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
5960
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
5961
|
+
__type: 'event-definition';
|
|
5962
|
+
type: Type;
|
|
5963
|
+
isDomainEvent?: boolean;
|
|
5964
|
+
transformations?: unknown;
|
|
5965
|
+
__payload: Payload;
|
|
5966
|
+
};
|
|
5967
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
5968
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
5969
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
5970
|
+
|
|
5971
|
+
declare function createContent$1(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
|
|
5922
5972
|
schemaId: string;
|
|
5923
5973
|
entityId: string;
|
|
5924
5974
|
locale: string;
|
|
@@ -6401,7 +6451,7 @@ declare function createContent$1(httpClient: HttpClient): (content: Content) =>
|
|
|
6401
6451
|
} | undefined;
|
|
6402
6452
|
publishStatus: PublishStatus;
|
|
6403
6453
|
}>;
|
|
6404
|
-
declare function getContent$1(httpClient: HttpClient): (contentId: string) => Promise<Content & {
|
|
6454
|
+
declare function getContent$1(httpClient: HttpClient$1): (contentId: string) => Promise<Content & {
|
|
6405
6455
|
schemaId: string;
|
|
6406
6456
|
entityId: string;
|
|
6407
6457
|
locale: string;
|
|
@@ -6884,7 +6934,7 @@ declare function getContent$1(httpClient: HttpClient): (contentId: string) => Pr
|
|
|
6884
6934
|
} | undefined;
|
|
6885
6935
|
publishStatus: PublishStatus;
|
|
6886
6936
|
}>;
|
|
6887
|
-
declare function updateContent$1(httpClient: HttpClient): (content: Content) => Promise<Content & {
|
|
6937
|
+
declare function updateContent$1(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
|
|
6888
6938
|
schemaId: string;
|
|
6889
6939
|
entityId: string;
|
|
6890
6940
|
locale: string;
|
|
@@ -7367,26 +7417,26 @@ declare function updateContent$1(httpClient: HttpClient): (content: Content) =>
|
|
|
7367
7417
|
} | undefined;
|
|
7368
7418
|
publishStatus: PublishStatus;
|
|
7369
7419
|
}>;
|
|
7370
|
-
declare function deleteContent$1(httpClient: HttpClient): (contentId: string) => Promise<void>;
|
|
7371
|
-
declare function queryContents$1(httpClient: HttpClient): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
|
|
7372
|
-
declare function bulkCreateContent$1(httpClient: HttpClient): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
|
|
7373
|
-
declare function bulkUpdateContent$1(httpClient: HttpClient): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
|
|
7374
|
-
declare function bulkDeleteContent$1(httpClient: HttpClient): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
|
|
7375
|
-
declare const onContentCreated$1: EventDefinition<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
|
|
7376
|
-
declare const onContentUpdated$1: EventDefinition<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
|
|
7377
|
-
declare const onContentDeleted$1: EventDefinition<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
|
|
7420
|
+
declare function deleteContent$1(httpClient: HttpClient$1): (contentId: string) => Promise<void>;
|
|
7421
|
+
declare function queryContents$1(httpClient: HttpClient$1): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
|
|
7422
|
+
declare function bulkCreateContent$1(httpClient: HttpClient$1): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
|
|
7423
|
+
declare function bulkUpdateContent$1(httpClient: HttpClient$1): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
|
|
7424
|
+
declare function bulkDeleteContent$1(httpClient: HttpClient$1): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
|
|
7425
|
+
declare const onContentCreated$1: EventDefinition$1<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
|
|
7426
|
+
declare const onContentUpdated$1: EventDefinition$1<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
|
|
7427
|
+
declare const onContentDeleted$1: EventDefinition$1<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
|
|
7378
7428
|
|
|
7379
|
-
declare const createContent: BuildRESTFunction<typeof createContent$1>;
|
|
7380
|
-
declare const getContent: BuildRESTFunction<typeof getContent$1>;
|
|
7381
|
-
declare const updateContent: BuildRESTFunction<typeof updateContent$1>;
|
|
7382
|
-
declare const deleteContent: BuildRESTFunction<typeof deleteContent$1>;
|
|
7383
|
-
declare const queryContents: BuildRESTFunction<typeof queryContents$1>;
|
|
7384
|
-
declare const bulkCreateContent: BuildRESTFunction<typeof bulkCreateContent$1>;
|
|
7385
|
-
declare const bulkUpdateContent: BuildRESTFunction<typeof bulkUpdateContent$1>;
|
|
7386
|
-
declare const bulkDeleteContent: BuildRESTFunction<typeof bulkDeleteContent$1>;
|
|
7387
|
-
declare const onContentCreated: BuildEventDefinition<typeof onContentCreated$1>;
|
|
7388
|
-
declare const onContentUpdated: BuildEventDefinition<typeof onContentUpdated$1>;
|
|
7389
|
-
declare const onContentDeleted: BuildEventDefinition<typeof onContentDeleted$1>;
|
|
7429
|
+
declare const createContent: BuildRESTFunction$1<typeof createContent$1>;
|
|
7430
|
+
declare const getContent: BuildRESTFunction$1<typeof getContent$1>;
|
|
7431
|
+
declare const updateContent: BuildRESTFunction$1<typeof updateContent$1>;
|
|
7432
|
+
declare const deleteContent: BuildRESTFunction$1<typeof deleteContent$1>;
|
|
7433
|
+
declare const queryContents: BuildRESTFunction$1<typeof queryContents$1>;
|
|
7434
|
+
declare const bulkCreateContent: BuildRESTFunction$1<typeof bulkCreateContent$1>;
|
|
7435
|
+
declare const bulkUpdateContent: BuildRESTFunction$1<typeof bulkUpdateContent$1>;
|
|
7436
|
+
declare const bulkDeleteContent: BuildRESTFunction$1<typeof bulkDeleteContent$1>;
|
|
7437
|
+
declare const onContentCreated: BuildEventDefinition$1<typeof onContentCreated$1>;
|
|
7438
|
+
declare const onContentUpdated: BuildEventDefinition$1<typeof onContentUpdated$1>;
|
|
7439
|
+
declare const onContentDeleted: BuildEventDefinition$1<typeof onContentDeleted$1>;
|
|
7390
7440
|
|
|
7391
7441
|
declare const context$1_bulkCreateContent: typeof bulkCreateContent;
|
|
7392
7442
|
declare const context$1_bulkDeleteContent: typeof bulkDeleteContent;
|
|
@@ -7733,6 +7783,41 @@ interface ListSiteSchemasOptions {
|
|
|
7733
7783
|
paging?: CursorPaging;
|
|
7734
7784
|
}
|
|
7735
7785
|
|
|
7786
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
7787
|
+
interface HttpClient {
|
|
7788
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
7789
|
+
}
|
|
7790
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
7791
|
+
type HttpResponse<T = any> = {
|
|
7792
|
+
data: T;
|
|
7793
|
+
status: number;
|
|
7794
|
+
statusText: string;
|
|
7795
|
+
headers: any;
|
|
7796
|
+
request?: any;
|
|
7797
|
+
};
|
|
7798
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
7799
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
7800
|
+
url: string;
|
|
7801
|
+
data?: Data;
|
|
7802
|
+
params?: URLSearchParams;
|
|
7803
|
+
} & APIMetadata;
|
|
7804
|
+
type APIMetadata = {
|
|
7805
|
+
methodFqn?: string;
|
|
7806
|
+
entityFqdn?: string;
|
|
7807
|
+
packageName?: string;
|
|
7808
|
+
};
|
|
7809
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
7810
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
7811
|
+
__type: 'event-definition';
|
|
7812
|
+
type: Type;
|
|
7813
|
+
isDomainEvent?: boolean;
|
|
7814
|
+
transformations?: unknown;
|
|
7815
|
+
__payload: Payload;
|
|
7816
|
+
};
|
|
7817
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
7818
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
7819
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
7820
|
+
|
|
7736
7821
|
declare function getSchema$1(httpClient: HttpClient): (schemaId: string) => Promise<Schema & {
|
|
7737
7822
|
key?: {
|
|
7738
7823
|
appId: string;
|
|
@@ -2572,42 +2572,34 @@ interface BulkMachineTranslateOptions {
|
|
|
2572
2572
|
contentToTranslate?: TranslatableContent[];
|
|
2573
2573
|
}
|
|
2574
2574
|
|
|
2575
|
-
interface HttpClient {
|
|
2576
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2575
|
+
interface HttpClient$3 {
|
|
2576
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
2577
2577
|
}
|
|
2578
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2579
|
-
type HttpResponse<T = any> = {
|
|
2578
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
2579
|
+
type HttpResponse$3<T = any> = {
|
|
2580
2580
|
data: T;
|
|
2581
2581
|
status: number;
|
|
2582
2582
|
statusText: string;
|
|
2583
2583
|
headers: any;
|
|
2584
2584
|
request?: any;
|
|
2585
2585
|
};
|
|
2586
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2586
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
2587
2587
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2588
2588
|
url: string;
|
|
2589
2589
|
data?: Data;
|
|
2590
2590
|
params?: URLSearchParams;
|
|
2591
|
-
} & APIMetadata;
|
|
2592
|
-
type APIMetadata = {
|
|
2591
|
+
} & APIMetadata$3;
|
|
2592
|
+
type APIMetadata$3 = {
|
|
2593
2593
|
methodFqn?: string;
|
|
2594
2594
|
entityFqdn?: string;
|
|
2595
2595
|
packageName?: string;
|
|
2596
2596
|
};
|
|
2597
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
2598
|
-
__type: 'event-definition';
|
|
2599
|
-
type: Type;
|
|
2600
|
-
isDomainEvent?: boolean;
|
|
2601
|
-
transformations?: unknown;
|
|
2602
|
-
__payload: Payload;
|
|
2603
|
-
};
|
|
2604
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2605
2597
|
|
|
2606
2598
|
declare const __metadata$3: {
|
|
2607
2599
|
PACKAGE_NAME: string;
|
|
2608
2600
|
};
|
|
2609
|
-
declare function machineTranslate(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
|
|
2610
|
-
declare function bulkMachineTranslate(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
|
|
2601
|
+
declare function machineTranslate(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
|
|
2602
|
+
declare function bulkMachineTranslate(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
|
|
2611
2603
|
|
|
2612
2604
|
type index_d$3_BulkMachineTranslateOptions = BulkMachineTranslateOptions;
|
|
2613
2605
|
type index_d$3_BulkMachineTranslateRequest = BulkMachineTranslateRequest;
|
|
@@ -2952,11 +2944,34 @@ interface GetSiteTranslatablesPropertiesOptions {
|
|
|
2952
2944
|
translatedLanguage?: Locale;
|
|
2953
2945
|
}
|
|
2954
2946
|
|
|
2947
|
+
interface HttpClient$2 {
|
|
2948
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2949
|
+
}
|
|
2950
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2951
|
+
type HttpResponse$2<T = any> = {
|
|
2952
|
+
data: T;
|
|
2953
|
+
status: number;
|
|
2954
|
+
statusText: string;
|
|
2955
|
+
headers: any;
|
|
2956
|
+
request?: any;
|
|
2957
|
+
};
|
|
2958
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
2959
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2960
|
+
url: string;
|
|
2961
|
+
data?: Data;
|
|
2962
|
+
params?: URLSearchParams;
|
|
2963
|
+
} & APIMetadata$2;
|
|
2964
|
+
type APIMetadata$2 = {
|
|
2965
|
+
methodFqn?: string;
|
|
2966
|
+
entityFqdn?: string;
|
|
2967
|
+
packageName?: string;
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2955
2970
|
declare const __metadata$2: {
|
|
2956
2971
|
PACKAGE_NAME: string;
|
|
2957
2972
|
};
|
|
2958
|
-
declare function translateSite(httpClient: HttpClient): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
|
|
2959
|
-
declare function getSiteTranslatablesProperties(httpClient: HttpClient): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
|
|
2973
|
+
declare function translateSite(httpClient: HttpClient$2): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
|
|
2974
|
+
declare function getSiteTranslatablesProperties(httpClient: HttpClient$2): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
|
|
2960
2975
|
|
|
2961
2976
|
type index_d$2_ApplicationTranslatableProperties = ApplicationTranslatableProperties;
|
|
2962
2977
|
type index_d$2_Flag = Flag;
|
|
@@ -7960,10 +7975,41 @@ interface BulkUpdateContentOptions {
|
|
|
7960
7975
|
returnEntity?: boolean;
|
|
7961
7976
|
}
|
|
7962
7977
|
|
|
7978
|
+
interface HttpClient$1 {
|
|
7979
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
7980
|
+
}
|
|
7981
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
7982
|
+
type HttpResponse$1<T = any> = {
|
|
7983
|
+
data: T;
|
|
7984
|
+
status: number;
|
|
7985
|
+
statusText: string;
|
|
7986
|
+
headers: any;
|
|
7987
|
+
request?: any;
|
|
7988
|
+
};
|
|
7989
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
7990
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
7991
|
+
url: string;
|
|
7992
|
+
data?: Data;
|
|
7993
|
+
params?: URLSearchParams;
|
|
7994
|
+
} & APIMetadata$1;
|
|
7995
|
+
type APIMetadata$1 = {
|
|
7996
|
+
methodFqn?: string;
|
|
7997
|
+
entityFqdn?: string;
|
|
7998
|
+
packageName?: string;
|
|
7999
|
+
};
|
|
8000
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
8001
|
+
__type: 'event-definition';
|
|
8002
|
+
type: Type;
|
|
8003
|
+
isDomainEvent?: boolean;
|
|
8004
|
+
transformations?: unknown;
|
|
8005
|
+
__payload: Payload;
|
|
8006
|
+
};
|
|
8007
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
8008
|
+
|
|
7963
8009
|
declare const __metadata$1: {
|
|
7964
8010
|
PACKAGE_NAME: string;
|
|
7965
8011
|
};
|
|
7966
|
-
declare function createContent(httpClient: HttpClient): (content: Content) => Promise<Content & {
|
|
8012
|
+
declare function createContent(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
|
|
7967
8013
|
schemaId: string;
|
|
7968
8014
|
entityId: string;
|
|
7969
8015
|
locale: string;
|
|
@@ -8446,7 +8492,7 @@ declare function createContent(httpClient: HttpClient): (content: Content) => Pr
|
|
|
8446
8492
|
} | undefined;
|
|
8447
8493
|
publishStatus: PublishStatus;
|
|
8448
8494
|
}>;
|
|
8449
|
-
declare function getContent(httpClient: HttpClient): (contentId: string) => Promise<Content & {
|
|
8495
|
+
declare function getContent(httpClient: HttpClient$1): (contentId: string) => Promise<Content & {
|
|
8450
8496
|
schemaId: string;
|
|
8451
8497
|
entityId: string;
|
|
8452
8498
|
locale: string;
|
|
@@ -8929,7 +8975,7 @@ declare function getContent(httpClient: HttpClient): (contentId: string) => Prom
|
|
|
8929
8975
|
} | undefined;
|
|
8930
8976
|
publishStatus: PublishStatus;
|
|
8931
8977
|
}>;
|
|
8932
|
-
declare function updateContent(httpClient: HttpClient): (content: Content) => Promise<Content & {
|
|
8978
|
+
declare function updateContent(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
|
|
8933
8979
|
schemaId: string;
|
|
8934
8980
|
entityId: string;
|
|
8935
8981
|
locale: string;
|
|
@@ -9412,14 +9458,14 @@ declare function updateContent(httpClient: HttpClient): (content: Content) => Pr
|
|
|
9412
9458
|
} | undefined;
|
|
9413
9459
|
publishStatus: PublishStatus;
|
|
9414
9460
|
}>;
|
|
9415
|
-
declare function deleteContent(httpClient: HttpClient): (contentId: string) => Promise<void>;
|
|
9416
|
-
declare function queryContents(httpClient: HttpClient): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
|
|
9417
|
-
declare function bulkCreateContent(httpClient: HttpClient): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
|
|
9418
|
-
declare function bulkUpdateContent(httpClient: HttpClient): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
|
|
9419
|
-
declare function bulkDeleteContent(httpClient: HttpClient): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
|
|
9420
|
-
declare const onContentCreated: EventDefinition<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
|
|
9421
|
-
declare const onContentUpdated: EventDefinition<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
|
|
9422
|
-
declare const onContentDeleted: EventDefinition<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
|
|
9461
|
+
declare function deleteContent(httpClient: HttpClient$1): (contentId: string) => Promise<void>;
|
|
9462
|
+
declare function queryContents(httpClient: HttpClient$1): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
|
|
9463
|
+
declare function bulkCreateContent(httpClient: HttpClient$1): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
|
|
9464
|
+
declare function bulkUpdateContent(httpClient: HttpClient$1): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
|
|
9465
|
+
declare function bulkDeleteContent(httpClient: HttpClient$1): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
|
|
9466
|
+
declare const onContentCreated: EventDefinition$1<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
|
|
9467
|
+
declare const onContentUpdated: EventDefinition$1<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
|
|
9468
|
+
declare const onContentDeleted: EventDefinition$1<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
|
|
9423
9469
|
|
|
9424
9470
|
type index_d$1_Alignment = Alignment;
|
|
9425
9471
|
declare const index_d$1_Alignment: typeof Alignment;
|
|
@@ -10423,6 +10469,37 @@ interface ListSiteSchemasOptions {
|
|
|
10423
10469
|
paging?: CursorPaging;
|
|
10424
10470
|
}
|
|
10425
10471
|
|
|
10472
|
+
interface HttpClient {
|
|
10473
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
10474
|
+
}
|
|
10475
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
10476
|
+
type HttpResponse<T = any> = {
|
|
10477
|
+
data: T;
|
|
10478
|
+
status: number;
|
|
10479
|
+
statusText: string;
|
|
10480
|
+
headers: any;
|
|
10481
|
+
request?: any;
|
|
10482
|
+
};
|
|
10483
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
10484
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
10485
|
+
url: string;
|
|
10486
|
+
data?: Data;
|
|
10487
|
+
params?: URLSearchParams;
|
|
10488
|
+
} & APIMetadata;
|
|
10489
|
+
type APIMetadata = {
|
|
10490
|
+
methodFqn?: string;
|
|
10491
|
+
entityFqdn?: string;
|
|
10492
|
+
packageName?: string;
|
|
10493
|
+
};
|
|
10494
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
10495
|
+
__type: 'event-definition';
|
|
10496
|
+
type: Type;
|
|
10497
|
+
isDomainEvent?: boolean;
|
|
10498
|
+
transformations?: unknown;
|
|
10499
|
+
__payload: Payload;
|
|
10500
|
+
};
|
|
10501
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
10502
|
+
|
|
10426
10503
|
declare const __metadata: {
|
|
10427
10504
|
PACKAGE_NAME: string;
|
|
10428
10505
|
};
|