@nextplus/js-sdk 0.0.6 → 0.0.8
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/dist/{chunk-DNVJS7WW.js → chunk-2RQUD2BL.js} +4965 -5694
- package/dist/{chunk-YEF23TVP.js → chunk-P5F3SZVG.js} +5 -11
- package/dist/index-BCKEhMYV.d.cts +4478 -0
- package/dist/index-Dt0zpNE2.d.ts +4478 -0
- package/dist/index.cjs +4965 -5693
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/sdk/index.cjs +4967 -5698
- package/dist/sdk/index.d.cts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +6 -12
- package/dist/sdk/sdk.gen.cjs +4967 -5698
- package/dist/sdk/sdk.gen.d.cts +1 -1
- package/dist/sdk/sdk.gen.d.ts +1 -1
- package/dist/sdk/sdk.gen.js +5 -11
- package/dist/{sdk.gen-D3Q8YKqz.d.ts → sdk.gen-BYVWLTm8.d.ts} +8967 -14137
- package/dist/{sdk.gen-CPR3KdM-.d.cts → sdk.gen-Bpl7iDGX.d.cts} +8967 -14137
- package/package.json +4 -3
- package/src/sdk/client.gen.ts +1 -1
- package/src/sdk/schemas.gen.ts +851 -995
- package/src/sdk/sdk.gen.ts +11532 -12937
- package/src/sdk/transformers.gen.ts +258 -1406
- package/src/sdk/types.gen.ts +1265 -6974
- package/dist/index-DnDzRLml.d.cts +0 -5156
- package/dist/index-_9HQhd2P.d.ts +0 -5156
|
@@ -124,19 +124,6 @@ import type {
|
|
|
124
124
|
AclReplaceByIdPutAcLsIdResponse,
|
|
125
125
|
AclReplaceByIdPostAcLsIdReplaceResponse,
|
|
126
126
|
AclFindOneResponse,
|
|
127
|
-
RoleMappingPrototypeGetRoleResponse,
|
|
128
|
-
RoleMappingPrototypeGetUserModelResponse,
|
|
129
|
-
RoleMappingFindResponse,
|
|
130
|
-
RoleMappingPatchOrCreateResponse,
|
|
131
|
-
RoleMappingCreateResponse,
|
|
132
|
-
RoleMappingReplaceOrCreatePutRoleMappingsResponse,
|
|
133
|
-
RoleMappingReplaceOrCreatePostRoleMappingsReplaceOrCreateResponse,
|
|
134
|
-
RoleMappingUpsertWithWhereResponse,
|
|
135
|
-
RoleMappingFindByIdResponse,
|
|
136
|
-
RoleMappingPrototypePatchAttributesResponse,
|
|
137
|
-
RoleMappingReplaceByIdPutRoleMappingsIdResponse,
|
|
138
|
-
RoleMappingReplaceByIdPostRoleMappingsIdReplaceResponse,
|
|
139
|
-
RoleMappingFindOneResponse,
|
|
140
127
|
UserModelFindByIdResponse,
|
|
141
128
|
UserModelPrototypePatchAttributesPatchUserModelsIdResponse,
|
|
142
129
|
UserModelPrototypePatchAttributesPutUserModelsIdResponse,
|
|
@@ -230,21 +217,6 @@ import type {
|
|
|
230
217
|
WorkflowForkResponse,
|
|
231
218
|
WorkflowMassiveCopyResponse,
|
|
232
219
|
WorkflowPrototypeCreateNodeAndConnectionResponse,
|
|
233
|
-
WorkflowNotePrototypeGetCreatedByResponse,
|
|
234
|
-
WorkflowNotePrototypeGetWorkflowResponse,
|
|
235
|
-
WorkflowNotePrototypeGetNodeResponse,
|
|
236
|
-
WorkflowNotePrototypeGetUserResponse,
|
|
237
|
-
WorkflowNoteFindResponse,
|
|
238
|
-
WorkflowNotePatchOrCreateResponse,
|
|
239
|
-
WorkflowNoteCreateResponse,
|
|
240
|
-
WorkflowNoteReplaceOrCreatePutWorkflowNotesResponse,
|
|
241
|
-
WorkflowNoteReplaceOrCreatePostWorkflowNotesReplaceOrCreateResponse,
|
|
242
|
-
WorkflowNoteUpsertWithWhereResponse,
|
|
243
|
-
WorkflowNoteFindByIdResponse,
|
|
244
|
-
WorkflowNotePrototypePatchAttributesResponse,
|
|
245
|
-
WorkflowNoteReplaceByIdPutWorkflowNotesIdResponse,
|
|
246
|
-
WorkflowNoteReplaceByIdPostWorkflowNotesIdReplaceResponse,
|
|
247
|
-
WorkflowNoteFindOneResponse,
|
|
248
220
|
AiPromptFindResponse,
|
|
249
221
|
AiPromptPatchOrCreateResponse,
|
|
250
222
|
AiPromptCreateResponse,
|
|
@@ -256,17 +228,6 @@ import type {
|
|
|
256
228
|
AiPromptReplaceByIdPutAiPromptsIdResponse,
|
|
257
229
|
AiPromptReplaceByIdPostAiPromptsIdReplaceResponse,
|
|
258
230
|
AiPromptFindOneResponse,
|
|
259
|
-
WorkflowDetailsFindResponse,
|
|
260
|
-
WorkflowDetailsPatchOrCreateResponse,
|
|
261
|
-
WorkflowDetailsCreateResponse,
|
|
262
|
-
WorkflowDetailsReplaceOrCreatePutWorkflowDetailsResponse,
|
|
263
|
-
WorkflowDetailsReplaceOrCreatePostWorkflowDetailsReplaceOrCreateResponse,
|
|
264
|
-
WorkflowDetailsUpsertWithWhereResponse,
|
|
265
|
-
WorkflowDetailsFindByIdResponse,
|
|
266
|
-
WorkflowDetailsPrototypePatchAttributesResponse,
|
|
267
|
-
WorkflowDetailsReplaceByIdPutWorkflowDetailsIdResponse,
|
|
268
|
-
WorkflowDetailsReplaceByIdPostWorkflowDetailsIdReplaceResponse,
|
|
269
|
-
WorkflowDetailsFindOneResponse,
|
|
270
231
|
ConnectionPrototypeGetFromResponse,
|
|
271
232
|
ConnectionPrototypeGetToResponse,
|
|
272
233
|
NodePrototypeFindByIdResourcesResponse,
|
|
@@ -329,102 +290,20 @@ import type {
|
|
|
329
290
|
FieldFindOneResponse,
|
|
330
291
|
FieldPrototypePatchAttributesResponse,
|
|
331
292
|
UpdateInfoFindOneResponse,
|
|
332
|
-
WorkorderPrototypeFindByIdPartResponse,
|
|
333
|
-
WorkorderPrototypeUpdateByIdPartResponse,
|
|
334
|
-
WorkorderPrototypeLinkPartResponse,
|
|
335
|
-
WorkorderPrototypeFindByIdLocationsResponse,
|
|
336
|
-
WorkorderPrototypeUpdateByIdLocationsResponse,
|
|
337
|
-
WorkorderPrototypeLinkLocationsResponse,
|
|
338
|
-
WorkorderPrototypeGetParentWorkorderResponse,
|
|
339
|
-
WorkorderPrototypeCreateParentWorkorderResponse,
|
|
340
|
-
WorkorderPrototypeUpdateParentWorkorderResponse,
|
|
341
|
-
WorkorderPrototypeFindByIdKitsResponse,
|
|
342
|
-
WorkorderPrototypeUpdateByIdKitsResponse,
|
|
343
|
-
WorkorderPrototypeGetWorkflowResponse,
|
|
344
|
-
WorkorderPrototypeGetUnmatchRevApprovedUserResponse,
|
|
345
|
-
WorkorderPrototypeGetNewVersionApprovedUserResponse,
|
|
346
|
-
WorkorderPrototypeFindByIdCurrentLocationsResponse,
|
|
347
|
-
WorkorderPrototypeUpdateByIdCurrentLocationsResponse,
|
|
348
|
-
WorkorderPrototypeLinkCurrentLocationsResponse,
|
|
349
|
-
WorkorderPrototypeFindByIdStocksResponse,
|
|
350
|
-
WorkorderPrototypeUpdateByIdStocksResponse,
|
|
351
|
-
WorkorderPrototypeLinkStocksResponse,
|
|
352
|
-
WorkorderPrototypeFindByIdSessionsResponse,
|
|
353
|
-
WorkorderPrototypeUpdateByIdSessionsResponse,
|
|
354
|
-
WorkorderPrototypeLinkSessionsResponse,
|
|
355
|
-
WorkorderPrototypeGetWorkorderTypeResponse,
|
|
356
|
-
WorkorderPrototypeFindByIdGroupModelResponse,
|
|
357
|
-
WorkorderPrototypeUpdateByIdGroupModelResponse,
|
|
358
|
-
WorkorderPrototypeLinkGroupModelResponse,
|
|
359
|
-
WorkorderPrototypeGetPartResponse,
|
|
360
|
-
WorkorderPrototypeCreatePartResponse,
|
|
361
|
-
WorkorderPrototypeGetLocationsResponse,
|
|
362
|
-
WorkorderPrototypeCreateLocationsResponse,
|
|
363
|
-
WorkorderPrototypeGetKitsResponse,
|
|
364
|
-
WorkorderPrototypeCreateKitsResponse,
|
|
365
|
-
WorkorderPrototypeGetCurrentLocationsResponse,
|
|
366
|
-
WorkorderPrototypeCreateCurrentLocationsResponse,
|
|
367
|
-
WorkorderPrototypeGetStocksResponse,
|
|
368
|
-
WorkorderPrototypeCreateStocksResponse,
|
|
369
|
-
WorkorderPrototypeGetSessionsResponse,
|
|
370
|
-
WorkorderPrototypeCreateSessionsResponse,
|
|
371
|
-
WorkorderPrototypeGetGroupModelResponse,
|
|
372
|
-
WorkorderPrototypeCreateGroupModelResponse,
|
|
373
|
-
WorkorderFindResponse,
|
|
374
|
-
WorkorderPatchOrCreateResponse,
|
|
375
|
-
WorkorderReplaceOrCreatePutWorkordersResponse,
|
|
376
|
-
WorkorderReplaceOrCreatePostWorkordersReplaceOrCreateResponse,
|
|
377
|
-
WorkorderUpsertWithWhereResponse,
|
|
378
293
|
WorkorderFindByIdResponse,
|
|
379
|
-
|
|
380
|
-
WorkorderReplaceByIdPostWorkordersIdReplaceResponse,
|
|
294
|
+
WorkorderFindResponse,
|
|
381
295
|
WorkorderFindOneResponse,
|
|
382
296
|
WorkorderSetSessionSerialResponse,
|
|
383
297
|
WorkorderPrototypeSetStockSerialsResponse,
|
|
384
298
|
WorkorderPrototypeCommitResponse,
|
|
385
|
-
WorkorderPrototypeSetStockSerialsLocalResponse,
|
|
386
299
|
WorkorderGetResponse,
|
|
387
300
|
WorkorderAssignResponse,
|
|
388
301
|
WorkorderChangeGroupsResponse,
|
|
389
|
-
StockPrototypeGetPartResponse,
|
|
390
|
-
StockPrototypeGetLocationResponse,
|
|
391
|
-
StockPrototypeFindByIdLocationsResponse,
|
|
392
|
-
StockPrototypeUpdateByIdLocationsResponse,
|
|
393
|
-
StockPrototypeLinkLocationsResponse,
|
|
394
|
-
StockPrototypeGetWorkorderResponse,
|
|
395
|
-
StockPrototypeGetActiveUserResponse,
|
|
396
|
-
StockPrototypeGetParentStockResponse,
|
|
397
|
-
StockPrototypeFindByIdChildStockResponse,
|
|
398
|
-
StockPrototypeUpdateByIdChildStockResponse,
|
|
399
|
-
StockPrototypeLinkChildStockResponse,
|
|
400
|
-
StockPrototypeFindByIdUsersResponse,
|
|
401
|
-
StockPrototypeUpdateByIdUsersResponse,
|
|
402
|
-
StockPrototypeLinkUsersResponse,
|
|
403
|
-
StockPrototypeGetWorkWithoutKitApprovedResponse,
|
|
404
|
-
StockPrototypeFindByIdTimeLogResponse,
|
|
405
|
-
StockPrototypeUpdateByIdTimeLogResponse,
|
|
406
|
-
StockPrototypeGetWorkflowSessionItemResponse,
|
|
407
|
-
StockPrototypeGetUserResponse,
|
|
408
|
-
StockPrototypeGetLocationsResponse,
|
|
409
|
-
StockPrototypeCreateLocationsResponse,
|
|
410
|
-
StockPrototypeGetChildStockResponse,
|
|
411
|
-
StockPrototypeCreateChildStockResponse,
|
|
412
|
-
StockPrototypeGetUsersResponse,
|
|
413
|
-
StockPrototypeCreateUsersResponse,
|
|
414
|
-
StockPrototypeGetTimeLogResponse,
|
|
415
|
-
StockPrototypeCreateTimeLogResponse,
|
|
416
302
|
StockFindResponse,
|
|
417
|
-
StockPatchOrCreateResponse,
|
|
418
303
|
StockCreateResponse,
|
|
419
|
-
StockReplaceOrCreatePutStocksResponse,
|
|
420
|
-
StockReplaceOrCreatePostStocksReplaceOrCreateResponse,
|
|
421
|
-
StockUpsertWithWhereResponse,
|
|
422
304
|
StockFindByIdResponse,
|
|
423
305
|
StockPrototypePatchAttributesResponse,
|
|
424
|
-
StockReplaceByIdPutStocksIdResponse,
|
|
425
|
-
StockReplaceByIdPostStocksIdReplaceResponse,
|
|
426
306
|
StockFindOneResponse,
|
|
427
|
-
StockPrototypeUpdateTimeLogsResponse,
|
|
428
307
|
PagesPrototypeGetUserResponse,
|
|
429
308
|
PagesFindResponse,
|
|
430
309
|
PagesPatchOrCreateResponse,
|
|
@@ -559,17 +438,6 @@ import type {
|
|
|
559
438
|
FolderFindResponse,
|
|
560
439
|
FolderCreateResponse,
|
|
561
440
|
FolderPrototypePatchAttributesResponse,
|
|
562
|
-
ResourceMappingFindResponse,
|
|
563
|
-
ResourceMappingPatchOrCreateResponse,
|
|
564
|
-
ResourceMappingCreateResponse,
|
|
565
|
-
ResourceMappingReplaceOrCreatePutResourceMappingsResponse,
|
|
566
|
-
ResourceMappingReplaceOrCreatePostResourceMappingsReplaceOrCreateResponse,
|
|
567
|
-
ResourceMappingUpsertWithWhereResponse,
|
|
568
|
-
ResourceMappingFindByIdResponse,
|
|
569
|
-
ResourceMappingPrototypePatchAttributesResponse,
|
|
570
|
-
ResourceMappingReplaceByIdPutResourceMappingsIdResponse,
|
|
571
|
-
ResourceMappingReplaceByIdPostResourceMappingsIdReplaceResponse,
|
|
572
|
-
ResourceMappingFindOneResponse,
|
|
573
441
|
WorkflowSessionItemFindByIdResponse,
|
|
574
442
|
WorkflowSessionItemFindResponse,
|
|
575
443
|
WorkflowSessionItemFindOneResponse,
|
|
@@ -741,17 +609,6 @@ import type {
|
|
|
741
609
|
OpcUaServerReplaceByIdPutOpcUaServersIdResponse,
|
|
742
610
|
OpcUaServerReplaceByIdPostOpcUaServersIdReplaceResponse,
|
|
743
611
|
OpcUaServerFindOneResponse,
|
|
744
|
-
ProductionEntityMappingFindResponse,
|
|
745
|
-
ProductionEntityMappingPatchOrCreateResponse,
|
|
746
|
-
ProductionEntityMappingCreateResponse,
|
|
747
|
-
ProductionEntityMappingReplaceOrCreatePutProductionEntityMappingsResponse,
|
|
748
|
-
ProductionEntityMappingReplaceOrCreatePostProductionEntityMappingsReplaceOrCreateResponse,
|
|
749
|
-
ProductionEntityMappingUpsertWithWhereResponse,
|
|
750
|
-
ProductionEntityMappingFindByIdResponse,
|
|
751
|
-
ProductionEntityMappingPrototypePatchAttributesResponse,
|
|
752
|
-
ProductionEntityMappingReplaceByIdPutProductionEntityMappingsIdResponse,
|
|
753
|
-
ProductionEntityMappingReplaceByIdPostProductionEntityMappingsIdReplaceResponse,
|
|
754
|
-
ProductionEntityMappingFindOneResponse,
|
|
755
612
|
ProductionEntityTransactionFindResponse,
|
|
756
613
|
ProductionEntityTransactionPatchOrCreateResponse,
|
|
757
614
|
ProductionEntityTransactionCreateResponse,
|
|
@@ -811,6 +668,19 @@ import type {
|
|
|
811
668
|
ApiMethodLogReplaceByIdPutApiMethodLogsIdResponse,
|
|
812
669
|
ApiMethodLogReplaceByIdPostApiMethodLogsIdReplaceResponse,
|
|
813
670
|
ApiMethodLogFindOneResponse,
|
|
671
|
+
AddonPrototypeGetUserResponse,
|
|
672
|
+
AddonPrototypeGetCreatedUserResponse,
|
|
673
|
+
AddonFindResponse,
|
|
674
|
+
AddonPatchOrCreateResponse,
|
|
675
|
+
AddonCreateResponse,
|
|
676
|
+
AddonReplaceOrCreatePutAddonsResponse,
|
|
677
|
+
AddonReplaceOrCreatePostAddonsReplaceOrCreateResponse,
|
|
678
|
+
AddonUpsertWithWhereResponse,
|
|
679
|
+
AddonFindByIdResponse,
|
|
680
|
+
AddonPrototypePatchAttributesResponse,
|
|
681
|
+
AddonReplaceByIdPutAddonsIdResponse,
|
|
682
|
+
AddonReplaceByIdPostAddonsIdReplaceResponse,
|
|
683
|
+
AddonFindOneResponse,
|
|
814
684
|
} from './types.gen';
|
|
815
685
|
|
|
816
686
|
const stationSchemaResponseTransformer = (data: any) => {
|
|
@@ -2035,129 +1905,6 @@ export const aclFindOneResponseTransformer = async (
|
|
|
2035
1905
|
return data;
|
|
2036
1906
|
};
|
|
2037
1907
|
|
|
2038
|
-
const roleSchemaResponseTransformer = (data: any) => {
|
|
2039
|
-
if (data.created) {
|
|
2040
|
-
data.created = new Date(data.created);
|
|
2041
|
-
}
|
|
2042
|
-
if (data.modified) {
|
|
2043
|
-
data.modified = new Date(data.modified);
|
|
2044
|
-
}
|
|
2045
|
-
if (data.serverModified) {
|
|
2046
|
-
data.serverModified = new Date(data.serverModified);
|
|
2047
|
-
}
|
|
2048
|
-
return data;
|
|
2049
|
-
};
|
|
2050
|
-
|
|
2051
|
-
export const roleMappingPrototypeGetRoleResponseTransformer = async (
|
|
2052
|
-
data: any,
|
|
2053
|
-
): Promise<RoleMappingPrototypeGetRoleResponse> => {
|
|
2054
|
-
data = roleSchemaResponseTransformer(data);
|
|
2055
|
-
return data;
|
|
2056
|
-
};
|
|
2057
|
-
|
|
2058
|
-
export const roleMappingPrototypeGetUserModelResponseTransformer = async (
|
|
2059
|
-
data: any,
|
|
2060
|
-
): Promise<RoleMappingPrototypeGetUserModelResponse> => {
|
|
2061
|
-
data = userModelSchemaResponseTransformer(data);
|
|
2062
|
-
return data;
|
|
2063
|
-
};
|
|
2064
|
-
|
|
2065
|
-
const roleMappingSchemaResponseTransformer = (data: any) => {
|
|
2066
|
-
if (data.created) {
|
|
2067
|
-
data.created = new Date(data.created);
|
|
2068
|
-
}
|
|
2069
|
-
if (data.modified) {
|
|
2070
|
-
data.modified = new Date(data.modified);
|
|
2071
|
-
}
|
|
2072
|
-
if (data.serverModified) {
|
|
2073
|
-
data.serverModified = new Date(data.serverModified);
|
|
2074
|
-
}
|
|
2075
|
-
return data;
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
export const roleMappingFindResponseTransformer = async (
|
|
2079
|
-
data: any,
|
|
2080
|
-
): Promise<RoleMappingFindResponse> => {
|
|
2081
|
-
data = data.map((item: any) => {
|
|
2082
|
-
return roleMappingSchemaResponseTransformer(item);
|
|
2083
|
-
});
|
|
2084
|
-
return data;
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
export const roleMappingPatchOrCreateResponseTransformer = async (
|
|
2088
|
-
data: any,
|
|
2089
|
-
): Promise<RoleMappingPatchOrCreateResponse> => {
|
|
2090
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2091
|
-
return data;
|
|
2092
|
-
};
|
|
2093
|
-
|
|
2094
|
-
export const roleMappingCreateResponseTransformer = async (
|
|
2095
|
-
data: any,
|
|
2096
|
-
): Promise<RoleMappingCreateResponse> => {
|
|
2097
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2098
|
-
return data;
|
|
2099
|
-
};
|
|
2100
|
-
|
|
2101
|
-
export const roleMappingReplaceOrCreatePutRoleMappingsResponseTransformer =
|
|
2102
|
-
async (
|
|
2103
|
-
data: any,
|
|
2104
|
-
): Promise<RoleMappingReplaceOrCreatePutRoleMappingsResponse> => {
|
|
2105
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2106
|
-
return data;
|
|
2107
|
-
};
|
|
2108
|
-
|
|
2109
|
-
export const roleMappingReplaceOrCreatePostRoleMappingsReplaceOrCreateResponseTransformer =
|
|
2110
|
-
async (
|
|
2111
|
-
data: any,
|
|
2112
|
-
): Promise<RoleMappingReplaceOrCreatePostRoleMappingsReplaceOrCreateResponse> => {
|
|
2113
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2114
|
-
return data;
|
|
2115
|
-
};
|
|
2116
|
-
|
|
2117
|
-
export const roleMappingUpsertWithWhereResponseTransformer = async (
|
|
2118
|
-
data: any,
|
|
2119
|
-
): Promise<RoleMappingUpsertWithWhereResponse> => {
|
|
2120
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2121
|
-
return data;
|
|
2122
|
-
};
|
|
2123
|
-
|
|
2124
|
-
export const roleMappingFindByIdResponseTransformer = async (
|
|
2125
|
-
data: any,
|
|
2126
|
-
): Promise<RoleMappingFindByIdResponse> => {
|
|
2127
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2128
|
-
return data;
|
|
2129
|
-
};
|
|
2130
|
-
|
|
2131
|
-
export const roleMappingPrototypePatchAttributesResponseTransformer = async (
|
|
2132
|
-
data: any,
|
|
2133
|
-
): Promise<RoleMappingPrototypePatchAttributesResponse> => {
|
|
2134
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2135
|
-
return data;
|
|
2136
|
-
};
|
|
2137
|
-
|
|
2138
|
-
export const roleMappingReplaceByIdPutRoleMappingsIdResponseTransformer =
|
|
2139
|
-
async (
|
|
2140
|
-
data: any,
|
|
2141
|
-
): Promise<RoleMappingReplaceByIdPutRoleMappingsIdResponse> => {
|
|
2142
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2143
|
-
return data;
|
|
2144
|
-
};
|
|
2145
|
-
|
|
2146
|
-
export const roleMappingReplaceByIdPostRoleMappingsIdReplaceResponseTransformer =
|
|
2147
|
-
async (
|
|
2148
|
-
data: any,
|
|
2149
|
-
): Promise<RoleMappingReplaceByIdPostRoleMappingsIdReplaceResponse> => {
|
|
2150
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2151
|
-
return data;
|
|
2152
|
-
};
|
|
2153
|
-
|
|
2154
|
-
export const roleMappingFindOneResponseTransformer = async (
|
|
2155
|
-
data: any,
|
|
2156
|
-
): Promise<RoleMappingFindOneResponse> => {
|
|
2157
|
-
data = roleMappingSchemaResponseTransformer(data);
|
|
2158
|
-
return data;
|
|
2159
|
-
};
|
|
2160
|
-
|
|
2161
1908
|
export const userModelFindByIdResponseTransformer = async (
|
|
2162
1909
|
data: any,
|
|
2163
1910
|
): Promise<UserModelFindByIdResponse> => {
|
|
@@ -2226,6 +1973,19 @@ export const userModelReplayFromAuthProviderResponseTransformer = async (
|
|
|
2226
1973
|
return data;
|
|
2227
1974
|
};
|
|
2228
1975
|
|
|
1976
|
+
const roleMappingSchemaResponseTransformer = (data: any) => {
|
|
1977
|
+
if (data.created) {
|
|
1978
|
+
data.created = new Date(data.created);
|
|
1979
|
+
}
|
|
1980
|
+
if (data.modified) {
|
|
1981
|
+
data.modified = new Date(data.modified);
|
|
1982
|
+
}
|
|
1983
|
+
if (data.serverModified) {
|
|
1984
|
+
data.serverModified = new Date(data.serverModified);
|
|
1985
|
+
}
|
|
1986
|
+
return data;
|
|
1987
|
+
};
|
|
1988
|
+
|
|
2229
1989
|
export const rolePrototypeFindByIdPrincipalsResponseTransformer = async (
|
|
2230
1990
|
data: any,
|
|
2231
1991
|
): Promise<RolePrototypeFindByIdPrincipalsResponse> => {
|
|
@@ -2293,6 +2053,19 @@ export const rolePrototypeCreateUserModelsResponseTransformer = async (
|
|
|
2293
2053
|
return data;
|
|
2294
2054
|
};
|
|
2295
2055
|
|
|
2056
|
+
const roleSchemaResponseTransformer = (data: any) => {
|
|
2057
|
+
if (data.created) {
|
|
2058
|
+
data.created = new Date(data.created);
|
|
2059
|
+
}
|
|
2060
|
+
if (data.modified) {
|
|
2061
|
+
data.modified = new Date(data.modified);
|
|
2062
|
+
}
|
|
2063
|
+
if (data.serverModified) {
|
|
2064
|
+
data.serverModified = new Date(data.serverModified);
|
|
2065
|
+
}
|
|
2066
|
+
return data;
|
|
2067
|
+
};
|
|
2068
|
+
|
|
2296
2069
|
export const roleFindResponseTransformer = async (
|
|
2297
2070
|
data: any,
|
|
2298
2071
|
): Promise<RoleFindResponse> => {
|
|
@@ -2978,133 +2751,6 @@ export const workflowPrototypeCreateNodeAndConnectionResponseTransformer =
|
|
|
2978
2751
|
return data;
|
|
2979
2752
|
};
|
|
2980
2753
|
|
|
2981
|
-
export const workflowNotePrototypeGetCreatedByResponseTransformer = async (
|
|
2982
|
-
data: any,
|
|
2983
|
-
): Promise<WorkflowNotePrototypeGetCreatedByResponse> => {
|
|
2984
|
-
data = userModelSchemaResponseTransformer(data);
|
|
2985
|
-
return data;
|
|
2986
|
-
};
|
|
2987
|
-
|
|
2988
|
-
export const workflowNotePrototypeGetWorkflowResponseTransformer = async (
|
|
2989
|
-
data: any,
|
|
2990
|
-
): Promise<WorkflowNotePrototypeGetWorkflowResponse> => {
|
|
2991
|
-
data = workflowSchemaResponseTransformer(data);
|
|
2992
|
-
return data;
|
|
2993
|
-
};
|
|
2994
|
-
|
|
2995
|
-
export const workflowNotePrototypeGetNodeResponseTransformer = async (
|
|
2996
|
-
data: any,
|
|
2997
|
-
): Promise<WorkflowNotePrototypeGetNodeResponse> => {
|
|
2998
|
-
data = nodeSchemaResponseTransformer(data);
|
|
2999
|
-
return data;
|
|
3000
|
-
};
|
|
3001
|
-
|
|
3002
|
-
export const workflowNotePrototypeGetUserResponseTransformer = async (
|
|
3003
|
-
data: any,
|
|
3004
|
-
): Promise<WorkflowNotePrototypeGetUserResponse> => {
|
|
3005
|
-
data = userModelSchemaResponseTransformer(data);
|
|
3006
|
-
return data;
|
|
3007
|
-
};
|
|
3008
|
-
|
|
3009
|
-
const workflowNoteSchemaResponseTransformer = (data: any) => {
|
|
3010
|
-
if (data.closedTime) {
|
|
3011
|
-
data.closedTime = new Date(data.closedTime);
|
|
3012
|
-
}
|
|
3013
|
-
if (data.created) {
|
|
3014
|
-
data.created = new Date(data.created);
|
|
3015
|
-
}
|
|
3016
|
-
if (data.modified) {
|
|
3017
|
-
data.modified = new Date(data.modified);
|
|
3018
|
-
}
|
|
3019
|
-
if (data.serverModified) {
|
|
3020
|
-
data.serverModified = new Date(data.serverModified);
|
|
3021
|
-
}
|
|
3022
|
-
return data;
|
|
3023
|
-
};
|
|
3024
|
-
|
|
3025
|
-
export const workflowNoteFindResponseTransformer = async (
|
|
3026
|
-
data: any,
|
|
3027
|
-
): Promise<WorkflowNoteFindResponse> => {
|
|
3028
|
-
data = data.map((item: any) => {
|
|
3029
|
-
return workflowNoteSchemaResponseTransformer(item);
|
|
3030
|
-
});
|
|
3031
|
-
return data;
|
|
3032
|
-
};
|
|
3033
|
-
|
|
3034
|
-
export const workflowNotePatchOrCreateResponseTransformer = async (
|
|
3035
|
-
data: any,
|
|
3036
|
-
): Promise<WorkflowNotePatchOrCreateResponse> => {
|
|
3037
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3038
|
-
return data;
|
|
3039
|
-
};
|
|
3040
|
-
|
|
3041
|
-
export const workflowNoteCreateResponseTransformer = async (
|
|
3042
|
-
data: any,
|
|
3043
|
-
): Promise<WorkflowNoteCreateResponse> => {
|
|
3044
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3045
|
-
return data;
|
|
3046
|
-
};
|
|
3047
|
-
|
|
3048
|
-
export const workflowNoteReplaceOrCreatePutWorkflowNotesResponseTransformer =
|
|
3049
|
-
async (
|
|
3050
|
-
data: any,
|
|
3051
|
-
): Promise<WorkflowNoteReplaceOrCreatePutWorkflowNotesResponse> => {
|
|
3052
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3053
|
-
return data;
|
|
3054
|
-
};
|
|
3055
|
-
|
|
3056
|
-
export const workflowNoteReplaceOrCreatePostWorkflowNotesReplaceOrCreateResponseTransformer =
|
|
3057
|
-
async (
|
|
3058
|
-
data: any,
|
|
3059
|
-
): Promise<WorkflowNoteReplaceOrCreatePostWorkflowNotesReplaceOrCreateResponse> => {
|
|
3060
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3061
|
-
return data;
|
|
3062
|
-
};
|
|
3063
|
-
|
|
3064
|
-
export const workflowNoteUpsertWithWhereResponseTransformer = async (
|
|
3065
|
-
data: any,
|
|
3066
|
-
): Promise<WorkflowNoteUpsertWithWhereResponse> => {
|
|
3067
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3068
|
-
return data;
|
|
3069
|
-
};
|
|
3070
|
-
|
|
3071
|
-
export const workflowNoteFindByIdResponseTransformer = async (
|
|
3072
|
-
data: any,
|
|
3073
|
-
): Promise<WorkflowNoteFindByIdResponse> => {
|
|
3074
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3075
|
-
return data;
|
|
3076
|
-
};
|
|
3077
|
-
|
|
3078
|
-
export const workflowNotePrototypePatchAttributesResponseTransformer = async (
|
|
3079
|
-
data: any,
|
|
3080
|
-
): Promise<WorkflowNotePrototypePatchAttributesResponse> => {
|
|
3081
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3082
|
-
return data;
|
|
3083
|
-
};
|
|
3084
|
-
|
|
3085
|
-
export const workflowNoteReplaceByIdPutWorkflowNotesIdResponseTransformer =
|
|
3086
|
-
async (
|
|
3087
|
-
data: any,
|
|
3088
|
-
): Promise<WorkflowNoteReplaceByIdPutWorkflowNotesIdResponse> => {
|
|
3089
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3090
|
-
return data;
|
|
3091
|
-
};
|
|
3092
|
-
|
|
3093
|
-
export const workflowNoteReplaceByIdPostWorkflowNotesIdReplaceResponseTransformer =
|
|
3094
|
-
async (
|
|
3095
|
-
data: any,
|
|
3096
|
-
): Promise<WorkflowNoteReplaceByIdPostWorkflowNotesIdReplaceResponse> => {
|
|
3097
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3098
|
-
return data;
|
|
3099
|
-
};
|
|
3100
|
-
|
|
3101
|
-
export const workflowNoteFindOneResponseTransformer = async (
|
|
3102
|
-
data: any,
|
|
3103
|
-
): Promise<WorkflowNoteFindOneResponse> => {
|
|
3104
|
-
data = workflowNoteSchemaResponseTransformer(data);
|
|
3105
|
-
return data;
|
|
3106
|
-
};
|
|
3107
|
-
|
|
3108
2754
|
const aiPromptSchemaResponseTransformer = (data: any) => {
|
|
3109
2755
|
if (data.created) {
|
|
3110
2756
|
data.created = new Date(data.created);
|
|
@@ -3199,7 +2845,42 @@ export const aiPromptFindOneResponseTransformer = async (
|
|
|
3199
2845
|
return data;
|
|
3200
2846
|
};
|
|
3201
2847
|
|
|
3202
|
-
const
|
|
2848
|
+
export const connectionPrototypeGetFromResponseTransformer = async (
|
|
2849
|
+
data: any,
|
|
2850
|
+
): Promise<ConnectionPrototypeGetFromResponse> => {
|
|
2851
|
+
data = nodeSchemaResponseTransformer(data);
|
|
2852
|
+
return data;
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
export const connectionPrototypeGetToResponseTransformer = async (
|
|
2856
|
+
data: any,
|
|
2857
|
+
): Promise<ConnectionPrototypeGetToResponse> => {
|
|
2858
|
+
data = nodeSchemaResponseTransformer(data);
|
|
2859
|
+
return data;
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
export const nodePrototypeFindByIdResourcesResponseTransformer = async (
|
|
2863
|
+
data: any,
|
|
2864
|
+
): Promise<NodePrototypeFindByIdResourcesResponse> => {
|
|
2865
|
+
data = resourceSchemaResponseTransformer(data);
|
|
2866
|
+
return data;
|
|
2867
|
+
};
|
|
2868
|
+
|
|
2869
|
+
export const nodePrototypeUpdateByIdResourcesResponseTransformer = async (
|
|
2870
|
+
data: any,
|
|
2871
|
+
): Promise<NodePrototypeUpdateByIdResourcesResponse> => {
|
|
2872
|
+
data = resourceSchemaResponseTransformer(data);
|
|
2873
|
+
return data;
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
export const nodePrototypeLinkResourcesResponseTransformer = async (
|
|
2877
|
+
data: any,
|
|
2878
|
+
): Promise<NodePrototypeLinkResourcesResponse> => {
|
|
2879
|
+
data = resourceSchemaResponseTransformer(data);
|
|
2880
|
+
return data;
|
|
2881
|
+
};
|
|
2882
|
+
|
|
2883
|
+
const locationSchemaResponseTransformer = (data: any) => {
|
|
3203
2884
|
if (data.created) {
|
|
3204
2885
|
data.created = new Date(data.created);
|
|
3205
2886
|
}
|
|
@@ -3215,159 +2896,24 @@ const workflowDetailsSchemaResponseTransformer = (data: any) => {
|
|
|
3215
2896
|
return data;
|
|
3216
2897
|
};
|
|
3217
2898
|
|
|
3218
|
-
export const
|
|
2899
|
+
export const nodePrototypeGetLocationsResponseTransformer = async (
|
|
3219
2900
|
data: any,
|
|
3220
|
-
): Promise<
|
|
3221
|
-
data = data
|
|
3222
|
-
return workflowDetailsSchemaResponseTransformer(item);
|
|
3223
|
-
});
|
|
2901
|
+
): Promise<NodePrototypeGetLocationsResponse> => {
|
|
2902
|
+
data = locationSchemaResponseTransformer(data);
|
|
3224
2903
|
return data;
|
|
3225
2904
|
};
|
|
3226
2905
|
|
|
3227
|
-
export const
|
|
2906
|
+
export const nodePrototypeFindByIdToolsResponseTransformer = async (
|
|
3228
2907
|
data: any,
|
|
3229
|
-
): Promise<
|
|
3230
|
-
data =
|
|
2908
|
+
): Promise<NodePrototypeFindByIdToolsResponse> => {
|
|
2909
|
+
data = toolSchemaResponseTransformer(data);
|
|
3231
2910
|
return data;
|
|
3232
2911
|
};
|
|
3233
2912
|
|
|
3234
|
-
export const
|
|
2913
|
+
export const nodePrototypeUpdateByIdToolsResponseTransformer = async (
|
|
3235
2914
|
data: any,
|
|
3236
|
-
): Promise<
|
|
3237
|
-
data =
|
|
3238
|
-
return data;
|
|
3239
|
-
};
|
|
3240
|
-
|
|
3241
|
-
export const workflowDetailsReplaceOrCreatePutWorkflowDetailsResponseTransformer =
|
|
3242
|
-
async (
|
|
3243
|
-
data: any,
|
|
3244
|
-
): Promise<WorkflowDetailsReplaceOrCreatePutWorkflowDetailsResponse> => {
|
|
3245
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3246
|
-
return data;
|
|
3247
|
-
};
|
|
3248
|
-
|
|
3249
|
-
export const workflowDetailsReplaceOrCreatePostWorkflowDetailsReplaceOrCreateResponseTransformer =
|
|
3250
|
-
async (
|
|
3251
|
-
data: any,
|
|
3252
|
-
): Promise<WorkflowDetailsReplaceOrCreatePostWorkflowDetailsReplaceOrCreateResponse> => {
|
|
3253
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3254
|
-
return data;
|
|
3255
|
-
};
|
|
3256
|
-
|
|
3257
|
-
export const workflowDetailsUpsertWithWhereResponseTransformer = async (
|
|
3258
|
-
data: any,
|
|
3259
|
-
): Promise<WorkflowDetailsUpsertWithWhereResponse> => {
|
|
3260
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3261
|
-
return data;
|
|
3262
|
-
};
|
|
3263
|
-
|
|
3264
|
-
export const workflowDetailsFindByIdResponseTransformer = async (
|
|
3265
|
-
data: any,
|
|
3266
|
-
): Promise<WorkflowDetailsFindByIdResponse> => {
|
|
3267
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3268
|
-
return data;
|
|
3269
|
-
};
|
|
3270
|
-
|
|
3271
|
-
export const workflowDetailsPrototypePatchAttributesResponseTransformer =
|
|
3272
|
-
async (
|
|
3273
|
-
data: any,
|
|
3274
|
-
): Promise<WorkflowDetailsPrototypePatchAttributesResponse> => {
|
|
3275
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3276
|
-
return data;
|
|
3277
|
-
};
|
|
3278
|
-
|
|
3279
|
-
export const workflowDetailsReplaceByIdPutWorkflowDetailsIdResponseTransformer =
|
|
3280
|
-
async (
|
|
3281
|
-
data: any,
|
|
3282
|
-
): Promise<WorkflowDetailsReplaceByIdPutWorkflowDetailsIdResponse> => {
|
|
3283
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3284
|
-
return data;
|
|
3285
|
-
};
|
|
3286
|
-
|
|
3287
|
-
export const workflowDetailsReplaceByIdPostWorkflowDetailsIdReplaceResponseTransformer =
|
|
3288
|
-
async (
|
|
3289
|
-
data: any,
|
|
3290
|
-
): Promise<WorkflowDetailsReplaceByIdPostWorkflowDetailsIdReplaceResponse> => {
|
|
3291
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3292
|
-
return data;
|
|
3293
|
-
};
|
|
3294
|
-
|
|
3295
|
-
export const workflowDetailsFindOneResponseTransformer = async (
|
|
3296
|
-
data: any,
|
|
3297
|
-
): Promise<WorkflowDetailsFindOneResponse> => {
|
|
3298
|
-
data = workflowDetailsSchemaResponseTransformer(data);
|
|
3299
|
-
return data;
|
|
3300
|
-
};
|
|
3301
|
-
|
|
3302
|
-
export const connectionPrototypeGetFromResponseTransformer = async (
|
|
3303
|
-
data: any,
|
|
3304
|
-
): Promise<ConnectionPrototypeGetFromResponse> => {
|
|
3305
|
-
data = nodeSchemaResponseTransformer(data);
|
|
3306
|
-
return data;
|
|
3307
|
-
};
|
|
3308
|
-
|
|
3309
|
-
export const connectionPrototypeGetToResponseTransformer = async (
|
|
3310
|
-
data: any,
|
|
3311
|
-
): Promise<ConnectionPrototypeGetToResponse> => {
|
|
3312
|
-
data = nodeSchemaResponseTransformer(data);
|
|
3313
|
-
return data;
|
|
3314
|
-
};
|
|
3315
|
-
|
|
3316
|
-
export const nodePrototypeFindByIdResourcesResponseTransformer = async (
|
|
3317
|
-
data: any,
|
|
3318
|
-
): Promise<NodePrototypeFindByIdResourcesResponse> => {
|
|
3319
|
-
data = resourceSchemaResponseTransformer(data);
|
|
3320
|
-
return data;
|
|
3321
|
-
};
|
|
3322
|
-
|
|
3323
|
-
export const nodePrototypeUpdateByIdResourcesResponseTransformer = async (
|
|
3324
|
-
data: any,
|
|
3325
|
-
): Promise<NodePrototypeUpdateByIdResourcesResponse> => {
|
|
3326
|
-
data = resourceSchemaResponseTransformer(data);
|
|
3327
|
-
return data;
|
|
3328
|
-
};
|
|
3329
|
-
|
|
3330
|
-
export const nodePrototypeLinkResourcesResponseTransformer = async (
|
|
3331
|
-
data: any,
|
|
3332
|
-
): Promise<NodePrototypeLinkResourcesResponse> => {
|
|
3333
|
-
data = resourceSchemaResponseTransformer(data);
|
|
3334
|
-
return data;
|
|
3335
|
-
};
|
|
3336
|
-
|
|
3337
|
-
const locationSchemaResponseTransformer = (data: any) => {
|
|
3338
|
-
if (data.created) {
|
|
3339
|
-
data.created = new Date(data.created);
|
|
3340
|
-
}
|
|
3341
|
-
if (data.modified) {
|
|
3342
|
-
data.modified = new Date(data.modified);
|
|
3343
|
-
}
|
|
3344
|
-
if (data.serverModified) {
|
|
3345
|
-
data.serverModified = new Date(data.serverModified);
|
|
3346
|
-
}
|
|
3347
|
-
if (data.deletedAt) {
|
|
3348
|
-
data.deletedAt = new Date(data.deletedAt);
|
|
3349
|
-
}
|
|
3350
|
-
return data;
|
|
3351
|
-
};
|
|
3352
|
-
|
|
3353
|
-
export const nodePrototypeGetLocationsResponseTransformer = async (
|
|
3354
|
-
data: any,
|
|
3355
|
-
): Promise<NodePrototypeGetLocationsResponse> => {
|
|
3356
|
-
data = locationSchemaResponseTransformer(data);
|
|
3357
|
-
return data;
|
|
3358
|
-
};
|
|
3359
|
-
|
|
3360
|
-
export const nodePrototypeFindByIdToolsResponseTransformer = async (
|
|
3361
|
-
data: any,
|
|
3362
|
-
): Promise<NodePrototypeFindByIdToolsResponse> => {
|
|
3363
|
-
data = toolSchemaResponseTransformer(data);
|
|
3364
|
-
return data;
|
|
3365
|
-
};
|
|
3366
|
-
|
|
3367
|
-
export const nodePrototypeUpdateByIdToolsResponseTransformer = async (
|
|
3368
|
-
data: any,
|
|
3369
|
-
): Promise<NodePrototypeUpdateByIdToolsResponse> => {
|
|
3370
|
-
data = toolSchemaResponseTransformer(data);
|
|
2915
|
+
): Promise<NodePrototypeUpdateByIdToolsResponse> => {
|
|
2916
|
+
data = toolSchemaResponseTransformer(data);
|
|
3371
2917
|
return data;
|
|
3372
2918
|
};
|
|
3373
2919
|
|
|
@@ -3809,48 +3355,6 @@ export const updateInfoFindOneResponseTransformer = async (
|
|
|
3809
3355
|
return data;
|
|
3810
3356
|
};
|
|
3811
3357
|
|
|
3812
|
-
export const workorderPrototypeFindByIdPartResponseTransformer = async (
|
|
3813
|
-
data: any,
|
|
3814
|
-
): Promise<WorkorderPrototypeFindByIdPartResponse> => {
|
|
3815
|
-
data = partSchemaResponseTransformer(data);
|
|
3816
|
-
return data;
|
|
3817
|
-
};
|
|
3818
|
-
|
|
3819
|
-
export const workorderPrototypeUpdateByIdPartResponseTransformer = async (
|
|
3820
|
-
data: any,
|
|
3821
|
-
): Promise<WorkorderPrototypeUpdateByIdPartResponse> => {
|
|
3822
|
-
data = partSchemaResponseTransformer(data);
|
|
3823
|
-
return data;
|
|
3824
|
-
};
|
|
3825
|
-
|
|
3826
|
-
export const workorderPrototypeLinkPartResponseTransformer = async (
|
|
3827
|
-
data: any,
|
|
3828
|
-
): Promise<WorkorderPrototypeLinkPartResponse> => {
|
|
3829
|
-
data = partSchemaResponseTransformer(data);
|
|
3830
|
-
return data;
|
|
3831
|
-
};
|
|
3832
|
-
|
|
3833
|
-
export const workorderPrototypeFindByIdLocationsResponseTransformer = async (
|
|
3834
|
-
data: any,
|
|
3835
|
-
): Promise<WorkorderPrototypeFindByIdLocationsResponse> => {
|
|
3836
|
-
data = locationSchemaResponseTransformer(data);
|
|
3837
|
-
return data;
|
|
3838
|
-
};
|
|
3839
|
-
|
|
3840
|
-
export const workorderPrototypeUpdateByIdLocationsResponseTransformer = async (
|
|
3841
|
-
data: any,
|
|
3842
|
-
): Promise<WorkorderPrototypeUpdateByIdLocationsResponse> => {
|
|
3843
|
-
data = locationSchemaResponseTransformer(data);
|
|
3844
|
-
return data;
|
|
3845
|
-
};
|
|
3846
|
-
|
|
3847
|
-
export const workorderPrototypeLinkLocationsResponseTransformer = async (
|
|
3848
|
-
data: any,
|
|
3849
|
-
): Promise<WorkorderPrototypeLinkLocationsResponse> => {
|
|
3850
|
-
data = locationSchemaResponseTransformer(data);
|
|
3851
|
-
return data;
|
|
3852
|
-
};
|
|
3853
|
-
|
|
3854
3358
|
const kitSchemaResponseTransformer = (data: any) => {
|
|
3855
3359
|
if (data.created) {
|
|
3856
3360
|
data.created = new Date(data.created);
|
|
@@ -3912,86 +3416,26 @@ const workorderSchemaResponseTransformer = (data: any) => {
|
|
|
3912
3416
|
return data;
|
|
3913
3417
|
};
|
|
3914
3418
|
|
|
3915
|
-
export const
|
|
3419
|
+
export const workorderFindByIdResponseTransformer = async (
|
|
3916
3420
|
data: any,
|
|
3917
|
-
): Promise<
|
|
3421
|
+
): Promise<WorkorderFindByIdResponse> => {
|
|
3918
3422
|
data = workorderSchemaResponseTransformer(data);
|
|
3919
3423
|
return data;
|
|
3920
3424
|
};
|
|
3921
3425
|
|
|
3922
|
-
export const
|
|
3923
|
-
async (
|
|
3924
|
-
data: any,
|
|
3925
|
-
): Promise<WorkorderPrototypeCreateParentWorkorderResponse> => {
|
|
3926
|
-
data = workorderSchemaResponseTransformer(data);
|
|
3927
|
-
return data;
|
|
3928
|
-
};
|
|
3929
|
-
|
|
3930
|
-
export const workorderPrototypeUpdateParentWorkorderResponseTransformer =
|
|
3931
|
-
async (
|
|
3932
|
-
data: any,
|
|
3933
|
-
): Promise<WorkorderPrototypeUpdateParentWorkorderResponse> => {
|
|
3934
|
-
data = workorderSchemaResponseTransformer(data);
|
|
3935
|
-
return data;
|
|
3936
|
-
};
|
|
3937
|
-
|
|
3938
|
-
export const workorderPrototypeFindByIdKitsResponseTransformer = async (
|
|
3939
|
-
data: any,
|
|
3940
|
-
): Promise<WorkorderPrototypeFindByIdKitsResponse> => {
|
|
3941
|
-
data = kitSchemaResponseTransformer(data);
|
|
3942
|
-
return data;
|
|
3943
|
-
};
|
|
3944
|
-
|
|
3945
|
-
export const workorderPrototypeUpdateByIdKitsResponseTransformer = async (
|
|
3946
|
-
data: any,
|
|
3947
|
-
): Promise<WorkorderPrototypeUpdateByIdKitsResponse> => {
|
|
3948
|
-
data = kitSchemaResponseTransformer(data);
|
|
3949
|
-
return data;
|
|
3950
|
-
};
|
|
3951
|
-
|
|
3952
|
-
export const workorderPrototypeGetWorkflowResponseTransformer = async (
|
|
3426
|
+
export const workorderFindResponseTransformer = async (
|
|
3953
3427
|
data: any,
|
|
3954
|
-
): Promise<
|
|
3955
|
-
data =
|
|
3428
|
+
): Promise<WorkorderFindResponse> => {
|
|
3429
|
+
data = data.map((item: any) => {
|
|
3430
|
+
return workorderSchemaResponseTransformer(item);
|
|
3431
|
+
});
|
|
3956
3432
|
return data;
|
|
3957
3433
|
};
|
|
3958
3434
|
|
|
3959
|
-
export const
|
|
3960
|
-
async (
|
|
3961
|
-
data: any,
|
|
3962
|
-
): Promise<WorkorderPrototypeGetUnmatchRevApprovedUserResponse> => {
|
|
3963
|
-
data = userModelSchemaResponseTransformer(data);
|
|
3964
|
-
return data;
|
|
3965
|
-
};
|
|
3966
|
-
|
|
3967
|
-
export const workorderPrototypeGetNewVersionApprovedUserResponseTransformer =
|
|
3968
|
-
async (
|
|
3969
|
-
data: any,
|
|
3970
|
-
): Promise<WorkorderPrototypeGetNewVersionApprovedUserResponse> => {
|
|
3971
|
-
data = userModelSchemaResponseTransformer(data);
|
|
3972
|
-
return data;
|
|
3973
|
-
};
|
|
3974
|
-
|
|
3975
|
-
export const workorderPrototypeFindByIdCurrentLocationsResponseTransformer =
|
|
3976
|
-
async (
|
|
3977
|
-
data: any,
|
|
3978
|
-
): Promise<WorkorderPrototypeFindByIdCurrentLocationsResponse> => {
|
|
3979
|
-
data = locationSchemaResponseTransformer(data);
|
|
3980
|
-
return data;
|
|
3981
|
-
};
|
|
3982
|
-
|
|
3983
|
-
export const workorderPrototypeUpdateByIdCurrentLocationsResponseTransformer =
|
|
3984
|
-
async (
|
|
3985
|
-
data: any,
|
|
3986
|
-
): Promise<WorkorderPrototypeUpdateByIdCurrentLocationsResponse> => {
|
|
3987
|
-
data = locationSchemaResponseTransformer(data);
|
|
3988
|
-
return data;
|
|
3989
|
-
};
|
|
3990
|
-
|
|
3991
|
-
export const workorderPrototypeLinkCurrentLocationsResponseTransformer = async (
|
|
3435
|
+
export const workorderFindOneResponseTransformer = async (
|
|
3992
3436
|
data: any,
|
|
3993
|
-
): Promise<
|
|
3994
|
-
data =
|
|
3437
|
+
): Promise<WorkorderFindOneResponse> => {
|
|
3438
|
+
data = workorderSchemaResponseTransformer(data);
|
|
3995
3439
|
return data;
|
|
3996
3440
|
};
|
|
3997
3441
|
|
|
@@ -4035,624 +3479,81 @@ const stockSchemaResponseTransformer = (data: any) => {
|
|
|
4035
3479
|
return data;
|
|
4036
3480
|
};
|
|
4037
3481
|
|
|
4038
|
-
export const
|
|
4039
|
-
data: any,
|
|
4040
|
-
): Promise<WorkorderPrototypeFindByIdStocksResponse> => {
|
|
4041
|
-
data = stockSchemaResponseTransformer(data);
|
|
4042
|
-
return data;
|
|
4043
|
-
};
|
|
4044
|
-
|
|
4045
|
-
export const workorderPrototypeUpdateByIdStocksResponseTransformer = async (
|
|
4046
|
-
data: any,
|
|
4047
|
-
): Promise<WorkorderPrototypeUpdateByIdStocksResponse> => {
|
|
4048
|
-
data = stockSchemaResponseTransformer(data);
|
|
4049
|
-
return data;
|
|
4050
|
-
};
|
|
4051
|
-
|
|
4052
|
-
export const workorderPrototypeLinkStocksResponseTransformer = async (
|
|
3482
|
+
export const workorderSetSessionSerialResponseTransformer = async (
|
|
4053
3483
|
data: any,
|
|
4054
|
-
): Promise<
|
|
3484
|
+
): Promise<WorkorderSetSessionSerialResponse> => {
|
|
4055
3485
|
data = stockSchemaResponseTransformer(data);
|
|
4056
3486
|
return data;
|
|
4057
3487
|
};
|
|
4058
3488
|
|
|
4059
|
-
const
|
|
4060
|
-
if (data.start) {
|
|
4061
|
-
data.start = new Date(data.start);
|
|
4062
|
-
}
|
|
4063
|
-
if (data.end) {
|
|
4064
|
-
data.end = new Date(data.end);
|
|
4065
|
-
}
|
|
4066
|
-
if (data.created) {
|
|
4067
|
-
data.created = new Date(data.created);
|
|
4068
|
-
}
|
|
4069
|
-
if (data.modified) {
|
|
4070
|
-
data.modified = new Date(data.modified);
|
|
4071
|
-
}
|
|
4072
|
-
if (data.serverModified) {
|
|
4073
|
-
data.serverModified = new Date(data.serverModified);
|
|
4074
|
-
}
|
|
4075
|
-
if (data.deletedAt) {
|
|
4076
|
-
data.deletedAt = new Date(data.deletedAt);
|
|
4077
|
-
}
|
|
4078
|
-
return data;
|
|
4079
|
-
};
|
|
4080
|
-
|
|
4081
|
-
export const workorderPrototypeFindByIdSessionsResponseTransformer = async (
|
|
4082
|
-
data: any,
|
|
4083
|
-
): Promise<WorkorderPrototypeFindByIdSessionsResponse> => {
|
|
4084
|
-
data = workflowSessionItemSchemaResponseTransformer(data);
|
|
4085
|
-
return data;
|
|
4086
|
-
};
|
|
4087
|
-
|
|
4088
|
-
export const workorderPrototypeUpdateByIdSessionsResponseTransformer = async (
|
|
4089
|
-
data: any,
|
|
4090
|
-
): Promise<WorkorderPrototypeUpdateByIdSessionsResponse> => {
|
|
4091
|
-
data = workflowSessionItemSchemaResponseTransformer(data);
|
|
4092
|
-
return data;
|
|
4093
|
-
};
|
|
4094
|
-
|
|
4095
|
-
export const workorderPrototypeLinkSessionsResponseTransformer = async (
|
|
4096
|
-
data: any,
|
|
4097
|
-
): Promise<WorkorderPrototypeLinkSessionsResponse> => {
|
|
4098
|
-
data = workflowSessionItemSchemaResponseTransformer(data);
|
|
4099
|
-
return data;
|
|
4100
|
-
};
|
|
4101
|
-
|
|
4102
|
-
const workflowTypeSchemaResponseTransformer = (data: any) => {
|
|
4103
|
-
if (data.created) {
|
|
4104
|
-
data.created = new Date(data.created);
|
|
4105
|
-
}
|
|
4106
|
-
if (data.modified) {
|
|
4107
|
-
data.modified = new Date(data.modified);
|
|
4108
|
-
}
|
|
4109
|
-
if (data.serverModified) {
|
|
4110
|
-
data.serverModified = new Date(data.serverModified);
|
|
4111
|
-
}
|
|
4112
|
-
if (data.deletedAt) {
|
|
4113
|
-
data.deletedAt = new Date(data.deletedAt);
|
|
4114
|
-
}
|
|
4115
|
-
return data;
|
|
4116
|
-
};
|
|
4117
|
-
|
|
4118
|
-
export const workorderPrototypeGetWorkorderTypeResponseTransformer = async (
|
|
4119
|
-
data: any,
|
|
4120
|
-
): Promise<WorkorderPrototypeGetWorkorderTypeResponse> => {
|
|
4121
|
-
data = workflowTypeSchemaResponseTransformer(data);
|
|
4122
|
-
return data;
|
|
4123
|
-
};
|
|
4124
|
-
|
|
4125
|
-
export const workorderPrototypeFindByIdGroupModelResponseTransformer = async (
|
|
4126
|
-
data: any,
|
|
4127
|
-
): Promise<WorkorderPrototypeFindByIdGroupModelResponse> => {
|
|
4128
|
-
data = groupSchemaResponseTransformer(data);
|
|
4129
|
-
return data;
|
|
4130
|
-
};
|
|
4131
|
-
|
|
4132
|
-
export const workorderPrototypeUpdateByIdGroupModelResponseTransformer = async (
|
|
4133
|
-
data: any,
|
|
4134
|
-
): Promise<WorkorderPrototypeUpdateByIdGroupModelResponse> => {
|
|
4135
|
-
data = groupSchemaResponseTransformer(data);
|
|
4136
|
-
return data;
|
|
4137
|
-
};
|
|
4138
|
-
|
|
4139
|
-
export const workorderPrototypeLinkGroupModelResponseTransformer = async (
|
|
4140
|
-
data: any,
|
|
4141
|
-
): Promise<WorkorderPrototypeLinkGroupModelResponse> => {
|
|
4142
|
-
data = groupSchemaResponseTransformer(data);
|
|
4143
|
-
return data;
|
|
4144
|
-
};
|
|
4145
|
-
|
|
4146
|
-
export const workorderPrototypeGetPartResponseTransformer = async (
|
|
4147
|
-
data: any,
|
|
4148
|
-
): Promise<WorkorderPrototypeGetPartResponse> => {
|
|
4149
|
-
data = data.map((item: any) => {
|
|
4150
|
-
return partSchemaResponseTransformer(item);
|
|
4151
|
-
});
|
|
4152
|
-
return data;
|
|
4153
|
-
};
|
|
4154
|
-
|
|
4155
|
-
export const workorderPrototypeCreatePartResponseTransformer = async (
|
|
4156
|
-
data: any,
|
|
4157
|
-
): Promise<WorkorderPrototypeCreatePartResponse> => {
|
|
4158
|
-
data = partSchemaResponseTransformer(data);
|
|
4159
|
-
return data;
|
|
4160
|
-
};
|
|
4161
|
-
|
|
4162
|
-
export const workorderPrototypeGetLocationsResponseTransformer = async (
|
|
4163
|
-
data: any,
|
|
4164
|
-
): Promise<WorkorderPrototypeGetLocationsResponse> => {
|
|
4165
|
-
data = data.map((item: any) => {
|
|
4166
|
-
return locationSchemaResponseTransformer(item);
|
|
4167
|
-
});
|
|
4168
|
-
return data;
|
|
4169
|
-
};
|
|
4170
|
-
|
|
4171
|
-
export const workorderPrototypeCreateLocationsResponseTransformer = async (
|
|
4172
|
-
data: any,
|
|
4173
|
-
): Promise<WorkorderPrototypeCreateLocationsResponse> => {
|
|
4174
|
-
data = locationSchemaResponseTransformer(data);
|
|
4175
|
-
return data;
|
|
4176
|
-
};
|
|
4177
|
-
|
|
4178
|
-
export const workorderPrototypeGetKitsResponseTransformer = async (
|
|
4179
|
-
data: any,
|
|
4180
|
-
): Promise<WorkorderPrototypeGetKitsResponse> => {
|
|
4181
|
-
data = data.map((item: any) => {
|
|
4182
|
-
return kitSchemaResponseTransformer(item);
|
|
4183
|
-
});
|
|
4184
|
-
return data;
|
|
4185
|
-
};
|
|
4186
|
-
|
|
4187
|
-
export const workorderPrototypeCreateKitsResponseTransformer = async (
|
|
4188
|
-
data: any,
|
|
4189
|
-
): Promise<WorkorderPrototypeCreateKitsResponse> => {
|
|
4190
|
-
data = kitSchemaResponseTransformer(data);
|
|
4191
|
-
return data;
|
|
4192
|
-
};
|
|
4193
|
-
|
|
4194
|
-
export const workorderPrototypeGetCurrentLocationsResponseTransformer = async (
|
|
4195
|
-
data: any,
|
|
4196
|
-
): Promise<WorkorderPrototypeGetCurrentLocationsResponse> => {
|
|
4197
|
-
data = data.map((item: any) => {
|
|
4198
|
-
return locationSchemaResponseTransformer(item);
|
|
4199
|
-
});
|
|
4200
|
-
return data;
|
|
4201
|
-
};
|
|
4202
|
-
|
|
4203
|
-
export const workorderPrototypeCreateCurrentLocationsResponseTransformer =
|
|
4204
|
-
async (
|
|
4205
|
-
data: any,
|
|
4206
|
-
): Promise<WorkorderPrototypeCreateCurrentLocationsResponse> => {
|
|
4207
|
-
data = locationSchemaResponseTransformer(data);
|
|
4208
|
-
return data;
|
|
4209
|
-
};
|
|
4210
|
-
|
|
4211
|
-
export const workorderPrototypeGetStocksResponseTransformer = async (
|
|
4212
|
-
data: any,
|
|
4213
|
-
): Promise<WorkorderPrototypeGetStocksResponse> => {
|
|
4214
|
-
data = data.map((item: any) => {
|
|
4215
|
-
return stockSchemaResponseTransformer(item);
|
|
4216
|
-
});
|
|
4217
|
-
return data;
|
|
4218
|
-
};
|
|
4219
|
-
|
|
4220
|
-
export const workorderPrototypeCreateStocksResponseTransformer = async (
|
|
4221
|
-
data: any,
|
|
4222
|
-
): Promise<WorkorderPrototypeCreateStocksResponse> => {
|
|
4223
|
-
data = stockSchemaResponseTransformer(data);
|
|
4224
|
-
return data;
|
|
4225
|
-
};
|
|
4226
|
-
|
|
4227
|
-
export const workorderPrototypeGetSessionsResponseTransformer = async (
|
|
4228
|
-
data: any,
|
|
4229
|
-
): Promise<WorkorderPrototypeGetSessionsResponse> => {
|
|
4230
|
-
data = data.map((item: any) => {
|
|
4231
|
-
return workflowSessionItemSchemaResponseTransformer(item);
|
|
4232
|
-
});
|
|
4233
|
-
return data;
|
|
4234
|
-
};
|
|
4235
|
-
|
|
4236
|
-
export const workorderPrototypeCreateSessionsResponseTransformer = async (
|
|
4237
|
-
data: any,
|
|
4238
|
-
): Promise<WorkorderPrototypeCreateSessionsResponse> => {
|
|
4239
|
-
data = workflowSessionItemSchemaResponseTransformer(data);
|
|
4240
|
-
return data;
|
|
4241
|
-
};
|
|
4242
|
-
|
|
4243
|
-
export const workorderPrototypeGetGroupModelResponseTransformer = async (
|
|
4244
|
-
data: any,
|
|
4245
|
-
): Promise<WorkorderPrototypeGetGroupModelResponse> => {
|
|
4246
|
-
data = data.map((item: any) => {
|
|
4247
|
-
return groupSchemaResponseTransformer(item);
|
|
4248
|
-
});
|
|
4249
|
-
return data;
|
|
4250
|
-
};
|
|
4251
|
-
|
|
4252
|
-
export const workorderPrototypeCreateGroupModelResponseTransformer = async (
|
|
4253
|
-
data: any,
|
|
4254
|
-
): Promise<WorkorderPrototypeCreateGroupModelResponse> => {
|
|
4255
|
-
data = groupSchemaResponseTransformer(data);
|
|
4256
|
-
return data;
|
|
4257
|
-
};
|
|
4258
|
-
|
|
4259
|
-
export const workorderFindResponseTransformer = async (
|
|
4260
|
-
data: any,
|
|
4261
|
-
): Promise<WorkorderFindResponse> => {
|
|
4262
|
-
data = data.map((item: any) => {
|
|
4263
|
-
return workorderSchemaResponseTransformer(item);
|
|
4264
|
-
});
|
|
4265
|
-
return data;
|
|
4266
|
-
};
|
|
4267
|
-
|
|
4268
|
-
export const workorderPatchOrCreateResponseTransformer = async (
|
|
4269
|
-
data: any,
|
|
4270
|
-
): Promise<WorkorderPatchOrCreateResponse> => {
|
|
4271
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4272
|
-
return data;
|
|
4273
|
-
};
|
|
4274
|
-
|
|
4275
|
-
export const workorderReplaceOrCreatePutWorkordersResponseTransformer = async (
|
|
4276
|
-
data: any,
|
|
4277
|
-
): Promise<WorkorderReplaceOrCreatePutWorkordersResponse> => {
|
|
4278
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4279
|
-
return data;
|
|
4280
|
-
};
|
|
4281
|
-
|
|
4282
|
-
export const workorderReplaceOrCreatePostWorkordersReplaceOrCreateResponseTransformer =
|
|
4283
|
-
async (
|
|
4284
|
-
data: any,
|
|
4285
|
-
): Promise<WorkorderReplaceOrCreatePostWorkordersReplaceOrCreateResponse> => {
|
|
4286
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4287
|
-
return data;
|
|
4288
|
-
};
|
|
4289
|
-
|
|
4290
|
-
export const workorderUpsertWithWhereResponseTransformer = async (
|
|
4291
|
-
data: any,
|
|
4292
|
-
): Promise<WorkorderUpsertWithWhereResponse> => {
|
|
4293
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4294
|
-
return data;
|
|
4295
|
-
};
|
|
4296
|
-
|
|
4297
|
-
export const workorderFindByIdResponseTransformer = async (
|
|
4298
|
-
data: any,
|
|
4299
|
-
): Promise<WorkorderFindByIdResponse> => {
|
|
4300
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4301
|
-
return data;
|
|
4302
|
-
};
|
|
4303
|
-
|
|
4304
|
-
export const workorderReplaceByIdPutWorkordersIdResponseTransformer = async (
|
|
4305
|
-
data: any,
|
|
4306
|
-
): Promise<WorkorderReplaceByIdPutWorkordersIdResponse> => {
|
|
4307
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4308
|
-
return data;
|
|
4309
|
-
};
|
|
4310
|
-
|
|
4311
|
-
export const workorderReplaceByIdPostWorkordersIdReplaceResponseTransformer =
|
|
4312
|
-
async (
|
|
4313
|
-
data: any,
|
|
4314
|
-
): Promise<WorkorderReplaceByIdPostWorkordersIdReplaceResponse> => {
|
|
4315
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4316
|
-
return data;
|
|
4317
|
-
};
|
|
4318
|
-
|
|
4319
|
-
export const workorderFindOneResponseTransformer = async (
|
|
4320
|
-
data: any,
|
|
4321
|
-
): Promise<WorkorderFindOneResponse> => {
|
|
4322
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4323
|
-
return data;
|
|
4324
|
-
};
|
|
4325
|
-
|
|
4326
|
-
export const workorderSetSessionSerialResponseTransformer = async (
|
|
4327
|
-
data: any,
|
|
4328
|
-
): Promise<WorkorderSetSessionSerialResponse> => {
|
|
4329
|
-
data = stockSchemaResponseTransformer(data);
|
|
4330
|
-
return data;
|
|
4331
|
-
};
|
|
4332
|
-
|
|
4333
|
-
export const workorderPrototypeSetStockSerialsResponseTransformer = async (
|
|
3489
|
+
export const workorderPrototypeSetStockSerialsResponseTransformer = async (
|
|
4334
3490
|
data: any,
|
|
4335
3491
|
): Promise<WorkorderPrototypeSetStockSerialsResponse> => {
|
|
4336
3492
|
data = stockSchemaResponseTransformer(data);
|
|
4337
3493
|
return data;
|
|
4338
3494
|
};
|
|
4339
3495
|
|
|
4340
|
-
export const workorderPrototypeCommitResponseTransformer = async (
|
|
4341
|
-
data: any,
|
|
4342
|
-
): Promise<WorkorderPrototypeCommitResponse> => {
|
|
4343
|
-
data = stockSchemaResponseTransformer(data);
|
|
4344
|
-
return data;
|
|
4345
|
-
};
|
|
4346
|
-
|
|
4347
|
-
export const workorderPrototypeSetStockSerialsLocalResponseTransformer = async (
|
|
4348
|
-
data: any,
|
|
4349
|
-
): Promise<WorkorderPrototypeSetStockSerialsLocalResponse> => {
|
|
4350
|
-
data = stockSchemaResponseTransformer(data);
|
|
4351
|
-
return data;
|
|
4352
|
-
};
|
|
4353
|
-
|
|
4354
|
-
export const workorderGetResponseTransformer = async (
|
|
4355
|
-
data: any,
|
|
4356
|
-
): Promise<WorkorderGetResponse> => {
|
|
4357
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4358
|
-
return data;
|
|
4359
|
-
};
|
|
4360
|
-
|
|
4361
|
-
export const workorderAssignResponseTransformer = async (
|
|
4362
|
-
data: any,
|
|
4363
|
-
): Promise<WorkorderAssignResponse> => {
|
|
4364
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4365
|
-
return data;
|
|
4366
|
-
};
|
|
4367
|
-
|
|
4368
|
-
export const workorderChangeGroupsResponseTransformer = async (
|
|
4369
|
-
data: any,
|
|
4370
|
-
): Promise<WorkorderChangeGroupsResponse> => {
|
|
4371
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4372
|
-
return data;
|
|
4373
|
-
};
|
|
4374
|
-
|
|
4375
|
-
export const stockPrototypeGetPartResponseTransformer = async (
|
|
4376
|
-
data: any,
|
|
4377
|
-
): Promise<StockPrototypeGetPartResponse> => {
|
|
4378
|
-
data = partSchemaResponseTransformer(data);
|
|
4379
|
-
return data;
|
|
4380
|
-
};
|
|
4381
|
-
|
|
4382
|
-
export const stockPrototypeGetLocationResponseTransformer = async (
|
|
4383
|
-
data: any,
|
|
4384
|
-
): Promise<StockPrototypeGetLocationResponse> => {
|
|
4385
|
-
data = locationSchemaResponseTransformer(data);
|
|
4386
|
-
return data;
|
|
4387
|
-
};
|
|
4388
|
-
|
|
4389
|
-
export const stockPrototypeFindByIdLocationsResponseTransformer = async (
|
|
4390
|
-
data: any,
|
|
4391
|
-
): Promise<StockPrototypeFindByIdLocationsResponse> => {
|
|
4392
|
-
data = locationSchemaResponseTransformer(data);
|
|
4393
|
-
return data;
|
|
4394
|
-
};
|
|
4395
|
-
|
|
4396
|
-
export const stockPrototypeUpdateByIdLocationsResponseTransformer = async (
|
|
4397
|
-
data: any,
|
|
4398
|
-
): Promise<StockPrototypeUpdateByIdLocationsResponse> => {
|
|
4399
|
-
data = locationSchemaResponseTransformer(data);
|
|
4400
|
-
return data;
|
|
4401
|
-
};
|
|
4402
|
-
|
|
4403
|
-
export const stockPrototypeLinkLocationsResponseTransformer = async (
|
|
4404
|
-
data: any,
|
|
4405
|
-
): Promise<StockPrototypeLinkLocationsResponse> => {
|
|
4406
|
-
data = locationSchemaResponseTransformer(data);
|
|
4407
|
-
return data;
|
|
4408
|
-
};
|
|
4409
|
-
|
|
4410
|
-
export const stockPrototypeGetWorkorderResponseTransformer = async (
|
|
4411
|
-
data: any,
|
|
4412
|
-
): Promise<StockPrototypeGetWorkorderResponse> => {
|
|
4413
|
-
data = workorderSchemaResponseTransformer(data);
|
|
4414
|
-
return data;
|
|
4415
|
-
};
|
|
4416
|
-
|
|
4417
|
-
export const stockPrototypeGetActiveUserResponseTransformer = async (
|
|
4418
|
-
data: any,
|
|
4419
|
-
): Promise<StockPrototypeGetActiveUserResponse> => {
|
|
4420
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4421
|
-
return data;
|
|
4422
|
-
};
|
|
4423
|
-
|
|
4424
|
-
export const stockPrototypeGetParentStockResponseTransformer = async (
|
|
4425
|
-
data: any,
|
|
4426
|
-
): Promise<StockPrototypeGetParentStockResponse> => {
|
|
4427
|
-
data = stockSchemaResponseTransformer(data);
|
|
4428
|
-
return data;
|
|
4429
|
-
};
|
|
4430
|
-
|
|
4431
|
-
export const stockPrototypeFindByIdChildStockResponseTransformer = async (
|
|
4432
|
-
data: any,
|
|
4433
|
-
): Promise<StockPrototypeFindByIdChildStockResponse> => {
|
|
4434
|
-
data = stockSchemaResponseTransformer(data);
|
|
4435
|
-
return data;
|
|
4436
|
-
};
|
|
4437
|
-
|
|
4438
|
-
export const stockPrototypeUpdateByIdChildStockResponseTransformer = async (
|
|
4439
|
-
data: any,
|
|
4440
|
-
): Promise<StockPrototypeUpdateByIdChildStockResponse> => {
|
|
4441
|
-
data = stockSchemaResponseTransformer(data);
|
|
4442
|
-
return data;
|
|
4443
|
-
};
|
|
4444
|
-
|
|
4445
|
-
export const stockPrototypeLinkChildStockResponseTransformer = async (
|
|
4446
|
-
data: any,
|
|
4447
|
-
): Promise<StockPrototypeLinkChildStockResponse> => {
|
|
4448
|
-
data = stockSchemaResponseTransformer(data);
|
|
4449
|
-
return data;
|
|
4450
|
-
};
|
|
4451
|
-
|
|
4452
|
-
export const stockPrototypeFindByIdUsersResponseTransformer = async (
|
|
4453
|
-
data: any,
|
|
4454
|
-
): Promise<StockPrototypeFindByIdUsersResponse> => {
|
|
4455
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4456
|
-
return data;
|
|
4457
|
-
};
|
|
4458
|
-
|
|
4459
|
-
export const stockPrototypeUpdateByIdUsersResponseTransformer = async (
|
|
4460
|
-
data: any,
|
|
4461
|
-
): Promise<StockPrototypeUpdateByIdUsersResponse> => {
|
|
4462
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4463
|
-
return data;
|
|
4464
|
-
};
|
|
4465
|
-
|
|
4466
|
-
export const stockPrototypeLinkUsersResponseTransformer = async (
|
|
4467
|
-
data: any,
|
|
4468
|
-
): Promise<StockPrototypeLinkUsersResponse> => {
|
|
4469
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4470
|
-
return data;
|
|
4471
|
-
};
|
|
4472
|
-
|
|
4473
|
-
export const stockPrototypeGetWorkWithoutKitApprovedResponseTransformer =
|
|
4474
|
-
async (
|
|
4475
|
-
data: any,
|
|
4476
|
-
): Promise<StockPrototypeGetWorkWithoutKitApprovedResponse> => {
|
|
4477
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4478
|
-
return data;
|
|
4479
|
-
};
|
|
4480
|
-
|
|
4481
|
-
export const stockPrototypeFindByIdTimeLogResponseTransformer = async (
|
|
4482
|
-
data: any,
|
|
4483
|
-
): Promise<StockPrototypeFindByIdTimeLogResponse> => {
|
|
4484
|
-
data = timeLogSchemaResponseTransformer(data);
|
|
4485
|
-
return data;
|
|
4486
|
-
};
|
|
4487
|
-
|
|
4488
|
-
export const stockPrototypeUpdateByIdTimeLogResponseTransformer = async (
|
|
4489
|
-
data: any,
|
|
4490
|
-
): Promise<StockPrototypeUpdateByIdTimeLogResponse> => {
|
|
4491
|
-
data = timeLogSchemaResponseTransformer(data);
|
|
4492
|
-
return data;
|
|
4493
|
-
};
|
|
4494
|
-
|
|
4495
|
-
export const stockPrototypeGetWorkflowSessionItemResponseTransformer = async (
|
|
4496
|
-
data: any,
|
|
4497
|
-
): Promise<StockPrototypeGetWorkflowSessionItemResponse> => {
|
|
4498
|
-
data = workflowSessionItemSchemaResponseTransformer(data);
|
|
4499
|
-
return data;
|
|
4500
|
-
};
|
|
4501
|
-
|
|
4502
|
-
export const stockPrototypeGetUserResponseTransformer = async (
|
|
4503
|
-
data: any,
|
|
4504
|
-
): Promise<StockPrototypeGetUserResponse> => {
|
|
4505
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4506
|
-
return data;
|
|
4507
|
-
};
|
|
4508
|
-
|
|
4509
|
-
export const stockPrototypeGetLocationsResponseTransformer = async (
|
|
4510
|
-
data: any,
|
|
4511
|
-
): Promise<StockPrototypeGetLocationsResponse> => {
|
|
4512
|
-
data = data.map((item: any) => {
|
|
4513
|
-
return locationSchemaResponseTransformer(item);
|
|
4514
|
-
});
|
|
4515
|
-
return data;
|
|
4516
|
-
};
|
|
4517
|
-
|
|
4518
|
-
export const stockPrototypeCreateLocationsResponseTransformer = async (
|
|
4519
|
-
data: any,
|
|
4520
|
-
): Promise<StockPrototypeCreateLocationsResponse> => {
|
|
4521
|
-
data = locationSchemaResponseTransformer(data);
|
|
4522
|
-
return data;
|
|
4523
|
-
};
|
|
4524
|
-
|
|
4525
|
-
export const stockPrototypeGetChildStockResponseTransformer = async (
|
|
4526
|
-
data: any,
|
|
4527
|
-
): Promise<StockPrototypeGetChildStockResponse> => {
|
|
4528
|
-
data = data.map((item: any) => {
|
|
4529
|
-
return stockSchemaResponseTransformer(item);
|
|
4530
|
-
});
|
|
4531
|
-
return data;
|
|
4532
|
-
};
|
|
4533
|
-
|
|
4534
|
-
export const stockPrototypeCreateChildStockResponseTransformer = async (
|
|
4535
|
-
data: any,
|
|
4536
|
-
): Promise<StockPrototypeCreateChildStockResponse> => {
|
|
4537
|
-
data = stockSchemaResponseTransformer(data);
|
|
4538
|
-
return data;
|
|
4539
|
-
};
|
|
4540
|
-
|
|
4541
|
-
export const stockPrototypeGetUsersResponseTransformer = async (
|
|
4542
|
-
data: any,
|
|
4543
|
-
): Promise<StockPrototypeGetUsersResponse> => {
|
|
4544
|
-
data = data.map((item: any) => {
|
|
4545
|
-
return userModelSchemaResponseTransformer(item);
|
|
4546
|
-
});
|
|
4547
|
-
return data;
|
|
4548
|
-
};
|
|
4549
|
-
|
|
4550
|
-
export const stockPrototypeCreateUsersResponseTransformer = async (
|
|
4551
|
-
data: any,
|
|
4552
|
-
): Promise<StockPrototypeCreateUsersResponse> => {
|
|
4553
|
-
data = userModelSchemaResponseTransformer(data);
|
|
4554
|
-
return data;
|
|
4555
|
-
};
|
|
4556
|
-
|
|
4557
|
-
export const stockPrototypeGetTimeLogResponseTransformer = async (
|
|
4558
|
-
data: any,
|
|
4559
|
-
): Promise<StockPrototypeGetTimeLogResponse> => {
|
|
4560
|
-
data = data.map((item: any) => {
|
|
4561
|
-
return timeLogSchemaResponseTransformer(item);
|
|
4562
|
-
});
|
|
4563
|
-
return data;
|
|
4564
|
-
};
|
|
4565
|
-
|
|
4566
|
-
export const stockPrototypeCreateTimeLogResponseTransformer = async (
|
|
4567
|
-
data: any,
|
|
4568
|
-
): Promise<StockPrototypeCreateTimeLogResponse> => {
|
|
4569
|
-
data = timeLogSchemaResponseTransformer(data);
|
|
4570
|
-
return data;
|
|
4571
|
-
};
|
|
4572
|
-
|
|
4573
|
-
export const stockFindResponseTransformer = async (
|
|
4574
|
-
data: any,
|
|
4575
|
-
): Promise<StockFindResponse> => {
|
|
4576
|
-
data = data.map((item: any) => {
|
|
4577
|
-
return stockSchemaResponseTransformer(item);
|
|
4578
|
-
});
|
|
4579
|
-
return data;
|
|
4580
|
-
};
|
|
4581
|
-
|
|
4582
|
-
export const stockPatchOrCreateResponseTransformer = async (
|
|
4583
|
-
data: any,
|
|
4584
|
-
): Promise<StockPatchOrCreateResponse> => {
|
|
4585
|
-
data = stockSchemaResponseTransformer(data);
|
|
4586
|
-
return data;
|
|
4587
|
-
};
|
|
4588
|
-
|
|
4589
|
-
export const stockCreateResponseTransformer = async (
|
|
3496
|
+
export const workorderPrototypeCommitResponseTransformer = async (
|
|
4590
3497
|
data: any,
|
|
4591
|
-
): Promise<
|
|
3498
|
+
): Promise<WorkorderPrototypeCommitResponse> => {
|
|
4592
3499
|
data = stockSchemaResponseTransformer(data);
|
|
4593
3500
|
return data;
|
|
4594
3501
|
};
|
|
4595
3502
|
|
|
4596
|
-
export const
|
|
3503
|
+
export const workorderGetResponseTransformer = async (
|
|
4597
3504
|
data: any,
|
|
4598
|
-
): Promise<
|
|
4599
|
-
data =
|
|
3505
|
+
): Promise<WorkorderGetResponse> => {
|
|
3506
|
+
data = workorderSchemaResponseTransformer(data);
|
|
4600
3507
|
return data;
|
|
4601
3508
|
};
|
|
4602
3509
|
|
|
4603
|
-
export const
|
|
4604
|
-
async (
|
|
4605
|
-
data: any,
|
|
4606
|
-
): Promise<StockReplaceOrCreatePostStocksReplaceOrCreateResponse> => {
|
|
4607
|
-
data = stockSchemaResponseTransformer(data);
|
|
4608
|
-
return data;
|
|
4609
|
-
};
|
|
4610
|
-
|
|
4611
|
-
export const stockUpsertWithWhereResponseTransformer = async (
|
|
3510
|
+
export const workorderAssignResponseTransformer = async (
|
|
4612
3511
|
data: any,
|
|
4613
|
-
): Promise<
|
|
4614
|
-
data =
|
|
3512
|
+
): Promise<WorkorderAssignResponse> => {
|
|
3513
|
+
data = workorderSchemaResponseTransformer(data);
|
|
4615
3514
|
return data;
|
|
4616
3515
|
};
|
|
4617
3516
|
|
|
4618
|
-
export const
|
|
3517
|
+
export const workorderChangeGroupsResponseTransformer = async (
|
|
4619
3518
|
data: any,
|
|
4620
|
-
): Promise<
|
|
4621
|
-
data =
|
|
3519
|
+
): Promise<WorkorderChangeGroupsResponse> => {
|
|
3520
|
+
data = workorderSchemaResponseTransformer(data);
|
|
4622
3521
|
return data;
|
|
4623
3522
|
};
|
|
4624
3523
|
|
|
4625
|
-
export const
|
|
3524
|
+
export const stockFindResponseTransformer = async (
|
|
4626
3525
|
data: any,
|
|
4627
|
-
): Promise<
|
|
4628
|
-
data =
|
|
3526
|
+
): Promise<StockFindResponse> => {
|
|
3527
|
+
data = data.map((item: any) => {
|
|
3528
|
+
return stockSchemaResponseTransformer(item);
|
|
3529
|
+
});
|
|
4629
3530
|
return data;
|
|
4630
3531
|
};
|
|
4631
3532
|
|
|
4632
|
-
export const
|
|
3533
|
+
export const stockCreateResponseTransformer = async (
|
|
4633
3534
|
data: any,
|
|
4634
|
-
): Promise<
|
|
3535
|
+
): Promise<StockCreateResponse> => {
|
|
4635
3536
|
data = stockSchemaResponseTransformer(data);
|
|
4636
3537
|
return data;
|
|
4637
3538
|
};
|
|
4638
3539
|
|
|
4639
|
-
export const
|
|
3540
|
+
export const stockFindByIdResponseTransformer = async (
|
|
4640
3541
|
data: any,
|
|
4641
|
-
): Promise<
|
|
3542
|
+
): Promise<StockFindByIdResponse> => {
|
|
4642
3543
|
data = stockSchemaResponseTransformer(data);
|
|
4643
3544
|
return data;
|
|
4644
3545
|
};
|
|
4645
3546
|
|
|
4646
|
-
export const
|
|
3547
|
+
export const stockPrototypePatchAttributesResponseTransformer = async (
|
|
4647
3548
|
data: any,
|
|
4648
|
-
): Promise<
|
|
3549
|
+
): Promise<StockPrototypePatchAttributesResponse> => {
|
|
4649
3550
|
data = stockSchemaResponseTransformer(data);
|
|
4650
3551
|
return data;
|
|
4651
3552
|
};
|
|
4652
3553
|
|
|
4653
|
-
export const
|
|
3554
|
+
export const stockFindOneResponseTransformer = async (
|
|
4654
3555
|
data: any,
|
|
4655
|
-
): Promise<
|
|
3556
|
+
): Promise<StockFindOneResponse> => {
|
|
4656
3557
|
data = stockSchemaResponseTransformer(data);
|
|
4657
3558
|
return data;
|
|
4658
3559
|
};
|
|
@@ -5915,7 +4816,13 @@ export const folderPrototypePatchAttributesResponseTransformer = async (
|
|
|
5915
4816
|
return data;
|
|
5916
4817
|
};
|
|
5917
4818
|
|
|
5918
|
-
const
|
|
4819
|
+
const workflowSessionItemSchemaResponseTransformer = (data: any) => {
|
|
4820
|
+
if (data.start) {
|
|
4821
|
+
data.start = new Date(data.start);
|
|
4822
|
+
}
|
|
4823
|
+
if (data.end) {
|
|
4824
|
+
data.end = new Date(data.end);
|
|
4825
|
+
}
|
|
5919
4826
|
if (data.created) {
|
|
5920
4827
|
data.created = new Date(data.created);
|
|
5921
4828
|
}
|
|
@@ -5925,90 +4832,9 @@ const resourceMappingSchemaResponseTransformer = (data: any) => {
|
|
|
5925
4832
|
if (data.serverModified) {
|
|
5926
4833
|
data.serverModified = new Date(data.serverModified);
|
|
5927
4834
|
}
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
export const resourceMappingFindResponseTransformer = async (
|
|
5932
|
-
data: any,
|
|
5933
|
-
): Promise<ResourceMappingFindResponse> => {
|
|
5934
|
-
data = data.map((item: any) => {
|
|
5935
|
-
return resourceMappingSchemaResponseTransformer(item);
|
|
5936
|
-
});
|
|
5937
|
-
return data;
|
|
5938
|
-
};
|
|
5939
|
-
|
|
5940
|
-
export const resourceMappingPatchOrCreateResponseTransformer = async (
|
|
5941
|
-
data: any,
|
|
5942
|
-
): Promise<ResourceMappingPatchOrCreateResponse> => {
|
|
5943
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5944
|
-
return data;
|
|
5945
|
-
};
|
|
5946
|
-
|
|
5947
|
-
export const resourceMappingCreateResponseTransformer = async (
|
|
5948
|
-
data: any,
|
|
5949
|
-
): Promise<ResourceMappingCreateResponse> => {
|
|
5950
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5951
|
-
return data;
|
|
5952
|
-
};
|
|
5953
|
-
|
|
5954
|
-
export const resourceMappingReplaceOrCreatePutResourceMappingsResponseTransformer =
|
|
5955
|
-
async (
|
|
5956
|
-
data: any,
|
|
5957
|
-
): Promise<ResourceMappingReplaceOrCreatePutResourceMappingsResponse> => {
|
|
5958
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5959
|
-
return data;
|
|
5960
|
-
};
|
|
5961
|
-
|
|
5962
|
-
export const resourceMappingReplaceOrCreatePostResourceMappingsReplaceOrCreateResponseTransformer =
|
|
5963
|
-
async (
|
|
5964
|
-
data: any,
|
|
5965
|
-
): Promise<ResourceMappingReplaceOrCreatePostResourceMappingsReplaceOrCreateResponse> => {
|
|
5966
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5967
|
-
return data;
|
|
5968
|
-
};
|
|
5969
|
-
|
|
5970
|
-
export const resourceMappingUpsertWithWhereResponseTransformer = async (
|
|
5971
|
-
data: any,
|
|
5972
|
-
): Promise<ResourceMappingUpsertWithWhereResponse> => {
|
|
5973
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5974
|
-
return data;
|
|
5975
|
-
};
|
|
5976
|
-
|
|
5977
|
-
export const resourceMappingFindByIdResponseTransformer = async (
|
|
5978
|
-
data: any,
|
|
5979
|
-
): Promise<ResourceMappingFindByIdResponse> => {
|
|
5980
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5981
|
-
return data;
|
|
5982
|
-
};
|
|
5983
|
-
|
|
5984
|
-
export const resourceMappingPrototypePatchAttributesResponseTransformer =
|
|
5985
|
-
async (
|
|
5986
|
-
data: any,
|
|
5987
|
-
): Promise<ResourceMappingPrototypePatchAttributesResponse> => {
|
|
5988
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5989
|
-
return data;
|
|
5990
|
-
};
|
|
5991
|
-
|
|
5992
|
-
export const resourceMappingReplaceByIdPutResourceMappingsIdResponseTransformer =
|
|
5993
|
-
async (
|
|
5994
|
-
data: any,
|
|
5995
|
-
): Promise<ResourceMappingReplaceByIdPutResourceMappingsIdResponse> => {
|
|
5996
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
5997
|
-
return data;
|
|
5998
|
-
};
|
|
5999
|
-
|
|
6000
|
-
export const resourceMappingReplaceByIdPostResourceMappingsIdReplaceResponseTransformer =
|
|
6001
|
-
async (
|
|
6002
|
-
data: any,
|
|
6003
|
-
): Promise<ResourceMappingReplaceByIdPostResourceMappingsIdReplaceResponse> => {
|
|
6004
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
6005
|
-
return data;
|
|
6006
|
-
};
|
|
6007
|
-
|
|
6008
|
-
export const resourceMappingFindOneResponseTransformer = async (
|
|
6009
|
-
data: any,
|
|
6010
|
-
): Promise<ResourceMappingFindOneResponse> => {
|
|
6011
|
-
data = resourceMappingSchemaResponseTransformer(data);
|
|
4835
|
+
if (data.deletedAt) {
|
|
4836
|
+
data.deletedAt = new Date(data.deletedAt);
|
|
4837
|
+
}
|
|
6012
4838
|
return data;
|
|
6013
4839
|
};
|
|
6014
4840
|
|
|
@@ -6902,6 +5728,22 @@ export const npsPrototypePatchAttributesResponseTransformer = async (
|
|
|
6902
5728
|
return data;
|
|
6903
5729
|
};
|
|
6904
5730
|
|
|
5731
|
+
const workflowTypeSchemaResponseTransformer = (data: any) => {
|
|
5732
|
+
if (data.created) {
|
|
5733
|
+
data.created = new Date(data.created);
|
|
5734
|
+
}
|
|
5735
|
+
if (data.modified) {
|
|
5736
|
+
data.modified = new Date(data.modified);
|
|
5737
|
+
}
|
|
5738
|
+
if (data.serverModified) {
|
|
5739
|
+
data.serverModified = new Date(data.serverModified);
|
|
5740
|
+
}
|
|
5741
|
+
if (data.deletedAt) {
|
|
5742
|
+
data.deletedAt = new Date(data.deletedAt);
|
|
5743
|
+
}
|
|
5744
|
+
return data;
|
|
5745
|
+
};
|
|
5746
|
+
|
|
6905
5747
|
export const workflowTypeFindResponseTransformer = async (
|
|
6906
5748
|
data: any,
|
|
6907
5749
|
): Promise<WorkflowTypeFindResponse> => {
|
|
@@ -7755,106 +6597,6 @@ export const opcUaServerFindOneResponseTransformer = async (
|
|
|
7755
6597
|
return data;
|
|
7756
6598
|
};
|
|
7757
6599
|
|
|
7758
|
-
const productionEntityMappingSchemaResponseTransformer = (data: any) => {
|
|
7759
|
-
if (data.created) {
|
|
7760
|
-
data.created = new Date(data.created);
|
|
7761
|
-
}
|
|
7762
|
-
if (data.modified) {
|
|
7763
|
-
data.modified = new Date(data.modified);
|
|
7764
|
-
}
|
|
7765
|
-
if (data.serverModified) {
|
|
7766
|
-
data.serverModified = new Date(data.serverModified);
|
|
7767
|
-
}
|
|
7768
|
-
if (data.deletedAt) {
|
|
7769
|
-
data.deletedAt = new Date(data.deletedAt);
|
|
7770
|
-
}
|
|
7771
|
-
return data;
|
|
7772
|
-
};
|
|
7773
|
-
|
|
7774
|
-
export const productionEntityMappingFindResponseTransformer = async (
|
|
7775
|
-
data: any,
|
|
7776
|
-
): Promise<ProductionEntityMappingFindResponse> => {
|
|
7777
|
-
data = data.map((item: any) => {
|
|
7778
|
-
return productionEntityMappingSchemaResponseTransformer(item);
|
|
7779
|
-
});
|
|
7780
|
-
return data;
|
|
7781
|
-
};
|
|
7782
|
-
|
|
7783
|
-
export const productionEntityMappingPatchOrCreateResponseTransformer = async (
|
|
7784
|
-
data: any,
|
|
7785
|
-
): Promise<ProductionEntityMappingPatchOrCreateResponse> => {
|
|
7786
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7787
|
-
return data;
|
|
7788
|
-
};
|
|
7789
|
-
|
|
7790
|
-
export const productionEntityMappingCreateResponseTransformer = async (
|
|
7791
|
-
data: any,
|
|
7792
|
-
): Promise<ProductionEntityMappingCreateResponse> => {
|
|
7793
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7794
|
-
return data;
|
|
7795
|
-
};
|
|
7796
|
-
|
|
7797
|
-
export const productionEntityMappingReplaceOrCreatePutProductionEntityMappingsResponseTransformer =
|
|
7798
|
-
async (
|
|
7799
|
-
data: any,
|
|
7800
|
-
): Promise<ProductionEntityMappingReplaceOrCreatePutProductionEntityMappingsResponse> => {
|
|
7801
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7802
|
-
return data;
|
|
7803
|
-
};
|
|
7804
|
-
|
|
7805
|
-
export const productionEntityMappingReplaceOrCreatePostProductionEntityMappingsReplaceOrCreateResponseTransformer =
|
|
7806
|
-
async (
|
|
7807
|
-
data: any,
|
|
7808
|
-
): Promise<ProductionEntityMappingReplaceOrCreatePostProductionEntityMappingsReplaceOrCreateResponse> => {
|
|
7809
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7810
|
-
return data;
|
|
7811
|
-
};
|
|
7812
|
-
|
|
7813
|
-
export const productionEntityMappingUpsertWithWhereResponseTransformer = async (
|
|
7814
|
-
data: any,
|
|
7815
|
-
): Promise<ProductionEntityMappingUpsertWithWhereResponse> => {
|
|
7816
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7817
|
-
return data;
|
|
7818
|
-
};
|
|
7819
|
-
|
|
7820
|
-
export const productionEntityMappingFindByIdResponseTransformer = async (
|
|
7821
|
-
data: any,
|
|
7822
|
-
): Promise<ProductionEntityMappingFindByIdResponse> => {
|
|
7823
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7824
|
-
return data;
|
|
7825
|
-
};
|
|
7826
|
-
|
|
7827
|
-
export const productionEntityMappingPrototypePatchAttributesResponseTransformer =
|
|
7828
|
-
async (
|
|
7829
|
-
data: any,
|
|
7830
|
-
): Promise<ProductionEntityMappingPrototypePatchAttributesResponse> => {
|
|
7831
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7832
|
-
return data;
|
|
7833
|
-
};
|
|
7834
|
-
|
|
7835
|
-
export const productionEntityMappingReplaceByIdPutProductionEntityMappingsIdResponseTransformer =
|
|
7836
|
-
async (
|
|
7837
|
-
data: any,
|
|
7838
|
-
): Promise<ProductionEntityMappingReplaceByIdPutProductionEntityMappingsIdResponse> => {
|
|
7839
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7840
|
-
return data;
|
|
7841
|
-
};
|
|
7842
|
-
|
|
7843
|
-
export const productionEntityMappingReplaceByIdPostProductionEntityMappingsIdReplaceResponseTransformer =
|
|
7844
|
-
async (
|
|
7845
|
-
data: any,
|
|
7846
|
-
): Promise<ProductionEntityMappingReplaceByIdPostProductionEntityMappingsIdReplaceResponse> => {
|
|
7847
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7848
|
-
return data;
|
|
7849
|
-
};
|
|
7850
|
-
|
|
7851
|
-
export const productionEntityMappingFindOneResponseTransformer = async (
|
|
7852
|
-
data: any,
|
|
7853
|
-
): Promise<ProductionEntityMappingFindOneResponse> => {
|
|
7854
|
-
data = productionEntityMappingSchemaResponseTransformer(data);
|
|
7855
|
-
return data;
|
|
7856
|
-
};
|
|
7857
|
-
|
|
7858
6600
|
const productionEntityTransactionSchemaResponseTransformer = (data: any) => {
|
|
7859
6601
|
if (data.created) {
|
|
7860
6602
|
data.created = new Date(data.created);
|
|
@@ -8381,3 +7123,113 @@ export const apiMethodLogFindOneResponseTransformer = async (
|
|
|
8381
7123
|
data = apiMethodLogSchemaResponseTransformer(data);
|
|
8382
7124
|
return data;
|
|
8383
7125
|
};
|
|
7126
|
+
|
|
7127
|
+
export const addonPrototypeGetUserResponseTransformer = async (
|
|
7128
|
+
data: any,
|
|
7129
|
+
): Promise<AddonPrototypeGetUserResponse> => {
|
|
7130
|
+
data = userModelSchemaResponseTransformer(data);
|
|
7131
|
+
return data;
|
|
7132
|
+
};
|
|
7133
|
+
|
|
7134
|
+
export const addonPrototypeGetCreatedUserResponseTransformer = async (
|
|
7135
|
+
data: any,
|
|
7136
|
+
): Promise<AddonPrototypeGetCreatedUserResponse> => {
|
|
7137
|
+
data = userModelSchemaResponseTransformer(data);
|
|
7138
|
+
return data;
|
|
7139
|
+
};
|
|
7140
|
+
|
|
7141
|
+
const addonSchemaResponseTransformer = (data: any) => {
|
|
7142
|
+
if (data.created) {
|
|
7143
|
+
data.created = new Date(data.created);
|
|
7144
|
+
}
|
|
7145
|
+
if (data.modified) {
|
|
7146
|
+
data.modified = new Date(data.modified);
|
|
7147
|
+
}
|
|
7148
|
+
if (data.serverModified) {
|
|
7149
|
+
data.serverModified = new Date(data.serverModified);
|
|
7150
|
+
}
|
|
7151
|
+
if (data.deletedAt) {
|
|
7152
|
+
data.deletedAt = new Date(data.deletedAt);
|
|
7153
|
+
}
|
|
7154
|
+
return data;
|
|
7155
|
+
};
|
|
7156
|
+
|
|
7157
|
+
export const addonFindResponseTransformer = async (
|
|
7158
|
+
data: any,
|
|
7159
|
+
): Promise<AddonFindResponse> => {
|
|
7160
|
+
data = data.map((item: any) => {
|
|
7161
|
+
return addonSchemaResponseTransformer(item);
|
|
7162
|
+
});
|
|
7163
|
+
return data;
|
|
7164
|
+
};
|
|
7165
|
+
|
|
7166
|
+
export const addonPatchOrCreateResponseTransformer = async (
|
|
7167
|
+
data: any,
|
|
7168
|
+
): Promise<AddonPatchOrCreateResponse> => {
|
|
7169
|
+
data = addonSchemaResponseTransformer(data);
|
|
7170
|
+
return data;
|
|
7171
|
+
};
|
|
7172
|
+
|
|
7173
|
+
export const addonCreateResponseTransformer = async (
|
|
7174
|
+
data: any,
|
|
7175
|
+
): Promise<AddonCreateResponse> => {
|
|
7176
|
+
data = addonSchemaResponseTransformer(data);
|
|
7177
|
+
return data;
|
|
7178
|
+
};
|
|
7179
|
+
|
|
7180
|
+
export const addonReplaceOrCreatePutAddonsResponseTransformer = async (
|
|
7181
|
+
data: any,
|
|
7182
|
+
): Promise<AddonReplaceOrCreatePutAddonsResponse> => {
|
|
7183
|
+
data = addonSchemaResponseTransformer(data);
|
|
7184
|
+
return data;
|
|
7185
|
+
};
|
|
7186
|
+
|
|
7187
|
+
export const addonReplaceOrCreatePostAddonsReplaceOrCreateResponseTransformer =
|
|
7188
|
+
async (
|
|
7189
|
+
data: any,
|
|
7190
|
+
): Promise<AddonReplaceOrCreatePostAddonsReplaceOrCreateResponse> => {
|
|
7191
|
+
data = addonSchemaResponseTransformer(data);
|
|
7192
|
+
return data;
|
|
7193
|
+
};
|
|
7194
|
+
|
|
7195
|
+
export const addonUpsertWithWhereResponseTransformer = async (
|
|
7196
|
+
data: any,
|
|
7197
|
+
): Promise<AddonUpsertWithWhereResponse> => {
|
|
7198
|
+
data = addonSchemaResponseTransformer(data);
|
|
7199
|
+
return data;
|
|
7200
|
+
};
|
|
7201
|
+
|
|
7202
|
+
export const addonFindByIdResponseTransformer = async (
|
|
7203
|
+
data: any,
|
|
7204
|
+
): Promise<AddonFindByIdResponse> => {
|
|
7205
|
+
data = addonSchemaResponseTransformer(data);
|
|
7206
|
+
return data;
|
|
7207
|
+
};
|
|
7208
|
+
|
|
7209
|
+
export const addonPrototypePatchAttributesResponseTransformer = async (
|
|
7210
|
+
data: any,
|
|
7211
|
+
): Promise<AddonPrototypePatchAttributesResponse> => {
|
|
7212
|
+
data = addonSchemaResponseTransformer(data);
|
|
7213
|
+
return data;
|
|
7214
|
+
};
|
|
7215
|
+
|
|
7216
|
+
export const addonReplaceByIdPutAddonsIdResponseTransformer = async (
|
|
7217
|
+
data: any,
|
|
7218
|
+
): Promise<AddonReplaceByIdPutAddonsIdResponse> => {
|
|
7219
|
+
data = addonSchemaResponseTransformer(data);
|
|
7220
|
+
return data;
|
|
7221
|
+
};
|
|
7222
|
+
|
|
7223
|
+
export const addonReplaceByIdPostAddonsIdReplaceResponseTransformer = async (
|
|
7224
|
+
data: any,
|
|
7225
|
+
): Promise<AddonReplaceByIdPostAddonsIdReplaceResponse> => {
|
|
7226
|
+
data = addonSchemaResponseTransformer(data);
|
|
7227
|
+
return data;
|
|
7228
|
+
};
|
|
7229
|
+
|
|
7230
|
+
export const addonFindOneResponseTransformer = async (
|
|
7231
|
+
data: any,
|
|
7232
|
+
): Promise<AddonFindOneResponse> => {
|
|
7233
|
+
data = addonSchemaResponseTransformer(data);
|
|
7234
|
+
return data;
|
|
7235
|
+
};
|