Skip to content

Commit c1c8837

Browse files
committed
Updated publishing workflow
1 parent c3fa9a9 commit c1c8837

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Check for dev-version
2525
if: ${{ contains(github.ref, 'master') }}
2626
run: |
27-
VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd|head`
27+
VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd-h%|head`
2828
echo "version $VERSION"
2929
"version": "4.1.1"
3030
sed -i -E "s/(version\": \")([0-9]\.[0-9]\.)(.*)(\")/\1\2$VERSION\4/1" package.json

src/model/ReplaceDocumentRequest.js

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* Manticore Search Client
3+
* Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com)
4+
*
5+
* All rights reserved
6+
*/
7+
8+
(function(root, factory) {
9+
if (typeof define === 'function' && define.amd) {
10+
// AMD. Register as an anonymous module.
11+
define(['ApiClient'], factory);
12+
} else if (typeof module === 'object' && module.exports) {
13+
// CommonJS-like environments that support module.exports, like Node.
14+
module.exports = factory(require('../ApiClient'));
15+
} else {
16+
// Browser globals (root is window)
17+
if (!root.Manticoresearch) {
18+
root.Manticoresearch = {};
19+
}
20+
root.Manticoresearch.ReplaceDocumentRequest = factory(root.Manticoresearch.ApiClient);
21+
}
22+
}(this, function(ApiClient) {
23+
'use strict';
24+
25+
26+
27+
/**
28+
* The ReplaceDocumentRequest model module.
29+
* @module model/ReplaceDocumentRequest
30+
* @version 4.0.0
31+
*/
32+
33+
/**
34+
* Constructs a new <code>ReplaceDocumentRequest</code>.
35+
* Object with document data.
36+
* @alias module:model/ReplaceDocumentRequest
37+
* @class
38+
* @param doc {Object.<String, Object>} Object with document data
39+
*/
40+
var exports = function(doc) {
41+
var _this = this;
42+
43+
_this['doc'] = doc;
44+
};
45+
46+
/**
47+
* Constructs a <code>ReplaceDocumentRequest</code> from a plain JavaScript object, optionally creating a new instance.
48+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
49+
* @param {Object} data The plain JavaScript object bearing properties of interest.
50+
* @param {module:model/ReplaceDocumentRequest} obj Optional instance to populate.
51+
* @return {module:model/ReplaceDocumentRequest} The populated <code>ReplaceDocumentRequest</code> instance.
52+
*/
53+
exports.constructFromObject = function(data, obj) {
54+
if (data) {
55+
obj = obj || new exports();
56+
if (data.hasOwnProperty('doc')) {
57+
obj['doc'] = ApiClient.convertToType(data['doc'], {'String': Object});
58+
}
59+
}
60+
return obj;
61+
}
62+
63+
/**
64+
* Object with document data
65+
* @member {Object.<String, Object>} doc
66+
*/
67+
exports.prototype['doc'] = undefined;
68+
69+
70+
71+
return exports;
72+
}));
73+
74+

0 commit comments

Comments
 (0)