@colijnit/ioneconnector 254.1.2 → 255.1.1

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.
@@ -1,8 +1,13 @@
1
1
  import { BusinessObject } from "../model/business-object";
2
2
  export declare class BusinessObjectFactory {
3
+ private readonly _recursionLimit;
3
4
  constructor();
4
5
  makeWithRawBackendData(modelClass: any, rawData: Object): BusinessObject;
5
6
  makeBOArrayFromRawBackendDataArray(modelClass: any, arrayOfRawDatas: Object[]): BusinessObject[];
6
7
  instantiateNewBo(modelClass: any): BusinessObject;
8
+ prepareBusinessObjectForSend(sourceModel: BusinessObject | boolean | string | Date, recursionCur?: number): any;
7
9
  private _copyAllPropertiesDecoratorProcessedFrom;
10
+ private _getPropertiesOfModelToSendToDatabase;
11
+ private _ensureDefaultsSet;
12
+ private _renameDbFieldAliases;
8
13
  }
@@ -11,8 +11,19 @@ const array_utils_1 = require("../utils/array-utils");
11
11
  const business_object_1 = require("../model/business-object");
12
12
  const map_property_decorator_1 = require("../factory/decorators/map-property.decorator");
13
13
  const json_decorator_1 = require("../factory/decorators/json.decorator");
