@zeplin/sdk
Version:
Zeplin API client for JavaScript
53 lines (50 loc) • 2.28 kB
JavaScript
;
require("core-js/modules/es.object.define-property.js");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.transformProjectNoteCommentEventToJSON = exports.transformJSONToProjectNoteCommentEvent = void 0;
var _projectNoteCommentCreatedEvent = require("./project-note-comment-created-event");
var _projectNoteCommentDeletedEvent = require("./project-note-comment-deleted-event");
var _projectNoteCommentUpdatedEvent = require("./project-note-comment-updated-event");
/* tslint:disable */
/* eslint-disable */
/**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var transformJSONToProjectNoteCommentEvent = function transformJSONToProjectNoteCommentEvent(value) {
switch (value.action) {
case 'created':
return (0, _projectNoteCommentCreatedEvent.transformJSONToProjectNoteCommentCreatedEvent)(value);
case 'deleted':
return (0, _projectNoteCommentDeletedEvent.transformJSONToProjectNoteCommentDeletedEvent)(value);
case 'updated':
return (0, _projectNoteCommentUpdatedEvent.transformJSONToProjectNoteCommentUpdatedEvent)(value);
default:
throw new Error("No variant of ProjectNoteCommentEvent exists with 'action=".concat(value.action, "'"));
}
};
exports.transformJSONToProjectNoteCommentEvent = transformJSONToProjectNoteCommentEvent;
var transformProjectNoteCommentEventToJSON = function transformProjectNoteCommentEventToJSON(value) {
switch (value.action) {
case 'created':
return (0, _projectNoteCommentCreatedEvent.transformProjectNoteCommentCreatedEventToJSON)(value);
case 'deleted':
return (0, _projectNoteCommentDeletedEvent.transformProjectNoteCommentDeletedEventToJSON)(value);
case 'updated':
return (0, _projectNoteCommentUpdatedEvent.transformProjectNoteCommentUpdatedEventToJSON)(value);
}
};
/**
* @type ProjectNoteCommentEvent
* This event is used to notify webhooks about changes related to the comments in notes in Zeplin projects.
* @export
*/
exports.transformProjectNoteCommentEventToJSON = transformProjectNoteCommentEventToJSON;