@carbonorm/carbonnode 1.2.18 → 1.3.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/package.json
CHANGED
|
@@ -9,6 +9,8 @@ const randomString = Math.random().toString(36).substring(7);
|
|
|
9
9
|
const randomInt = Math.floor(Math.random() * 1000000);
|
|
10
10
|
const fillString = 'string' + randomString + randomInt;
|
|
11
11
|
|
|
12
|
+
console.log('fillString', fillString);
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
{{{TABLE_DEFINITION}}}
|
|
14
16
|
**/
|
|
@@ -25,7 +25,7 @@ type GetCustomAndRequiredFields = {}
|
|
|
25
25
|
type GetRequestTableOverrides = {}
|
|
26
26
|
|
|
27
27
|
// required parameters, optional parameters, parameter type overrides, response, and table names
|
|
28
|
-
|
|
28
|
+
const Get = restRequest<GetCustomAndRequiredFields, i{{TABLE_NAME_SHORT_PASCAL_CASE}}, GetRequestTableOverrides, iGetC6RestResponse<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>, RestTableNames>({
|
|
29
29
|
C6: C6,
|
|
30
30
|
tableName: {{TABLE_NAME_SHORT}}.TABLE_NAME,
|
|
31
31
|
requestMethod: GET,
|
|
@@ -53,7 +53,7 @@ export function putState{{TABLE_NAME_SHORT_PASCAL_CASE}}(response : AxiosRespons
|
|
|
53
53
|
], "{{TABLE_NAME_SHORT}}", {{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
const Put = restRequest<PutCustomAndRequiredFields, i{{TABLE_NAME_SHORT_PASCAL_CASE}}, PutRequestTableOverrides, iPutC6RestResponse<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>, RestTableNames>({
|
|
57
57
|
C6: C6,
|
|
58
58
|
tableName: {{TABLE_NAME_SHORT}}.TABLE_NAME,
|
|
59
59
|
requestMethod: PUT,
|
|
@@ -96,7 +96,7 @@ export function postState{{TABLE_NAME_SHORT_PASCAL_CASE}}(response : AxiosRespon
|
|
|
96
96
|
)
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
const Post = restRequest<PostCustomAndRequiredFields, i{{TABLE_NAME_SHORT_PASCAL_CASE}}, PostRequestTableOverrides, iPostC6RestResponse<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>, RestTableNames>({
|
|
100
100
|
C6: C6,
|
|
101
101
|
tableName: {{TABLE_NAME_SHORT}}.TABLE_NAME,
|
|
102
102
|
requestMethod: POST,
|
|
@@ -118,7 +118,7 @@ export function deleteState{{TABLE_NAME_SHORT_PASCAL_CASE}}(_response : AxiosRes
|
|
|
118
118
|
], "{{TABLE_NAME_SHORT}}", {{TABLE_NAME_SHORT}}.PRIMARY_SHORT as (keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}})[])
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
const Delete = restRequest<DeleteCustomAndRequiredFields, i{{TABLE_NAME_SHORT_PASCAL_CASE}}, DeleteRequestTableOverrides, iDeleteC6RestResponse<i{{TABLE_NAME_SHORT_PASCAL_CASE}}>, RestTableNames>({
|
|
122
122
|
C6: C6,
|
|
123
123
|
tableName: {{TABLE_NAME_SHORT}}.TABLE_NAME,
|
|
124
124
|
requestMethod: DELETE,
|