14
+ const number_utils_1 = require("../utils/number-utils");
15
+ const function_utils_1 = require("../utils/function-utils");
16
+ const exclude_when_empty_string_decorator_1 = require("../factory/decorators/exclude-when-empty-string.decorator");
17
+ const db_number_decorator_1 = require("../factory/decorators/db-number.decorator");
18
+ const number_string_decorator_1 = require("../factory/decorators/number-string.decorator");
19
+ const db_method_value_decorator_1 = require("../factory/decorators/db-method-value.decorator");
20
+ const bo_serializer_step_decorator_1 = require("../factory/decorators/bo-serializer-step.decorator");
21
+ const no_db_field_decorator_1 = require("../factory/decorators/no-db-field.decorator");
22
+ const db_field_alias_decorator_1 = require("../factory/decorators/db-field-alias.decorator");
23
+ const default_send_value_decorator_1 = require("../factory/decorators/default-send-value.decorator");
14
24
  class BusinessObjectFactory {
15
25
  constructor() {
26
+ this._recursionLimit = 90000000;
16
27
  }
17
28
  makeWithRawBackendData(modelClass, rawData) {
18
29
  if (!modelClass) {
@@ -40,6 +51,74 @@ class BusinessObjectFactory {
40
51
  instantiateNewBo(modelClass) {
41
52
  return this.makeWithRawBackendData(modelClass, {});
42
53
  }
54
+ prepareBusinessObjectForSend(sourceModel, recursionCur = 1) {
55
+ if ((0, is_nill_function_1.isNill)(sourceModel)) {
56
+ return undefined;
57
+ }
58
+ else if (recursionCur > this._recursionLimit) {
59
+ throw new Error("ERROR: BusinessObjectSerializerService.prepareBusinessObjectForSend: recursion limit of " + this._recursionLimit + " reached, server won't receive all the data from client!");
60
+ }
61
+ let sendObject = {};
62
+ if (number_utils_1.NumberUtils.IsNumber(sourceModel) || typeof sourceModel === "boolean" || typeof sourceModel === "string"
63
+ || sourceModel instanceof Date) {
64
+ sendObject = sourceModel;
65
+ }
66
+ else {
67
+ const customStepFunctionNames = bo_serializer_step_decorator_1.BoSerializerStepDecorator.GetDecoratedProperties(sourceModel);
68
+ if (customStepFunctionNames) {
69
+ customStepFunctionNames.forEach((customStepFnName) => {
70
+ function_utils_1.FunctionUtils.CallMethodIfExists(sourceModel[customStepFnName], sourceModel);
71
+ });
72
+ }
73
+ const sendProperties = this._getPropertiesOfModelToSendToDatabase(sourceModel);
74
+ for (let propIndex = 0, propsLen = sendProperties.length; propIndex < propsLen; propIndex++) {
75
+ const sendPropCur = sendProperties[propIndex];
76
+ if (exclude_when_empty_string_decorator_1.ExcludeWhenEmptyStringDecorator.IsExcludeWhenEmptyStringField(sourceModel, sendPropCur)) {
77
+ if (sourceModel[sendPropCur] === "") {
78
+ continue;
79
+ }
80
+ }
81
+ if (complex_field_decorator_1.ComplexFieldDecorator.IsComplexField(sourceModel, sendPropCur)) {
82
+ sendObject[sendPropCur] = this.prepareBusinessObjectForSend(sourceModel[sendPropCur], recursionCur);
83
+ recursionCur++;
84
+ }
85
+ else if (complex_array_decorator_1.ComplexArrayDecorator.IsComplexArray(sourceModel, sendPropCur)) {
86
+ sendObject[sendPropCur] = [];
87
+ for (let arrIndex = 0, arrLen = sourceModel[sendPropCur].length; arrIndex < arrLen; arrIndex++) {
88
+ sendObject[sendPropCur].push(this.prepareBusinessObjectForSend(sourceModel[sendPropCur][arrIndex], recursionCur));
89
+ recursionCur++;
90
+ }
91
+ }
92
+ else if (boolean_decorator_1.BooleanTextDecorator.IsBooleanTextField(sourceModel, sendPropCur)) {
93
+ sendObject[sendPropCur] = boolean_decorator_1.BooleanTextDecorator.GetDbBooleanValue(sourceModel, sendPropCur);
94
+ }
95
+ else if (db_number_decorator_1.DbNumberDecorator.IsDbNumberField(sourceModel, sendPropCur)) {
96
+ sendObject[sendPropCur] = db_number_decorator_1.DbNumberDecorator.GetDbSafeNumberVal(sourceModel, sendPropCur);
97
+ }
98
+ else if (string_number_decorator_1.StringNumberDecorator.IsStringNumber(sourceModel, sendPropCur)) {
99
+ sendObject[sendPropCur] = string_number_decorator_1.StringNumberDecorator.NumberAsString(sourceModel[sendPropCur]);
100
+ }
101
+ else if (number_string_decorator_1.NumberStringDecorator.IsNumberString(sourceModel, sendPropCur)) {
102
+ sendObject[sendPropCur] = number_string_decorator_1.NumberStringDecorator.StringAsNumber(sourceModel[sendPropCur]);
103
+ }
104
+ else if (Array.isArray(sourceModel[sendPropCur])) {
105
+ sendObject[sendPropCur] = [];
106
+ for (let arrIndex = 0, arrLen = sourceModel[sendPropCur].length; arrIndex < arrLen; arrIndex++) {
107
+ sendObject[sendPropCur].push(sourceModel[sendPropCur][arrIndex]);
108
+ }
109
+ }
110
+ else {
111
+ sendObject[sendPropCur] = sourceModel[sendPropCur];
112
+ }
113
+ }
114
+ db_method_value_decorator_1.DbMethodValueDecorator.GetDecoratedProperties(sourceModel)
115
+ .filter(method => typeof sourceModel[method] === "function")
116
+ .forEach(method => sendObject[method] = sourceModel[method]());
117
+ this._ensureDefaultsSet(sourceModel, sendObject);
118
+ this._renameDbFieldAliases(sourceModel, sendObject);
119
+ }
120
+ return sendObject;
121
+ }
43
122
  _copyAllPropertiesDecoratorProcessedFrom(sourceData, destinationModel) {
44
123
  if (!sourceData || !destinationModel) {
45
124
  return;
@@ -115,6 +194,43 @@ class BusinessObjectFactory {
115
194
  }
116
195
  }
117
196
  }
197
+ _getPropertiesOfModelToSendToDatabase(model) {
198
+ let propertiesToSend;
199
+ const noDbProps = no_db_field_decorator_1.NoDatabaseFieldDecorator.GetDecoratedProperties(model);
200
+ propertiesToSend = Object.getOwnPropertyNames(model).filter((prop) => {
201
+ return (model.hasOwnProperty(prop) && noDbProps.indexOf(prop) === -1);
202
+ });
203
+ const dbFieldAliasProps = db_field_alias_decorator_1.DbFieldAliasDecorator.GetDecoratedProperties(model);
204
+ const len = dbFieldAliasProps.length;
205
+ for (let i = 0; i < len; i++) {
206
+ const aliasPropCur = dbFieldAliasProps[i];
207
+ if (propertiesToSend.indexOf(aliasPropCur) === -1) {
208
+ propertiesToSend.push(aliasPropCur);
209
+ }
210
+ }
211
+ return propertiesToSend;
212
+ }
213
+ _ensureDefaultsSet(sourceModel, sendObject) {
214
+ const defaultProps = default_send_value_decorator_1.DefaultSendValueDecorator.GetAllDecoratedProperties(sourceModel);
215
+ const len = defaultProps.length;
216
+ for (let i = 0; i < len; i++) {
217
+ const defaultPropCur = defaultProps[i];
218
+ if ((0, is_nill_function_1.isNill)(sourceModel[defaultPropCur])) {
219
+ sendObject[defaultPropCur] = default_send_value_decorator_1.DefaultSendValueDecorator.GetDefaultValue(sourceModel, defaultPropCur);
220
+ }
221
+ }
222
+ }
223
+ _renameDbFieldAliases(sourceModel, sendObject) {
224
+ const aliasProps = db_field_alias_decorator_1.DbFieldAliasDecorator.GetDecoratedProperties(sourceModel);
225
+ const len = aliasProps.length;
226
+ for (let i = 0; i < len; i++) {
227
+ const aliasPropCur = aliasProps[i];
228
+ const aliasName = db_field_alias_decorator_1.DbFieldAliasDecorator.GetDbAlias(sourceModel, aliasPropCur);
229
+ const value = sendObject[aliasPropCur];
230
+ delete sendObject[aliasPropCur];
231
+ sendObject[aliasName] = value;
232
+ }
233
+ }
118
234
  }
119
235
  exports.BusinessObjectFactory = BusinessObjectFactory;
120
236
  //# sourceMappingURL=business-object-factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"business-object-factory.js","sourceRoot":"","sources":["../../src/service/business-object-factory.ts"],"names":[],"mappings":";;;AAAA,2FAAoF;AACpF,2FAAoF;AACpF,+EAA6E;AAC7E,qFAAmF;AACnF,2FAAoF;AACpF,yEAA0D;AAC1D,sDAAgD;AAChD,8DAAwD;AACxD,yFAAkF;AAClF,yEAA6E;AAG7E,MAAa,qBAAqB;IAC9B;IACA,CAAC;IAUM,sBAAsB,CAAC,UAAe,EAAE,OAAe;QAC1D,IAAI,CAAC,UAAU,EAAE;YACb,OAAO,SAAS,CAAC;SACpB;QACD,IAAI,OAAO,UAAU,KAAK,OAAO,gCAAc,EAAE;YAC7C,OAAO,SAAS,CAAC;SACpB;QAED,MAAM,KAAK,GAAmB,IAAI,UAAU,EAAE,CAAC;QAC/C,IAAI,CAAC,wCAAwC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC9D,OAAO,KAAK,CAAC;IACjB,CAAC;IAGM,kCAAkC,CAAC,UAAe,EAAE,eAAyB;QAChF,IAAI,CAAC,UAAU,EAAE;YACb,OAAO,SAAS,CAAC;SACpB;QAED,MAAM,aAAa,GAAqB,EAAE,CAAC;QAC3C,IAAI,eAAe,EAAE;YACjB,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,GAAG,GAAW,eAAe,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;gBACxE,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aACnF;SACJ;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;IAEM,gBAAgB,CAAC,UAAe;QACnC,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACvD,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ACpB,gBAAgB,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;iBAC5C;qBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;oBAClC,gBAAgB,CAAC,UAAU,CAAC,GAAG,wBAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;iBACpE;qBAAM,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;oBACvC,IAAI,UAAU,YAAY,GAAG,EAAE;wBAC3B,gBAAgB,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;qBAC7C;yBAAM;wBACH,gBAAgB,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;qBAChE;iBACJ;qBAAM;oBACH,gBAAgB,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;iBAC7C;aACJ;SACJ;IACL,CAAC;CACJ;AA5HD,sDA4HC"}
1
+ {"version":3,"file":"business-object-factory.js","sourceRoot":"","sources":["../../src/service/business-object-factory.ts"],"names":[],"mappings":";;;AAAA,2FAAoF;AACpF,2FAAoF;AACpF,+EAA6E;AAC7E,qFAAmF;AACnF,2FAAoF;AACpF,yEAA0D;AAC1D,sDAAgD;AAChD,8DAAwD;AACxD,yFAAkF;AAClF,yEAA6E;AAC7E,wDAAkD;AAClD,4DAAsD;AACtD,mHAA0G;AAC1G,mFAA4E;AAC5E,2FAAoF;AACpF,+FAAuF;AACvF,qGAA6F;AAC7F,uFAAqF;AACrF,6FAAqF;AACrF,qGAA6F;AAG7F,MAAa,qBAAqB;IAE9B;QADiB,oBAAe,GAAW,QAAQ,CAAC;IAEpD,CAAC;IAUM,sBAAsB,CAAC,UAAe,EAAE,OAAe;QAC1D,IAAI,CAAC,UAAU,EAAE;YACb,OAAO,SAAS,CAAC;SACpB;QACD,IAAI,OAAO,UAAU,KAAK,OAAO,gCAAc,EAAE;YAC7C,OAAO,SAAS,CAAC;SACpB;QAED,MAAM,KAAK,GAAmB,IAAI,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EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAClC,MAAM,YAAY,GAAW,UAAU,CAAC,CAAC,CAAC,CAAC;YAC3C,MAAM,SAAS,GAAW,gDAAqB,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;YAEtF,MAAM,KAAK,GAAQ,UAAU,CAAC,YAAY,CAAC,CAAC;YAC5C,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;YAChC,UAAU,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;SACjC;IACL,CAAC;CACJ;AAhQD,sDAgQC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/ioneconnector",
3
- "version": "254.1.2",
3
+ "version": "255.1.1",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "uglify": "grunt uglify",