From c1c883736b89b20e2d4852e2a1c564e12ec531b3 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 7 Mar 2024 13:47:08 +0700 Subject: [PATCH] Updated publishing workflow --- .github/workflows/publish.yml | 2 +- src/model/ReplaceDocumentRequest.js | 74 +++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 src/model/ReplaceDocumentRequest.js diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a6c91f2..d7b5c5b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: - name: Check for dev-version if: ${{ contains(github.ref, 'master') }} run: | - VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd|head` + VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd-h%|head` echo "version $VERSION" "version": "4.1.1" sed -i -E "s/(version\": \")([0-9]\.[0-9]\.)(.*)(\")/\1\2$VERSION\4/1" package.json diff --git a/src/model/ReplaceDocumentRequest.js b/src/model/ReplaceDocumentRequest.js new file mode 100644 index 0000000..25ff70b --- /dev/null +++ b/src/model/ReplaceDocumentRequest.js @@ -0,0 +1,74 @@ +/* + * Manticore Search Client + * Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com) + * + * All rights reserved + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.Manticoresearch) { + root.Manticoresearch = {}; + } + root.Manticoresearch.ReplaceDocumentRequest = factory(root.Manticoresearch.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The ReplaceDocumentRequest model module. + * @module model/ReplaceDocumentRequest + * @version 4.0.0 + */ + + /** + * Constructs a new ReplaceDocumentRequest. + * Object with document data. + * @alias module:model/ReplaceDocumentRequest + * @class + * @param doc {Object.} Object with document data + */ + var exports = function(doc) { + var _this = this; + + _this['doc'] = doc; + }; + + /** + * Constructs a ReplaceDocumentRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReplaceDocumentRequest} obj Optional instance to populate. + * @return {module:model/ReplaceDocumentRequest} The populated ReplaceDocumentRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('doc')) { + obj['doc'] = ApiClient.convertToType(data['doc'], {'String': Object}); + } + } + return obj; + } + + /** + * Object with document data + * @member {Object.} doc + */ + exports.prototype['doc'] = undefined; + + + + return exports; +})); + +