@wix/multilingual 1.0.12 → 1.0.13

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/multilingual",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "54c06307a12910de6b8f7abec60aba82e7d1a6aecd749a0193649051"
48
+ "falconPackageHash": "02e103a31faa01f8ee77d936cb0458cfec476a334283368ca4b48da5"
49
49
  }
@@ -2530,41 +2530,31 @@ interface BulkMachineTranslateOptions {
2530
2530
  contentToTranslate?: TranslatableContent[];
2531
2531
  }
2532
2532
 
2533
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2534
- interface HttpClient {
2535
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
2533
+ type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
2534
+ interface HttpClient$3 {
2535
+ request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
2536
2536
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2537
2537
  }
2538
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
2539
- type HttpResponse<T = any> = {
2538
+ type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
2539
+ type HttpResponse$3<T = any> = {
2540
2540
  data: T;
2541
2541
  status: number;
2542
2542
  statusText: string;
2543
2543
  headers: any;
2544
2544
  request?: any;
2545
2545
  };
2546
- type RequestOptions<_TResponse = any, Data = any> = {
2546
+ type RequestOptions$3<_TResponse = any, Data = any> = {
2547
2547
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2548
2548
  url: string;
2549
2549
  data?: Data;
2550
2550
  params?: URLSearchParams;
2551
- } & APIMetadata;
2552
- type APIMetadata = {
2551
+ } & APIMetadata$3;
2552
+ type APIMetadata$3 = {
2553
2553
  methodFqn?: string;
2554
2554
  entityFqdn?: string;
2555
2555
  packageName?: string;
2556
2556
  };
2557
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
2558
- type EventDefinition<Payload = unknown, Type extends string = string> = {
2559
- __type: 'event-definition';
2560
- type: Type;
2561
- isDomainEvent?: boolean;
2562
- transformations?: (envelope: unknown) => Payload;
2563
- __payload: Payload;
2564
- };
2565
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
2566
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
2567
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
2557
+ type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
2568
2558
 
2569
2559
  declare global {
2570
2560
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -2573,11 +2563,11 @@ declare global {
2573
2563
  }
2574
2564
  }
2575
2565
 
2576
- declare function machineTranslate$1(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
2577
- declare function bulkMachineTranslate$1(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
2566
+ declare function machineTranslate$1(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
2567
+ declare function bulkMachineTranslate$1(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
2578
2568
 
2579
- declare const machineTranslate: BuildRESTFunction<typeof machineTranslate$1>;
2580
- declare const bulkMachineTranslate: BuildRESTFunction<typeof bulkMachineTranslate$1>;
2569
+ declare const machineTranslate: BuildRESTFunction$3<typeof machineTranslate$1>;
2570
+ declare const bulkMachineTranslate: BuildRESTFunction$3<typeof bulkMachineTranslate$1>;
2581
2571
 
2582
2572
  declare const context$3_bulkMachineTranslate: typeof bulkMachineTranslate;
2583
2573
  declare const context$3_machineTranslate: typeof machineTranslate;
@@ -2890,11 +2880,44 @@ interface GetSiteTranslatablesPropertiesOptions {
2890
2880
  translatedLanguage?: Locale;
2891
2881
  }
2892
2882
 
2893
- declare function translateSite$1(httpClient: HttpClient): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
2894
- declare function getSiteTranslatablesProperties$1(httpClient: HttpClient): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
2883
+ type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
2884
+ interface HttpClient$2 {
2885
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
2886
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2887
+ }
2888
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
2889
+ type HttpResponse$2<T = any> = {
2890
+ data: T;
2891
+ status: number;
2892
+ statusText: string;
2893
+ headers: any;
2894
+ request?: any;
2895
+ };
2896
+ type RequestOptions$2<_TResponse = any, Data = any> = {
2897
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2898
+ url: string;
2899
+ data?: Data;
2900
+ params?: URLSearchParams;
2901
+ } & APIMetadata$2;
2902
+ type APIMetadata$2 = {
2903
+ methodFqn?: string;
2904
+ entityFqdn?: string;
2905
+ packageName?: string;
2906
+ };
2907
+ type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
2908
+
2909
+ declare global {
2910
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2911
+ interface SymbolConstructor {
2912
+ readonly observable: symbol;
2913
+ }
2914
+ }
2915
+
2916
+ declare function translateSite$1(httpClient: HttpClient$2): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
2917
+ declare function getSiteTranslatablesProperties$1(httpClient: HttpClient$2): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
2895
2918
 
2896
- declare const translateSite: BuildRESTFunction<typeof translateSite$1>;
2897
- declare const getSiteTranslatablesProperties: BuildRESTFunction<typeof getSiteTranslatablesProperties$1>;
2919
+ declare const translateSite: BuildRESTFunction$2<typeof translateSite$1>;
2920
+ declare const getSiteTranslatablesProperties: BuildRESTFunction$2<typeof getSiteTranslatablesProperties$1>;
2898
2921
 
2899
2922
  declare const context$2_getSiteTranslatablesProperties: typeof getSiteTranslatablesProperties;
2900
2923
  declare const context$2_translateSite: typeof translateSite;
@@ -5936,7 +5959,50 @@ interface BulkUpdateContentOptions {
5936
5959
  returnEntity?: boolean;
5937
5960
  }
5938
5961
 
5939
- declare function createContent$1(httpClient: HttpClient): (content: Content) => Promise<Content & {
5962
+ type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
5963
+ interface HttpClient$1 {
5964
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
5965
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
5966
+ }
5967
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
5968
+ type HttpResponse$1<T = any> = {
5969
+ data: T;
5970
+ status: number;
5971
+ statusText: string;
5972
+ headers: any;
5973
+ request?: any;
5974
+ };
5975
+ type RequestOptions$1<_TResponse = any, Data = any> = {
5976
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
5977
+ url: string;
5978
+ data?: Data;
5979
+ params?: URLSearchParams;
5980
+ } & APIMetadata$1;
5981
+ type APIMetadata$1 = {
5982
+ methodFqn?: string;
5983
+ entityFqdn?: string;
5984
+ packageName?: string;
5985
+ };
5986
+ type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
5987
+ type EventDefinition$1<Payload = unknown, Type extends string = string> = {
5988
+ __type: 'event-definition';
5989
+ type: Type;
5990
+ isDomainEvent?: boolean;
5991
+ transformations?: (envelope: unknown) => Payload;
5992
+ __payload: Payload;
5993
+ };
5994
+ declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
5995
+ type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
5996
+ type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
5997
+
5998
+ declare global {
5999
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6000
+ interface SymbolConstructor {
6001
+ readonly observable: symbol;
6002
+ }
6003
+ }
6004
+
6005
+ declare function createContent$1(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
5940
6006
  schemaId: string;
5941
6007
  entityId: string;
5942
6008
  locale: string;
@@ -6419,7 +6485,7 @@ declare function createContent$1(httpClient: HttpClient): (content: Content) =>
6419
6485
  } | undefined;
6420
6486
  publishStatus: PublishStatus;
6421
6487
  }>;
6422
- declare function getContent$1(httpClient: HttpClient): (contentId: string) => Promise<Content & {
6488
+ declare function getContent$1(httpClient: HttpClient$1): (contentId: string) => Promise<Content & {
6423
6489
  schemaId: string;
6424
6490
  entityId: string;
6425
6491
  locale: string;
@@ -6902,7 +6968,7 @@ declare function getContent$1(httpClient: HttpClient): (contentId: string) => Pr
6902
6968
  } | undefined;
6903
6969
  publishStatus: PublishStatus;
6904
6970
  }>;
6905
- declare function updateContent$1(httpClient: HttpClient): (content: Content) => Promise<Content & {
6971
+ declare function updateContent$1(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
6906
6972
  schemaId: string;
6907
6973
  entityId: string;
6908
6974
  locale: string;
@@ -7385,26 +7451,26 @@ declare function updateContent$1(httpClient: HttpClient): (content: Content) =>
7385
7451
  } | undefined;
7386
7452
  publishStatus: PublishStatus;
7387
7453
  }>;
7388
- declare function deleteContent$1(httpClient: HttpClient): (contentId: string) => Promise<void>;
7389
- declare function queryContents$1(httpClient: HttpClient): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
7390
- declare function bulkCreateContent$1(httpClient: HttpClient): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
7391
- declare function bulkUpdateContent$1(httpClient: HttpClient): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
7392
- declare function bulkDeleteContent$1(httpClient: HttpClient): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
7393
- declare const onContentCreated$1: EventDefinition<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
7394
- declare const onContentUpdated$1: EventDefinition<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
7395
- declare const onContentDeleted$1: EventDefinition<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
7454
+ declare function deleteContent$1(httpClient: HttpClient$1): (contentId: string) => Promise<void>;
7455
+ declare function queryContents$1(httpClient: HttpClient$1): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
7456
+ declare function bulkCreateContent$1(httpClient: HttpClient$1): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
7457
+ declare function bulkUpdateContent$1(httpClient: HttpClient$1): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
7458
+ declare function bulkDeleteContent$1(httpClient: HttpClient$1): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
7459
+ declare const onContentCreated$1: EventDefinition$1<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
7460
+ declare const onContentUpdated$1: EventDefinition$1<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
7461
+ declare const onContentDeleted$1: EventDefinition$1<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
7396
7462
 
7397
- declare const createContent: BuildRESTFunction<typeof createContent$1>;
7398
- declare const getContent: BuildRESTFunction<typeof getContent$1>;
7399
- declare const updateContent: BuildRESTFunction<typeof updateContent$1>;
7400
- declare const deleteContent: BuildRESTFunction<typeof deleteContent$1>;
7401
- declare const queryContents: BuildRESTFunction<typeof queryContents$1>;
7402
- declare const bulkCreateContent: BuildRESTFunction<typeof bulkCreateContent$1>;
7403
- declare const bulkUpdateContent: BuildRESTFunction<typeof bulkUpdateContent$1>;
7404
- declare const bulkDeleteContent: BuildRESTFunction<typeof bulkDeleteContent$1>;
7405
- declare const onContentCreated: BuildEventDefinition<typeof onContentCreated$1>;
7406
- declare const onContentUpdated: BuildEventDefinition<typeof onContentUpdated$1>;
7407
- declare const onContentDeleted: BuildEventDefinition<typeof onContentDeleted$1>;
7463
+ declare const createContent: BuildRESTFunction$1<typeof createContent$1>;
7464
+ declare const getContent: BuildRESTFunction$1<typeof getContent$1>;
7465
+ declare const updateContent: BuildRESTFunction$1<typeof updateContent$1>;
7466
+ declare const deleteContent: BuildRESTFunction$1<typeof deleteContent$1>;
7467
+ declare const queryContents: BuildRESTFunction$1<typeof queryContents$1>;
7468
+ declare const bulkCreateContent: BuildRESTFunction$1<typeof bulkCreateContent$1>;
7469
+ declare const bulkUpdateContent: BuildRESTFunction$1<typeof bulkUpdateContent$1>;
7470
+ declare const bulkDeleteContent: BuildRESTFunction$1<typeof bulkDeleteContent$1>;
7471
+ declare const onContentCreated: BuildEventDefinition$1<typeof onContentCreated$1>;
7472
+ declare const onContentUpdated: BuildEventDefinition$1<typeof onContentUpdated$1>;
7473
+ declare const onContentDeleted: BuildEventDefinition$1<typeof onContentDeleted$1>;
7408
7474
 
7409
7475
  declare const context$1_bulkCreateContent: typeof bulkCreateContent;
7410
7476
  declare const context$1_bulkDeleteContent: typeof bulkDeleteContent;
@@ -7751,6 +7817,49 @@ interface ListSiteSchemasOptions {
7751
7817
  paging?: CursorPaging;
7752
7818
  }
7753
7819
 
7820
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
7821
+ interface HttpClient {
7822
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
7823
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
7824
+ }
7825
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
7826
+ type HttpResponse<T = any> = {
7827
+ data: T;
7828
+ status: number;
7829
+ statusText: string;
7830
+ headers: any;
7831
+ request?: any;
7832
+ };
7833
+ type RequestOptions<_TResponse = any, Data = any> = {
7834
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
7835
+ url: string;
7836
+ data?: Data;
7837
+ params?: URLSearchParams;
7838
+ } & APIMetadata;
7839
+ type APIMetadata = {
7840
+ methodFqn?: string;
7841
+ entityFqdn?: string;
7842
+ packageName?: string;
7843
+ };
7844
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
7845
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
7846
+ __type: 'event-definition';
7847
+ type: Type;
7848
+ isDomainEvent?: boolean;
7849
+ transformations?: (envelope: unknown) => Payload;
7850
+ __payload: Payload;
7851
+ };
7852
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
7853
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
7854
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
7855
+
7856
+ declare global {
7857
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
7858
+ interface SymbolConstructor {
7859
+ readonly observable: symbol;
7860
+ }
7861
+ }
7862
+
7754
7863
  declare function getSchema$1(httpClient: HttpClient): (schemaId: string) => Promise<Schema & {
7755
7864
  key?: {
7756
7865
  appId: string;
@@ -2577,37 +2577,29 @@ interface BulkMachineTranslateOptions {
2577
2577
  contentToTranslate?: TranslatableContent[];
2578
2578
  }
2579
2579
 
2580
- interface HttpClient {
2581
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
2580
+ interface HttpClient$3 {
2581
+ request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
2582
2582
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2583
2583
  }
2584
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
2585
- type HttpResponse<T = any> = {
2584
+ type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
2585
+ type HttpResponse$3<T = any> = {
2586
2586
  data: T;
2587
2587
  status: number;
2588
2588
  statusText: string;
2589
2589
  headers: any;
2590
2590
  request?: any;
2591
2591
  };
2592
- type RequestOptions<_TResponse = any, Data = any> = {
2592
+ type RequestOptions$3<_TResponse = any, Data = any> = {
2593
2593
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2594
2594
  url: string;
2595
2595
  data?: Data;
2596
2596
  params?: URLSearchParams;
2597
- } & APIMetadata;
2598
- type APIMetadata = {
2597
+ } & APIMetadata$3;
2598
+ type APIMetadata$3 = {
2599
2599
  methodFqn?: string;
2600
2600
  entityFqdn?: string;
2601
2601
  packageName?: string;
2602
2602
  };
2603
- type EventDefinition<Payload = unknown, Type extends string = string> = {
2604
- __type: 'event-definition';
2605
- type: Type;
2606
- isDomainEvent?: boolean;
2607
- transformations?: (envelope: unknown) => Payload;
2608
- __payload: Payload;
2609
- };
2610
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
2611
2603
 
2612
2604
  declare global {
2613
2605
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -2619,8 +2611,8 @@ declare global {
2619
2611
  declare const __metadata$3: {
2620
2612
  PACKAGE_NAME: string;
2621
2613
  };
2622
- declare function machineTranslate(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
2623
- declare function bulkMachineTranslate(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
2614
+ declare function machineTranslate(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
2615
+ declare function bulkMachineTranslate(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
2624
2616
 
2625
2617
  type index_d$3_BulkMachineTranslateOptions = BulkMachineTranslateOptions;
2626
2618
  type index_d$3_BulkMachineTranslateRequest = BulkMachineTranslateRequest;
@@ -2965,11 +2957,42 @@ interface GetSiteTranslatablesPropertiesOptions {
2965
2957
  translatedLanguage?: Locale;
2966
2958
  }
2967
2959
 
2960
+ interface HttpClient$2 {
2961
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
2962
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2963
+ }
2964
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
2965
+ type HttpResponse$2<T = any> = {
2966
+ data: T;
2967
+ status: number;
2968
+ statusText: string;
2969
+ headers: any;
2970
+ request?: any;
2971
+ };
2972
+ type RequestOptions$2<_TResponse = any, Data = any> = {
2973
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2974
+ url: string;
2975
+ data?: Data;
2976
+ params?: URLSearchParams;
2977
+ } & APIMetadata$2;
2978
+ type APIMetadata$2 = {
2979
+ methodFqn?: string;
2980
+ entityFqdn?: string;
2981
+ packageName?: string;
2982
+ };
2983
+
2984
+ declare global {
2985
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2986
+ interface SymbolConstructor {
2987
+ readonly observable: symbol;
2988
+ }
2989
+ }
2990
+
2968
2991
  declare const __metadata$2: {
2969
2992
  PACKAGE_NAME: string;
2970
2993
  };
2971
- declare function translateSite(httpClient: HttpClient): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
2972
- declare function getSiteTranslatablesProperties(httpClient: HttpClient): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
2994
+ declare function translateSite(httpClient: HttpClient$2): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
2995
+ declare function getSiteTranslatablesProperties(httpClient: HttpClient$2): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
2973
2996
 
2974
2997
  type index_d$2_ApplicationTranslatableProperties = ApplicationTranslatableProperties;
2975
2998
  type index_d$2_Flag = Flag;
@@ -7981,10 +8004,49 @@ interface BulkUpdateContentOptions {
7981
8004
  returnEntity?: boolean;
7982
8005
  }
7983
8006
 
8007
+ interface HttpClient$1 {
8008
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
8009
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
8010
+ }
8011
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
8012
+ type HttpResponse$1<T = any> = {
8013
+ data: T;
8014
+ status: number;
8015
+ statusText: string;
8016
+ headers: any;
8017
+ request?: any;
8018
+ };
8019
+ type RequestOptions$1<_TResponse = any, Data = any> = {
8020
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
8021
+ url: string;
8022
+ data?: Data;
8023
+ params?: URLSearchParams;
8024
+ } & APIMetadata$1;
8025
+ type APIMetadata$1 = {
8026
+ methodFqn?: string;
8027
+ entityFqdn?: string;
8028
+ packageName?: string;
8029
+ };
8030
+ type EventDefinition$1<Payload = unknown, Type extends string = string> = {
8031
+ __type: 'event-definition';
8032
+ type: Type;
8033
+ isDomainEvent?: boolean;
8034
+ transformations?: (envelope: unknown) => Payload;
8035
+ __payload: Payload;
8036
+ };
8037
+ declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
8038
+
8039
+ declare global {
8040
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
8041
+ interface SymbolConstructor {
8042
+ readonly observable: symbol;
8043
+ }
8044
+ }
8045
+
7984
8046
  declare const __metadata$1: {
7985
8047
  PACKAGE_NAME: string;
7986
8048
  };
7987
- declare function createContent(httpClient: HttpClient): (content: Content) => Promise<Content & {
8049
+ declare function createContent(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
7988
8050
  schemaId: string;
7989
8051
  entityId: string;
7990
8052
  locale: string;
@@ -8467,7 +8529,7 @@ declare function createContent(httpClient: HttpClient): (content: Content) => Pr
8467
8529
  } | undefined;
8468
8530
  publishStatus: PublishStatus;
8469
8531
  }>;
8470
- declare function getContent(httpClient: HttpClient): (contentId: string) => Promise<Content & {
8532
+ declare function getContent(httpClient: HttpClient$1): (contentId: string) => Promise<Content & {
8471
8533
  schemaId: string;
8472
8534
  entityId: string;
8473
8535
  locale: string;
@@ -8950,7 +9012,7 @@ declare function getContent(httpClient: HttpClient): (contentId: string) => Prom
8950
9012
  } | undefined;
8951
9013
  publishStatus: PublishStatus;
8952
9014
  }>;
8953
- declare function updateContent(httpClient: HttpClient): (content: Content) => Promise<Content & {
9015
+ declare function updateContent(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
8954
9016
  schemaId: string;
8955
9017
  entityId: string;
8956
9018
  locale: string;
@@ -9433,14 +9495,14 @@ declare function updateContent(httpClient: HttpClient): (content: Content) => Pr
9433
9495
  } | undefined;
9434
9496
  publishStatus: PublishStatus;
9435
9497
  }>;
9436
- declare function deleteContent(httpClient: HttpClient): (contentId: string) => Promise<void>;
9437
- declare function queryContents(httpClient: HttpClient): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
9438
- declare function bulkCreateContent(httpClient: HttpClient): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
9439
- declare function bulkUpdateContent(httpClient: HttpClient): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
9440
- declare function bulkDeleteContent(httpClient: HttpClient): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
9441
- declare const onContentCreated: EventDefinition<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
9442
- declare const onContentUpdated: EventDefinition<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
9443
- declare const onContentDeleted: EventDefinition<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
9498
+ declare function deleteContent(httpClient: HttpClient$1): (contentId: string) => Promise<void>;
9499
+ declare function queryContents(httpClient: HttpClient$1): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
9500
+ declare function bulkCreateContent(httpClient: HttpClient$1): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
9501
+ declare function bulkUpdateContent(httpClient: HttpClient$1): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
9502
+ declare function bulkDeleteContent(httpClient: HttpClient$1): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
9503
+ declare const onContentCreated: EventDefinition$1<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
9504
+ declare const onContentUpdated: EventDefinition$1<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
9505
+ declare const onContentDeleted: EventDefinition$1<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
9444
9506
 
9445
9507
  type index_d$1_Alignment = Alignment;
9446
9508
  declare const index_d$1_Alignment: typeof Alignment;
@@ -10445,6 +10507,45 @@ interface ListSiteSchemasOptions {
10445
10507
  paging?: CursorPaging;
10446
10508
  }
10447
10509
 
10510
+ interface HttpClient {
10511
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
10512
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
10513
+ }
10514
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
10515
+ type HttpResponse<T = any> = {
10516
+ data: T;
10517
+ status: number;
10518
+ statusText: string;
10519
+ headers: any;
10520
+ request?: any;
10521
+ };
10522
+ type RequestOptions<_TResponse = any, Data = any> = {
10523
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
10524
+ url: string;
10525
+ data?: Data;
10526
+ params?: URLSearchParams;
10527
+ } & APIMetadata;
10528
+ type APIMetadata = {
10529
+ methodFqn?: string;
10530
+ entityFqdn?: string;
10531
+ packageName?: string;
10532
+ };
10533
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
10534
+ __type: 'event-definition';
10535
+ type: Type;
10536
+ isDomainEvent?: boolean;
10537
+ transformations?: (envelope: unknown) => Payload;
10538
+ __payload: Payload;
10539
+ };
10540
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
10541
+
10542
+ declare global {
10543
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
10544
+ interface SymbolConstructor {
10545
+ readonly observable: symbol;
10546
+ }
10547
+ }
10548
+
10448
10549
  declare const __metadata: {
10449
10550
  PACKAGE_NAME: string;
10450
10551
  };