@carbonorm/carbonnode 2.0.14 → 2.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonnode",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "browser": "dist/index.umd.js",
@@ -41,7 +41,7 @@ const Get = restRequest<GetCustomAndRequiredFields, i{{TABLE_NAME_SHORT_PASCAL_C
41
41
  {{CARBON_REACT_INSTANCE}}.updateRestfulObjectArrays<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>({
42
42
  dataOrCallback: Array.isArray(responseData) ? responseData : [responseData],
43
43
  stateKey: "{{TABLE_NAME_SHORT}}",
44
- uniqueObjectId: C6.{{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
44
+ uniqueObjectId: C6.{{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[]
45
45
  })
46
46
  }{{/if}}
47
47
  });
@@ -60,7 +60,7 @@ export function putState(response: AxiosResponse<iPutC6RestResponse<i{{TABLE_NAM
60
60
  }, C6.TABLES)
61
61
  ],
62
62
  stateKey: "{{TABLE_NAME_SHORT}}",
63
- uniqueObjectId: {{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
63
+ uniqueObjectId: {{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[]
64
64
  })
65
65
  }
66
66
  {{/if}}
@@ -82,12 +82,12 @@ type PostCustomAndRequiredFields = {}
82
82
 
83
83
  type PostRequestTableOverrides = {}
84
84
 
85
- {{#if REACT_IMPORT}}export function postState(response: AxiosResponse<iPostC6RestResponse<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>>, request: iAPI<Modify<i{{CARBON_REACT_INSTANCE}}, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean) {
85
+ {{#if REACT_IMPORT}}export function postState(response: AxiosResponse<iPostC6RestResponse<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>>, request: iAPI<Modify<i{{TABLE_NAME_SHORT_PASCAL_CASE}}, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean) {
86
86
  if ('number' === typeof id || 'string' === typeof id) {
87
- if (1 !== caller_requests.PRIMARY_SHORT.length) {
87
+ if (1 !== {{TABLE_NAME_SHORT}}.PRIMARY_SHORT.length) {
88
88
  console.error("C6 received unexpected result's given the primary key length");
89
89
  } else {
90
- request[caller_requests.PRIMARY_SHORT[0]] = id
90
+ request[{{TABLE_NAME_SHORT}}.PRIMARY_SHORT[0]] = id
91
91
  }
92
92
  }
93
93
  {{CARBON_REACT_INSTANCE}}.updateRestfulObjectArrays<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>({
@@ -133,7 +133,7 @@ export function deleteState(_response: AxiosResponse<iDeleteC6RestResponse<i{{TA
133
133
  request
134
134
  ],
135
135
  stateKey: "{{TABLE_NAME_SHORT}}",
136
- uniqueObjectId: {{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
136
+ uniqueObjectId: {{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[]
137
137
  })
138
138
  }
139
139
  {{/if}}