@wix/auto_sdk_blog_blog-cache 1.0.12 → 1.0.14
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/{internal/cjs/src/blog-v1-blog-cache-blog-cache.universal.d.ts → blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.d.mts} +50 -60
- package/build/{cjs/src/blog-v1-blog-cache-blog-cache.universal.d.ts → blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.d.ts} +50 -60
- package/build/index.d.mts +15 -0
- package/build/index.d.ts +15 -0
- package/build/index.js +468 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +439 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/blog-v1-blog-cache-blog-cache.universal.d.ts → blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.d.mts} +50 -60
- package/build/{es/src/blog-v1-blog-cache-blog-cache.universal.d.ts → internal/blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.d.ts} +50 -60
- package/build/internal/index.d.mts +15 -0
- package/build/internal/index.d.ts +15 -0
- package/build/internal/index.js +468 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +439 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +373 -0
- package/build/internal/meta.d.ts +373 -0
- package/build/internal/meta.js +158 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +131 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +373 -0
- package/build/meta.d.ts +373 -0
- package/build/meta.js +158 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +131 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.context.d.ts +0 -5
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.context.js +0 -13
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.context.js.map +0 -1
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.http.d.ts +0 -3
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.http.js +0 -112
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.http.js.map +0 -1
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.meta.d.ts +0 -13
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.meta.js +0 -47
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.meta.js.map +0 -1
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.public.d.ts +0 -13
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.public.js +0 -18
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.public.js.map +0 -1
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.types.d.ts +0 -712
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.types.js +0 -289
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.types.js.map +0 -1
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.universal.js +0 -345
- package/build/cjs/src/blog-v1-blog-cache-blog-cache.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/blog-v1-blog-cache-blog-cache.context.d.ts +0 -5
- package/build/es/src/blog-v1-blog-cache-blog-cache.context.js +0 -5
- package/build/es/src/blog-v1-blog-cache-blog-cache.context.js.map +0 -1
- package/build/es/src/blog-v1-blog-cache-blog-cache.http.d.ts +0 -3
- package/build/es/src/blog-v1-blog-cache-blog-cache.http.js +0 -108
- package/build/es/src/blog-v1-blog-cache-blog-cache.http.js.map +0 -1
- package/build/es/src/blog-v1-blog-cache-blog-cache.meta.d.ts +0 -13
- package/build/es/src/blog-v1-blog-cache-blog-cache.meta.js +0 -20
- package/build/es/src/blog-v1-blog-cache-blog-cache.meta.js.map +0 -1
- package/build/es/src/blog-v1-blog-cache-blog-cache.public.d.ts +0 -13
- package/build/es/src/blog-v1-blog-cache-blog-cache.public.js +0 -9
- package/build/es/src/blog-v1-blog-cache-blog-cache.public.js.map +0 -1
- package/build/es/src/blog-v1-blog-cache-blog-cache.types.d.ts +0 -712
- package/build/es/src/blog-v1-blog-cache-blog-cache.types.js +0 -286
- package/build/es/src/blog-v1-blog-cache-blog-cache.types.js.map +0 -1
- package/build/es/src/blog-v1-blog-cache-blog-cache.universal.js +0 -318
- package/build/es/src/blog-v1-blog-cache-blog-cache.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.context.d.ts +0 -5
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.context.js +0 -13
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.context.js.map +0 -1
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.http.d.ts +0 -3
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.http.js +0 -112
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.http.js.map +0 -1
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.meta.d.ts +0 -13
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.meta.js +0 -47
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.public.d.ts +0 -13
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.public.js +0 -18
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.public.js.map +0 -1
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.types.d.ts +0 -712
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.types.js +0 -289
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.types.js.map +0 -1
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.universal.js +0 -345
- package/build/internal/cjs/src/blog-v1-blog-cache-blog-cache.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.context.d.ts +0 -5
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.context.js +0 -5
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.context.js.map +0 -1
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.http.d.ts +0 -3
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.http.js +0 -108
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.http.js.map +0 -1
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.meta.d.ts +0 -13
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.meta.js +0 -20
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.meta.js.map +0 -1
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.public.d.ts +0 -13
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.public.js +0 -9
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.public.js.map +0 -1
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.types.d.ts +0 -712
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.types.js +0 -286
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.types.js.map +0 -1
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.universal.js +0 -318
- package/build/internal/es/src/blog-v1-blog-cache-blog-cache.universal.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
1
|
/** BlogCache is the main entity of BlogCacheService */
|
|
3
|
-
|
|
2
|
+
interface BlogCache {
|
|
4
3
|
/**
|
|
5
4
|
* MetaSite ID.
|
|
6
5
|
* @format GUID
|
|
@@ -19,7 +18,7 @@ export interface BlogCache {
|
|
|
19
18
|
*/
|
|
20
19
|
_updatedDate?: Date | null;
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
interface SiteSupportedLanguage {
|
|
23
22
|
/**
|
|
24
23
|
* Language code
|
|
25
24
|
* @format LANGUAGE
|
|
@@ -32,7 +31,7 @@ export interface SiteSupportedLanguage {
|
|
|
32
31
|
/** Resolution method. */
|
|
33
32
|
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
declare enum LocaleStatus {
|
|
36
35
|
/** Value not specified */
|
|
37
36
|
UNDEFINED_STATUS = "UNDEFINED_STATUS",
|
|
38
37
|
/** Locale was added to site but was not activated */
|
|
@@ -43,8 +42,8 @@ export declare enum LocaleStatus {
|
|
|
43
42
|
DEFAULT = "DEFAULT"
|
|
44
43
|
}
|
|
45
44
|
/** @enumType */
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
type LocaleStatusWithLiterals = LocaleStatus | 'UNDEFINED_STATUS' | 'INACTIVE' | 'ACTIVE' | 'DEFAULT';
|
|
46
|
+
declare enum Flag {
|
|
48
47
|
UNDEFINED_FLAG_CODE = "UNDEFINED_FLAG_CODE",
|
|
49
48
|
AFG = "AFG",
|
|
50
49
|
AGO = "AGO",
|
|
@@ -294,15 +293,15 @@ export declare enum Flag {
|
|
|
294
293
|
ZWE = "ZWE"
|
|
295
294
|
}
|
|
296
295
|
/** @enumType */
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
type FlagWithLiterals = Flag | 'UNDEFINED_FLAG_CODE' | 'AFG' | 'AGO' | 'AIA' | 'ALA' | 'ALB' | 'AND' | 'ARE' | 'ARG' | 'ARM' | 'ASM' | 'ATF' | 'ATG' | 'AUS' | 'AUT' | 'AZE' | 'BDI' | 'BEL' | 'BEN' | 'BES' | 'BFA' | 'BGD' | 'BGR' | 'BHR' | 'BHS' | 'BIH' | 'BLM' | 'BLR' | 'BLZ' | 'BMU' | 'BOL' | 'BRA' | 'BRB' | 'BRN' | 'BRT' | 'BTN' | 'BWA' | 'CAF' | 'CAN' | 'CAT' | 'CHE' | 'CHL' | 'CHN' | 'CIV' | 'CMR' | 'COD' | 'COG' | 'COL' | 'COM' | 'COR' | 'CPV' | 'CRI' | 'CUB' | 'CUW' | 'CYM' | 'CZE' | 'DEU' | 'DJI' | 'DMA' | 'DNK' | 'DOM' | 'DZA' | 'ECU' | 'EGY' | 'ERI' | 'ESP' | 'EST' | 'ETH' | 'EUR' | 'EUS' | 'FIN' | 'FJI' | 'FLK' | 'FRA' | 'FRO' | 'FSM' | 'GAB' | 'GBR' | 'GEO' | 'GGY' | 'GHA' | 'GIB' | 'GIN' | 'GLG' | 'GLO' | 'GLP' | 'GMB' | 'GNB' | 'GNQ' | 'GRC' | 'GRD' | 'GRL' | 'GTM' | 'GUM' | 'GUY' | 'HKG' | 'HND' | 'HRV' | 'HTI' | 'HUN' | 'IDN' | 'IMN' | 'IND' | 'IOT' | 'IRL' | 'IRN' | 'IRQ' | 'ISL' | 'ISR' | 'ITA' | 'JAM' | 'JEY' | 'JOR' | 'JPN' | 'KAZ' | 'KEN' | 'KGZ' | 'KHM' | 'KIR' | 'KNA' | 'KOR' | 'KUR' | 'KWT' | 'LAO' | 'LBN' | 'LBR' | 'LBY' | 'LCA' | 'LIE' | 'LKA' | 'LSO' | 'LTU' | 'LUX' | 'LVA' | 'MAC' | 'MAF' | 'MAR' | 'MCO' | 'MDA' | 'MDG' | 'MDV' | 'MEX' | 'MHL' | 'MKD' | 'MLI' | 'MLT' | 'MMR' | 'MNE' | 'MNG' | 'MNP' | 'MOZ' | 'MRT' | 'MSR' | 'MTQ' | 'MWI' | 'MYS' | 'MYT' | 'NAM' | 'NCL' | 'NER' | 'NFK' | 'NGA' | 'NIC' | 'NIU' | 'NLD' | 'NOR' | 'NPL' | 'NRU' | 'NZL' | 'OMN' | 'PAK' | 'PAN' | 'PCN' | 'PER' | 'PHL' | 'PLW' | 'PNG' | 'POL' | 'PRI' | 'PRK' | 'PRT' | 'PRY' | 'PSE' | 'PYF' | 'QAT' | 'REU' | 'ROU' | 'RUS' | 'RWA' | 'SAU' | 'SDN' | 'SEN' | 'SGP' | 'SGS' | 'SHN' | 'SJM' | 'SLB' | 'SLE' | 'SLV' | 'SMR' | 'SOM' | 'SPM' | 'SRB' | 'SSD' | 'STP' | 'SUR' | 'SVK' | 'SVN' | 'SWE' | 'SWZ' | 'SXM' | 'SYC' | 'SYR' | 'TCA' | 'TCD' | 'TGO' | 'THA' | 'TJK' | 'TKL' | 'TKM' | 'TLS' | 'TON' | 'TTO' | 'TUN' | 'TUR' | 'TUV' | 'TWN' | 'TZA' | 'UGA' | 'UKR' | 'URY' | 'USA' | 'UZB' | 'VAT' | 'VCT' | 'VEN' | 'VGB' | 'VIR' | 'VLC' | 'VNM' | 'VUT' | 'WLF' | 'WLS' | 'YEM' | 'ZAF' | 'ZMB' | 'ZWE';
|
|
297
|
+
declare enum ResolutionMethod {
|
|
299
298
|
QUERY_PARAM = "QUERY_PARAM",
|
|
300
299
|
SUBDOMAIN = "SUBDOMAIN",
|
|
301
300
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
302
301
|
}
|
|
303
302
|
/** @enumType */
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
304
|
+
interface PagesData {
|
|
306
305
|
/** Blog page. */
|
|
307
306
|
blogPage?: PageInfo;
|
|
308
307
|
/** Post page. */
|
|
@@ -314,7 +313,7 @@ export interface PagesData {
|
|
|
314
313
|
*/
|
|
315
314
|
sitePrimaryUrl?: string | null;
|
|
316
315
|
}
|
|
317
|
-
|
|
316
|
+
interface PageInfo {
|
|
318
317
|
/** Title. */
|
|
319
318
|
title?: string;
|
|
320
319
|
/** Page ID. */
|
|
@@ -340,7 +339,7 @@ export interface PageInfo {
|
|
|
340
339
|
/** Platform apps. */
|
|
341
340
|
platformApps?: string[];
|
|
342
341
|
}
|
|
343
|
-
|
|
342
|
+
interface SiteProperties {
|
|
344
343
|
/** Business name. */
|
|
345
344
|
businessName?: string | null;
|
|
346
345
|
/** Business logo. */
|
|
@@ -350,14 +349,14 @@ export interface SiteProperties {
|
|
|
350
349
|
/** Description. */
|
|
351
350
|
description?: string | null;
|
|
352
351
|
}
|
|
353
|
-
|
|
352
|
+
interface GetBlogCacheRequest {
|
|
354
353
|
}
|
|
355
|
-
|
|
354
|
+
interface GetBlogCacheResponse {
|
|
356
355
|
/** Blog cache. */
|
|
357
356
|
blogCache?: BlogCache;
|
|
358
357
|
}
|
|
359
358
|
/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
|
|
360
|
-
|
|
359
|
+
interface SitePropertiesNotification {
|
|
361
360
|
/** The site ID for which this update notification applies. */
|
|
362
361
|
metasiteId?: string;
|
|
363
362
|
/** The actual update event. */
|
|
@@ -371,7 +370,7 @@ export interface SitePropertiesNotification {
|
|
|
371
370
|
changeContext?: ChangeContext;
|
|
372
371
|
}
|
|
373
372
|
/** The actual update event for a particular notification. */
|
|
374
|
-
|
|
373
|
+
interface SitePropertiesEvent {
|
|
375
374
|
/** Version of the site's properties represented by this update. */
|
|
376
375
|
version?: number;
|
|
377
376
|
/** Set of properties that were updated - corresponds to the fields in "properties". */
|
|
@@ -379,7 +378,7 @@ export interface SitePropertiesEvent {
|
|
|
379
378
|
/** Updated properties. */
|
|
380
379
|
properties?: Properties;
|
|
381
380
|
}
|
|
382
|
-
|
|
381
|
+
interface Properties {
|
|
383
382
|
/** Site categories. */
|
|
384
383
|
categories?: Categories;
|
|
385
384
|
/** Site locale. */
|
|
@@ -435,7 +434,7 @@ export interface Properties {
|
|
|
435
434
|
/** Track clicks analytics. */
|
|
436
435
|
trackClicksAnalytics?: boolean;
|
|
437
436
|
}
|
|
438
|
-
|
|
437
|
+
interface Categories {
|
|
439
438
|
/** Primary site category. */
|
|
440
439
|
primary?: string;
|
|
441
440
|
/**
|
|
@@ -446,13 +445,13 @@ export interface Categories {
|
|
|
446
445
|
/** Business Term Id */
|
|
447
446
|
businessTermId?: string | null;
|
|
448
447
|
}
|
|
449
|
-
|
|
448
|
+
interface Locale {
|
|
450
449
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
451
450
|
languageCode?: string;
|
|
452
451
|
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
453
452
|
country?: string;
|
|
454
453
|
}
|
|
455
|
-
|
|
454
|
+
interface Address {
|
|
456
455
|
/** Street name. */
|
|
457
456
|
street?: string;
|
|
458
457
|
/** City name. */
|
|
@@ -484,29 +483,29 @@ export interface Address {
|
|
|
484
483
|
* This is used for display purposes. Used to add additional data about the address, such as "In the passage".
|
|
485
484
|
* Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
|
|
486
485
|
*/
|
|
487
|
-
|
|
486
|
+
interface AddressHint {
|
|
488
487
|
/** Extra text displayed next to, or instead of, the actual address. */
|
|
489
488
|
text?: string;
|
|
490
489
|
/** Where the extra text should be displayed. */
|
|
491
490
|
placement?: PlacementTypeWithLiterals;
|
|
492
491
|
}
|
|
493
492
|
/** Where the extra text should be displayed: before, after or instead of the actual address. */
|
|
494
|
-
|
|
493
|
+
declare enum PlacementType {
|
|
495
494
|
BEFORE = "BEFORE",
|
|
496
495
|
AFTER = "AFTER",
|
|
497
496
|
REPLACE = "REPLACE"
|
|
498
497
|
}
|
|
499
498
|
/** @enumType */
|
|
500
|
-
|
|
499
|
+
type PlacementTypeWithLiterals = PlacementType | 'BEFORE' | 'AFTER' | 'REPLACE';
|
|
501
500
|
/** Geocoordinates for a particular address. */
|
|
502
|
-
|
|
501
|
+
interface GeoCoordinates {
|
|
503
502
|
/** Latitude of the location. Must be between -90 and 90. */
|
|
504
503
|
latitude?: number;
|
|
505
504
|
/** Longitude of the location. Must be between -180 and 180. */
|
|
506
505
|
longitude?: number;
|
|
507
506
|
}
|
|
508
507
|
/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
|
|
509
|
-
|
|
508
|
+
interface BusinessSchedule {
|
|
510
509
|
/**
|
|
511
510
|
* Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
|
|
512
511
|
* @maxSize 100
|
|
@@ -519,7 +518,7 @@ export interface BusinessSchedule {
|
|
|
519
518
|
specialHourPeriod?: SpecialHourPeriod[];
|
|
520
519
|
}
|
|
521
520
|
/** Weekly recurring time periods when the business is regularly open or the service is available. */
|
|
522
|
-
|
|
521
|
+
interface TimePeriod {
|
|
523
522
|
/** Day of the week the period starts on. */
|
|
524
523
|
openDay?: DayOfWeekWithLiterals;
|
|
525
524
|
/**
|
|
@@ -538,7 +537,7 @@ export interface TimePeriod {
|
|
|
538
537
|
closeTime?: string;
|
|
539
538
|
}
|
|
540
539
|
/** Enumerates the days of the week. */
|
|
541
|
-
|
|
540
|
+
declare enum DayOfWeek {
|
|
542
541
|
MONDAY = "MONDAY",
|
|
543
542
|
TUESDAY = "TUESDAY",
|
|
544
543
|
WEDNESDAY = "WEDNESDAY",
|
|
@@ -548,9 +547,9 @@ export declare enum DayOfWeek {
|
|
|
548
547
|
SUNDAY = "SUNDAY"
|
|
549
548
|
}
|
|
550
549
|
/** @enumType */
|
|
551
|
-
|
|
550
|
+
type DayOfWeekWithLiterals = DayOfWeek | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
|
|
552
551
|
/** Exception to the business's regular hours. The business can be open or closed during the exception. */
|
|
553
|
-
|
|
552
|
+
interface SpecialHourPeriod {
|
|
554
553
|
/** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
|
|
555
554
|
startDate?: string;
|
|
556
555
|
/** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
|
|
@@ -564,7 +563,7 @@ export interface SpecialHourPeriod {
|
|
|
564
563
|
/** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
|
|
565
564
|
comment?: string;
|
|
566
565
|
}
|
|
567
|
-
|
|
566
|
+
interface Multilingual {
|
|
568
567
|
/**
|
|
569
568
|
* Supported languages list.
|
|
570
569
|
* @maxSize 200
|
|
@@ -573,7 +572,7 @@ export interface Multilingual {
|
|
|
573
572
|
/** Whether to redirect to user language. */
|
|
574
573
|
autoRedirect?: boolean;
|
|
575
574
|
}
|
|
576
|
-
|
|
575
|
+
interface SupportedLanguage {
|
|
577
576
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
578
577
|
languageCode?: string;
|
|
579
578
|
/** Locale. */
|
|
@@ -584,8 +583,10 @@ export interface SupportedLanguage {
|
|
|
584
583
|
countryCode?: string;
|
|
585
584
|
/** How the language will be resolved. For internal use. */
|
|
586
585
|
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
586
|
+
/** Whether the supported language is the primary language for site visitors. */
|
|
587
|
+
isVisitorPrimary?: boolean | null;
|
|
587
588
|
}
|
|
588
|
-
|
|
589
|
+
interface ConsentPolicy {
|
|
589
590
|
/** Whether the site uses cookies that are essential to site operation. Always `true`. */
|
|
590
591
|
essential?: boolean | null;
|
|
591
592
|
/** Whether the site uses cookies that affect site performance and other functional measurements. */
|
|
@@ -598,7 +599,7 @@ export interface ConsentPolicy {
|
|
|
598
599
|
dataToThirdParty?: boolean | null;
|
|
599
600
|
}
|
|
600
601
|
/** A single mapping from the MetaSite ID to a particular service. */
|
|
601
|
-
|
|
602
|
+
interface Translation {
|
|
602
603
|
/** The service type. */
|
|
603
604
|
serviceType?: string;
|
|
604
605
|
/** The application definition ID; this only applies to services of type ThirdPartyApps. */
|
|
@@ -606,7 +607,7 @@ export interface Translation {
|
|
|
606
607
|
/** The instance ID of the service. */
|
|
607
608
|
instanceId?: string;
|
|
608
609
|
}
|
|
609
|
-
|
|
610
|
+
interface ChangeContext extends ChangeContextPayloadOneOf {
|
|
610
611
|
/** Properties were updated. */
|
|
611
612
|
propertiesChange?: PropertiesChange;
|
|
612
613
|
/** Default properties were created on site creation. */
|
|
@@ -615,7 +616,7 @@ export interface ChangeContext extends ChangeContextPayloadOneOf {
|
|
|
615
616
|
siteCloned?: SiteCloned;
|
|
616
617
|
}
|
|
617
618
|
/** @oneof */
|
|
618
|
-
|
|
619
|
+
interface ChangeContextPayloadOneOf {
|
|
619
620
|
/** Properties were updated. */
|
|
620
621
|
propertiesChange?: PropertiesChange;
|
|
621
622
|
/** Default properties were created on site creation. */
|
|
@@ -623,19 +624,19 @@ export interface ChangeContextPayloadOneOf {
|
|
|
623
624
|
/** Properties were cloned on site cloning. */
|
|
624
625
|
siteCloned?: SiteCloned;
|
|
625
626
|
}
|
|
626
|
-
|
|
627
|
+
interface PropertiesChange {
|
|
627
628
|
}
|
|
628
|
-
|
|
629
|
+
interface SiteCreated {
|
|
629
630
|
/** Origin template site id. */
|
|
630
631
|
originTemplateId?: string | null;
|
|
631
632
|
}
|
|
632
|
-
|
|
633
|
+
interface SiteCloned {
|
|
633
634
|
/** Origin site id. */
|
|
634
635
|
originMetaSiteId?: string;
|
|
635
636
|
}
|
|
636
|
-
|
|
637
|
+
interface Empty {
|
|
637
638
|
}
|
|
638
|
-
|
|
639
|
+
interface UrlInvalidationNotification {
|
|
639
640
|
/**
|
|
640
641
|
* Blog instance id.
|
|
641
642
|
* @format GUID
|
|
@@ -647,7 +648,7 @@ export interface UrlInvalidationNotification {
|
|
|
647
648
|
*/
|
|
648
649
|
metaSiteId?: string | null;
|
|
649
650
|
}
|
|
650
|
-
|
|
651
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
651
652
|
createdEvent?: EntityCreatedEvent;
|
|
652
653
|
updatedEvent?: EntityUpdatedEvent;
|
|
653
654
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -682,19 +683,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
682
683
|
entityEventSequence?: string | null;
|
|
683
684
|
}
|
|
684
685
|
/** @oneof */
|
|
685
|
-
|
|
686
|
+
interface DomainEventBodyOneOf {
|
|
686
687
|
createdEvent?: EntityCreatedEvent;
|
|
687
688
|
updatedEvent?: EntityUpdatedEvent;
|
|
688
689
|
deletedEvent?: EntityDeletedEvent;
|
|
689
690
|
actionEvent?: ActionEvent;
|
|
690
691
|
}
|
|
691
|
-
|
|
692
|
+
interface EntityCreatedEvent {
|
|
692
693
|
entity?: string;
|
|
693
694
|
}
|
|
694
|
-
|
|
695
|
+
interface RestoreInfo {
|
|
695
696
|
deletedDate?: Date | null;
|
|
696
697
|
}
|
|
697
|
-
|
|
698
|
+
interface EntityUpdatedEvent {
|
|
698
699
|
/**
|
|
699
700
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
700
701
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -702,23 +703,12 @@ export interface EntityUpdatedEvent {
|
|
|
702
703
|
*/
|
|
703
704
|
currentEntity?: string;
|
|
704
705
|
}
|
|
705
|
-
|
|
706
|
+
interface EntityDeletedEvent {
|
|
706
707
|
/** Entity that was deleted. */
|
|
707
708
|
deletedEntity?: string | null;
|
|
708
709
|
}
|
|
709
|
-
|
|
710
|
+
interface ActionEvent {
|
|
710
711
|
body?: string;
|
|
711
712
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
* Gets blog cache.
|
|
715
|
-
* @public
|
|
716
|
-
* @documentationMaturity preview
|
|
717
|
-
* @permissionId BLOG.READ_SETTINGS
|
|
718
|
-
* @applicableIdentity VISITOR
|
|
719
|
-
* @fqn wix.blog.v1.BlogCacheService.GetBlogCache
|
|
720
|
-
*/
|
|
721
|
-
export declare function getBlogCache(): Promise<NonNullablePaths<GetBlogCacheResponse, {
|
|
722
|
-
[P in BlogCacheNonNullablePaths]: `blogCache.${P}`;
|
|
723
|
-
}[BlogCacheNonNullablePaths]>>;
|
|
724
|
-
export {};
|
|
713
|
+
|
|
714
|
+
export { type Address as A, type BlogCache as B, type Categories as C, DayOfWeek as D, type Empty as E, Flag as F, type GetBlogCacheResponse as G, type ActionEvent as H, LocaleStatus as L, type Multilingual as M, PlacementType as P, ResolutionMethod as R, type SiteSupportedLanguage as S, type TimePeriod as T, type UrlInvalidationNotification as U, type PagesData as a, type PageInfo as b, type SiteProperties as c, type GetBlogCacheRequest as d, type SitePropertiesNotification as e, type SitePropertiesEvent as f, type Properties as g, type Locale as h, type AddressHint as i, type GeoCoordinates as j, type BusinessSchedule as k, type SpecialHourPeriod as l, type SupportedLanguage as m, type ConsentPolicy as n, type Translation as o, type ChangeContext as p, type ChangeContextPayloadOneOf as q, type PropertiesChange as r, type SiteCreated as s, type SiteCloned as t, type DomainEvent as u, type DomainEventBodyOneOf as v, type EntityCreatedEvent as w, type RestoreInfo as x, type EntityUpdatedEvent as y, type EntityDeletedEvent as z };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetBlogCacheResponse } from './blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.mjs';
|
|
3
|
+
export { H as ActionEvent, A as Address, i as AddressHint, B as BlogCache, k as BusinessSchedule, C as Categories, p as ChangeContext, q as ChangeContextPayloadOneOf, n as ConsentPolicy, D as DayOfWeek, u as DomainEvent, v as DomainEventBodyOneOf, E as Empty, w as EntityCreatedEvent, z as EntityDeletedEvent, y as EntityUpdatedEvent, F as Flag, j as GeoCoordinates, d as GetBlogCacheRequest, h as Locale, L as LocaleStatus, M as Multilingual, b as PageInfo, a as PagesData, P as PlacementType, g as Properties, r as PropertiesChange, R as ResolutionMethod, x as RestoreInfo, t as SiteCloned, s as SiteCreated, c as SiteProperties, f as SitePropertiesEvent, e as SitePropertiesNotification, S as SiteSupportedLanguage, l as SpecialHourPeriod, m as SupportedLanguage, T as TimePeriod, o as Translation, U as UrlInvalidationNotification } from './blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.mjs';
|
|
4
|
+
|
|
5
|
+
declare function getBlogCache$1(httpClient: HttpClient): GetBlogCacheSignature;
|
|
6
|
+
interface GetBlogCacheSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Gets blog cache.
|
|
9
|
+
*/
|
|
10
|
+
(): Promise<GetBlogCacheResponse>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const getBlogCache: MaybeContext<BuildRESTFunction<typeof getBlogCache$1> & typeof getBlogCache$1>;
|
|
14
|
+
|
|
15
|
+
export { GetBlogCacheResponse, getBlogCache };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { G as GetBlogCacheResponse } from './blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.js';
|
|
3
|
+
export { H as ActionEvent, A as Address, i as AddressHint, B as BlogCache, k as BusinessSchedule, C as Categories, p as ChangeContext, q as ChangeContextPayloadOneOf, n as ConsentPolicy, D as DayOfWeek, u as DomainEvent, v as DomainEventBodyOneOf, E as Empty, w as EntityCreatedEvent, z as EntityDeletedEvent, y as EntityUpdatedEvent, F as Flag, j as GeoCoordinates, d as GetBlogCacheRequest, h as Locale, L as LocaleStatus, M as Multilingual, b as PageInfo, a as PagesData, P as PlacementType, g as Properties, r as PropertiesChange, R as ResolutionMethod, x as RestoreInfo, t as SiteCloned, s as SiteCreated, c as SiteProperties, f as SitePropertiesEvent, e as SitePropertiesNotification, S as SiteSupportedLanguage, l as SpecialHourPeriod, m as SupportedLanguage, T as TimePeriod, o as Translation, U as UrlInvalidationNotification } from './blog-v1-blog-cache-blog-cache.universal-CTlpJiq7.js';
|
|
4
|
+
|
|
5
|
+
declare function getBlogCache$1(httpClient: HttpClient): GetBlogCacheSignature;
|
|
6
|
+
interface GetBlogCacheSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Gets blog cache.
|
|
9
|
+
*/
|
|
10
|
+
(): Promise<GetBlogCacheResponse>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const getBlogCache: MaybeContext<BuildRESTFunction<typeof getBlogCache$1> & typeof getBlogCache$1>;
|
|
14
|
+
|
|
15
|
+
export { GetBlogCacheResponse, getBlogCache };
|