@mathrunet/masamune 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [1.6.0](https://github.com/mathrunet/node_masamune/compare/v1.5.1...v1.6.0) (2023-10-20)
2
+
3
+
4
+ ### feat
5
+
6
+ * Create a class for ModelFieldValue. ([9d1d107](https://github.com/mathrunet/node_masamune/commit/9d1d10737d850d409e0f217d7055b73b3e8cca7f))
7
+
8
+
9
+
1
10
  ## [1.5.1](https://github.com/mathrunet/node_masamune/compare/v1.5.0...v1.5.1) (2023-10-19)
2
11
 
3
12
 
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./lib/api";
5
5
  export * from "./lib/schedule_process_function_base";
6
6
  export * from "./lib/request_process_function_base";
7
7
  export * from "./lib/call_process_function_base";
8
+ export * from "./lib/model_field_value";
8
9
  export * from "./exntension/string.extension";
9
10
  export * as gmail from "./lib/gmail";
10
11
  export * as sendGrid from "./lib/send_grid";
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ __exportStar(require("./lib/api"), exports);
33
33
  __exportStar(require("./lib/schedule_process_function_base"), exports);
34
34
  __exportStar(require("./lib/request_process_function_base"), exports);
35
35
  __exportStar(require("./lib/call_process_function_base"), exports);
36
+ __exportStar(require("./lib/model_field_value"), exports);
36
37
  __exportStar(require("./exntension/string.extension"), exports);
37
38
  exports.gmail = __importStar(require("./lib/gmail"));
38
39
  exports.sendGrid = __importStar(require("./lib/send_grid"));
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,8CAA4B;AAC5B,4CAA0B;AAC1B,uEAAqD;AACrD,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,qDAAqC;AACrC,4DAA4C;AAC5C,wEAAwD;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,MAAM,CAAC,OAAY,EAAE,MAAuB,EAAE,eAAqC;IAC/F,KAAK,CAAC,aAAa,EAAE,CAAC;IACtB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,EAAE;YACrE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;SACpD;KACJ;AACL,CAAC;AAPD,wBAOC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,8CAA4B;AAC5B,4CAA0B;AAC1B,uEAAqD;AACrD,sEAAoD;AACpD,mEAAiD;AACjD,0DAAwC;AACxC,gEAA8C;AAC9C,qDAAqC;AACrC,4DAA4C;AAC5C,wEAAwD;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,MAAM,CAAC,OAAY,EAAE,MAAuB,EAAE,eAAqC;IAC/F,KAAK,CAAC,aAAa,EAAE,CAAC;IACtB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,EAAE;YACrE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;SACpD;KACJ;AACL,CAAC;AAPD,wBAOC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Class for generating values for `ModelFieldValue` in katana_model.
3
+ *
4
+ * katana_modelの`ModelFieldValue`用の値を生成するためのクラス。
5
+ */
6
+ export declare class ModelFieldValue {
7
+ /**
8
+ * Class for generating data for `ModelCounter`.
9
+ *
10
+ * `ModelCounter`用のデータを生成するためのクラス。
11
+ *
12
+ * @param {string} key
13
+ * Data key.
14
+ *
15
+ * データのキー。
16
+ *
17
+ * @param {number} value
18
+ * Data value.
19
+ *
20
+ * データの値。
21
+ *
22
+ * @param {number} increment
23
+ * Increment value.
24
+ *
25
+ * インクリメントする値。
26
+ *
27
+ * @returns { [key: string]: any }
28
+ * Data for `ModelCounter`.
29
+ *
30
+ * `ModelCounter`用のデータ。
31
+ */
32
+ static modelCounter({ key, value, increment, }: {
33
+ key: string;
34
+ value: number;
35
+ increment: number | undefined;
36
+ }): {
37
+ [key: string]: any;
38
+ };
39
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModelFieldValue = void 0;
4
+ /**
5
+ * Class for generating values for `ModelFieldValue` in katana_model.
6
+ *
7
+ * katana_modelの`ModelFieldValue`用の値を生成するためのクラス。
8
+ */
9
+ class ModelFieldValue {
10
+ /**
11
+ * Class for generating data for `ModelCounter`.
12
+ *
13
+ * `ModelCounter`用のデータを生成するためのクラス。
14
+ *
15
+ * @param {string} key
16
+ * Data key.
17
+ *
18
+ * データのキー。
19
+ *
20
+ * @param {number} value
21
+ * Data value.
22
+ *
23
+ * データの値。
24
+ *
25
+ * @param {number} increment
26
+ * Increment value.
27
+ *
28
+ * インクリメントする値。
29
+ *
30
+ * @returns { [key: string]: any }
31
+ * Data for `ModelCounter`.
32
+ *
33
+ * `ModelCounter`用のデータ。
34
+ */
35
+ static modelCounter({ key, value, increment, }) {
36
+ const res = {};
37
+ res[key] = value;
38
+ res[`#${key}`] = {
39
+ "@increment": increment !== null && increment !== void 0 ? increment : 0,
40
+ "@target": key,
41
+ "@type": "ModelCounter",
42
+ "@value": value,
43
+ };
44
+ return res;
45
+ }
46
+ }
47
+ exports.ModelFieldValue = ModelFieldValue;
48
+ //# sourceMappingURL=model_field_value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model_field_value.js","sourceRoot":"","sources":["../../src/lib/model_field_value.ts"],"names":[],"mappings":";;;AACA;;;;GAIG;AACH,MAAa,eAAe;IACxB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,YAAY,CAAC,EAChB,GAAG,EAAE,KAAK,EAAE,SAAS,GAGxB;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACjB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG;YACb,YAAY,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC;YAC5B,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,cAAc;YACvB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AAzCD,0CAyCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mathrunet/masamune",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Manages packages for the server portion (NodeJS) of the Masamune framework.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",