ricos-schema
Advanced tools
Comparing version 8.26.2 to 8.27.0
@@ -14,11 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Spoiler = exports.Common_DynamicStyles = exports.Common = exports.common_TextAlignmentToJSON = exports.common_TextAlignmentFromJSON = exports.Common_TextAlignment = void 0; | ||
var Common_TextAlignment; | ||
(function (Common_TextAlignment) { | ||
Common_TextAlignment["LEFT"] = "LEFT"; | ||
Common_TextAlignment["RIGHT"] = "RIGHT"; | ||
Common_TextAlignment["CENTER"] = "CENTER"; | ||
Common_TextAlignment["JUSTIFY"] = "JUSTIFY"; | ||
Common_TextAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(Common_TextAlignment = exports.Common_TextAlignment || (exports.Common_TextAlignment = {})); | ||
exports.Spoiler = exports.Common_DynamicStyles = exports.Common = exports.common_TextAlignmentToJSON = exports.common_TextAlignmentFromJSON = void 0; | ||
function common_TextAlignmentFromJSON(object) { | ||
@@ -28,16 +20,16 @@ switch (object) { | ||
case 'LEFT': | ||
return Common_TextAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return Common_TextAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return Common_TextAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case 3: | ||
case 'JUSTIFY': | ||
return Common_TextAlignment.JUSTIFY; | ||
return "JUSTIFY" /* JUSTIFY */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return Common_TextAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -48,9 +40,9 @@ } | ||
switch (object) { | ||
case Common_TextAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case Common_TextAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case Common_TextAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
case Common_TextAlignment.JUSTIFY: | ||
case "JUSTIFY" /* JUSTIFY */: | ||
return 'JUSTIFY'; | ||
@@ -57,0 +49,0 @@ default: |
@@ -17,3 +17,3 @@ "use strict"; | ||
var common_1 = require("./common"); | ||
var baseCodeData = { textAlignment: common_1.Common_TextAlignment.LEFT }; | ||
var baseCodeData = { textAlignment: "LEFT" /* LEFT */ }; | ||
exports.CodeData = { | ||
@@ -26,3 +26,3 @@ fromJSON: function (object) { | ||
else { | ||
message.textAlignment = common_1.Common_TextAlignment.LEFT; | ||
message.textAlignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -29,0 +29,0 @@ if (object.dynamicStyles !== undefined && object.dynamicStyles !== null) { |
@@ -17,3 +17,3 @@ "use strict"; | ||
var common_1 = require("./common"); | ||
var baseHeadingData = { level: 0, textAlignment: common_1.Common_TextAlignment.LEFT }; | ||
var baseHeadingData = { level: 0, textAlignment: "LEFT" /* LEFT */ }; | ||
exports.HeadingData = { | ||
@@ -32,3 +32,3 @@ fromJSON: function (object) { | ||
else { | ||
message.textAlignment = common_1.Common_TextAlignment.LEFT; | ||
message.textAlignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -35,0 +35,0 @@ if (object.dynamicStyles !== undefined && object.dynamicStyles !== null) { |
@@ -17,3 +17,3 @@ "use strict"; | ||
var common_1 = require("./common"); | ||
var baseParagraphData = { textAlignment: common_1.Common_TextAlignment.LEFT }; | ||
var baseParagraphData = { textAlignment: "LEFT" /* LEFT */ }; | ||
exports.ParagraphData = { | ||
@@ -26,3 +26,3 @@ fromJSON: function (object) { | ||
else { | ||
message.textAlignment = common_1.Common_TextAlignment.LEFT; | ||
message.textAlignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -29,0 +29,0 @@ if (object.dynamicStyles !== undefined && object.dynamicStyles !== null) { |
@@ -14,11 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DividerConfig = exports.DividerData = exports.dividerConfig_DividerAlignmentToJSON = exports.dividerConfig_DividerAlignmentFromJSON = exports.DividerConfig_DividerAlignment = exports.dividerConfig_DividerSizeToJSON = exports.dividerConfig_DividerSizeFromJSON = exports.DividerConfig_DividerSize = exports.dividerData_DividerTypeToJSON = exports.dividerData_DividerTypeFromJSON = exports.DividerData_DividerType = void 0; | ||
var DividerData_DividerType; | ||
(function (DividerData_DividerType) { | ||
DividerData_DividerType["DOUBLE"] = "DOUBLE"; | ||
DividerData_DividerType["SINGLE"] = "SINGLE"; | ||
DividerData_DividerType["DASHED"] = "DASHED"; | ||
DividerData_DividerType["DOTTED"] = "DOTTED"; | ||
DividerData_DividerType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(DividerData_DividerType = exports.DividerData_DividerType || (exports.DividerData_DividerType = {})); | ||
exports.DividerConfig = exports.DividerData = exports.dividerConfig_DividerAlignmentToJSON = exports.dividerConfig_DividerAlignmentFromJSON = exports.dividerConfig_DividerSizeToJSON = exports.dividerConfig_DividerSizeFromJSON = exports.dividerData_DividerTypeToJSON = exports.dividerData_DividerTypeFromJSON = void 0; | ||
function dividerData_DividerTypeFromJSON(object) { | ||
@@ -28,16 +20,16 @@ switch (object) { | ||
case 'DOUBLE': | ||
return DividerData_DividerType.DOUBLE; | ||
return "DOUBLE" /* DOUBLE */; | ||
case 1: | ||
case 'SINGLE': | ||
return DividerData_DividerType.SINGLE; | ||
return "SINGLE" /* SINGLE */; | ||
case 2: | ||
case 'DASHED': | ||
return DividerData_DividerType.DASHED; | ||
return "DASHED" /* DASHED */; | ||
case 3: | ||
case 'DOTTED': | ||
return DividerData_DividerType.DOTTED; | ||
return "DOTTED" /* DOTTED */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return DividerData_DividerType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -48,9 +40,9 @@ } | ||
switch (object) { | ||
case DividerData_DividerType.DOUBLE: | ||
case "DOUBLE" /* DOUBLE */: | ||
return 'DOUBLE'; | ||
case DividerData_DividerType.SINGLE: | ||
case "SINGLE" /* SINGLE */: | ||
return 'SINGLE'; | ||
case DividerData_DividerType.DASHED: | ||
case "DASHED" /* DASHED */: | ||
return 'DASHED'; | ||
case DividerData_DividerType.DOTTED: | ||
case "DOTTED" /* DOTTED */: | ||
return 'DOTTED'; | ||
@@ -62,9 +54,2 @@ default: | ||
exports.dividerData_DividerTypeToJSON = dividerData_DividerTypeToJSON; | ||
var DividerConfig_DividerSize; | ||
(function (DividerConfig_DividerSize) { | ||
DividerConfig_DividerSize["SMALL"] = "SMALL"; | ||
DividerConfig_DividerSize["MEDIUM"] = "MEDIUM"; | ||
DividerConfig_DividerSize["LARGE"] = "LARGE"; | ||
DividerConfig_DividerSize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(DividerConfig_DividerSize = exports.DividerConfig_DividerSize || (exports.DividerConfig_DividerSize = {})); | ||
function dividerConfig_DividerSizeFromJSON(object) { | ||
@@ -74,13 +59,13 @@ switch (object) { | ||
case 'SMALL': | ||
return DividerConfig_DividerSize.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 1: | ||
case 'MEDIUM': | ||
return DividerConfig_DividerSize.MEDIUM; | ||
return "MEDIUM" /* MEDIUM */; | ||
case 2: | ||
case 'LARGE': | ||
return DividerConfig_DividerSize.LARGE; | ||
return "LARGE" /* LARGE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return DividerConfig_DividerSize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -91,7 +76,7 @@ } | ||
switch (object) { | ||
case DividerConfig_DividerSize.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case DividerConfig_DividerSize.MEDIUM: | ||
case "MEDIUM" /* MEDIUM */: | ||
return 'MEDIUM'; | ||
case DividerConfig_DividerSize.LARGE: | ||
case "LARGE" /* LARGE */: | ||
return 'LARGE'; | ||
@@ -103,9 +88,2 @@ default: | ||
exports.dividerConfig_DividerSizeToJSON = dividerConfig_DividerSizeToJSON; | ||
var DividerConfig_DividerAlignment; | ||
(function (DividerConfig_DividerAlignment) { | ||
DividerConfig_DividerAlignment["LEFT"] = "LEFT"; | ||
DividerConfig_DividerAlignment["RIGHT"] = "RIGHT"; | ||
DividerConfig_DividerAlignment["CENTER"] = "CENTER"; | ||
DividerConfig_DividerAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(DividerConfig_DividerAlignment = exports.DividerConfig_DividerAlignment || (exports.DividerConfig_DividerAlignment = {})); | ||
function dividerConfig_DividerAlignmentFromJSON(object) { | ||
@@ -115,13 +93,13 @@ switch (object) { | ||
case 'LEFT': | ||
return DividerConfig_DividerAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return DividerConfig_DividerAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return DividerConfig_DividerAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return DividerConfig_DividerAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -132,7 +110,7 @@ } | ||
switch (object) { | ||
case DividerConfig_DividerAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case DividerConfig_DividerAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case DividerConfig_DividerAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -144,3 +122,3 @@ default: | ||
exports.dividerConfig_DividerAlignmentToJSON = dividerConfig_DividerAlignmentToJSON; | ||
var baseDividerData = { type: DividerData_DividerType.DOUBLE }; | ||
var baseDividerData = { type: "DOUBLE" /* DOUBLE */ }; | ||
exports.DividerData = { | ||
@@ -153,3 +131,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = DividerData_DividerType.DOUBLE; | ||
message.type = "DOUBLE" /* DOUBLE */; | ||
} | ||
@@ -173,4 +151,4 @@ if (object.config !== undefined && object.config !== null) { | ||
var baseDividerConfig = { | ||
size: DividerConfig_DividerSize.SMALL, | ||
alignment: DividerConfig_DividerAlignment.LEFT, | ||
size: "SMALL" /* SMALL */, | ||
alignment: "LEFT" /* LEFT */, | ||
}; | ||
@@ -184,3 +162,3 @@ exports.DividerConfig = { | ||
else { | ||
message.size = DividerConfig_DividerSize.SMALL; | ||
message.size = "SMALL" /* SMALL */; | ||
} | ||
@@ -191,3 +169,3 @@ if (object.alignment !== undefined && object.alignment !== null) { | ||
else { | ||
message.alignment = DividerConfig_DividerAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -194,0 +172,0 @@ if (object.textWrap !== undefined && object.textWrap !== null) { |
@@ -14,12 +14,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GalleryItem = exports.GalleyItemMetadata = exports.GalleryConfig = exports.GalleryStyles = exports.GalleryData = exports.galleryConfig_GalleryAlignmentToJSON = exports.galleryConfig_GalleryAlignmentFromJSON = exports.GalleryConfig_GalleryAlignment = exports.galleryConfig_GallerySizeToJSON = exports.galleryConfig_GallerySizeFromJSON = exports.GalleryConfig_GallerySize = void 0; | ||
exports.GalleryItem = exports.GalleyItemMetadata = exports.GalleryConfig = exports.GalleryStyles = exports.GalleryData = exports.galleryConfig_GalleryAlignmentToJSON = exports.galleryConfig_GalleryAlignmentFromJSON = exports.galleryConfig_GallerySizeToJSON = exports.galleryConfig_GallerySizeFromJSON = void 0; | ||
/* eslint-disable */ | ||
var common_1 = require("./common"); | ||
var GalleryConfig_GallerySize; | ||
(function (GalleryConfig_GallerySize) { | ||
GalleryConfig_GallerySize["CONTENT"] = "CONTENT"; | ||
GalleryConfig_GallerySize["SMALL"] = "SMALL"; | ||
GalleryConfig_GallerySize["FULL_WIDTH"] = "FULL_WIDTH"; | ||
GalleryConfig_GallerySize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(GalleryConfig_GallerySize = exports.GalleryConfig_GallerySize || (exports.GalleryConfig_GallerySize = {})); | ||
function galleryConfig_GallerySizeFromJSON(object) { | ||
@@ -29,13 +22,13 @@ switch (object) { | ||
case 'CONTENT': | ||
return GalleryConfig_GallerySize.CONTENT; | ||
return "CONTENT" /* CONTENT */; | ||
case 1: | ||
case 'SMALL': | ||
return GalleryConfig_GallerySize.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 2: | ||
case 'FULL_WIDTH': | ||
return GalleryConfig_GallerySize.FULL_WIDTH; | ||
return "FULL_WIDTH" /* FULL_WIDTH */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return GalleryConfig_GallerySize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -46,7 +39,7 @@ } | ||
switch (object) { | ||
case GalleryConfig_GallerySize.CONTENT: | ||
case "CONTENT" /* CONTENT */: | ||
return 'CONTENT'; | ||
case GalleryConfig_GallerySize.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case GalleryConfig_GallerySize.FULL_WIDTH: | ||
case "FULL_WIDTH" /* FULL_WIDTH */: | ||
return 'FULL_WIDTH'; | ||
@@ -58,9 +51,2 @@ default: | ||
exports.galleryConfig_GallerySizeToJSON = galleryConfig_GallerySizeToJSON; | ||
var GalleryConfig_GalleryAlignment; | ||
(function (GalleryConfig_GalleryAlignment) { | ||
GalleryConfig_GalleryAlignment["LEFT"] = "LEFT"; | ||
GalleryConfig_GalleryAlignment["RIGHT"] = "RIGHT"; | ||
GalleryConfig_GalleryAlignment["CENTER"] = "CENTER"; | ||
GalleryConfig_GalleryAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(GalleryConfig_GalleryAlignment = exports.GalleryConfig_GalleryAlignment || (exports.GalleryConfig_GalleryAlignment = {})); | ||
function galleryConfig_GalleryAlignmentFromJSON(object) { | ||
@@ -70,13 +56,13 @@ switch (object) { | ||
case 'LEFT': | ||
return GalleryConfig_GalleryAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return GalleryConfig_GalleryAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return GalleryConfig_GalleryAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return GalleryConfig_GalleryAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -87,7 +73,7 @@ } | ||
switch (object) { | ||
case GalleryConfig_GalleryAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case GalleryConfig_GalleryAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case GalleryConfig_GalleryAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -430,4 +416,4 @@ default: | ||
var baseGalleryConfig = { | ||
alignment: GalleryConfig_GalleryAlignment.LEFT, | ||
size: GalleryConfig_GallerySize.CONTENT, | ||
alignment: "LEFT" /* LEFT */, | ||
size: "CONTENT" /* CONTENT */, | ||
}; | ||
@@ -441,3 +427,3 @@ exports.GalleryConfig = { | ||
else { | ||
message.alignment = GalleryConfig_GalleryAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -448,3 +434,3 @@ if (object.size !== undefined && object.size !== null) { | ||
else { | ||
message.size = GalleryConfig_GallerySize.CONTENT; | ||
message.size = "CONTENT" /* CONTENT */; | ||
} | ||
@@ -451,0 +437,0 @@ if (object.layout !== undefined && object.layout !== null) { |
@@ -14,9 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GIphyConfigViewer_GiphyViewerSizes = exports.GIphyConfigViewer = exports.GiphyConfig = exports.GIFSource = exports.GiphyData = exports.gIphyConfigViewer_GiphyViewerSizeToJSON = exports.gIphyConfigViewer_GiphyViewerSizeFromJSON = exports.GIphyConfigViewer_GiphyViewerSize = void 0; | ||
var GIphyConfigViewer_GiphyViewerSize; | ||
(function (GIphyConfigViewer_GiphyViewerSize) { | ||
GIphyConfigViewer_GiphyViewerSize["ORIGINAL"] = "ORIGINAL"; | ||
GIphyConfigViewer_GiphyViewerSize["DOWNSIZED_SMALL"] = "DOWNSIZED_SMALL"; | ||
GIphyConfigViewer_GiphyViewerSize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(GIphyConfigViewer_GiphyViewerSize = exports.GIphyConfigViewer_GiphyViewerSize || (exports.GIphyConfigViewer_GiphyViewerSize = {})); | ||
exports.GIphyConfigViewer_GiphyViewerSizes = exports.GIphyConfigViewer = exports.GiphyConfig = exports.GIFSource = exports.GiphyData = exports.gIphyConfigViewer_GiphyViewerSizeToJSON = exports.gIphyConfigViewer_GiphyViewerSizeFromJSON = void 0; | ||
function gIphyConfigViewer_GiphyViewerSizeFromJSON(object) { | ||
@@ -26,10 +20,10 @@ switch (object) { | ||
case 'ORIGINAL': | ||
return GIphyConfigViewer_GiphyViewerSize.ORIGINAL; | ||
return "ORIGINAL" /* ORIGINAL */; | ||
case 1: | ||
case 'DOWNSIZED_SMALL': | ||
return GIphyConfigViewer_GiphyViewerSize.DOWNSIZED_SMALL; | ||
return "DOWNSIZED_SMALL" /* DOWNSIZED_SMALL */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return GIphyConfigViewer_GiphyViewerSize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -40,5 +34,5 @@ } | ||
switch (object) { | ||
case GIphyConfigViewer_GiphyViewerSize.ORIGINAL: | ||
case "ORIGINAL" /* ORIGINAL */: | ||
return 'ORIGINAL'; | ||
case GIphyConfigViewer_GiphyViewerSize.DOWNSIZED_SMALL: | ||
case "DOWNSIZED_SMALL" /* DOWNSIZED_SMALL */: | ||
return 'DOWNSIZED_SMALL'; | ||
@@ -201,4 +195,4 @@ default: | ||
var baseGIphyConfigViewer_GiphyViewerSizes = { | ||
desktop: GIphyConfigViewer_GiphyViewerSize.ORIGINAL, | ||
mobile: GIphyConfigViewer_GiphyViewerSize.ORIGINAL, | ||
desktop: "ORIGINAL" /* ORIGINAL */, | ||
mobile: "ORIGINAL" /* ORIGINAL */, | ||
}; | ||
@@ -212,3 +206,3 @@ exports.GIphyConfigViewer_GiphyViewerSizes = { | ||
else { | ||
message.desktop = GIphyConfigViewer_GiphyViewerSize.ORIGINAL; | ||
message.desktop = "ORIGINAL" /* ORIGINAL */; | ||
} | ||
@@ -219,3 +213,3 @@ if (object.mobile !== undefined && object.mobile !== null) { | ||
else { | ||
message.mobile = GIphyConfigViewer_GiphyViewerSize.ORIGINAL; | ||
message.mobile = "ORIGINAL" /* ORIGINAL */; | ||
} | ||
@@ -222,0 +216,0 @@ return message; |
@@ -14,10 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HTMLConfig = exports.HTMLData = exports.hTMLConfig_HTMLAlignmentToJSON = exports.hTMLConfig_HTMLAlignmentFromJSON = exports.HTMLConfig_HTMLAlignment = void 0; | ||
var HTMLConfig_HTMLAlignment; | ||
(function (HTMLConfig_HTMLAlignment) { | ||
HTMLConfig_HTMLAlignment["LEFT"] = "LEFT"; | ||
HTMLConfig_HTMLAlignment["RIGHT"] = "RIGHT"; | ||
HTMLConfig_HTMLAlignment["CENTER"] = "CENTER"; | ||
HTMLConfig_HTMLAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(HTMLConfig_HTMLAlignment = exports.HTMLConfig_HTMLAlignment || (exports.HTMLConfig_HTMLAlignment = {})); | ||
exports.HTMLConfig = exports.HTMLData = exports.hTMLConfig_HTMLAlignmentToJSON = exports.hTMLConfig_HTMLAlignmentFromJSON = void 0; | ||
function hTMLConfig_HTMLAlignmentFromJSON(object) { | ||
@@ -27,13 +20,13 @@ switch (object) { | ||
case 'LEFT': | ||
return HTMLConfig_HTMLAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return HTMLConfig_HTMLAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return HTMLConfig_HTMLAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return HTMLConfig_HTMLAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -44,7 +37,7 @@ } | ||
switch (object) { | ||
case HTMLConfig_HTMLAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case HTMLConfig_HTMLAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case HTMLConfig_HTMLAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -89,3 +82,3 @@ default: | ||
}; | ||
var baseHTMLConfig = { alignment: HTMLConfig_HTMLAlignment.LEFT }; | ||
var baseHTMLConfig = { alignment: "LEFT" /* LEFT */ }; | ||
exports.HTMLConfig = { | ||
@@ -110,3 +103,3 @@ fromJSON: function (object) { | ||
else { | ||
message.alignment = HTMLConfig_HTMLAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -113,0 +106,0 @@ if (object.safe !== undefined && object.safe !== null) { |
@@ -14,14 +14,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ImageMetadata = exports.ImageSource = exports.ImageConfig = exports.ImageLink = exports.ImageData = exports.imageConfig_ImageAlignmentToJSON = exports.imageConfig_ImageAlignmentFromJSON = exports.ImageConfig_ImageAlignment = exports.imageConfig_ImageSizeToJSON = exports.imageConfig_ImageSizeFromJSON = exports.ImageConfig_ImageSize = void 0; | ||
exports.ImageMetadata = exports.ImageSource = exports.ImageConfig = exports.ImageLink = exports.ImageData = exports.imageConfig_ImageAlignmentToJSON = exports.imageConfig_ImageAlignmentFromJSON = exports.imageConfig_ImageSizeToJSON = exports.imageConfig_ImageSizeFromJSON = void 0; | ||
/* eslint-disable */ | ||
var common_1 = require("./common"); | ||
var ImageConfig_ImageSize; | ||
(function (ImageConfig_ImageSize) { | ||
ImageConfig_ImageSize["CONTENT"] = "CONTENT"; | ||
ImageConfig_ImageSize["SMALL"] = "SMALL"; | ||
ImageConfig_ImageSize["ORIGINAL"] = "ORIGINAL"; | ||
ImageConfig_ImageSize["FULL_WIDTH"] = "FULL_WIDTH"; | ||
ImageConfig_ImageSize["INLINE"] = "INLINE"; | ||
ImageConfig_ImageSize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(ImageConfig_ImageSize = exports.ImageConfig_ImageSize || (exports.ImageConfig_ImageSize = {})); | ||
function imageConfig_ImageSizeFromJSON(object) { | ||
@@ -31,19 +22,19 @@ switch (object) { | ||
case 'CONTENT': | ||
return ImageConfig_ImageSize.CONTENT; | ||
return "CONTENT" /* CONTENT */; | ||
case 1: | ||
case 'SMALL': | ||
return ImageConfig_ImageSize.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 2: | ||
case 'ORIGINAL': | ||
return ImageConfig_ImageSize.ORIGINAL; | ||
return "ORIGINAL" /* ORIGINAL */; | ||
case 3: | ||
case 'FULL_WIDTH': | ||
return ImageConfig_ImageSize.FULL_WIDTH; | ||
return "FULL_WIDTH" /* FULL_WIDTH */; | ||
case 4: | ||
case 'INLINE': | ||
return ImageConfig_ImageSize.INLINE; | ||
return "INLINE" /* INLINE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return ImageConfig_ImageSize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -54,11 +45,11 @@ } | ||
switch (object) { | ||
case ImageConfig_ImageSize.CONTENT: | ||
case "CONTENT" /* CONTENT */: | ||
return 'CONTENT'; | ||
case ImageConfig_ImageSize.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case ImageConfig_ImageSize.ORIGINAL: | ||
case "ORIGINAL" /* ORIGINAL */: | ||
return 'ORIGINAL'; | ||
case ImageConfig_ImageSize.FULL_WIDTH: | ||
case "FULL_WIDTH" /* FULL_WIDTH */: | ||
return 'FULL_WIDTH'; | ||
case ImageConfig_ImageSize.INLINE: | ||
case "INLINE" /* INLINE */: | ||
return 'INLINE'; | ||
@@ -70,9 +61,2 @@ default: | ||
exports.imageConfig_ImageSizeToJSON = imageConfig_ImageSizeToJSON; | ||
var ImageConfig_ImageAlignment; | ||
(function (ImageConfig_ImageAlignment) { | ||
ImageConfig_ImageAlignment["LEFT"] = "LEFT"; | ||
ImageConfig_ImageAlignment["RIGHT"] = "RIGHT"; | ||
ImageConfig_ImageAlignment["CENTER"] = "CENTER"; | ||
ImageConfig_ImageAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(ImageConfig_ImageAlignment = exports.ImageConfig_ImageAlignment || (exports.ImageConfig_ImageAlignment = {})); | ||
function imageConfig_ImageAlignmentFromJSON(object) { | ||
@@ -82,13 +66,13 @@ switch (object) { | ||
case 'LEFT': | ||
return ImageConfig_ImageAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return ImageConfig_ImageAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return ImageConfig_ImageAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return ImageConfig_ImageAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -99,7 +83,7 @@ } | ||
switch (object) { | ||
case ImageConfig_ImageAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case ImageConfig_ImageAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case ImageConfig_ImageAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -179,4 +163,4 @@ default: | ||
var baseImageConfig = { | ||
size: ImageConfig_ImageSize.CONTENT, | ||
alignment: ImageConfig_ImageAlignment.LEFT, | ||
size: "CONTENT" /* CONTENT */, | ||
alignment: "LEFT" /* LEFT */, | ||
}; | ||
@@ -190,3 +174,3 @@ exports.ImageConfig = { | ||
else { | ||
message.size = ImageConfig_ImageSize.CONTENT; | ||
message.size = "CONTENT" /* CONTENT */; | ||
} | ||
@@ -197,3 +181,3 @@ if (object.alignment !== undefined && object.alignment !== null) { | ||
else { | ||
message.alignment = ImageConfig_ImageAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -200,0 +184,0 @@ if (object.showTitle !== undefined && object.showTitle !== null) { |
@@ -14,10 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PollWidgetDesign_PollOptionDesign = exports.PollWidgetDesign_PollDesign = exports.PollWidgetDesign = exports.Poll = exports.PollWidgetLayout_PollOptionLayout = exports.PollWidgetLayout_PollLayout = exports.PollWidgetLayout = exports.PollSettings = exports.PollOption = exports.PollConfig = exports.PollData = exports.pollWidgetDesign_PollDesign_BackgroundTypeToJSON = exports.pollWidgetDesign_PollDesign_BackgroundTypeFromJSON = exports.PollWidgetDesign_PollDesign_BackgroundType = exports.pollWidgetLayout_PollLayout_DirectionToJSON = exports.pollWidgetLayout_PollLayout_DirectionFromJSON = exports.PollWidgetLayout_PollLayout_Direction = exports.pollWidgetLayout_PollLayout_LayoutTypeToJSON = exports.pollWidgetLayout_PollLayout_LayoutTypeFromJSON = exports.PollWidgetLayout_PollLayout_LayoutType = exports.pollSettings_VoteRoleToJSON = exports.pollSettings_VoteRoleFromJSON = exports.PollSettings_VoteRole = exports.pollSettings_ResultsVisibilityToJSON = exports.pollSettings_ResultsVisibilityFromJSON = exports.PollSettings_ResultsVisibility = void 0; | ||
var PollSettings_ResultsVisibility; | ||
(function (PollSettings_ResultsVisibility) { | ||
PollSettings_ResultsVisibility["ALWAYS"] = "ALWAYS"; | ||
PollSettings_ResultsVisibility["VOTERS_ONLY"] = "VOTERS_ONLY"; | ||
PollSettings_ResultsVisibility["ONLY_ME"] = "ONLY_ME"; | ||
PollSettings_ResultsVisibility["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollSettings_ResultsVisibility = exports.PollSettings_ResultsVisibility || (exports.PollSettings_ResultsVisibility = {})); | ||
exports.PollWidgetDesign_PollOptionDesign = exports.PollWidgetDesign_PollDesign = exports.PollWidgetDesign = exports.Poll = exports.PollWidgetLayout_PollOptionLayout = exports.PollWidgetLayout_PollLayout = exports.PollWidgetLayout = exports.PollSettings = exports.PollOption = exports.PollConfig = exports.PollData = exports.pollWidgetDesign_PollDesign_BackgroundTypeToJSON = exports.pollWidgetDesign_PollDesign_BackgroundTypeFromJSON = exports.pollWidgetLayout_PollLayout_DirectionToJSON = exports.pollWidgetLayout_PollLayout_DirectionFromJSON = exports.pollWidgetLayout_PollLayout_LayoutTypeToJSON = exports.pollWidgetLayout_PollLayout_LayoutTypeFromJSON = exports.pollSettings_VoteRoleToJSON = exports.pollSettings_VoteRoleFromJSON = exports.pollSettings_ResultsVisibilityToJSON = exports.pollSettings_ResultsVisibilityFromJSON = void 0; | ||
function pollSettings_ResultsVisibilityFromJSON(object) { | ||
@@ -27,13 +20,13 @@ switch (object) { | ||
case 'ALWAYS': | ||
return PollSettings_ResultsVisibility.ALWAYS; | ||
return "ALWAYS" /* ALWAYS */; | ||
case 1: | ||
case 'VOTERS_ONLY': | ||
return PollSettings_ResultsVisibility.VOTERS_ONLY; | ||
return "VOTERS_ONLY" /* VOTERS_ONLY */; | ||
case 2: | ||
case 'ONLY_ME': | ||
return PollSettings_ResultsVisibility.ONLY_ME; | ||
return "ONLY_ME" /* ONLY_ME */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollSettings_ResultsVisibility.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -44,7 +37,7 @@ } | ||
switch (object) { | ||
case PollSettings_ResultsVisibility.ALWAYS: | ||
case "ALWAYS" /* ALWAYS */: | ||
return 'ALWAYS'; | ||
case PollSettings_ResultsVisibility.VOTERS_ONLY: | ||
case "VOTERS_ONLY" /* VOTERS_ONLY */: | ||
return 'VOTERS_ONLY'; | ||
case PollSettings_ResultsVisibility.ONLY_ME: | ||
case "ONLY_ME" /* ONLY_ME */: | ||
return 'ONLY_ME'; | ||
@@ -56,8 +49,2 @@ default: | ||
exports.pollSettings_ResultsVisibilityToJSON = pollSettings_ResultsVisibilityToJSON; | ||
var PollSettings_VoteRole; | ||
(function (PollSettings_VoteRole) { | ||
PollSettings_VoteRole["ALL"] = "ALL"; | ||
PollSettings_VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS"; | ||
PollSettings_VoteRole["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollSettings_VoteRole = exports.PollSettings_VoteRole || (exports.PollSettings_VoteRole = {})); | ||
function pollSettings_VoteRoleFromJSON(object) { | ||
@@ -67,10 +54,10 @@ switch (object) { | ||
case 'ALL': | ||
return PollSettings_VoteRole.ALL; | ||
return "ALL" /* ALL */; | ||
case 1: | ||
case 'SITE_MEMBERS': | ||
return PollSettings_VoteRole.SITE_MEMBERS; | ||
return "SITE_MEMBERS" /* SITE_MEMBERS */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollSettings_VoteRole.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -81,5 +68,5 @@ } | ||
switch (object) { | ||
case PollSettings_VoteRole.ALL: | ||
case "ALL" /* ALL */: | ||
return 'ALL'; | ||
case PollSettings_VoteRole.SITE_MEMBERS: | ||
case "SITE_MEMBERS" /* SITE_MEMBERS */: | ||
return 'SITE_MEMBERS'; | ||
@@ -91,8 +78,2 @@ default: | ||
exports.pollSettings_VoteRoleToJSON = pollSettings_VoteRoleToJSON; | ||
var PollWidgetLayout_PollLayout_LayoutType; | ||
(function (PollWidgetLayout_PollLayout_LayoutType) { | ||
PollWidgetLayout_PollLayout_LayoutType["LIST"] = "LIST"; | ||
PollWidgetLayout_PollLayout_LayoutType["GRID"] = "GRID"; | ||
PollWidgetLayout_PollLayout_LayoutType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollWidgetLayout_PollLayout_LayoutType = exports.PollWidgetLayout_PollLayout_LayoutType || (exports.PollWidgetLayout_PollLayout_LayoutType = {})); | ||
function pollWidgetLayout_PollLayout_LayoutTypeFromJSON(object) { | ||
@@ -102,10 +83,10 @@ switch (object) { | ||
case 'LIST': | ||
return PollWidgetLayout_PollLayout_LayoutType.LIST; | ||
return "LIST" /* LIST */; | ||
case 1: | ||
case 'GRID': | ||
return PollWidgetLayout_PollLayout_LayoutType.GRID; | ||
return "GRID" /* GRID */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollWidgetLayout_PollLayout_LayoutType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -116,5 +97,5 @@ } | ||
switch (object) { | ||
case PollWidgetLayout_PollLayout_LayoutType.LIST: | ||
case "LIST" /* LIST */: | ||
return 'LIST'; | ||
case PollWidgetLayout_PollLayout_LayoutType.GRID: | ||
case "GRID" /* GRID */: | ||
return 'GRID'; | ||
@@ -126,8 +107,2 @@ default: | ||
exports.pollWidgetLayout_PollLayout_LayoutTypeToJSON = pollWidgetLayout_PollLayout_LayoutTypeToJSON; | ||
var PollWidgetLayout_PollLayout_Direction; | ||
(function (PollWidgetLayout_PollLayout_Direction) { | ||
PollWidgetLayout_PollLayout_Direction["LTR"] = "LTR"; | ||
PollWidgetLayout_PollLayout_Direction["RTL"] = "RTL"; | ||
PollWidgetLayout_PollLayout_Direction["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollWidgetLayout_PollLayout_Direction = exports.PollWidgetLayout_PollLayout_Direction || (exports.PollWidgetLayout_PollLayout_Direction = {})); | ||
function pollWidgetLayout_PollLayout_DirectionFromJSON(object) { | ||
@@ -137,10 +112,10 @@ switch (object) { | ||
case 'LTR': | ||
return PollWidgetLayout_PollLayout_Direction.LTR; | ||
return "LTR" /* LTR */; | ||
case 1: | ||
case 'RTL': | ||
return PollWidgetLayout_PollLayout_Direction.RTL; | ||
return "RTL" /* RTL */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollWidgetLayout_PollLayout_Direction.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -151,5 +126,5 @@ } | ||
switch (object) { | ||
case PollWidgetLayout_PollLayout_Direction.LTR: | ||
case "LTR" /* LTR */: | ||
return 'LTR'; | ||
case PollWidgetLayout_PollLayout_Direction.RTL: | ||
case "RTL" /* RTL */: | ||
return 'RTL'; | ||
@@ -161,9 +136,2 @@ default: | ||
exports.pollWidgetLayout_PollLayout_DirectionToJSON = pollWidgetLayout_PollLayout_DirectionToJSON; | ||
var PollWidgetDesign_PollDesign_BackgroundType; | ||
(function (PollWidgetDesign_PollDesign_BackgroundType) { | ||
PollWidgetDesign_PollDesign_BackgroundType["COLOR"] = "COLOR"; | ||
PollWidgetDesign_PollDesign_BackgroundType["IMAGE"] = "IMAGE"; | ||
PollWidgetDesign_PollDesign_BackgroundType["GRADIENT"] = "GRADIENT"; | ||
PollWidgetDesign_PollDesign_BackgroundType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollWidgetDesign_PollDesign_BackgroundType = exports.PollWidgetDesign_PollDesign_BackgroundType || (exports.PollWidgetDesign_PollDesign_BackgroundType = {})); | ||
function pollWidgetDesign_PollDesign_BackgroundTypeFromJSON(object) { | ||
@@ -173,13 +141,13 @@ switch (object) { | ||
case 'COLOR': | ||
return PollWidgetDesign_PollDesign_BackgroundType.COLOR; | ||
return "COLOR" /* COLOR */; | ||
case 1: | ||
case 'IMAGE': | ||
return PollWidgetDesign_PollDesign_BackgroundType.IMAGE; | ||
return "IMAGE" /* IMAGE */; | ||
case 2: | ||
case 'GRADIENT': | ||
return PollWidgetDesign_PollDesign_BackgroundType.GRADIENT; | ||
return "GRADIENT" /* GRADIENT */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollWidgetDesign_PollDesign_BackgroundType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -190,7 +158,7 @@ } | ||
switch (object) { | ||
case PollWidgetDesign_PollDesign_BackgroundType.COLOR: | ||
case "COLOR" /* COLOR */: | ||
return 'COLOR'; | ||
case PollWidgetDesign_PollDesign_BackgroundType.IMAGE: | ||
case "IMAGE" /* IMAGE */: | ||
return 'IMAGE'; | ||
case PollWidgetDesign_PollDesign_BackgroundType.GRADIENT: | ||
case "GRADIENT" /* GRADIENT */: | ||
return 'GRADIENT'; | ||
@@ -336,4 +304,4 @@ default: | ||
var basePollSettings = { | ||
resultsVisibility: PollSettings_ResultsVisibility.ALWAYS, | ||
voteRole: PollSettings_VoteRole.ALL, | ||
resultsVisibility: "ALWAYS" /* ALWAYS */, | ||
voteRole: "ALL" /* ALL */, | ||
}; | ||
@@ -353,3 +321,3 @@ exports.PollSettings = { | ||
else { | ||
message.resultsVisibility = PollSettings_ResultsVisibility.ALWAYS; | ||
message.resultsVisibility = "ALWAYS" /* ALWAYS */; | ||
} | ||
@@ -360,3 +328,3 @@ if (object.voteRole !== undefined && object.voteRole !== null) { | ||
else { | ||
message.voteRole = PollSettings_VoteRole.ALL; | ||
message.voteRole = "ALL" /* ALL */; | ||
} | ||
@@ -419,4 +387,4 @@ if (object.votersDisplay !== undefined && object.votersDisplay !== null) { | ||
var basePollWidgetLayout_PollLayout = { | ||
type: PollWidgetLayout_PollLayout_LayoutType.LIST, | ||
direction: PollWidgetLayout_PollLayout_Direction.LTR, | ||
type: "LIST" /* LIST */, | ||
direction: "LTR" /* LTR */, | ||
}; | ||
@@ -430,3 +398,3 @@ exports.PollWidgetLayout_PollLayout = { | ||
else { | ||
message.type = PollWidgetLayout_PollLayout_LayoutType.LIST; | ||
message.type = "LIST" /* LIST */; | ||
} | ||
@@ -437,3 +405,3 @@ if (object.direction !== undefined && object.direction !== null) { | ||
else { | ||
message.direction = PollWidgetLayout_PollLayout_Direction.LTR; | ||
message.direction = "LTR" /* LTR */; | ||
} | ||
@@ -600,3 +568,3 @@ if (object.enableImage !== undefined && object.enableImage !== null) { | ||
var basePollWidgetDesign_PollDesign = { | ||
backgroundType: PollWidgetDesign_PollDesign_BackgroundType.COLOR, | ||
backgroundType: "COLOR" /* COLOR */, | ||
}; | ||
@@ -610,3 +578,3 @@ exports.PollWidgetDesign_PollDesign = { | ||
else { | ||
message.backgroundType = PollWidgetDesign_PollDesign_BackgroundType.COLOR; | ||
message.backgroundType = "COLOR" /* COLOR */; | ||
} | ||
@@ -613,0 +581,0 @@ if (object.background !== undefined && object.background !== null) { |
@@ -14,10 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VerticalEmbedConfig = exports.VerticalEmbedData_SelectedProduct = exports.VerticalEmbedData = exports.verticalEmbedData_VerticalTypeToJSON = exports.verticalEmbedData_VerticalTypeFromJSON = exports.VerticalEmbedData_VerticalType = void 0; | ||
var VerticalEmbedData_VerticalType; | ||
(function (VerticalEmbedData_VerticalType) { | ||
VerticalEmbedData_VerticalType["PRODUCT"] = "PRODUCT"; | ||
VerticalEmbedData_VerticalType["EVENT"] = "EVENT"; | ||
VerticalEmbedData_VerticalType["STORE"] = "STORE"; | ||
VerticalEmbedData_VerticalType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(VerticalEmbedData_VerticalType = exports.VerticalEmbedData_VerticalType || (exports.VerticalEmbedData_VerticalType = {})); | ||
exports.VerticalEmbedConfig = exports.VerticalEmbedData_SelectedProduct = exports.VerticalEmbedData = exports.verticalEmbedData_VerticalTypeToJSON = exports.verticalEmbedData_VerticalTypeFromJSON = void 0; | ||
function verticalEmbedData_VerticalTypeFromJSON(object) { | ||
@@ -27,13 +20,13 @@ switch (object) { | ||
case 'PRODUCT': | ||
return VerticalEmbedData_VerticalType.PRODUCT; | ||
return "PRODUCT" /* PRODUCT */; | ||
case 1: | ||
case 'EVENT': | ||
return VerticalEmbedData_VerticalType.EVENT; | ||
return "EVENT" /* EVENT */; | ||
case 2: | ||
case 'STORE': | ||
return VerticalEmbedData_VerticalType.STORE; | ||
return "STORE" /* STORE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return VerticalEmbedData_VerticalType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -44,7 +37,7 @@ } | ||
switch (object) { | ||
case VerticalEmbedData_VerticalType.PRODUCT: | ||
case "PRODUCT" /* PRODUCT */: | ||
return 'PRODUCT'; | ||
case VerticalEmbedData_VerticalType.EVENT: | ||
case "EVENT" /* EVENT */: | ||
return 'EVENT'; | ||
case VerticalEmbedData_VerticalType.STORE: | ||
case "STORE" /* STORE */: | ||
return 'STORE'; | ||
@@ -56,3 +49,3 @@ default: | ||
exports.verticalEmbedData_VerticalTypeToJSON = verticalEmbedData_VerticalTypeToJSON; | ||
var baseVerticalEmbedData = { type: VerticalEmbedData_VerticalType.PRODUCT }; | ||
var baseVerticalEmbedData = { type: "PRODUCT" /* PRODUCT */ }; | ||
exports.VerticalEmbedData = { | ||
@@ -65,3 +58,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = VerticalEmbedData_VerticalType.PRODUCT; | ||
message.type = "PRODUCT" /* PRODUCT */; | ||
} | ||
@@ -68,0 +61,0 @@ if (object.selectedProduct !== undefined && object.selectedProduct !== null) { |
@@ -14,12 +14,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VideoSource_Thumbnail = exports.VideoSource = exports.VideoMetadata = exports.VideoConfig = exports.VideoData = exports.videoConfig_AlignmentToJSON = exports.videoConfig_AlignmentFromJSON = exports.VideoConfig_Alignment = exports.videoConfig_SizeToJSON = exports.videoConfig_SizeFromJSON = exports.VideoConfig_Size = void 0; | ||
exports.VideoSource_Thumbnail = exports.VideoSource = exports.VideoMetadata = exports.VideoConfig = exports.VideoData = exports.videoConfig_AlignmentToJSON = exports.videoConfig_AlignmentFromJSON = exports.videoConfig_SizeToJSON = exports.videoConfig_SizeFromJSON = void 0; | ||
/* eslint-disable */ | ||
var common_1 = require("./common"); | ||
var VideoConfig_Size; | ||
(function (VideoConfig_Size) { | ||
VideoConfig_Size["CONTENT"] = "CONTENT"; | ||
VideoConfig_Size["SMALL"] = "SMALL"; | ||
VideoConfig_Size["FULL_WIDTH"] = "FULL_WIDTH"; | ||
VideoConfig_Size["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(VideoConfig_Size = exports.VideoConfig_Size || (exports.VideoConfig_Size = {})); | ||
function videoConfig_SizeFromJSON(object) { | ||
@@ -29,13 +22,13 @@ switch (object) { | ||
case 'CONTENT': | ||
return VideoConfig_Size.CONTENT; | ||
return "CONTENT" /* CONTENT */; | ||
case 1: | ||
case 'SMALL': | ||
return VideoConfig_Size.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 2: | ||
case 'FULL_WIDTH': | ||
return VideoConfig_Size.FULL_WIDTH; | ||
return "FULL_WIDTH" /* FULL_WIDTH */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return VideoConfig_Size.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -46,7 +39,7 @@ } | ||
switch (object) { | ||
case VideoConfig_Size.CONTENT: | ||
case "CONTENT" /* CONTENT */: | ||
return 'CONTENT'; | ||
case VideoConfig_Size.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case VideoConfig_Size.FULL_WIDTH: | ||
case "FULL_WIDTH" /* FULL_WIDTH */: | ||
return 'FULL_WIDTH'; | ||
@@ -58,9 +51,2 @@ default: | ||
exports.videoConfig_SizeToJSON = videoConfig_SizeToJSON; | ||
var VideoConfig_Alignment; | ||
(function (VideoConfig_Alignment) { | ||
VideoConfig_Alignment["LEFT"] = "LEFT"; | ||
VideoConfig_Alignment["RIGHT"] = "RIGHT"; | ||
VideoConfig_Alignment["CENTER"] = "CENTER"; | ||
VideoConfig_Alignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(VideoConfig_Alignment = exports.VideoConfig_Alignment || (exports.VideoConfig_Alignment = {})); | ||
function videoConfig_AlignmentFromJSON(object) { | ||
@@ -70,13 +56,13 @@ switch (object) { | ||
case 'LEFT': | ||
return VideoConfig_Alignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return VideoConfig_Alignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return VideoConfig_Alignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return VideoConfig_Alignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -87,7 +73,7 @@ } | ||
switch (object) { | ||
case VideoConfig_Alignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case VideoConfig_Alignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case VideoConfig_Alignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -156,4 +142,4 @@ default: | ||
var baseVideoConfig = { | ||
size: VideoConfig_Size.CONTENT, | ||
alignment: VideoConfig_Alignment.LEFT, | ||
size: "CONTENT" /* CONTENT */, | ||
alignment: "LEFT" /* LEFT */, | ||
}; | ||
@@ -167,3 +153,3 @@ exports.VideoConfig = { | ||
else { | ||
message.size = VideoConfig_Size.CONTENT; | ||
message.size = "CONTENT" /* CONTENT */; | ||
} | ||
@@ -174,3 +160,3 @@ if (object.alignment !== undefined && object.alignment !== null) { | ||
else { | ||
message.alignment = VideoConfig_Alignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -177,0 +163,0 @@ if (object.textWrap !== undefined && object.textWrap !== null) { |
@@ -14,3 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Metadata = exports.Decoration = exports.TextData = exports.Node = exports.RichContent = exports.decoration_TypeToJSON = exports.decoration_TypeFromJSON = exports.Decoration_Type = exports.node_TypeToJSON = exports.node_TypeFromJSON = exports.Node_Type = void 0; | ||
exports.Metadata = exports.Decoration = exports.TextData = exports.Node = exports.RichContent = exports.decoration_TypeToJSON = exports.decoration_TypeFromJSON = exports.node_TypeToJSON = exports.node_TypeFromJSON = void 0; | ||
/* eslint-disable */ | ||
@@ -38,30 +38,2 @@ var timestamp_1 = require("./timestamp"); | ||
var decoration_mention_1 = require("./decoration_mention"); | ||
var Node_Type; | ||
(function (Node_Type) { | ||
Node_Type["PARAGRAPH"] = "PARAGRAPH"; | ||
Node_Type["TEXT"] = "TEXT"; | ||
Node_Type["HEADING"] = "HEADING"; | ||
Node_Type["BULLET_LIST"] = "BULLET_LIST"; | ||
Node_Type["ORDERED_LIST"] = "ORDERED_LIST"; | ||
Node_Type["LIST_ITEM"] = "LIST_ITEM"; | ||
Node_Type["BLOCKQUOTE"] = "BLOCKQUOTE"; | ||
Node_Type["CODEBLOCK"] = "CODEBLOCK"; | ||
Node_Type["VIDEO"] = "VIDEO"; | ||
Node_Type["DIVIDER"] = "DIVIDER"; | ||
Node_Type["FILE"] = "FILE"; | ||
Node_Type["GALLERY"] = "GALLERY"; | ||
Node_Type["GIPHY"] = "GIPHY"; | ||
Node_Type["HTML"] = "HTML"; | ||
Node_Type["IMAGE"] = "IMAGE"; | ||
Node_Type["LINK_PREVIEW"] = "LINK_PREVIEW"; | ||
Node_Type["MAP"] = "MAP"; | ||
Node_Type["POLL"] = "POLL"; | ||
Node_Type["SOUND_CLOUD"] = "SOUND_CLOUD"; | ||
Node_Type["VERTICAL_EMBED"] = "VERTICAL_EMBED"; | ||
Node_Type["ACTION_BUTTON"] = "ACTION_BUTTON"; | ||
Node_Type["LINK_BUTTON"] = "LINK_BUTTON"; | ||
Node_Type["ACCORDION"] = "ACCORDION"; | ||
Node_Type["TABLE"] = "TABLE"; | ||
Node_Type["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(Node_Type = exports.Node_Type || (exports.Node_Type = {})); | ||
function node_TypeFromJSON(object) { | ||
@@ -71,76 +43,76 @@ switch (object) { | ||
case 'PARAGRAPH': | ||
return Node_Type.PARAGRAPH; | ||
return "PARAGRAPH" /* PARAGRAPH */; | ||
case 1: | ||
case 'TEXT': | ||
return Node_Type.TEXT; | ||
return "TEXT" /* TEXT */; | ||
case 2: | ||
case 'HEADING': | ||
return Node_Type.HEADING; | ||
return "HEADING" /* HEADING */; | ||
case 3: | ||
case 'BULLET_LIST': | ||
return Node_Type.BULLET_LIST; | ||
return "BULLET_LIST" /* BULLET_LIST */; | ||
case 4: | ||
case 'ORDERED_LIST': | ||
return Node_Type.ORDERED_LIST; | ||
return "ORDERED_LIST" /* ORDERED_LIST */; | ||
case 5: | ||
case 'LIST_ITEM': | ||
return Node_Type.LIST_ITEM; | ||
return "LIST_ITEM" /* LIST_ITEM */; | ||
case 6: | ||
case 'BLOCKQUOTE': | ||
return Node_Type.BLOCKQUOTE; | ||
return "BLOCKQUOTE" /* BLOCKQUOTE */; | ||
case 7: | ||
case 'CODEBLOCK': | ||
return Node_Type.CODEBLOCK; | ||
return "CODEBLOCK" /* CODEBLOCK */; | ||
case 8: | ||
case 'VIDEO': | ||
return Node_Type.VIDEO; | ||
return "VIDEO" /* VIDEO */; | ||
case 9: | ||
case 'DIVIDER': | ||
return Node_Type.DIVIDER; | ||
return "DIVIDER" /* DIVIDER */; | ||
case 10: | ||
case 'FILE': | ||
return Node_Type.FILE; | ||
return "FILE" /* FILE */; | ||
case 11: | ||
case 'GALLERY': | ||
return Node_Type.GALLERY; | ||
return "GALLERY" /* GALLERY */; | ||
case 12: | ||
case 'GIPHY': | ||
return Node_Type.GIPHY; | ||
return "GIPHY" /* GIPHY */; | ||
case 13: | ||
case 'HTML': | ||
return Node_Type.HTML; | ||
return "HTML" /* HTML */; | ||
case 14: | ||
case 'IMAGE': | ||
return Node_Type.IMAGE; | ||
return "IMAGE" /* IMAGE */; | ||
case 15: | ||
case 'LINK_PREVIEW': | ||
return Node_Type.LINK_PREVIEW; | ||
return "LINK_PREVIEW" /* LINK_PREVIEW */; | ||
case 16: | ||
case 'MAP': | ||
return Node_Type.MAP; | ||
return "MAP" /* MAP */; | ||
case 17: | ||
case 'POLL': | ||
return Node_Type.POLL; | ||
return "POLL" /* POLL */; | ||
case 18: | ||
case 'SOUND_CLOUD': | ||
return Node_Type.SOUND_CLOUD; | ||
return "SOUND_CLOUD" /* SOUND_CLOUD */; | ||
case 19: | ||
case 'VERTICAL_EMBED': | ||
return Node_Type.VERTICAL_EMBED; | ||
return "VERTICAL_EMBED" /* VERTICAL_EMBED */; | ||
case 20: | ||
case 'ACTION_BUTTON': | ||
return Node_Type.ACTION_BUTTON; | ||
return "ACTION_BUTTON" /* ACTION_BUTTON */; | ||
case 21: | ||
case 'LINK_BUTTON': | ||
return Node_Type.LINK_BUTTON; | ||
return "LINK_BUTTON" /* LINK_BUTTON */; | ||
case 22: | ||
case 'ACCORDION': | ||
return Node_Type.ACCORDION; | ||
return "ACCORDION" /* ACCORDION */; | ||
case 23: | ||
case 'TABLE': | ||
return Node_Type.TABLE; | ||
return "TABLE" /* TABLE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return Node_Type.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -151,49 +123,49 @@ } | ||
switch (object) { | ||
case Node_Type.PARAGRAPH: | ||
case "PARAGRAPH" /* PARAGRAPH */: | ||
return 'PARAGRAPH'; | ||
case Node_Type.TEXT: | ||
case "TEXT" /* TEXT */: | ||
return 'TEXT'; | ||
case Node_Type.HEADING: | ||
case "HEADING" /* HEADING */: | ||
return 'HEADING'; | ||
case Node_Type.BULLET_LIST: | ||
case "BULLET_LIST" /* BULLET_LIST */: | ||
return 'BULLET_LIST'; | ||
case Node_Type.ORDERED_LIST: | ||
case "ORDERED_LIST" /* ORDERED_LIST */: | ||
return 'ORDERED_LIST'; | ||
case Node_Type.LIST_ITEM: | ||
case "LIST_ITEM" /* LIST_ITEM */: | ||
return 'LIST_ITEM'; | ||
case Node_Type.BLOCKQUOTE: | ||
case "BLOCKQUOTE" /* BLOCKQUOTE */: | ||
return 'BLOCKQUOTE'; | ||
case Node_Type.CODEBLOCK: | ||
case "CODEBLOCK" /* CODEBLOCK */: | ||
return 'CODEBLOCK'; | ||
case Node_Type.VIDEO: | ||
case "VIDEO" /* VIDEO */: | ||
return 'VIDEO'; | ||
case Node_Type.DIVIDER: | ||
case "DIVIDER" /* DIVIDER */: | ||
return 'DIVIDER'; | ||
case Node_Type.FILE: | ||
case "FILE" /* FILE */: | ||
return 'FILE'; | ||
case Node_Type.GALLERY: | ||
case "GALLERY" /* GALLERY */: | ||
return 'GALLERY'; | ||
case Node_Type.GIPHY: | ||
case "GIPHY" /* GIPHY */: | ||
return 'GIPHY'; | ||
case Node_Type.HTML: | ||
case "HTML" /* HTML */: | ||
return 'HTML'; | ||
case Node_Type.IMAGE: | ||
case "IMAGE" /* IMAGE */: | ||
return 'IMAGE'; | ||
case Node_Type.LINK_PREVIEW: | ||
case "LINK_PREVIEW" /* LINK_PREVIEW */: | ||
return 'LINK_PREVIEW'; | ||
case Node_Type.MAP: | ||
case "MAP" /* MAP */: | ||
return 'MAP'; | ||
case Node_Type.POLL: | ||
case "POLL" /* POLL */: | ||
return 'POLL'; | ||
case Node_Type.SOUND_CLOUD: | ||
case "SOUND_CLOUD" /* SOUND_CLOUD */: | ||
return 'SOUND_CLOUD'; | ||
case Node_Type.VERTICAL_EMBED: | ||
case "VERTICAL_EMBED" /* VERTICAL_EMBED */: | ||
return 'VERTICAL_EMBED'; | ||
case Node_Type.ACTION_BUTTON: | ||
case "ACTION_BUTTON" /* ACTION_BUTTON */: | ||
return 'ACTION_BUTTON'; | ||
case Node_Type.LINK_BUTTON: | ||
case "LINK_BUTTON" /* LINK_BUTTON */: | ||
return 'LINK_BUTTON'; | ||
case Node_Type.ACCORDION: | ||
case "ACCORDION" /* ACCORDION */: | ||
return 'ACCORDION'; | ||
case Node_Type.TABLE: | ||
case "TABLE" /* TABLE */: | ||
return 'TABLE'; | ||
@@ -205,14 +177,2 @@ default: | ||
exports.node_TypeToJSON = node_TypeToJSON; | ||
var Decoration_Type; | ||
(function (Decoration_Type) { | ||
Decoration_Type["BOLD"] = "BOLD"; | ||
Decoration_Type["ITALIC"] = "ITALIC"; | ||
Decoration_Type["UNDERLINE"] = "UNDERLINE"; | ||
Decoration_Type["SPOILER"] = "SPOILER"; | ||
Decoration_Type["ANCHOR"] = "ANCHOR"; | ||
Decoration_Type["MENTION"] = "MENTION"; | ||
Decoration_Type["LINK"] = "LINK"; | ||
Decoration_Type["COLOR"] = "COLOR"; | ||
Decoration_Type["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(Decoration_Type = exports.Decoration_Type || (exports.Decoration_Type = {})); | ||
function decoration_TypeFromJSON(object) { | ||
@@ -222,28 +182,28 @@ switch (object) { | ||
case 'BOLD': | ||
return Decoration_Type.BOLD; | ||
return "BOLD" /* BOLD */; | ||
case 1: | ||
case 'ITALIC': | ||
return Decoration_Type.ITALIC; | ||
return "ITALIC" /* ITALIC */; | ||
case 2: | ||
case 'UNDERLINE': | ||
return Decoration_Type.UNDERLINE; | ||
return "UNDERLINE" /* UNDERLINE */; | ||
case 3: | ||
case 'SPOILER': | ||
return Decoration_Type.SPOILER; | ||
return "SPOILER" /* SPOILER */; | ||
case 4: | ||
case 'ANCHOR': | ||
return Decoration_Type.ANCHOR; | ||
return "ANCHOR" /* ANCHOR */; | ||
case 5: | ||
case 'MENTION': | ||
return Decoration_Type.MENTION; | ||
return "MENTION" /* MENTION */; | ||
case 6: | ||
case 'LINK': | ||
return Decoration_Type.LINK; | ||
return "LINK" /* LINK */; | ||
case 7: | ||
case 'COLOR': | ||
return Decoration_Type.COLOR; | ||
return "COLOR" /* COLOR */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return Decoration_Type.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -254,17 +214,17 @@ } | ||
switch (object) { | ||
case Decoration_Type.BOLD: | ||
case "BOLD" /* BOLD */: | ||
return 'BOLD'; | ||
case Decoration_Type.ITALIC: | ||
case "ITALIC" /* ITALIC */: | ||
return 'ITALIC'; | ||
case Decoration_Type.UNDERLINE: | ||
case "UNDERLINE" /* UNDERLINE */: | ||
return 'UNDERLINE'; | ||
case Decoration_Type.SPOILER: | ||
case "SPOILER" /* SPOILER */: | ||
return 'SPOILER'; | ||
case Decoration_Type.ANCHOR: | ||
case "ANCHOR" /* ANCHOR */: | ||
return 'ANCHOR'; | ||
case Decoration_Type.MENTION: | ||
case "MENTION" /* MENTION */: | ||
return 'MENTION'; | ||
case Decoration_Type.LINK: | ||
case "LINK" /* LINK */: | ||
return 'LINK'; | ||
case Decoration_Type.COLOR: | ||
case "COLOR" /* COLOR */: | ||
return 'COLOR'; | ||
@@ -308,3 +268,3 @@ default: | ||
}; | ||
var baseNode = { type: Node_Type.PARAGRAPH, key: '' }; | ||
var baseNode = { type: "PARAGRAPH" /* PARAGRAPH */, key: '' }; | ||
exports.Node = { | ||
@@ -318,3 +278,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = Node_Type.PARAGRAPH; | ||
message.type = "PARAGRAPH" /* PARAGRAPH */; | ||
} | ||
@@ -523,3 +483,3 @@ if (object.key !== undefined && object.key !== null) { | ||
}; | ||
var baseDecoration = { type: Decoration_Type.BOLD }; | ||
var baseDecoration = { type: "BOLD" /* BOLD */ }; | ||
exports.Decoration = { | ||
@@ -532,3 +492,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = Decoration_Type.BOLD; | ||
message.type = "BOLD" /* BOLD */; | ||
} | ||
@@ -535,0 +495,0 @@ if (object.anchorData !== undefined && object.anchorData !== null) { |
@@ -12,10 +12,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
export var Common_TextAlignment; | ||
(function (Common_TextAlignment) { | ||
Common_TextAlignment["LEFT"] = "LEFT"; | ||
Common_TextAlignment["RIGHT"] = "RIGHT"; | ||
Common_TextAlignment["CENTER"] = "CENTER"; | ||
Common_TextAlignment["JUSTIFY"] = "JUSTIFY"; | ||
Common_TextAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(Common_TextAlignment || (Common_TextAlignment = {})); | ||
export function common_TextAlignmentFromJSON(object) { | ||
@@ -25,16 +17,16 @@ switch (object) { | ||
case 'LEFT': | ||
return Common_TextAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return Common_TextAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return Common_TextAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case 3: | ||
case 'JUSTIFY': | ||
return Common_TextAlignment.JUSTIFY; | ||
return "JUSTIFY" /* JUSTIFY */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return Common_TextAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -44,9 +36,9 @@ } | ||
switch (object) { | ||
case Common_TextAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case Common_TextAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case Common_TextAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
case Common_TextAlignment.JUSTIFY: | ||
case "JUSTIFY" /* JUSTIFY */: | ||
return 'JUSTIFY'; | ||
@@ -53,0 +45,0 @@ default: |
@@ -13,4 +13,4 @@ var __assign = (this && this.__assign) || function () { | ||
/* eslint-disable */ | ||
import { Common_TextAlignment, Common_DynamicStyles, common_TextAlignmentFromJSON, common_TextAlignmentToJSON, } from './common'; | ||
var baseCodeData = { textAlignment: Common_TextAlignment.LEFT }; | ||
import { Common_DynamicStyles, common_TextAlignmentFromJSON, common_TextAlignmentToJSON, } from './common'; | ||
var baseCodeData = { textAlignment: "LEFT" /* LEFT */ }; | ||
export var CodeData = { | ||
@@ -23,3 +23,3 @@ fromJSON: function (object) { | ||
else { | ||
message.textAlignment = Common_TextAlignment.LEFT; | ||
message.textAlignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -26,0 +26,0 @@ if (object.dynamicStyles !== undefined && object.dynamicStyles !== null) { |
@@ -13,4 +13,4 @@ var __assign = (this && this.__assign) || function () { | ||
/* eslint-disable */ | ||
import { Common_TextAlignment, Common_DynamicStyles, common_TextAlignmentFromJSON, common_TextAlignmentToJSON, } from './common'; | ||
var baseHeadingData = { level: 0, textAlignment: Common_TextAlignment.LEFT }; | ||
import { Common_DynamicStyles, common_TextAlignmentFromJSON, common_TextAlignmentToJSON, } from './common'; | ||
var baseHeadingData = { level: 0, textAlignment: "LEFT" /* LEFT */ }; | ||
export var HeadingData = { | ||
@@ -29,3 +29,3 @@ fromJSON: function (object) { | ||
else { | ||
message.textAlignment = Common_TextAlignment.LEFT; | ||
message.textAlignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -32,0 +32,0 @@ if (object.dynamicStyles !== undefined && object.dynamicStyles !== null) { |
@@ -13,4 +13,4 @@ var __assign = (this && this.__assign) || function () { | ||
/* eslint-disable */ | ||
import { Common_TextAlignment, Common_DynamicStyles, common_TextAlignmentFromJSON, common_TextAlignmentToJSON, } from './common'; | ||
var baseParagraphData = { textAlignment: Common_TextAlignment.LEFT }; | ||
import { Common_DynamicStyles, common_TextAlignmentFromJSON, common_TextAlignmentToJSON, } from './common'; | ||
var baseParagraphData = { textAlignment: "LEFT" /* LEFT */ }; | ||
export var ParagraphData = { | ||
@@ -23,3 +23,3 @@ fromJSON: function (object) { | ||
else { | ||
message.textAlignment = Common_TextAlignment.LEFT; | ||
message.textAlignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -26,0 +26,0 @@ if (object.dynamicStyles !== undefined && object.dynamicStyles !== null) { |
@@ -12,10 +12,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
export var DividerData_DividerType; | ||
(function (DividerData_DividerType) { | ||
DividerData_DividerType["DOUBLE"] = "DOUBLE"; | ||
DividerData_DividerType["SINGLE"] = "SINGLE"; | ||
DividerData_DividerType["DASHED"] = "DASHED"; | ||
DividerData_DividerType["DOTTED"] = "DOTTED"; | ||
DividerData_DividerType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(DividerData_DividerType || (DividerData_DividerType = {})); | ||
export function dividerData_DividerTypeFromJSON(object) { | ||
@@ -25,16 +17,16 @@ switch (object) { | ||
case 'DOUBLE': | ||
return DividerData_DividerType.DOUBLE; | ||
return "DOUBLE" /* DOUBLE */; | ||
case 1: | ||
case 'SINGLE': | ||
return DividerData_DividerType.SINGLE; | ||
return "SINGLE" /* SINGLE */; | ||
case 2: | ||
case 'DASHED': | ||
return DividerData_DividerType.DASHED; | ||
return "DASHED" /* DASHED */; | ||
case 3: | ||
case 'DOTTED': | ||
return DividerData_DividerType.DOTTED; | ||
return "DOTTED" /* DOTTED */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return DividerData_DividerType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -44,9 +36,9 @@ } | ||
switch (object) { | ||
case DividerData_DividerType.DOUBLE: | ||
case "DOUBLE" /* DOUBLE */: | ||
return 'DOUBLE'; | ||
case DividerData_DividerType.SINGLE: | ||
case "SINGLE" /* SINGLE */: | ||
return 'SINGLE'; | ||
case DividerData_DividerType.DASHED: | ||
case "DASHED" /* DASHED */: | ||
return 'DASHED'; | ||
case DividerData_DividerType.DOTTED: | ||
case "DOTTED" /* DOTTED */: | ||
return 'DOTTED'; | ||
@@ -57,9 +49,2 @@ default: | ||
} | ||
export var DividerConfig_DividerSize; | ||
(function (DividerConfig_DividerSize) { | ||
DividerConfig_DividerSize["SMALL"] = "SMALL"; | ||
DividerConfig_DividerSize["MEDIUM"] = "MEDIUM"; | ||
DividerConfig_DividerSize["LARGE"] = "LARGE"; | ||
DividerConfig_DividerSize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(DividerConfig_DividerSize || (DividerConfig_DividerSize = {})); | ||
export function dividerConfig_DividerSizeFromJSON(object) { | ||
@@ -69,13 +54,13 @@ switch (object) { | ||
case 'SMALL': | ||
return DividerConfig_DividerSize.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 1: | ||
case 'MEDIUM': | ||
return DividerConfig_DividerSize.MEDIUM; | ||
return "MEDIUM" /* MEDIUM */; | ||
case 2: | ||
case 'LARGE': | ||
return DividerConfig_DividerSize.LARGE; | ||
return "LARGE" /* LARGE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return DividerConfig_DividerSize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -85,7 +70,7 @@ } | ||
switch (object) { | ||
case DividerConfig_DividerSize.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case DividerConfig_DividerSize.MEDIUM: | ||
case "MEDIUM" /* MEDIUM */: | ||
return 'MEDIUM'; | ||
case DividerConfig_DividerSize.LARGE: | ||
case "LARGE" /* LARGE */: | ||
return 'LARGE'; | ||
@@ -96,9 +81,2 @@ default: | ||
} | ||
export var DividerConfig_DividerAlignment; | ||
(function (DividerConfig_DividerAlignment) { | ||
DividerConfig_DividerAlignment["LEFT"] = "LEFT"; | ||
DividerConfig_DividerAlignment["RIGHT"] = "RIGHT"; | ||
DividerConfig_DividerAlignment["CENTER"] = "CENTER"; | ||
DividerConfig_DividerAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(DividerConfig_DividerAlignment || (DividerConfig_DividerAlignment = {})); | ||
export function dividerConfig_DividerAlignmentFromJSON(object) { | ||
@@ -108,13 +86,13 @@ switch (object) { | ||
case 'LEFT': | ||
return DividerConfig_DividerAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return DividerConfig_DividerAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return DividerConfig_DividerAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return DividerConfig_DividerAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -124,7 +102,7 @@ } | ||
switch (object) { | ||
case DividerConfig_DividerAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case DividerConfig_DividerAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case DividerConfig_DividerAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -135,3 +113,3 @@ default: | ||
} | ||
var baseDividerData = { type: DividerData_DividerType.DOUBLE }; | ||
var baseDividerData = { type: "DOUBLE" /* DOUBLE */ }; | ||
export var DividerData = { | ||
@@ -144,3 +122,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = DividerData_DividerType.DOUBLE; | ||
message.type = "DOUBLE" /* DOUBLE */; | ||
} | ||
@@ -164,4 +142,4 @@ if (object.config !== undefined && object.config !== null) { | ||
var baseDividerConfig = { | ||
size: DividerConfig_DividerSize.SMALL, | ||
alignment: DividerConfig_DividerAlignment.LEFT, | ||
size: "SMALL" /* SMALL */, | ||
alignment: "LEFT" /* LEFT */, | ||
}; | ||
@@ -175,3 +153,3 @@ export var DividerConfig = { | ||
else { | ||
message.size = DividerConfig_DividerSize.SMALL; | ||
message.size = "SMALL" /* SMALL */; | ||
} | ||
@@ -182,3 +160,3 @@ if (object.alignment !== undefined && object.alignment !== null) { | ||
else { | ||
message.alignment = DividerConfig_DividerAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -185,0 +163,0 @@ if (object.textWrap !== undefined && object.textWrap !== null) { |
@@ -14,9 +14,2 @@ var __assign = (this && this.__assign) || function () { | ||
import { Spoiler } from './common'; | ||
export var GalleryConfig_GallerySize; | ||
(function (GalleryConfig_GallerySize) { | ||
GalleryConfig_GallerySize["CONTENT"] = "CONTENT"; | ||
GalleryConfig_GallerySize["SMALL"] = "SMALL"; | ||
GalleryConfig_GallerySize["FULL_WIDTH"] = "FULL_WIDTH"; | ||
GalleryConfig_GallerySize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(GalleryConfig_GallerySize || (GalleryConfig_GallerySize = {})); | ||
export function galleryConfig_GallerySizeFromJSON(object) { | ||
@@ -26,13 +19,13 @@ switch (object) { | ||
case 'CONTENT': | ||
return GalleryConfig_GallerySize.CONTENT; | ||
return "CONTENT" /* CONTENT */; | ||
case 1: | ||
case 'SMALL': | ||
return GalleryConfig_GallerySize.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 2: | ||
case 'FULL_WIDTH': | ||
return GalleryConfig_GallerySize.FULL_WIDTH; | ||
return "FULL_WIDTH" /* FULL_WIDTH */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return GalleryConfig_GallerySize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -42,7 +35,7 @@ } | ||
switch (object) { | ||
case GalleryConfig_GallerySize.CONTENT: | ||
case "CONTENT" /* CONTENT */: | ||
return 'CONTENT'; | ||
case GalleryConfig_GallerySize.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case GalleryConfig_GallerySize.FULL_WIDTH: | ||
case "FULL_WIDTH" /* FULL_WIDTH */: | ||
return 'FULL_WIDTH'; | ||
@@ -53,9 +46,2 @@ default: | ||
} | ||
export var GalleryConfig_GalleryAlignment; | ||
(function (GalleryConfig_GalleryAlignment) { | ||
GalleryConfig_GalleryAlignment["LEFT"] = "LEFT"; | ||
GalleryConfig_GalleryAlignment["RIGHT"] = "RIGHT"; | ||
GalleryConfig_GalleryAlignment["CENTER"] = "CENTER"; | ||
GalleryConfig_GalleryAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(GalleryConfig_GalleryAlignment || (GalleryConfig_GalleryAlignment = {})); | ||
export function galleryConfig_GalleryAlignmentFromJSON(object) { | ||
@@ -65,13 +51,13 @@ switch (object) { | ||
case 'LEFT': | ||
return GalleryConfig_GalleryAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return GalleryConfig_GalleryAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return GalleryConfig_GalleryAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return GalleryConfig_GalleryAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -81,7 +67,7 @@ } | ||
switch (object) { | ||
case GalleryConfig_GalleryAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case GalleryConfig_GalleryAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case GalleryConfig_GalleryAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -423,4 +409,4 @@ default: | ||
var baseGalleryConfig = { | ||
alignment: GalleryConfig_GalleryAlignment.LEFT, | ||
size: GalleryConfig_GallerySize.CONTENT, | ||
alignment: "LEFT" /* LEFT */, | ||
size: "CONTENT" /* CONTENT */, | ||
}; | ||
@@ -434,3 +420,3 @@ export var GalleryConfig = { | ||
else { | ||
message.alignment = GalleryConfig_GalleryAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -441,3 +427,3 @@ if (object.size !== undefined && object.size !== null) { | ||
else { | ||
message.size = GalleryConfig_GallerySize.CONTENT; | ||
message.size = "CONTENT" /* CONTENT */; | ||
} | ||
@@ -444,0 +430,0 @@ if (object.layout !== undefined && object.layout !== null) { |
@@ -12,8 +12,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
export var GIphyConfigViewer_GiphyViewerSize; | ||
(function (GIphyConfigViewer_GiphyViewerSize) { | ||
GIphyConfigViewer_GiphyViewerSize["ORIGINAL"] = "ORIGINAL"; | ||
GIphyConfigViewer_GiphyViewerSize["DOWNSIZED_SMALL"] = "DOWNSIZED_SMALL"; | ||
GIphyConfigViewer_GiphyViewerSize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(GIphyConfigViewer_GiphyViewerSize || (GIphyConfigViewer_GiphyViewerSize = {})); | ||
export function gIphyConfigViewer_GiphyViewerSizeFromJSON(object) { | ||
@@ -23,10 +17,10 @@ switch (object) { | ||
case 'ORIGINAL': | ||
return GIphyConfigViewer_GiphyViewerSize.ORIGINAL; | ||
return "ORIGINAL" /* ORIGINAL */; | ||
case 1: | ||
case 'DOWNSIZED_SMALL': | ||
return GIphyConfigViewer_GiphyViewerSize.DOWNSIZED_SMALL; | ||
return "DOWNSIZED_SMALL" /* DOWNSIZED_SMALL */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return GIphyConfigViewer_GiphyViewerSize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -36,5 +30,5 @@ } | ||
switch (object) { | ||
case GIphyConfigViewer_GiphyViewerSize.ORIGINAL: | ||
case "ORIGINAL" /* ORIGINAL */: | ||
return 'ORIGINAL'; | ||
case GIphyConfigViewer_GiphyViewerSize.DOWNSIZED_SMALL: | ||
case "DOWNSIZED_SMALL" /* DOWNSIZED_SMALL */: | ||
return 'DOWNSIZED_SMALL'; | ||
@@ -196,4 +190,4 @@ default: | ||
var baseGIphyConfigViewer_GiphyViewerSizes = { | ||
desktop: GIphyConfigViewer_GiphyViewerSize.ORIGINAL, | ||
mobile: GIphyConfigViewer_GiphyViewerSize.ORIGINAL, | ||
desktop: "ORIGINAL" /* ORIGINAL */, | ||
mobile: "ORIGINAL" /* ORIGINAL */, | ||
}; | ||
@@ -207,3 +201,3 @@ export var GIphyConfigViewer_GiphyViewerSizes = { | ||
else { | ||
message.desktop = GIphyConfigViewer_GiphyViewerSize.ORIGINAL; | ||
message.desktop = "ORIGINAL" /* ORIGINAL */; | ||
} | ||
@@ -214,3 +208,3 @@ if (object.mobile !== undefined && object.mobile !== null) { | ||
else { | ||
message.mobile = GIphyConfigViewer_GiphyViewerSize.ORIGINAL; | ||
message.mobile = "ORIGINAL" /* ORIGINAL */; | ||
} | ||
@@ -217,0 +211,0 @@ return message; |
@@ -12,9 +12,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
export var HTMLConfig_HTMLAlignment; | ||
(function (HTMLConfig_HTMLAlignment) { | ||
HTMLConfig_HTMLAlignment["LEFT"] = "LEFT"; | ||
HTMLConfig_HTMLAlignment["RIGHT"] = "RIGHT"; | ||
HTMLConfig_HTMLAlignment["CENTER"] = "CENTER"; | ||
HTMLConfig_HTMLAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(HTMLConfig_HTMLAlignment || (HTMLConfig_HTMLAlignment = {})); | ||
export function hTMLConfig_HTMLAlignmentFromJSON(object) { | ||
@@ -24,13 +17,13 @@ switch (object) { | ||
case 'LEFT': | ||
return HTMLConfig_HTMLAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return HTMLConfig_HTMLAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return HTMLConfig_HTMLAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return HTMLConfig_HTMLAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -40,7 +33,7 @@ } | ||
switch (object) { | ||
case HTMLConfig_HTMLAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case HTMLConfig_HTMLAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case HTMLConfig_HTMLAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -84,3 +77,3 @@ default: | ||
}; | ||
var baseHTMLConfig = { alignment: HTMLConfig_HTMLAlignment.LEFT }; | ||
var baseHTMLConfig = { alignment: "LEFT" /* LEFT */ }; | ||
export var HTMLConfig = { | ||
@@ -105,3 +98,3 @@ fromJSON: function (object) { | ||
else { | ||
message.alignment = HTMLConfig_HTMLAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -108,0 +101,0 @@ if (object.safe !== undefined && object.safe !== null) { |
@@ -14,11 +14,2 @@ var __assign = (this && this.__assign) || function () { | ||
import { Spoiler } from './common'; | ||
export var ImageConfig_ImageSize; | ||
(function (ImageConfig_ImageSize) { | ||
ImageConfig_ImageSize["CONTENT"] = "CONTENT"; | ||
ImageConfig_ImageSize["SMALL"] = "SMALL"; | ||
ImageConfig_ImageSize["ORIGINAL"] = "ORIGINAL"; | ||
ImageConfig_ImageSize["FULL_WIDTH"] = "FULL_WIDTH"; | ||
ImageConfig_ImageSize["INLINE"] = "INLINE"; | ||
ImageConfig_ImageSize["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(ImageConfig_ImageSize || (ImageConfig_ImageSize = {})); | ||
export function imageConfig_ImageSizeFromJSON(object) { | ||
@@ -28,19 +19,19 @@ switch (object) { | ||
case 'CONTENT': | ||
return ImageConfig_ImageSize.CONTENT; | ||
return "CONTENT" /* CONTENT */; | ||
case 1: | ||
case 'SMALL': | ||
return ImageConfig_ImageSize.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 2: | ||
case 'ORIGINAL': | ||
return ImageConfig_ImageSize.ORIGINAL; | ||
return "ORIGINAL" /* ORIGINAL */; | ||
case 3: | ||
case 'FULL_WIDTH': | ||
return ImageConfig_ImageSize.FULL_WIDTH; | ||
return "FULL_WIDTH" /* FULL_WIDTH */; | ||
case 4: | ||
case 'INLINE': | ||
return ImageConfig_ImageSize.INLINE; | ||
return "INLINE" /* INLINE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return ImageConfig_ImageSize.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -50,11 +41,11 @@ } | ||
switch (object) { | ||
case ImageConfig_ImageSize.CONTENT: | ||
case "CONTENT" /* CONTENT */: | ||
return 'CONTENT'; | ||
case ImageConfig_ImageSize.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case ImageConfig_ImageSize.ORIGINAL: | ||
case "ORIGINAL" /* ORIGINAL */: | ||
return 'ORIGINAL'; | ||
case ImageConfig_ImageSize.FULL_WIDTH: | ||
case "FULL_WIDTH" /* FULL_WIDTH */: | ||
return 'FULL_WIDTH'; | ||
case ImageConfig_ImageSize.INLINE: | ||
case "INLINE" /* INLINE */: | ||
return 'INLINE'; | ||
@@ -65,9 +56,2 @@ default: | ||
} | ||
export var ImageConfig_ImageAlignment; | ||
(function (ImageConfig_ImageAlignment) { | ||
ImageConfig_ImageAlignment["LEFT"] = "LEFT"; | ||
ImageConfig_ImageAlignment["RIGHT"] = "RIGHT"; | ||
ImageConfig_ImageAlignment["CENTER"] = "CENTER"; | ||
ImageConfig_ImageAlignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(ImageConfig_ImageAlignment || (ImageConfig_ImageAlignment = {})); | ||
export function imageConfig_ImageAlignmentFromJSON(object) { | ||
@@ -77,13 +61,13 @@ switch (object) { | ||
case 'LEFT': | ||
return ImageConfig_ImageAlignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return ImageConfig_ImageAlignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return ImageConfig_ImageAlignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return ImageConfig_ImageAlignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -93,7 +77,7 @@ } | ||
switch (object) { | ||
case ImageConfig_ImageAlignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case ImageConfig_ImageAlignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case ImageConfig_ImageAlignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -172,4 +156,4 @@ default: | ||
var baseImageConfig = { | ||
size: ImageConfig_ImageSize.CONTENT, | ||
alignment: ImageConfig_ImageAlignment.LEFT, | ||
size: "CONTENT" /* CONTENT */, | ||
alignment: "LEFT" /* LEFT */, | ||
}; | ||
@@ -183,3 +167,3 @@ export var ImageConfig = { | ||
else { | ||
message.size = ImageConfig_ImageSize.CONTENT; | ||
message.size = "CONTENT" /* CONTENT */; | ||
} | ||
@@ -190,3 +174,3 @@ if (object.alignment !== undefined && object.alignment !== null) { | ||
else { | ||
message.alignment = ImageConfig_ImageAlignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -193,0 +177,0 @@ if (object.showTitle !== undefined && object.showTitle !== null) { |
@@ -12,9 +12,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
export var PollSettings_ResultsVisibility; | ||
(function (PollSettings_ResultsVisibility) { | ||
PollSettings_ResultsVisibility["ALWAYS"] = "ALWAYS"; | ||
PollSettings_ResultsVisibility["VOTERS_ONLY"] = "VOTERS_ONLY"; | ||
PollSettings_ResultsVisibility["ONLY_ME"] = "ONLY_ME"; | ||
PollSettings_ResultsVisibility["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollSettings_ResultsVisibility || (PollSettings_ResultsVisibility = {})); | ||
export function pollSettings_ResultsVisibilityFromJSON(object) { | ||
@@ -24,13 +17,13 @@ switch (object) { | ||
case 'ALWAYS': | ||
return PollSettings_ResultsVisibility.ALWAYS; | ||
return "ALWAYS" /* ALWAYS */; | ||
case 1: | ||
case 'VOTERS_ONLY': | ||
return PollSettings_ResultsVisibility.VOTERS_ONLY; | ||
return "VOTERS_ONLY" /* VOTERS_ONLY */; | ||
case 2: | ||
case 'ONLY_ME': | ||
return PollSettings_ResultsVisibility.ONLY_ME; | ||
return "ONLY_ME" /* ONLY_ME */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollSettings_ResultsVisibility.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -40,7 +33,7 @@ } | ||
switch (object) { | ||
case PollSettings_ResultsVisibility.ALWAYS: | ||
case "ALWAYS" /* ALWAYS */: | ||
return 'ALWAYS'; | ||
case PollSettings_ResultsVisibility.VOTERS_ONLY: | ||
case "VOTERS_ONLY" /* VOTERS_ONLY */: | ||
return 'VOTERS_ONLY'; | ||
case PollSettings_ResultsVisibility.ONLY_ME: | ||
case "ONLY_ME" /* ONLY_ME */: | ||
return 'ONLY_ME'; | ||
@@ -51,8 +44,2 @@ default: | ||
} | ||
export var PollSettings_VoteRole; | ||
(function (PollSettings_VoteRole) { | ||
PollSettings_VoteRole["ALL"] = "ALL"; | ||
PollSettings_VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS"; | ||
PollSettings_VoteRole["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollSettings_VoteRole || (PollSettings_VoteRole = {})); | ||
export function pollSettings_VoteRoleFromJSON(object) { | ||
@@ -62,10 +49,10 @@ switch (object) { | ||
case 'ALL': | ||
return PollSettings_VoteRole.ALL; | ||
return "ALL" /* ALL */; | ||
case 1: | ||
case 'SITE_MEMBERS': | ||
return PollSettings_VoteRole.SITE_MEMBERS; | ||
return "SITE_MEMBERS" /* SITE_MEMBERS */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollSettings_VoteRole.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -75,5 +62,5 @@ } | ||
switch (object) { | ||
case PollSettings_VoteRole.ALL: | ||
case "ALL" /* ALL */: | ||
return 'ALL'; | ||
case PollSettings_VoteRole.SITE_MEMBERS: | ||
case "SITE_MEMBERS" /* SITE_MEMBERS */: | ||
return 'SITE_MEMBERS'; | ||
@@ -84,8 +71,2 @@ default: | ||
} | ||
export var PollWidgetLayout_PollLayout_LayoutType; | ||
(function (PollWidgetLayout_PollLayout_LayoutType) { | ||
PollWidgetLayout_PollLayout_LayoutType["LIST"] = "LIST"; | ||
PollWidgetLayout_PollLayout_LayoutType["GRID"] = "GRID"; | ||
PollWidgetLayout_PollLayout_LayoutType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollWidgetLayout_PollLayout_LayoutType || (PollWidgetLayout_PollLayout_LayoutType = {})); | ||
export function pollWidgetLayout_PollLayout_LayoutTypeFromJSON(object) { | ||
@@ -95,10 +76,10 @@ switch (object) { | ||
case 'LIST': | ||
return PollWidgetLayout_PollLayout_LayoutType.LIST; | ||
return "LIST" /* LIST */; | ||
case 1: | ||
case 'GRID': | ||
return PollWidgetLayout_PollLayout_LayoutType.GRID; | ||
return "GRID" /* GRID */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollWidgetLayout_PollLayout_LayoutType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -108,5 +89,5 @@ } | ||
switch (object) { | ||
case PollWidgetLayout_PollLayout_LayoutType.LIST: | ||
case "LIST" /* LIST */: | ||
return 'LIST'; | ||
case PollWidgetLayout_PollLayout_LayoutType.GRID: | ||
case "GRID" /* GRID */: | ||
return 'GRID'; | ||
@@ -117,8 +98,2 @@ default: | ||
} | ||
export var PollWidgetLayout_PollLayout_Direction; | ||
(function (PollWidgetLayout_PollLayout_Direction) { | ||
PollWidgetLayout_PollLayout_Direction["LTR"] = "LTR"; | ||
PollWidgetLayout_PollLayout_Direction["RTL"] = "RTL"; | ||
PollWidgetLayout_PollLayout_Direction["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollWidgetLayout_PollLayout_Direction || (PollWidgetLayout_PollLayout_Direction = {})); | ||
export function pollWidgetLayout_PollLayout_DirectionFromJSON(object) { | ||
@@ -128,10 +103,10 @@ switch (object) { | ||
case 'LTR': | ||
return PollWidgetLayout_PollLayout_Direction.LTR; | ||
return "LTR" /* LTR */; | ||
case 1: | ||
case 'RTL': | ||
return PollWidgetLayout_PollLayout_Direction.RTL; | ||
return "RTL" /* RTL */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollWidgetLayout_PollLayout_Direction.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -141,5 +116,5 @@ } | ||
switch (object) { | ||
case PollWidgetLayout_PollLayout_Direction.LTR: | ||
case "LTR" /* LTR */: | ||
return 'LTR'; | ||
case PollWidgetLayout_PollLayout_Direction.RTL: | ||
case "RTL" /* RTL */: | ||
return 'RTL'; | ||
@@ -150,9 +125,2 @@ default: | ||
} | ||
export var PollWidgetDesign_PollDesign_BackgroundType; | ||
(function (PollWidgetDesign_PollDesign_BackgroundType) { | ||
PollWidgetDesign_PollDesign_BackgroundType["COLOR"] = "COLOR"; | ||
PollWidgetDesign_PollDesign_BackgroundType["IMAGE"] = "IMAGE"; | ||
PollWidgetDesign_PollDesign_BackgroundType["GRADIENT"] = "GRADIENT"; | ||
PollWidgetDesign_PollDesign_BackgroundType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(PollWidgetDesign_PollDesign_BackgroundType || (PollWidgetDesign_PollDesign_BackgroundType = {})); | ||
export function pollWidgetDesign_PollDesign_BackgroundTypeFromJSON(object) { | ||
@@ -162,13 +130,13 @@ switch (object) { | ||
case 'COLOR': | ||
return PollWidgetDesign_PollDesign_BackgroundType.COLOR; | ||
return "COLOR" /* COLOR */; | ||
case 1: | ||
case 'IMAGE': | ||
return PollWidgetDesign_PollDesign_BackgroundType.IMAGE; | ||
return "IMAGE" /* IMAGE */; | ||
case 2: | ||
case 'GRADIENT': | ||
return PollWidgetDesign_PollDesign_BackgroundType.GRADIENT; | ||
return "GRADIENT" /* GRADIENT */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return PollWidgetDesign_PollDesign_BackgroundType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -178,7 +146,7 @@ } | ||
switch (object) { | ||
case PollWidgetDesign_PollDesign_BackgroundType.COLOR: | ||
case "COLOR" /* COLOR */: | ||
return 'COLOR'; | ||
case PollWidgetDesign_PollDesign_BackgroundType.IMAGE: | ||
case "IMAGE" /* IMAGE */: | ||
return 'IMAGE'; | ||
case PollWidgetDesign_PollDesign_BackgroundType.GRADIENT: | ||
case "GRADIENT" /* GRADIENT */: | ||
return 'GRADIENT'; | ||
@@ -323,4 +291,4 @@ default: | ||
var basePollSettings = { | ||
resultsVisibility: PollSettings_ResultsVisibility.ALWAYS, | ||
voteRole: PollSettings_VoteRole.ALL, | ||
resultsVisibility: "ALWAYS" /* ALWAYS */, | ||
voteRole: "ALL" /* ALL */, | ||
}; | ||
@@ -340,3 +308,3 @@ export var PollSettings = { | ||
else { | ||
message.resultsVisibility = PollSettings_ResultsVisibility.ALWAYS; | ||
message.resultsVisibility = "ALWAYS" /* ALWAYS */; | ||
} | ||
@@ -347,3 +315,3 @@ if (object.voteRole !== undefined && object.voteRole !== null) { | ||
else { | ||
message.voteRole = PollSettings_VoteRole.ALL; | ||
message.voteRole = "ALL" /* ALL */; | ||
} | ||
@@ -406,4 +374,4 @@ if (object.votersDisplay !== undefined && object.votersDisplay !== null) { | ||
var basePollWidgetLayout_PollLayout = { | ||
type: PollWidgetLayout_PollLayout_LayoutType.LIST, | ||
direction: PollWidgetLayout_PollLayout_Direction.LTR, | ||
type: "LIST" /* LIST */, | ||
direction: "LTR" /* LTR */, | ||
}; | ||
@@ -417,3 +385,3 @@ export var PollWidgetLayout_PollLayout = { | ||
else { | ||
message.type = PollWidgetLayout_PollLayout_LayoutType.LIST; | ||
message.type = "LIST" /* LIST */; | ||
} | ||
@@ -424,3 +392,3 @@ if (object.direction !== undefined && object.direction !== null) { | ||
else { | ||
message.direction = PollWidgetLayout_PollLayout_Direction.LTR; | ||
message.direction = "LTR" /* LTR */; | ||
} | ||
@@ -587,3 +555,3 @@ if (object.enableImage !== undefined && object.enableImage !== null) { | ||
var basePollWidgetDesign_PollDesign = { | ||
backgroundType: PollWidgetDesign_PollDesign_BackgroundType.COLOR, | ||
backgroundType: "COLOR" /* COLOR */, | ||
}; | ||
@@ -597,3 +565,3 @@ export var PollWidgetDesign_PollDesign = { | ||
else { | ||
message.backgroundType = PollWidgetDesign_PollDesign_BackgroundType.COLOR; | ||
message.backgroundType = "COLOR" /* COLOR */; | ||
} | ||
@@ -600,0 +568,0 @@ if (object.background !== undefined && object.background !== null) { |
@@ -12,9 +12,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
export var VerticalEmbedData_VerticalType; | ||
(function (VerticalEmbedData_VerticalType) { | ||
VerticalEmbedData_VerticalType["PRODUCT"] = "PRODUCT"; | ||
VerticalEmbedData_VerticalType["EVENT"] = "EVENT"; | ||
VerticalEmbedData_VerticalType["STORE"] = "STORE"; | ||
VerticalEmbedData_VerticalType["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(VerticalEmbedData_VerticalType || (VerticalEmbedData_VerticalType = {})); | ||
export function verticalEmbedData_VerticalTypeFromJSON(object) { | ||
@@ -24,13 +17,13 @@ switch (object) { | ||
case 'PRODUCT': | ||
return VerticalEmbedData_VerticalType.PRODUCT; | ||
return "PRODUCT" /* PRODUCT */; | ||
case 1: | ||
case 'EVENT': | ||
return VerticalEmbedData_VerticalType.EVENT; | ||
return "EVENT" /* EVENT */; | ||
case 2: | ||
case 'STORE': | ||
return VerticalEmbedData_VerticalType.STORE; | ||
return "STORE" /* STORE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return VerticalEmbedData_VerticalType.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -40,7 +33,7 @@ } | ||
switch (object) { | ||
case VerticalEmbedData_VerticalType.PRODUCT: | ||
case "PRODUCT" /* PRODUCT */: | ||
return 'PRODUCT'; | ||
case VerticalEmbedData_VerticalType.EVENT: | ||
case "EVENT" /* EVENT */: | ||
return 'EVENT'; | ||
case VerticalEmbedData_VerticalType.STORE: | ||
case "STORE" /* STORE */: | ||
return 'STORE'; | ||
@@ -51,3 +44,3 @@ default: | ||
} | ||
var baseVerticalEmbedData = { type: VerticalEmbedData_VerticalType.PRODUCT }; | ||
var baseVerticalEmbedData = { type: "PRODUCT" /* PRODUCT */ }; | ||
export var VerticalEmbedData = { | ||
@@ -60,3 +53,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = VerticalEmbedData_VerticalType.PRODUCT; | ||
message.type = "PRODUCT" /* PRODUCT */; | ||
} | ||
@@ -63,0 +56,0 @@ if (object.selectedProduct !== undefined && object.selectedProduct !== null) { |
@@ -14,9 +14,2 @@ var __assign = (this && this.__assign) || function () { | ||
import { Spoiler } from './common'; | ||
export var VideoConfig_Size; | ||
(function (VideoConfig_Size) { | ||
VideoConfig_Size["CONTENT"] = "CONTENT"; | ||
VideoConfig_Size["SMALL"] = "SMALL"; | ||
VideoConfig_Size["FULL_WIDTH"] = "FULL_WIDTH"; | ||
VideoConfig_Size["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(VideoConfig_Size || (VideoConfig_Size = {})); | ||
export function videoConfig_SizeFromJSON(object) { | ||
@@ -26,13 +19,13 @@ switch (object) { | ||
case 'CONTENT': | ||
return VideoConfig_Size.CONTENT; | ||
return "CONTENT" /* CONTENT */; | ||
case 1: | ||
case 'SMALL': | ||
return VideoConfig_Size.SMALL; | ||
return "SMALL" /* SMALL */; | ||
case 2: | ||
case 'FULL_WIDTH': | ||
return VideoConfig_Size.FULL_WIDTH; | ||
return "FULL_WIDTH" /* FULL_WIDTH */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return VideoConfig_Size.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -42,7 +35,7 @@ } | ||
switch (object) { | ||
case VideoConfig_Size.CONTENT: | ||
case "CONTENT" /* CONTENT */: | ||
return 'CONTENT'; | ||
case VideoConfig_Size.SMALL: | ||
case "SMALL" /* SMALL */: | ||
return 'SMALL'; | ||
case VideoConfig_Size.FULL_WIDTH: | ||
case "FULL_WIDTH" /* FULL_WIDTH */: | ||
return 'FULL_WIDTH'; | ||
@@ -53,9 +46,2 @@ default: | ||
} | ||
export var VideoConfig_Alignment; | ||
(function (VideoConfig_Alignment) { | ||
VideoConfig_Alignment["LEFT"] = "LEFT"; | ||
VideoConfig_Alignment["RIGHT"] = "RIGHT"; | ||
VideoConfig_Alignment["CENTER"] = "CENTER"; | ||
VideoConfig_Alignment["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(VideoConfig_Alignment || (VideoConfig_Alignment = {})); | ||
export function videoConfig_AlignmentFromJSON(object) { | ||
@@ -65,13 +51,13 @@ switch (object) { | ||
case 'LEFT': | ||
return VideoConfig_Alignment.LEFT; | ||
return "LEFT" /* LEFT */; | ||
case 1: | ||
case 'RIGHT': | ||
return VideoConfig_Alignment.RIGHT; | ||
return "RIGHT" /* RIGHT */; | ||
case 2: | ||
case 'CENTER': | ||
return VideoConfig_Alignment.CENTER; | ||
return "CENTER" /* CENTER */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return VideoConfig_Alignment.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -81,7 +67,7 @@ } | ||
switch (object) { | ||
case VideoConfig_Alignment.LEFT: | ||
case "LEFT" /* LEFT */: | ||
return 'LEFT'; | ||
case VideoConfig_Alignment.RIGHT: | ||
case "RIGHT" /* RIGHT */: | ||
return 'RIGHT'; | ||
case VideoConfig_Alignment.CENTER: | ||
case "CENTER" /* CENTER */: | ||
return 'CENTER'; | ||
@@ -149,4 +135,4 @@ default: | ||
var baseVideoConfig = { | ||
size: VideoConfig_Size.CONTENT, | ||
alignment: VideoConfig_Alignment.LEFT, | ||
size: "CONTENT" /* CONTENT */, | ||
alignment: "LEFT" /* LEFT */, | ||
}; | ||
@@ -160,3 +146,3 @@ export var VideoConfig = { | ||
else { | ||
message.size = VideoConfig_Size.CONTENT; | ||
message.size = "CONTENT" /* CONTENT */; | ||
} | ||
@@ -167,3 +153,3 @@ if (object.alignment !== undefined && object.alignment !== null) { | ||
else { | ||
message.alignment = VideoConfig_Alignment.LEFT; | ||
message.alignment = "LEFT" /* LEFT */; | ||
} | ||
@@ -170,0 +156,0 @@ if (object.textWrap !== undefined && object.textWrap !== null) { |
@@ -34,30 +34,2 @@ var __assign = (this && this.__assign) || function () { | ||
import { MentionData } from './decoration_mention'; | ||
export var Node_Type; | ||
(function (Node_Type) { | ||
Node_Type["PARAGRAPH"] = "PARAGRAPH"; | ||
Node_Type["TEXT"] = "TEXT"; | ||
Node_Type["HEADING"] = "HEADING"; | ||
Node_Type["BULLET_LIST"] = "BULLET_LIST"; | ||
Node_Type["ORDERED_LIST"] = "ORDERED_LIST"; | ||
Node_Type["LIST_ITEM"] = "LIST_ITEM"; | ||
Node_Type["BLOCKQUOTE"] = "BLOCKQUOTE"; | ||
Node_Type["CODEBLOCK"] = "CODEBLOCK"; | ||
Node_Type["VIDEO"] = "VIDEO"; | ||
Node_Type["DIVIDER"] = "DIVIDER"; | ||
Node_Type["FILE"] = "FILE"; | ||
Node_Type["GALLERY"] = "GALLERY"; | ||
Node_Type["GIPHY"] = "GIPHY"; | ||
Node_Type["HTML"] = "HTML"; | ||
Node_Type["IMAGE"] = "IMAGE"; | ||
Node_Type["LINK_PREVIEW"] = "LINK_PREVIEW"; | ||
Node_Type["MAP"] = "MAP"; | ||
Node_Type["POLL"] = "POLL"; | ||
Node_Type["SOUND_CLOUD"] = "SOUND_CLOUD"; | ||
Node_Type["VERTICAL_EMBED"] = "VERTICAL_EMBED"; | ||
Node_Type["ACTION_BUTTON"] = "ACTION_BUTTON"; | ||
Node_Type["LINK_BUTTON"] = "LINK_BUTTON"; | ||
Node_Type["ACCORDION"] = "ACCORDION"; | ||
Node_Type["TABLE"] = "TABLE"; | ||
Node_Type["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(Node_Type || (Node_Type = {})); | ||
export function node_TypeFromJSON(object) { | ||
@@ -67,76 +39,76 @@ switch (object) { | ||
case 'PARAGRAPH': | ||
return Node_Type.PARAGRAPH; | ||
return "PARAGRAPH" /* PARAGRAPH */; | ||
case 1: | ||
case 'TEXT': | ||
return Node_Type.TEXT; | ||
return "TEXT" /* TEXT */; | ||
case 2: | ||
case 'HEADING': | ||
return Node_Type.HEADING; | ||
return "HEADING" /* HEADING */; | ||
case 3: | ||
case 'BULLET_LIST': | ||
return Node_Type.BULLET_LIST; | ||
return "BULLET_LIST" /* BULLET_LIST */; | ||
case 4: | ||
case 'ORDERED_LIST': | ||
return Node_Type.ORDERED_LIST; | ||
return "ORDERED_LIST" /* ORDERED_LIST */; | ||
case 5: | ||
case 'LIST_ITEM': | ||
return Node_Type.LIST_ITEM; | ||
return "LIST_ITEM" /* LIST_ITEM */; | ||
case 6: | ||
case 'BLOCKQUOTE': | ||
return Node_Type.BLOCKQUOTE; | ||
return "BLOCKQUOTE" /* BLOCKQUOTE */; | ||
case 7: | ||
case 'CODEBLOCK': | ||
return Node_Type.CODEBLOCK; | ||
return "CODEBLOCK" /* CODEBLOCK */; | ||
case 8: | ||
case 'VIDEO': | ||
return Node_Type.VIDEO; | ||
return "VIDEO" /* VIDEO */; | ||
case 9: | ||
case 'DIVIDER': | ||
return Node_Type.DIVIDER; | ||
return "DIVIDER" /* DIVIDER */; | ||
case 10: | ||
case 'FILE': | ||
return Node_Type.FILE; | ||
return "FILE" /* FILE */; | ||
case 11: | ||
case 'GALLERY': | ||
return Node_Type.GALLERY; | ||
return "GALLERY" /* GALLERY */; | ||
case 12: | ||
case 'GIPHY': | ||
return Node_Type.GIPHY; | ||
return "GIPHY" /* GIPHY */; | ||
case 13: | ||
case 'HTML': | ||
return Node_Type.HTML; | ||
return "HTML" /* HTML */; | ||
case 14: | ||
case 'IMAGE': | ||
return Node_Type.IMAGE; | ||
return "IMAGE" /* IMAGE */; | ||
case 15: | ||
case 'LINK_PREVIEW': | ||
return Node_Type.LINK_PREVIEW; | ||
return "LINK_PREVIEW" /* LINK_PREVIEW */; | ||
case 16: | ||
case 'MAP': | ||
return Node_Type.MAP; | ||
return "MAP" /* MAP */; | ||
case 17: | ||
case 'POLL': | ||
return Node_Type.POLL; | ||
return "POLL" /* POLL */; | ||
case 18: | ||
case 'SOUND_CLOUD': | ||
return Node_Type.SOUND_CLOUD; | ||
return "SOUND_CLOUD" /* SOUND_CLOUD */; | ||
case 19: | ||
case 'VERTICAL_EMBED': | ||
return Node_Type.VERTICAL_EMBED; | ||
return "VERTICAL_EMBED" /* VERTICAL_EMBED */; | ||
case 20: | ||
case 'ACTION_BUTTON': | ||
return Node_Type.ACTION_BUTTON; | ||
return "ACTION_BUTTON" /* ACTION_BUTTON */; | ||
case 21: | ||
case 'LINK_BUTTON': | ||
return Node_Type.LINK_BUTTON; | ||
return "LINK_BUTTON" /* LINK_BUTTON */; | ||
case 22: | ||
case 'ACCORDION': | ||
return Node_Type.ACCORDION; | ||
return "ACCORDION" /* ACCORDION */; | ||
case 23: | ||
case 'TABLE': | ||
return Node_Type.TABLE; | ||
return "TABLE" /* TABLE */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return Node_Type.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -146,49 +118,49 @@ } | ||
switch (object) { | ||
case Node_Type.PARAGRAPH: | ||
case "PARAGRAPH" /* PARAGRAPH */: | ||
return 'PARAGRAPH'; | ||
case Node_Type.TEXT: | ||
case "TEXT" /* TEXT */: | ||
return 'TEXT'; | ||
case Node_Type.HEADING: | ||
case "HEADING" /* HEADING */: | ||
return 'HEADING'; | ||
case Node_Type.BULLET_LIST: | ||
case "BULLET_LIST" /* BULLET_LIST */: | ||
return 'BULLET_LIST'; | ||
case Node_Type.ORDERED_LIST: | ||
case "ORDERED_LIST" /* ORDERED_LIST */: | ||
return 'ORDERED_LIST'; | ||
case Node_Type.LIST_ITEM: | ||
case "LIST_ITEM" /* LIST_ITEM */: | ||
return 'LIST_ITEM'; | ||
case Node_Type.BLOCKQUOTE: | ||
case "BLOCKQUOTE" /* BLOCKQUOTE */: | ||
return 'BLOCKQUOTE'; | ||
case Node_Type.CODEBLOCK: | ||
case "CODEBLOCK" /* CODEBLOCK */: | ||
return 'CODEBLOCK'; | ||
case Node_Type.VIDEO: | ||
case "VIDEO" /* VIDEO */: | ||
return 'VIDEO'; | ||
case Node_Type.DIVIDER: | ||
case "DIVIDER" /* DIVIDER */: | ||
return 'DIVIDER'; | ||
case Node_Type.FILE: | ||
case "FILE" /* FILE */: | ||
return 'FILE'; | ||
case Node_Type.GALLERY: | ||
case "GALLERY" /* GALLERY */: | ||
return 'GALLERY'; | ||
case Node_Type.GIPHY: | ||
case "GIPHY" /* GIPHY */: | ||
return 'GIPHY'; | ||
case Node_Type.HTML: | ||
case "HTML" /* HTML */: | ||
return 'HTML'; | ||
case Node_Type.IMAGE: | ||
case "IMAGE" /* IMAGE */: | ||
return 'IMAGE'; | ||
case Node_Type.LINK_PREVIEW: | ||
case "LINK_PREVIEW" /* LINK_PREVIEW */: | ||
return 'LINK_PREVIEW'; | ||
case Node_Type.MAP: | ||
case "MAP" /* MAP */: | ||
return 'MAP'; | ||
case Node_Type.POLL: | ||
case "POLL" /* POLL */: | ||
return 'POLL'; | ||
case Node_Type.SOUND_CLOUD: | ||
case "SOUND_CLOUD" /* SOUND_CLOUD */: | ||
return 'SOUND_CLOUD'; | ||
case Node_Type.VERTICAL_EMBED: | ||
case "VERTICAL_EMBED" /* VERTICAL_EMBED */: | ||
return 'VERTICAL_EMBED'; | ||
case Node_Type.ACTION_BUTTON: | ||
case "ACTION_BUTTON" /* ACTION_BUTTON */: | ||
return 'ACTION_BUTTON'; | ||
case Node_Type.LINK_BUTTON: | ||
case "LINK_BUTTON" /* LINK_BUTTON */: | ||
return 'LINK_BUTTON'; | ||
case Node_Type.ACCORDION: | ||
case "ACCORDION" /* ACCORDION */: | ||
return 'ACCORDION'; | ||
case Node_Type.TABLE: | ||
case "TABLE" /* TABLE */: | ||
return 'TABLE'; | ||
@@ -199,14 +171,2 @@ default: | ||
} | ||
export var Decoration_Type; | ||
(function (Decoration_Type) { | ||
Decoration_Type["BOLD"] = "BOLD"; | ||
Decoration_Type["ITALIC"] = "ITALIC"; | ||
Decoration_Type["UNDERLINE"] = "UNDERLINE"; | ||
Decoration_Type["SPOILER"] = "SPOILER"; | ||
Decoration_Type["ANCHOR"] = "ANCHOR"; | ||
Decoration_Type["MENTION"] = "MENTION"; | ||
Decoration_Type["LINK"] = "LINK"; | ||
Decoration_Type["COLOR"] = "COLOR"; | ||
Decoration_Type["UNRECOGNIZED"] = "UNRECOGNIZED"; | ||
})(Decoration_Type || (Decoration_Type = {})); | ||
export function decoration_TypeFromJSON(object) { | ||
@@ -216,28 +176,28 @@ switch (object) { | ||
case 'BOLD': | ||
return Decoration_Type.BOLD; | ||
return "BOLD" /* BOLD */; | ||
case 1: | ||
case 'ITALIC': | ||
return Decoration_Type.ITALIC; | ||
return "ITALIC" /* ITALIC */; | ||
case 2: | ||
case 'UNDERLINE': | ||
return Decoration_Type.UNDERLINE; | ||
return "UNDERLINE" /* UNDERLINE */; | ||
case 3: | ||
case 'SPOILER': | ||
return Decoration_Type.SPOILER; | ||
return "SPOILER" /* SPOILER */; | ||
case 4: | ||
case 'ANCHOR': | ||
return Decoration_Type.ANCHOR; | ||
return "ANCHOR" /* ANCHOR */; | ||
case 5: | ||
case 'MENTION': | ||
return Decoration_Type.MENTION; | ||
return "MENTION" /* MENTION */; | ||
case 6: | ||
case 'LINK': | ||
return Decoration_Type.LINK; | ||
return "LINK" /* LINK */; | ||
case 7: | ||
case 'COLOR': | ||
return Decoration_Type.COLOR; | ||
return "COLOR" /* COLOR */; | ||
case -1: | ||
case 'UNRECOGNIZED': | ||
default: | ||
return Decoration_Type.UNRECOGNIZED; | ||
return "UNRECOGNIZED" /* UNRECOGNIZED */; | ||
} | ||
@@ -247,17 +207,17 @@ } | ||
switch (object) { | ||
case Decoration_Type.BOLD: | ||
case "BOLD" /* BOLD */: | ||
return 'BOLD'; | ||
case Decoration_Type.ITALIC: | ||
case "ITALIC" /* ITALIC */: | ||
return 'ITALIC'; | ||
case Decoration_Type.UNDERLINE: | ||
case "UNDERLINE" /* UNDERLINE */: | ||
return 'UNDERLINE'; | ||
case Decoration_Type.SPOILER: | ||
case "SPOILER" /* SPOILER */: | ||
return 'SPOILER'; | ||
case Decoration_Type.ANCHOR: | ||
case "ANCHOR" /* ANCHOR */: | ||
return 'ANCHOR'; | ||
case Decoration_Type.MENTION: | ||
case "MENTION" /* MENTION */: | ||
return 'MENTION'; | ||
case Decoration_Type.LINK: | ||
case "LINK" /* LINK */: | ||
return 'LINK'; | ||
case Decoration_Type.COLOR: | ||
case "COLOR" /* COLOR */: | ||
return 'COLOR'; | ||
@@ -300,3 +260,3 @@ default: | ||
}; | ||
var baseNode = { type: Node_Type.PARAGRAPH, key: '' }; | ||
var baseNode = { type: "PARAGRAPH" /* PARAGRAPH */, key: '' }; | ||
export var Node = { | ||
@@ -310,3 +270,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = Node_Type.PARAGRAPH; | ||
message.type = "PARAGRAPH" /* PARAGRAPH */; | ||
} | ||
@@ -515,3 +475,3 @@ if (object.key !== undefined && object.key !== null) { | ||
}; | ||
var baseDecoration = { type: Decoration_Type.BOLD }; | ||
var baseDecoration = { type: "BOLD" /* BOLD */ }; | ||
export var Decoration = { | ||
@@ -524,3 +484,3 @@ fromJSON: function (object) { | ||
else { | ||
message.type = Decoration_Type.BOLD; | ||
message.type = "BOLD" /* BOLD */; | ||
} | ||
@@ -527,0 +487,0 @@ if (object.anchorData !== undefined && object.anchorData !== null) { |
export interface Common { | ||
} | ||
export declare enum Common_TextAlignment { | ||
export declare const enum Common_TextAlignment { | ||
LEFT = "LEFT", | ||
@@ -5,0 +5,0 @@ RIGHT = "RIGHT", |
@@ -5,3 +5,3 @@ export interface DividerData { | ||
} | ||
export declare enum DividerData_DividerType { | ||
export declare const enum DividerData_DividerType { | ||
DOUBLE = "DOUBLE", | ||
@@ -20,3 +20,3 @@ SINGLE = "SINGLE", | ||
} | ||
export declare enum DividerConfig_DividerSize { | ||
export declare const enum DividerConfig_DividerSize { | ||
SMALL = "SMALL", | ||
@@ -29,3 +29,3 @@ MEDIUM = "MEDIUM", | ||
export declare function dividerConfig_DividerSizeToJSON(object: DividerConfig_DividerSize): string; | ||
export declare enum DividerConfig_DividerAlignment { | ||
export declare const enum DividerConfig_DividerAlignment { | ||
LEFT = "LEFT", | ||
@@ -32,0 +32,0 @@ RIGHT = "RIGHT", |
@@ -57,3 +57,3 @@ import { Spoiler } from './common'; | ||
} | ||
export declare enum GalleryConfig_GallerySize { | ||
export declare const enum GalleryConfig_GallerySize { | ||
CONTENT = "CONTENT", | ||
@@ -66,3 +66,3 @@ SMALL = "SMALL", | ||
export declare function galleryConfig_GallerySizeToJSON(object: GalleryConfig_GallerySize): string; | ||
export declare enum GalleryConfig_GalleryAlignment { | ||
export declare const enum GalleryConfig_GalleryAlignment { | ||
LEFT = "LEFT", | ||
@@ -69,0 +69,0 @@ RIGHT = "RIGHT", |
@@ -23,3 +23,3 @@ export interface GiphyData { | ||
} | ||
export declare enum GIphyConfigViewer_GiphyViewerSize { | ||
export declare const enum GIphyConfigViewer_GiphyViewerSize { | ||
ORIGINAL = "ORIGINAL", | ||
@@ -26,0 +26,0 @@ DOWNSIZED_SMALL = "DOWNSIZED_SMALL", |
@@ -12,3 +12,3 @@ export interface HTMLData { | ||
} | ||
export declare enum HTMLConfig_HTMLAlignment { | ||
export declare const enum HTMLConfig_HTMLAlignment { | ||
LEFT = "LEFT", | ||
@@ -15,0 +15,0 @@ RIGHT = "RIGHT", |
@@ -22,3 +22,3 @@ import { Spoiler } from './common'; | ||
} | ||
export declare enum ImageConfig_ImageSize { | ||
export declare const enum ImageConfig_ImageSize { | ||
CONTENT = "CONTENT", | ||
@@ -33,3 +33,3 @@ SMALL = "SMALL", | ||
export declare function imageConfig_ImageSizeToJSON(object: ImageConfig_ImageSize): string; | ||
export declare enum ImageConfig_ImageAlignment { | ||
export declare const enum ImageConfig_ImageAlignment { | ||
LEFT = "LEFT", | ||
@@ -36,0 +36,0 @@ RIGHT = "RIGHT", |
@@ -27,3 +27,3 @@ export interface PollData { | ||
} | ||
export declare enum PollSettings_ResultsVisibility { | ||
export declare const enum PollSettings_ResultsVisibility { | ||
ALWAYS = "ALWAYS", | ||
@@ -36,3 +36,3 @@ VOTERS_ONLY = "VOTERS_ONLY", | ||
export declare function pollSettings_ResultsVisibilityToJSON(object: PollSettings_ResultsVisibility): string; | ||
export declare enum PollSettings_VoteRole { | ||
export declare const enum PollSettings_VoteRole { | ||
ALL = "ALL", | ||
@@ -53,3 +53,3 @@ SITE_MEMBERS = "SITE_MEMBERS", | ||
} | ||
export declare enum PollWidgetLayout_PollLayout_LayoutType { | ||
export declare const enum PollWidgetLayout_PollLayout_LayoutType { | ||
LIST = "LIST", | ||
@@ -61,3 +61,3 @@ GRID = "GRID", | ||
export declare function pollWidgetLayout_PollLayout_LayoutTypeToJSON(object: PollWidgetLayout_PollLayout_LayoutType): string; | ||
export declare enum PollWidgetLayout_PollLayout_Direction { | ||
export declare const enum PollWidgetLayout_PollLayout_Direction { | ||
LTR = "LTR", | ||
@@ -94,3 +94,3 @@ RTL = "RTL", | ||
} | ||
export declare enum PollWidgetDesign_PollDesign_BackgroundType { | ||
export declare const enum PollWidgetDesign_PollDesign_BackgroundType { | ||
COLOR = "COLOR", | ||
@@ -97,0 +97,0 @@ IMAGE = "IMAGE", |
@@ -6,3 +6,3 @@ export interface VerticalEmbedData { | ||
} | ||
export declare enum VerticalEmbedData_VerticalType { | ||
export declare const enum VerticalEmbedData_VerticalType { | ||
PRODUCT = "PRODUCT", | ||
@@ -9,0 +9,0 @@ EVENT = "EVENT", |
@@ -16,3 +16,3 @@ import { Spoiler } from './common'; | ||
} | ||
export declare enum VideoConfig_Size { | ||
export declare const enum VideoConfig_Size { | ||
CONTENT = "CONTENT", | ||
@@ -25,3 +25,3 @@ SMALL = "SMALL", | ||
export declare function videoConfig_SizeToJSON(object: VideoConfig_Size): string; | ||
export declare enum VideoConfig_Alignment { | ||
export declare const enum VideoConfig_Alignment { | ||
LEFT = "LEFT", | ||
@@ -28,0 +28,0 @@ RIGHT = "RIGHT", |
@@ -52,3 +52,3 @@ import { Timestamp } from './timestamp'; | ||
} | ||
export declare enum Node_Type { | ||
export declare const enum Node_Type { | ||
PARAGRAPH = "PARAGRAPH", | ||
@@ -97,3 +97,3 @@ TEXT = "TEXT", | ||
} | ||
export declare enum Decoration_Type { | ||
export declare const enum Decoration_Type { | ||
BOLD = "BOLD", | ||
@@ -100,0 +100,0 @@ ITALIC = "ITALIC", |
{ | ||
"name": "ricos-schema", | ||
"version": "8.26.2", | ||
"version": "8.27.0", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Matan Harsat", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
648586
9928