@cloudize/sdk-core 24.1.9 → 24.1.13

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.
@@ -274,11 +274,11 @@ class ResourceContainer {
274
274
  case 'GET':
275
275
  case 'COUNT':
276
276
  case 'FIND':
277
- headers.Accept = this.EndpointContentType();
277
+ headers.accept = this.EndpointContentType();
278
278
  break;
279
279
  default:
280
- headers.Accept = this.EndpointContentType();
281
- headers['Content-Type'] = this.EndpointContentType();
280
+ headers.accept = this.EndpointContentType();
281
+ headers['content-type'] = this.EndpointContentType();
282
282
  break;
283
283
  }
284
284
  if ((0, json_1.isDefined)(this.sdkConfig.apiKey)) {
@@ -79,10 +79,19 @@ class ResourceObject {
79
79
  const payload = {};
80
80
  for (const fieldName in data) {
81
81
  if ((0, json_1.hasProperty)(data, fieldName)) {
82
- if ((0, json_1.isDefined)(shadow))
83
- payload[fieldName] = this.SerializeAttributesPayload(shadow[fieldName], data[fieldName]);
84
- else
85
- payload[fieldName] = this.SerializeAttributesPayload(undefined, data[fieldName]);
82
+ if ((0, json_1.isObject)(data[fieldName])
83
+ && (0, json_1.hasProperty)(data[fieldName], 'BranchType')
84
+ && (0, json_1.isDefinedAndNotNull)(data[fieldName].BranchType)
85
+ && (0, json_1.isString)(data[fieldName].BranchType)) {
86
+ if ((0, json_1.isFalse)((0, json_1.areEqual)(shadow[fieldName], data[fieldName])))
87
+ payload[fieldName] = data[fieldName];
88
+ }
89
+ else {
90
+ if ((0, json_1.isDefined)(shadow))
91
+ payload[fieldName] = this.SerializeAttributesPayload(shadow[fieldName], data[fieldName]);
92
+ else
93
+ payload[fieldName] = this.SerializeAttributesPayload(undefined, data[fieldName]);
94
+ }
86
95
  }
87
96
  }
88
97
  if ((0, json_1.isDefined)(shadow) && (0, json_1.isObject)(shadow)) {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "description": "Cloudize SDK Core",
15
15
  "license": "MIT",
16
- "version": "24.1.9",
16
+ "version": "24.1.13",
17
17
  "main": "lib/index.js",
18
18
  "types": "lib/index.d.ts",
19
19
  "scripts": {
@@ -33,26 +33,26 @@
33
33
  "test:watch": "jest --watch"
34
34
  },
35
35
  "dependencies": {
36
- "@cloudize/json": "^24.1.8",
37
- "@cloudize/rest-client": "^24.1.8",
36
+ "@cloudize/json": "^24.1.11",
37
+ "@cloudize/rest-client": "^24.1.14",
38
38
  "object-hash": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/date-and-time": "^0.13.0",
42
42
  "@types/jest": "^29.5.14",
43
- "@types/node": "^20.17.14",
43
+ "@types/node": "^20.19.1",
44
44
  "@typescript-eslint/eslint-plugin": "^7.18.0",
45
45
  "@typescript-eslint/parser": "^7.18.0",
46
46
  "date-and-time": "^3.6.0",
47
47
  "eslint": "^8.57.1",
48
48
  "eslint-config-airbnb": "^19.0.4",
49
- "eslint-plugin-import": "^2.31.0",
49
+ "eslint-plugin-import": "^2.32.0",
50
50
  "eslint-plugin-jsx-a11y": "^6.10.2",
51
- "eslint-plugin-react": "^7.37.4",
51
+ "eslint-plugin-react": "^7.37.5",
52
52
  "eslint-plugin-react-hooks": "^4.6.2",
53
53
  "jest": "^29.7.0",
54
- "ts-jest": "^29.2.5",
55
- "typescript": "^5.7.3"
54
+ "ts-jest": "^29.4.0",
55
+ "typescript": "^5.8.3"
56
56
  },
57
57
  "eslintConfig": {},
58
58
  "repository": {