@nextplus/js-sdk 0.0.9 → 0.0.10
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-TU3VOZVD.js → chunk-GMJM2AK6.js} +9 -1
- package/dist/{chunk-VAV5HKXV.js → chunk-O65NPNYE.js} +1000 -73
- package/dist/{index-DESgEWKO.d.ts → index-DP-keAMv.d.ts} +211 -9
- package/dist/{index-KyIl4y18.d.cts → index-Dwy0Oyyf.d.cts} +211 -9
- package/dist/index.cjs +999 -72
- 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 +1003 -72
- package/dist/sdk/index.d.cts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/sdk.gen.cjs +1003 -72
- package/dist/sdk/sdk.gen.d.cts +1 -1
- package/dist/sdk/sdk.gen.d.ts +1 -1
- package/dist/sdk/sdk.gen.js +9 -1
- package/dist/{sdk.gen-D4UJVxtf.d.cts → sdk.gen-BntcMIIs.d.cts} +1616 -57
- package/dist/{sdk.gen-aOku7-zB.d.ts → sdk.gen-k17BtAsz.d.ts} +1616 -57
- package/package.json +1 -1
- package/src/sdk/schemas.gen.ts +265 -42
- package/src/sdk/sdk.gen.ts +1430 -36
- package/src/sdk/transformers.gen.ts +325 -0
- package/src/sdk/types.gen.ts +1628 -49
package/src/sdk/sdk.gen.ts
CHANGED
|
@@ -744,12 +744,18 @@ import type {
|
|
|
744
744
|
ResourceGetResourceIncludedResponses,
|
|
745
745
|
ResourceDeleteFileByIdData,
|
|
746
746
|
ResourceDeleteFileByIdResponses,
|
|
747
|
+
ResourceDeleteFileIfNotUsedData,
|
|
748
|
+
ResourceDeleteFileIfNotUsedResponses,
|
|
747
749
|
ResourceProcessingFileData,
|
|
748
750
|
ResourceProcessingFileResponses,
|
|
749
751
|
ResourceDownloadData,
|
|
750
752
|
ResourceDownloadResponses,
|
|
751
753
|
ResourceUploadBase64Data,
|
|
752
754
|
ResourceUploadBase64Responses,
|
|
755
|
+
ResourceGetFileAsBufferData,
|
|
756
|
+
ResourceGetFileAsBufferResponses,
|
|
757
|
+
ResourceCountWithDeletedData,
|
|
758
|
+
ResourceCountWithDeletedResponses,
|
|
753
759
|
WorkflowPrototypeDestroyByIdGlobalConnectionsData,
|
|
754
760
|
WorkflowPrototypeDestroyByIdGlobalConnectionsResponses,
|
|
755
761
|
WorkflowPrototypeFindByIdGlobalConnectionsData,
|
|
@@ -934,6 +940,8 @@ import type {
|
|
|
934
940
|
WorkflowImportWorkflowResponses,
|
|
935
941
|
WorkflowPrototypeImportDocxData,
|
|
936
942
|
WorkflowPrototypeImportDocxResponses,
|
|
943
|
+
WorkflowPrototypeImportFromZipData,
|
|
944
|
+
WorkflowPrototypeImportFromZipResponses,
|
|
937
945
|
WorkflowForkData,
|
|
938
946
|
WorkflowForkResponses,
|
|
939
947
|
WorkflowExportModelData,
|
|
@@ -1242,6 +1250,8 @@ import type {
|
|
|
1242
1250
|
ToolPrototypePatchAttributesResponses,
|
|
1243
1251
|
ToolCountData,
|
|
1244
1252
|
ToolCountResponses,
|
|
1253
|
+
ToolImportToolsData,
|
|
1254
|
+
ToolImportToolsResponses,
|
|
1245
1255
|
ToolExportTranslationsData,
|
|
1246
1256
|
ToolExportTranslationsResponses,
|
|
1247
1257
|
ToolImportTranslationsData,
|
|
@@ -1332,6 +1342,8 @@ import type {
|
|
|
1332
1342
|
WorkorderFindOneResponses,
|
|
1333
1343
|
WorkorderCountData,
|
|
1334
1344
|
WorkorderCountResponses,
|
|
1345
|
+
WorkorderGetStatusHistoryData,
|
|
1346
|
+
WorkorderGetStatusHistoryResponses,
|
|
1335
1347
|
WorkorderPrototypeGetAvailableSerialsData,
|
|
1336
1348
|
WorkorderPrototypeGetAvailableSerialsResponses,
|
|
1337
1349
|
WorkorderSetSessionSerialData,
|
|
@@ -1914,6 +1926,8 @@ import type {
|
|
|
1914
1926
|
FormDataCreateDraftFormResponses,
|
|
1915
1927
|
FormDataCreateFormDataData,
|
|
1916
1928
|
FormDataCreateFormDataResponses,
|
|
1929
|
+
FormDataUpdateFormDataData,
|
|
1930
|
+
FormDataUpdateFormDataResponses,
|
|
1917
1931
|
FolderFindData,
|
|
1918
1932
|
FolderFindResponses,
|
|
1919
1933
|
FolderCreateData,
|
|
@@ -2356,16 +2370,30 @@ import type {
|
|
|
2356
2370
|
WorkorderStatusDeleteByIdResponses,
|
|
2357
2371
|
WorkorderStatusBulkSaveData,
|
|
2358
2372
|
WorkorderStatusBulkSaveResponses,
|
|
2359
|
-
WorkorderStatusGetFieldsByFieldIdsData,
|
|
2360
|
-
WorkorderStatusGetFieldsByFieldIdsResponses,
|
|
2361
|
-
WorkorderStatusCheckPermissionData,
|
|
2362
|
-
WorkorderStatusCheckPermissionResponses,
|
|
2363
2373
|
WorkorderStatusChangeStatusData,
|
|
2364
2374
|
WorkorderStatusChangeStatusResponses,
|
|
2365
2375
|
WorkorderStatusCheckIfStatusIsUsedData,
|
|
2366
2376
|
WorkorderStatusCheckIfStatusIsUsedResponses,
|
|
2367
|
-
|
|
2368
|
-
|
|
2377
|
+
WorkorderStatusDeleteWorkorderStatusData,
|
|
2378
|
+
WorkorderStatusDeleteWorkorderStatusResponses,
|
|
2379
|
+
WorkorderStatusTransitionFindData,
|
|
2380
|
+
WorkorderStatusTransitionFindResponses,
|
|
2381
|
+
WorkorderStatusTransitionCreateData,
|
|
2382
|
+
WorkorderStatusTransitionCreateResponses,
|
|
2383
|
+
WorkorderStatusTransitionFindOneData,
|
|
2384
|
+
WorkorderStatusTransitionFindOneResponses,
|
|
2385
|
+
WorkorderStatusTransitionDeleteByIdData,
|
|
2386
|
+
WorkorderStatusTransitionDeleteByIdResponses,
|
|
2387
|
+
WorkorderStatusTransitionPrototypePatchAttributesData,
|
|
2388
|
+
WorkorderStatusTransitionPrototypePatchAttributesResponses,
|
|
2389
|
+
WorkorderStatusTransitionCountData,
|
|
2390
|
+
WorkorderStatusTransitionCountResponses,
|
|
2391
|
+
WorkorderStatusTransitionGetFieldsByFieldIdsData,
|
|
2392
|
+
WorkorderStatusTransitionGetFieldsByFieldIdsResponses,
|
|
2393
|
+
WorkorderStatusTransitionGetTransitionWithFieldsData,
|
|
2394
|
+
WorkorderStatusTransitionGetTransitionWithFieldsResponses,
|
|
2395
|
+
WorkorderStatusTransitionGetTransitionBySourceAndTargetStatusData,
|
|
2396
|
+
WorkorderStatusTransitionGetTransitionBySourceAndTargetStatusResponses,
|
|
2369
2397
|
TimeLogReportFindData,
|
|
2370
2398
|
TimeLogReportFindResponses,
|
|
2371
2399
|
TimeLogReportCreateData,
|
|
@@ -2904,6 +2932,106 @@ import type {
|
|
|
2904
2932
|
IntegrationBuilderSaveIntegrationBuilderSettingsResponses,
|
|
2905
2933
|
IntegrationBuilderTestIntegrationUrlData,
|
|
2906
2934
|
IntegrationBuilderTestIntegrationUrlResponses,
|
|
2935
|
+
SqlServerPrototypeGetUserData,
|
|
2936
|
+
SqlServerPrototypeGetUserResponses,
|
|
2937
|
+
SqlServerFindData,
|
|
2938
|
+
SqlServerFindResponses,
|
|
2939
|
+
SqlServerPatchOrCreateData,
|
|
2940
|
+
SqlServerPatchOrCreateResponses,
|
|
2941
|
+
SqlServerCreateData,
|
|
2942
|
+
SqlServerCreateResponses,
|
|
2943
|
+
SqlServerReplaceOrCreatePutSqlServersData,
|
|
2944
|
+
SqlServerReplaceOrCreatePutSqlServersResponses,
|
|
2945
|
+
SqlServerReplaceOrCreatePostSqlServersReplaceOrCreateData,
|
|
2946
|
+
SqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponses,
|
|
2947
|
+
SqlServerUpsertWithWhereData,
|
|
2948
|
+
SqlServerUpsertWithWhereResponses,
|
|
2949
|
+
SqlServerExistsGetSqlServersIdExistsData,
|
|
2950
|
+
SqlServerExistsGetSqlServersIdExistsResponses,
|
|
2951
|
+
SqlServerDeleteByIdData,
|
|
2952
|
+
SqlServerDeleteByIdResponses,
|
|
2953
|
+
SqlServerFindByIdData,
|
|
2954
|
+
SqlServerFindByIdResponses,
|
|
2955
|
+
SqlServerExistsHeadSqlServersIdData,
|
|
2956
|
+
SqlServerExistsHeadSqlServersIdResponses,
|
|
2957
|
+
SqlServerPrototypePatchAttributesData,
|
|
2958
|
+
SqlServerPrototypePatchAttributesResponses,
|
|
2959
|
+
SqlServerReplaceByIdPutSqlServersIdData,
|
|
2960
|
+
SqlServerReplaceByIdPutSqlServersIdResponses,
|
|
2961
|
+
SqlServerReplaceByIdPostSqlServersIdReplaceData,
|
|
2962
|
+
SqlServerReplaceByIdPostSqlServersIdReplaceResponses,
|
|
2963
|
+
SqlServerFindOneData,
|
|
2964
|
+
SqlServerFindOneResponses,
|
|
2965
|
+
SqlServerUpdateAllData,
|
|
2966
|
+
SqlServerUpdateAllResponses,
|
|
2967
|
+
SqlServerCountData,
|
|
2968
|
+
SqlServerCountResponses,
|
|
2969
|
+
SqlServerAddParameterData,
|
|
2970
|
+
SqlServerAddParameterResponses,
|
|
2971
|
+
SqlServerUpdateParameterData,
|
|
2972
|
+
SqlServerUpdateParameterResponses,
|
|
2973
|
+
SqlServerDeleteParameterData,
|
|
2974
|
+
SqlServerDeleteParameterResponses,
|
|
2975
|
+
SqlServerTestConnectionData,
|
|
2976
|
+
SqlServerTestConnectionResponses,
|
|
2977
|
+
SqlServerTestQueryData,
|
|
2978
|
+
SqlServerTestQueryResponses,
|
|
2979
|
+
SqlServerReadData,
|
|
2980
|
+
SqlServerReadResponses,
|
|
2981
|
+
SqlServerCountWithDeletedData,
|
|
2982
|
+
SqlServerCountWithDeletedResponses,
|
|
2983
|
+
ChatThreadPrototypeGetUserData,
|
|
2984
|
+
ChatThreadPrototypeGetUserResponses,
|
|
2985
|
+
ChatThreadFindData,
|
|
2986
|
+
ChatThreadFindResponses,
|
|
2987
|
+
ChatThreadPatchOrCreateData,
|
|
2988
|
+
ChatThreadPatchOrCreateResponses,
|
|
2989
|
+
ChatThreadCreateData,
|
|
2990
|
+
ChatThreadCreateResponses,
|
|
2991
|
+
ChatThreadReplaceOrCreatePutChatThreadsData,
|
|
2992
|
+
ChatThreadReplaceOrCreatePutChatThreadsResponses,
|
|
2993
|
+
ChatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateData,
|
|
2994
|
+
ChatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponses,
|
|
2995
|
+
ChatThreadUpsertWithWhereData,
|
|
2996
|
+
ChatThreadUpsertWithWhereResponses,
|
|
2997
|
+
ChatThreadExistsGetChatThreadsIdExistsData,
|
|
2998
|
+
ChatThreadExistsGetChatThreadsIdExistsResponses,
|
|
2999
|
+
ChatThreadDeleteByIdData,
|
|
3000
|
+
ChatThreadDeleteByIdResponses,
|
|
3001
|
+
ChatThreadFindByIdData,
|
|
3002
|
+
ChatThreadFindByIdResponses,
|
|
3003
|
+
ChatThreadExistsHeadChatThreadsIdData,
|
|
3004
|
+
ChatThreadExistsHeadChatThreadsIdResponses,
|
|
3005
|
+
ChatThreadPrototypePatchAttributesData,
|
|
3006
|
+
ChatThreadPrototypePatchAttributesResponses,
|
|
3007
|
+
ChatThreadReplaceByIdPutChatThreadsIdData,
|
|
3008
|
+
ChatThreadReplaceByIdPutChatThreadsIdResponses,
|
|
3009
|
+
ChatThreadReplaceByIdPostChatThreadsIdReplaceData,
|
|
3010
|
+
ChatThreadReplaceByIdPostChatThreadsIdReplaceResponses,
|
|
3011
|
+
ChatThreadFindOneData,
|
|
3012
|
+
ChatThreadFindOneResponses,
|
|
3013
|
+
ChatThreadUpdateAllData,
|
|
3014
|
+
ChatThreadUpdateAllResponses,
|
|
3015
|
+
ChatThreadCountData,
|
|
3016
|
+
ChatThreadCountResponses,
|
|
3017
|
+
ChatThreadGetThreadsData,
|
|
3018
|
+
ChatThreadGetThreadsResponses,
|
|
3019
|
+
ChatThreadCreateThreadData,
|
|
3020
|
+
ChatThreadCreateThreadResponses,
|
|
3021
|
+
ChatThreadUpdateThreadData,
|
|
3022
|
+
ChatThreadUpdateThreadResponses,
|
|
3023
|
+
ChatThreadLoadThreadData,
|
|
3024
|
+
ChatThreadLoadThreadResponses,
|
|
3025
|
+
CommandPaletteHistoryFindData,
|
|
3026
|
+
CommandPaletteHistoryFindResponses,
|
|
3027
|
+
CommandPaletteHistoryCreateData,
|
|
3028
|
+
CommandPaletteHistoryCreateResponses,
|
|
3029
|
+
CommandPaletteHistoryDeleteByIdData,
|
|
3030
|
+
CommandPaletteHistoryDeleteByIdResponses,
|
|
3031
|
+
CommandPaletteHistoryPrototypePatchAttributesData,
|
|
3032
|
+
CommandPaletteHistoryPrototypePatchAttributesResponses,
|
|
3033
|
+
CommandPaletteHistoryCountData,
|
|
3034
|
+
CommandPaletteHistoryCountResponses,
|
|
2907
3035
|
} from './types.gen';
|
|
2908
3036
|
import { client as _heyApiClient } from './client.gen';
|
|
2909
3037
|
import {
|
|
@@ -3432,6 +3560,10 @@ import {
|
|
|
3432
3560
|
workorderStatusFindResponseTransformer,
|
|
3433
3561
|
workorderStatusCreateResponseTransformer,
|
|
3434
3562
|
workorderStatusFindOneResponseTransformer,
|
|
3563
|
+
workorderStatusTransitionFindResponseTransformer,
|
|
3564
|
+
workorderStatusTransitionCreateResponseTransformer,
|
|
3565
|
+
workorderStatusTransitionFindOneResponseTransformer,
|
|
3566
|
+
workorderStatusTransitionPrototypePatchAttributesResponseTransformer,
|
|
3435
3567
|
timeLogReportFindResponseTransformer,
|
|
3436
3568
|
timeLogReportCreateResponseTransformer,
|
|
3437
3569
|
timeLogReportFindOneResponseTransformer,
|
|
@@ -3587,6 +3719,33 @@ import {
|
|
|
3587
3719
|
addonReplaceByIdPutAddonsIdResponseTransformer,
|
|
3588
3720
|
addonReplaceByIdPostAddonsIdReplaceResponseTransformer,
|
|
3589
3721
|
addonFindOneResponseTransformer,
|
|
3722
|
+
sqlServerPrototypeGetUserResponseTransformer,
|
|
3723
|
+
sqlServerFindResponseTransformer,
|
|
3724
|
+
sqlServerPatchOrCreateResponseTransformer,
|
|
3725
|
+
sqlServerCreateResponseTransformer,
|
|
3726
|
+
sqlServerReplaceOrCreatePutSqlServersResponseTransformer,
|
|
3727
|
+
sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer,
|
|
3728
|
+
sqlServerUpsertWithWhereResponseTransformer,
|
|
3729
|
+
sqlServerFindByIdResponseTransformer,
|
|
3730
|
+
sqlServerPrototypePatchAttributesResponseTransformer,
|
|
3731
|
+
sqlServerReplaceByIdPutSqlServersIdResponseTransformer,
|
|
3732
|
+
sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer,
|
|
3733
|
+
sqlServerFindOneResponseTransformer,
|
|
3734
|
+
chatThreadPrototypeGetUserResponseTransformer,
|
|
3735
|
+
chatThreadFindResponseTransformer,
|
|
3736
|
+
chatThreadPatchOrCreateResponseTransformer,
|
|
3737
|
+
chatThreadCreateResponseTransformer,
|
|
3738
|
+
chatThreadReplaceOrCreatePutChatThreadsResponseTransformer,
|
|
3739
|
+
chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer,
|
|
3740
|
+
chatThreadUpsertWithWhereResponseTransformer,
|
|
3741
|
+
chatThreadFindByIdResponseTransformer,
|
|
3742
|
+
chatThreadPrototypePatchAttributesResponseTransformer,
|
|
3743
|
+
chatThreadReplaceByIdPutChatThreadsIdResponseTransformer,
|
|
3744
|
+
chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer,
|
|
3745
|
+
chatThreadFindOneResponseTransformer,
|
|
3746
|
+
commandPaletteHistoryFindResponseTransformer,
|
|
3747
|
+
commandPaletteHistoryCreateResponseTransformer,
|
|
3748
|
+
commandPaletteHistoryPrototypePatchAttributesResponseTransformer,
|
|
3590
3749
|
} from './transformers.gen';
|
|
3591
3750
|
|
|
3592
3751
|
export type Options<
|
|
@@ -10392,6 +10551,26 @@ export class ResourceService {
|
|
|
10392
10551
|
});
|
|
10393
10552
|
}
|
|
10394
10553
|
|
|
10554
|
+
/**
|
|
10555
|
+
* Delete file if not used on another session
|
|
10556
|
+
*/
|
|
10557
|
+
public static deleteFileIfNotUsed<ThrowOnError extends boolean = false>(
|
|
10558
|
+
options: Options<ResourceDeleteFileIfNotUsedData, ThrowOnError>,
|
|
10559
|
+
) {
|
|
10560
|
+
return (options.client ?? _heyApiClient).post<
|
|
10561
|
+
ResourceDeleteFileIfNotUsedResponses,
|
|
10562
|
+
unknown,
|
|
10563
|
+
ThrowOnError
|
|
10564
|
+
>({
|
|
10565
|
+
url: '/Resources/deleteFileIfNotUsed',
|
|
10566
|
+
...options,
|
|
10567
|
+
headers: {
|
|
10568
|
+
'Content-Type': 'application/json',
|
|
10569
|
+
...options.headers,
|
|
10570
|
+
},
|
|
10571
|
+
});
|
|
10572
|
+
}
|
|
10573
|
+
|
|
10395
10574
|
public static processingFile<ThrowOnError extends boolean = false>(
|
|
10396
10575
|
options?: Options<ResourceProcessingFileData, ThrowOnError>,
|
|
10397
10576
|
) {
|
|
@@ -10440,6 +10619,38 @@ export class ResourceService {
|
|
|
10440
10619
|
},
|
|
10441
10620
|
});
|
|
10442
10621
|
}
|
|
10622
|
+
|
|
10623
|
+
/**
|
|
10624
|
+
* Get file as base64-encoded buffer in JSON response
|
|
10625
|
+
*/
|
|
10626
|
+
public static getFileAsBuffer<ThrowOnError extends boolean = false>(
|
|
10627
|
+
options: Options<ResourceGetFileAsBufferData, ThrowOnError>,
|
|
10628
|
+
) {
|
|
10629
|
+
return (options.client ?? _heyApiClient).get<
|
|
10630
|
+
ResourceGetFileAsBufferResponses,
|
|
10631
|
+
unknown,
|
|
10632
|
+
ThrowOnError
|
|
10633
|
+
>({
|
|
10634
|
+
url: '/Resources/buffer/{id}',
|
|
10635
|
+
...options,
|
|
10636
|
+
});
|
|
10637
|
+
}
|
|
10638
|
+
|
|
10639
|
+
/**
|
|
10640
|
+
* Count with deleted instances of the model matched by where from the data source.
|
|
10641
|
+
*/
|
|
10642
|
+
public static countWithDeleted<ThrowOnError extends boolean = false>(
|
|
10643
|
+
options?: Options<ResourceCountWithDeletedData, ThrowOnError>,
|
|
10644
|
+
) {
|
|
10645
|
+
return (options?.client ?? _heyApiClient).get<
|
|
10646
|
+
ResourceCountWithDeletedResponses,
|
|
10647
|
+
unknown,
|
|
10648
|
+
ThrowOnError
|
|
10649
|
+
>({
|
|
10650
|
+
url: '/Resources/countWithDeleted',
|
|
10651
|
+
...options,
|
|
10652
|
+
});
|
|
10653
|
+
}
|
|
10443
10654
|
}
|
|
10444
10655
|
|
|
10445
10656
|
export class WorkflowService {
|
|
@@ -12147,6 +12358,23 @@ export class WorkflowService {
|
|
|
12147
12358
|
});
|
|
12148
12359
|
}
|
|
12149
12360
|
|
|
12361
|
+
public static prototypeImportFromZip<ThrowOnError extends boolean = false>(
|
|
12362
|
+
options: Options<WorkflowPrototypeImportFromZipData, ThrowOnError>,
|
|
12363
|
+
) {
|
|
12364
|
+
return (options.client ?? _heyApiClient).post<
|
|
12365
|
+
WorkflowPrototypeImportFromZipResponses,
|
|
12366
|
+
unknown,
|
|
12367
|
+
ThrowOnError
|
|
12368
|
+
>({
|
|
12369
|
+
url: '/Workflows/{id}/importFromZip',
|
|
12370
|
+
...options,
|
|
12371
|
+
headers: {
|
|
12372
|
+
'Content-Type': 'application/json',
|
|
12373
|
+
...options.headers,
|
|
12374
|
+
},
|
|
12375
|
+
});
|
|
12376
|
+
}
|
|
12377
|
+
|
|
12150
12378
|
/**
|
|
12151
12379
|
* Fork a workflow
|
|
12152
12380
|
*/
|
|
@@ -14897,6 +15125,26 @@ export class ToolService {
|
|
|
14897
15125
|
});
|
|
14898
15126
|
}
|
|
14899
15127
|
|
|
15128
|
+
/**
|
|
15129
|
+
* Import tools and serials from CSV-like data with validation
|
|
15130
|
+
*/
|
|
15131
|
+
public static importTools<ThrowOnError extends boolean = false>(
|
|
15132
|
+
options: Options<ToolImportToolsData, ThrowOnError>,
|
|
15133
|
+
) {
|
|
15134
|
+
return (options.client ?? _heyApiClient).post<
|
|
15135
|
+
ToolImportToolsResponses,
|
|
15136
|
+
unknown,
|
|
15137
|
+
ThrowOnError
|
|
15138
|
+
>({
|
|
15139
|
+
url: '/Tools/import',
|
|
15140
|
+
...options,
|
|
15141
|
+
headers: {
|
|
15142
|
+
'Content-Type': 'application/json',
|
|
15143
|
+
...options.headers,
|
|
15144
|
+
},
|
|
15145
|
+
});
|
|
15146
|
+
}
|
|
15147
|
+
|
|
14900
15148
|
public static exportTranslations<ThrowOnError extends boolean = false>(
|
|
14901
15149
|
options: Options<ToolExportTranslationsData, ThrowOnError>,
|
|
14902
15150
|
) {
|
|
@@ -15598,6 +15846,22 @@ export class WorkorderService {
|
|
|
15598
15846
|
});
|
|
15599
15847
|
}
|
|
15600
15848
|
|
|
15849
|
+
/**
|
|
15850
|
+
* Get status change history for a workorder
|
|
15851
|
+
*/
|
|
15852
|
+
public static getStatusHistory<ThrowOnError extends boolean = false>(
|
|
15853
|
+
options: Options<WorkorderGetStatusHistoryData, ThrowOnError>,
|
|
15854
|
+
) {
|
|
15855
|
+
return (options.client ?? _heyApiClient).get<
|
|
15856
|
+
WorkorderGetStatusHistoryResponses,
|
|
15857
|
+
unknown,
|
|
15858
|
+
ThrowOnError
|
|
15859
|
+
>({
|
|
15860
|
+
url: '/Workorders/getStatusHistory',
|
|
15861
|
+
...options,
|
|
15862
|
+
});
|
|
15863
|
+
}
|
|
15864
|
+
|
|
15601
15865
|
/**
|
|
15602
15866
|
* Work on a specific stock
|
|
15603
15867
|
*/
|
|
@@ -20996,6 +21260,23 @@ export class FormDataService {
|
|
|
20996
21260
|
},
|
|
20997
21261
|
});
|
|
20998
21262
|
}
|
|
21263
|
+
|
|
21264
|
+
public static updateFormData<ThrowOnError extends boolean = false>(
|
|
21265
|
+
options: Options<FormDataUpdateFormDataData, ThrowOnError>,
|
|
21266
|
+
) {
|
|
21267
|
+
return (options.client ?? _heyApiClient).patch<
|
|
21268
|
+
FormDataUpdateFormDataResponses,
|
|
21269
|
+
unknown,
|
|
21270
|
+
ThrowOnError
|
|
21271
|
+
>({
|
|
21272
|
+
url: '/FormData/updateFormData/{formDataId}',
|
|
21273
|
+
...options,
|
|
21274
|
+
headers: {
|
|
21275
|
+
'Content-Type': 'application/json',
|
|
21276
|
+
...options.headers,
|
|
21277
|
+
},
|
|
21278
|
+
});
|
|
21279
|
+
}
|
|
20999
21280
|
}
|
|
21000
21281
|
|
|
21001
21282
|
export class FolderService {
|
|
@@ -24955,49 +25236,57 @@ export class WorkorderStatusService {
|
|
|
24955
25236
|
}
|
|
24956
25237
|
|
|
24957
25238
|
/**
|
|
24958
|
-
*
|
|
25239
|
+
* Change workorder status
|
|
24959
25240
|
*/
|
|
24960
|
-
public static
|
|
24961
|
-
options: Options<
|
|
25241
|
+
public static changeStatus<ThrowOnError extends boolean = false>(
|
|
25242
|
+
options: Options<WorkorderStatusChangeStatusData, ThrowOnError>,
|
|
24962
25243
|
) {
|
|
24963
|
-
return (options.client ?? _heyApiClient).
|
|
24964
|
-
|
|
25244
|
+
return (options.client ?? _heyApiClient).post<
|
|
25245
|
+
WorkorderStatusChangeStatusResponses,
|
|
24965
25246
|
unknown,
|
|
24966
25247
|
ThrowOnError
|
|
24967
25248
|
>({
|
|
24968
|
-
url: '/WorkorderStatuses/
|
|
25249
|
+
url: '/WorkorderStatuses/changeStatus',
|
|
24969
25250
|
...options,
|
|
25251
|
+
headers: {
|
|
25252
|
+
'Content-Type': 'application/json',
|
|
25253
|
+
...options.headers,
|
|
25254
|
+
},
|
|
24970
25255
|
});
|
|
24971
25256
|
}
|
|
24972
25257
|
|
|
24973
25258
|
/**
|
|
24974
|
-
* check
|
|
25259
|
+
* check if status is used
|
|
24975
25260
|
*/
|
|
24976
|
-
public static
|
|
24977
|
-
options: Options<
|
|
25261
|
+
public static checkIfStatusIsUsed<ThrowOnError extends boolean = false>(
|
|
25262
|
+
options: Options<WorkorderStatusCheckIfStatusIsUsedData, ThrowOnError>,
|
|
24978
25263
|
) {
|
|
24979
|
-
return (options.client ?? _heyApiClient).
|
|
24980
|
-
|
|
25264
|
+
return (options.client ?? _heyApiClient).post<
|
|
25265
|
+
WorkorderStatusCheckIfStatusIsUsedResponses,
|
|
24981
25266
|
unknown,
|
|
24982
25267
|
ThrowOnError
|
|
24983
25268
|
>({
|
|
24984
|
-
url: '/WorkorderStatuses/
|
|
25269
|
+
url: '/WorkorderStatuses/checkIfStatusIsUsed',
|
|
24985
25270
|
...options,
|
|
25271
|
+
headers: {
|
|
25272
|
+
'Content-Type': 'application/json',
|
|
25273
|
+
...options.headers,
|
|
25274
|
+
},
|
|
24986
25275
|
});
|
|
24987
25276
|
}
|
|
24988
25277
|
|
|
24989
25278
|
/**
|
|
24990
|
-
*
|
|
25279
|
+
* delete Workorder Status
|
|
24991
25280
|
*/
|
|
24992
|
-
public static
|
|
24993
|
-
options: Options<
|
|
25281
|
+
public static deleteWorkorderStatus<ThrowOnError extends boolean = false>(
|
|
25282
|
+
options: Options<WorkorderStatusDeleteWorkorderStatusData, ThrowOnError>,
|
|
24994
25283
|
) {
|
|
24995
25284
|
return (options.client ?? _heyApiClient).post<
|
|
24996
|
-
|
|
25285
|
+
WorkorderStatusDeleteWorkorderStatusResponses,
|
|
24997
25286
|
unknown,
|
|
24998
25287
|
ThrowOnError
|
|
24999
25288
|
>({
|
|
25000
|
-
url: '/WorkorderStatuses/
|
|
25289
|
+
url: '/WorkorderStatuses/deleteWorkorderStatus',
|
|
25001
25290
|
...options,
|
|
25002
25291
|
headers: {
|
|
25003
25292
|
'Content-Type': 'application/json',
|
|
@@ -25005,42 +25294,97 @@ export class WorkorderStatusService {
|
|
|
25005
25294
|
},
|
|
25006
25295
|
});
|
|
25007
25296
|
}
|
|
25297
|
+
}
|
|
25008
25298
|
|
|
25299
|
+
export class WorkorderStatusTransitionService {
|
|
25009
25300
|
/**
|
|
25010
|
-
*
|
|
25301
|
+
* Find all instances of the model matched by filter from the data source.
|
|
25011
25302
|
*/
|
|
25012
|
-
public static
|
|
25013
|
-
options
|
|
25303
|
+
public static find<ThrowOnError extends boolean = false>(
|
|
25304
|
+
options?: Options<WorkorderStatusTransitionFindData, ThrowOnError>,
|
|
25014
25305
|
) {
|
|
25015
|
-
return (options
|
|
25016
|
-
|
|
25306
|
+
return (options?.client ?? _heyApiClient).get<
|
|
25307
|
+
WorkorderStatusTransitionFindResponses,
|
|
25017
25308
|
unknown,
|
|
25018
25309
|
ThrowOnError
|
|
25019
25310
|
>({
|
|
25020
|
-
|
|
25311
|
+
responseTransformer: workorderStatusTransitionFindResponseTransformer,
|
|
25312
|
+
url: '/WorkorderStatusTransitions',
|
|
25313
|
+
...options,
|
|
25314
|
+
});
|
|
25315
|
+
}
|
|
25316
|
+
|
|
25317
|
+
/**
|
|
25318
|
+
* Create a new instance of the model and persist it into the data source.
|
|
25319
|
+
*/
|
|
25320
|
+
public static create<ThrowOnError extends boolean = false>(
|
|
25321
|
+
options?: Options<WorkorderStatusTransitionCreateData, ThrowOnError>,
|
|
25322
|
+
) {
|
|
25323
|
+
return (options?.client ?? _heyApiClient).post<
|
|
25324
|
+
WorkorderStatusTransitionCreateResponses,
|
|
25325
|
+
unknown,
|
|
25326
|
+
ThrowOnError
|
|
25327
|
+
>({
|
|
25328
|
+
responseTransformer: workorderStatusTransitionCreateResponseTransformer,
|
|
25329
|
+
url: '/WorkorderStatusTransitions',
|
|
25021
25330
|
...options,
|
|
25022
25331
|
headers: {
|
|
25023
25332
|
'Content-Type': 'application/json',
|
|
25024
|
-
...options
|
|
25333
|
+
...options?.headers,
|
|
25025
25334
|
},
|
|
25026
25335
|
});
|
|
25027
25336
|
}
|
|
25028
25337
|
|
|
25029
25338
|
/**
|
|
25030
|
-
*
|
|
25339
|
+
* Find first instance of the model matched by filter from the data source.
|
|
25340
|
+
*/
|
|
25341
|
+
public static findOne<ThrowOnError extends boolean = false>(
|
|
25342
|
+
options?: Options<WorkorderStatusTransitionFindOneData, ThrowOnError>,
|
|
25343
|
+
) {
|
|
25344
|
+
return (options?.client ?? _heyApiClient).get<
|
|
25345
|
+
WorkorderStatusTransitionFindOneResponses,
|
|
25346
|
+
unknown,
|
|
25347
|
+
ThrowOnError
|
|
25348
|
+
>({
|
|
25349
|
+
responseTransformer: workorderStatusTransitionFindOneResponseTransformer,
|
|
25350
|
+
url: '/WorkorderStatusTransitions/findOne',
|
|
25351
|
+
...options,
|
|
25352
|
+
});
|
|
25353
|
+
}
|
|
25354
|
+
|
|
25355
|
+
/**
|
|
25356
|
+
* Delete a model instance by {{id}} from the data source.
|
|
25357
|
+
*/
|
|
25358
|
+
public static deleteById<ThrowOnError extends boolean = false>(
|
|
25359
|
+
options: Options<WorkorderStatusTransitionDeleteByIdData, ThrowOnError>,
|
|
25360
|
+
) {
|
|
25361
|
+
return (options.client ?? _heyApiClient).delete<
|
|
25362
|
+
WorkorderStatusTransitionDeleteByIdResponses,
|
|
25363
|
+
unknown,
|
|
25364
|
+
ThrowOnError
|
|
25365
|
+
>({
|
|
25366
|
+
url: '/WorkorderStatusTransitions/{id}',
|
|
25367
|
+
...options,
|
|
25368
|
+
});
|
|
25369
|
+
}
|
|
25370
|
+
|
|
25371
|
+
/**
|
|
25372
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
25031
25373
|
*/
|
|
25032
|
-
public static
|
|
25374
|
+
public static prototypePatchAttributes<ThrowOnError extends boolean = false>(
|
|
25033
25375
|
options: Options<
|
|
25034
|
-
|
|
25376
|
+
WorkorderStatusTransitionPrototypePatchAttributesData,
|
|
25035
25377
|
ThrowOnError
|
|
25036
25378
|
>,
|
|
25037
25379
|
) {
|
|
25038
|
-
return (options.client ?? _heyApiClient).
|
|
25039
|
-
|
|
25380
|
+
return (options.client ?? _heyApiClient).patch<
|
|
25381
|
+
WorkorderStatusTransitionPrototypePatchAttributesResponses,
|
|
25040
25382
|
unknown,
|
|
25041
25383
|
ThrowOnError
|
|
25042
25384
|
>({
|
|
25043
|
-
|
|
25385
|
+
responseTransformer:
|
|
25386
|
+
workorderStatusTransitionPrototypePatchAttributesResponseTransformer,
|
|
25387
|
+
url: '/WorkorderStatusTransitions/{id}',
|
|
25044
25388
|
...options,
|
|
25045
25389
|
headers: {
|
|
25046
25390
|
'Content-Type': 'application/json',
|
|
@@ -25048,6 +25392,81 @@ export class WorkorderStatusService {
|
|
|
25048
25392
|
},
|
|
25049
25393
|
});
|
|
25050
25394
|
}
|
|
25395
|
+
|
|
25396
|
+
/**
|
|
25397
|
+
* Count instances of the model matched by where from the data source.
|
|
25398
|
+
*/
|
|
25399
|
+
public static count<ThrowOnError extends boolean = false>(
|
|
25400
|
+
options?: Options<WorkorderStatusTransitionCountData, ThrowOnError>,
|
|
25401
|
+
) {
|
|
25402
|
+
return (options?.client ?? _heyApiClient).get<
|
|
25403
|
+
WorkorderStatusTransitionCountResponses,
|
|
25404
|
+
unknown,
|
|
25405
|
+
ThrowOnError
|
|
25406
|
+
>({
|
|
25407
|
+
url: '/WorkorderStatusTransitions/count',
|
|
25408
|
+
...options,
|
|
25409
|
+
});
|
|
25410
|
+
}
|
|
25411
|
+
|
|
25412
|
+
/**
|
|
25413
|
+
* get Fields by field ids
|
|
25414
|
+
*/
|
|
25415
|
+
public static getFieldsByFieldIds<ThrowOnError extends boolean = false>(
|
|
25416
|
+
options: Options<
|
|
25417
|
+
WorkorderStatusTransitionGetFieldsByFieldIdsData,
|
|
25418
|
+
ThrowOnError
|
|
25419
|
+
>,
|
|
25420
|
+
) {
|
|
25421
|
+
return (options.client ?? _heyApiClient).get<
|
|
25422
|
+
WorkorderStatusTransitionGetFieldsByFieldIdsResponses,
|
|
25423
|
+
unknown,
|
|
25424
|
+
ThrowOnError
|
|
25425
|
+
>({
|
|
25426
|
+
url: '/WorkorderStatusTransitions/getFieldsByFieldIds',
|
|
25427
|
+
...options,
|
|
25428
|
+
});
|
|
25429
|
+
}
|
|
25430
|
+
|
|
25431
|
+
/**
|
|
25432
|
+
* get Transition by id
|
|
25433
|
+
*/
|
|
25434
|
+
public static getTransitionWithFields<ThrowOnError extends boolean = false>(
|
|
25435
|
+
options: Options<
|
|
25436
|
+
WorkorderStatusTransitionGetTransitionWithFieldsData,
|
|
25437
|
+
ThrowOnError
|
|
25438
|
+
>,
|
|
25439
|
+
) {
|
|
25440
|
+
return (options.client ?? _heyApiClient).get<
|
|
25441
|
+
WorkorderStatusTransitionGetTransitionWithFieldsResponses,
|
|
25442
|
+
unknown,
|
|
25443
|
+
ThrowOnError
|
|
25444
|
+
>({
|
|
25445
|
+
url: '/WorkorderStatusTransitions/getTransitionWithFields',
|
|
25446
|
+
...options,
|
|
25447
|
+
});
|
|
25448
|
+
}
|
|
25449
|
+
|
|
25450
|
+
/**
|
|
25451
|
+
* get Transition by source and target status
|
|
25452
|
+
*/
|
|
25453
|
+
public static getTransitionBySourceAndTargetStatus<
|
|
25454
|
+
ThrowOnError extends boolean = false,
|
|
25455
|
+
>(
|
|
25456
|
+
options: Options<
|
|
25457
|
+
WorkorderStatusTransitionGetTransitionBySourceAndTargetStatusData,
|
|
25458
|
+
ThrowOnError
|
|
25459
|
+
>,
|
|
25460
|
+
) {
|
|
25461
|
+
return (options.client ?? _heyApiClient).get<
|
|
25462
|
+
WorkorderStatusTransitionGetTransitionBySourceAndTargetStatusResponses,
|
|
25463
|
+
unknown,
|
|
25464
|
+
ThrowOnError
|
|
25465
|
+
>({
|
|
25466
|
+
url: '/WorkorderStatusTransitions/getTransitionBySourceAndTargetStatus',
|
|
25467
|
+
...options,
|
|
25468
|
+
});
|
|
25469
|
+
}
|
|
25051
25470
|
}
|
|
25052
25471
|
|
|
25053
25472
|
export class TimeLogReportService {
|
|
@@ -30405,3 +30824,978 @@ export class IntegrationBuilderService {
|
|
|
30405
30824
|
});
|
|
30406
30825
|
}
|
|
30407
30826
|
}
|
|
30827
|
+
|
|
30828
|
+
export class SqlServerService {
|
|
30829
|
+
/**
|
|
30830
|
+
* Fetches belongsTo relation user.
|
|
30831
|
+
*/
|
|
30832
|
+
public static prototypeGetUser<ThrowOnError extends boolean = false>(
|
|
30833
|
+
options: Options<SqlServerPrototypeGetUserData, ThrowOnError>,
|
|
30834
|
+
) {
|
|
30835
|
+
return (options.client ?? _heyApiClient).get<
|
|
30836
|
+
SqlServerPrototypeGetUserResponses,
|
|
30837
|
+
unknown,
|
|
30838
|
+
ThrowOnError
|
|
30839
|
+
>({
|
|
30840
|
+
responseTransformer: sqlServerPrototypeGetUserResponseTransformer,
|
|
30841
|
+
url: '/SqlServers/{id}/user',
|
|
30842
|
+
...options,
|
|
30843
|
+
});
|
|
30844
|
+
}
|
|
30845
|
+
|
|
30846
|
+
/**
|
|
30847
|
+
* Find all instances of the model matched by filter from the data source.
|
|
30848
|
+
*/
|
|
30849
|
+
public static find<ThrowOnError extends boolean = false>(
|
|
30850
|
+
options?: Options<SqlServerFindData, ThrowOnError>,
|
|
30851
|
+
) {
|
|
30852
|
+
return (options?.client ?? _heyApiClient).get<
|
|
30853
|
+
SqlServerFindResponses,
|
|
30854
|
+
unknown,
|
|
30855
|
+
ThrowOnError
|
|
30856
|
+
>({
|
|
30857
|
+
responseTransformer: sqlServerFindResponseTransformer,
|
|
30858
|
+
url: '/SqlServers',
|
|
30859
|
+
...options,
|
|
30860
|
+
});
|
|
30861
|
+
}
|
|
30862
|
+
|
|
30863
|
+
/**
|
|
30864
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
30865
|
+
*/
|
|
30866
|
+
public static patchOrCreate<ThrowOnError extends boolean = false>(
|
|
30867
|
+
options?: Options<SqlServerPatchOrCreateData, ThrowOnError>,
|
|
30868
|
+
) {
|
|
30869
|
+
return (options?.client ?? _heyApiClient).patch<
|
|
30870
|
+
SqlServerPatchOrCreateResponses,
|
|
30871
|
+
unknown,
|
|
30872
|
+
ThrowOnError
|
|
30873
|
+
>({
|
|
30874
|
+
responseTransformer: sqlServerPatchOrCreateResponseTransformer,
|
|
30875
|
+
url: '/SqlServers',
|
|
30876
|
+
...options,
|
|
30877
|
+
headers: {
|
|
30878
|
+
'Content-Type': 'application/json',
|
|
30879
|
+
...options?.headers,
|
|
30880
|
+
},
|
|
30881
|
+
});
|
|
30882
|
+
}
|
|
30883
|
+
|
|
30884
|
+
/**
|
|
30885
|
+
* Create a new instance of the model and persist it into the data source.
|
|
30886
|
+
*/
|
|
30887
|
+
public static create<ThrowOnError extends boolean = false>(
|
|
30888
|
+
options?: Options<SqlServerCreateData, ThrowOnError>,
|
|
30889
|
+
) {
|
|
30890
|
+
return (options?.client ?? _heyApiClient).post<
|
|
30891
|
+
SqlServerCreateResponses,
|
|
30892
|
+
unknown,
|
|
30893
|
+
ThrowOnError
|
|
30894
|
+
>({
|
|
30895
|
+
responseTransformer: sqlServerCreateResponseTransformer,
|
|
30896
|
+
url: '/SqlServers',
|
|
30897
|
+
...options,
|
|
30898
|
+
headers: {
|
|
30899
|
+
'Content-Type': 'application/json',
|
|
30900
|
+
...options?.headers,
|
|
30901
|
+
},
|
|
30902
|
+
});
|
|
30903
|
+
}
|
|
30904
|
+
|
|
30905
|
+
/**
|
|
30906
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
30907
|
+
*/
|
|
30908
|
+
public static replaceOrCreatePutSqlServers<
|
|
30909
|
+
ThrowOnError extends boolean = false,
|
|
30910
|
+
>(
|
|
30911
|
+
options?: Options<SqlServerReplaceOrCreatePutSqlServersData, ThrowOnError>,
|
|
30912
|
+
) {
|
|
30913
|
+
return (options?.client ?? _heyApiClient).put<
|
|
30914
|
+
SqlServerReplaceOrCreatePutSqlServersResponses,
|
|
30915
|
+
unknown,
|
|
30916
|
+
ThrowOnError
|
|
30917
|
+
>({
|
|
30918
|
+
responseTransformer:
|
|
30919
|
+
sqlServerReplaceOrCreatePutSqlServersResponseTransformer,
|
|
30920
|
+
url: '/SqlServers',
|
|
30921
|
+
...options,
|
|
30922
|
+
headers: {
|
|
30923
|
+
'Content-Type': 'application/json',
|
|
30924
|
+
...options?.headers,
|
|
30925
|
+
},
|
|
30926
|
+
});
|
|
30927
|
+
}
|
|
30928
|
+
|
|
30929
|
+
/**
|
|
30930
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
30931
|
+
*/
|
|
30932
|
+
public static replaceOrCreatePostSqlServersReplaceOrCreate<
|
|
30933
|
+
ThrowOnError extends boolean = false,
|
|
30934
|
+
>(
|
|
30935
|
+
options?: Options<
|
|
30936
|
+
SqlServerReplaceOrCreatePostSqlServersReplaceOrCreateData,
|
|
30937
|
+
ThrowOnError
|
|
30938
|
+
>,
|
|
30939
|
+
) {
|
|
30940
|
+
return (options?.client ?? _heyApiClient).post<
|
|
30941
|
+
SqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponses,
|
|
30942
|
+
unknown,
|
|
30943
|
+
ThrowOnError
|
|
30944
|
+
>({
|
|
30945
|
+
responseTransformer:
|
|
30946
|
+
sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer,
|
|
30947
|
+
url: '/SqlServers/replaceOrCreate',
|
|
30948
|
+
...options,
|
|
30949
|
+
headers: {
|
|
30950
|
+
'Content-Type': 'application/json',
|
|
30951
|
+
...options?.headers,
|
|
30952
|
+
},
|
|
30953
|
+
});
|
|
30954
|
+
}
|
|
30955
|
+
|
|
30956
|
+
/**
|
|
30957
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
30958
|
+
*/
|
|
30959
|
+
public static upsertWithWhere<ThrowOnError extends boolean = false>(
|
|
30960
|
+
options?: Options<SqlServerUpsertWithWhereData, ThrowOnError>,
|
|
30961
|
+
) {
|
|
30962
|
+
return (options?.client ?? _heyApiClient).post<
|
|
30963
|
+
SqlServerUpsertWithWhereResponses,
|
|
30964
|
+
unknown,
|
|
30965
|
+
ThrowOnError
|
|
30966
|
+
>({
|
|
30967
|
+
responseTransformer: sqlServerUpsertWithWhereResponseTransformer,
|
|
30968
|
+
url: '/SqlServers/upsertWithWhere',
|
|
30969
|
+
...options,
|
|
30970
|
+
headers: {
|
|
30971
|
+
'Content-Type': 'application/json',
|
|
30972
|
+
...options?.headers,
|
|
30973
|
+
},
|
|
30974
|
+
});
|
|
30975
|
+
}
|
|
30976
|
+
|
|
30977
|
+
/**
|
|
30978
|
+
* Check whether a model instance exists in the data source.
|
|
30979
|
+
*/
|
|
30980
|
+
public static existsGetSqlServersIdExists<
|
|
30981
|
+
ThrowOnError extends boolean = false,
|
|
30982
|
+
>(options: Options<SqlServerExistsGetSqlServersIdExistsData, ThrowOnError>) {
|
|
30983
|
+
return (options.client ?? _heyApiClient).get<
|
|
30984
|
+
SqlServerExistsGetSqlServersIdExistsResponses,
|
|
30985
|
+
unknown,
|
|
30986
|
+
ThrowOnError
|
|
30987
|
+
>({
|
|
30988
|
+
url: '/SqlServers/{id}/exists',
|
|
30989
|
+
...options,
|
|
30990
|
+
});
|
|
30991
|
+
}
|
|
30992
|
+
|
|
30993
|
+
/**
|
|
30994
|
+
* Delete a model instance by {{id}} from the data source.
|
|
30995
|
+
*/
|
|
30996
|
+
public static deleteById<ThrowOnError extends boolean = false>(
|
|
30997
|
+
options: Options<SqlServerDeleteByIdData, ThrowOnError>,
|
|
30998
|
+
) {
|
|
30999
|
+
return (options.client ?? _heyApiClient).delete<
|
|
31000
|
+
SqlServerDeleteByIdResponses,
|
|
31001
|
+
unknown,
|
|
31002
|
+
ThrowOnError
|
|
31003
|
+
>({
|
|
31004
|
+
url: '/SqlServers/{id}',
|
|
31005
|
+
...options,
|
|
31006
|
+
});
|
|
31007
|
+
}
|
|
31008
|
+
|
|
31009
|
+
/**
|
|
31010
|
+
* Find a model instance by {{id}} from the data source.
|
|
31011
|
+
*/
|
|
31012
|
+
public static findById<ThrowOnError extends boolean = false>(
|
|
31013
|
+
options: Options<SqlServerFindByIdData, ThrowOnError>,
|
|
31014
|
+
) {
|
|
31015
|
+
return (options.client ?? _heyApiClient).get<
|
|
31016
|
+
SqlServerFindByIdResponses,
|
|
31017
|
+
unknown,
|
|
31018
|
+
ThrowOnError
|
|
31019
|
+
>({
|
|
31020
|
+
responseTransformer: sqlServerFindByIdResponseTransformer,
|
|
31021
|
+
url: '/SqlServers/{id}',
|
|
31022
|
+
...options,
|
|
31023
|
+
});
|
|
31024
|
+
}
|
|
31025
|
+
|
|
31026
|
+
/**
|
|
31027
|
+
* Check whether a model instance exists in the data source.
|
|
31028
|
+
*/
|
|
31029
|
+
public static existsHeadSqlServersId<ThrowOnError extends boolean = false>(
|
|
31030
|
+
options: Options<SqlServerExistsHeadSqlServersIdData, ThrowOnError>,
|
|
31031
|
+
) {
|
|
31032
|
+
return (options.client ?? _heyApiClient).head<
|
|
31033
|
+
SqlServerExistsHeadSqlServersIdResponses,
|
|
31034
|
+
unknown,
|
|
31035
|
+
ThrowOnError
|
|
31036
|
+
>({
|
|
31037
|
+
url: '/SqlServers/{id}',
|
|
31038
|
+
...options,
|
|
31039
|
+
});
|
|
31040
|
+
}
|
|
31041
|
+
|
|
31042
|
+
/**
|
|
31043
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
31044
|
+
*/
|
|
31045
|
+
public static prototypePatchAttributes<ThrowOnError extends boolean = false>(
|
|
31046
|
+
options: Options<SqlServerPrototypePatchAttributesData, ThrowOnError>,
|
|
31047
|
+
) {
|
|
31048
|
+
return (options.client ?? _heyApiClient).patch<
|
|
31049
|
+
SqlServerPrototypePatchAttributesResponses,
|
|
31050
|
+
unknown,
|
|
31051
|
+
ThrowOnError
|
|
31052
|
+
>({
|
|
31053
|
+
responseTransformer: sqlServerPrototypePatchAttributesResponseTransformer,
|
|
31054
|
+
url: '/SqlServers/{id}',
|
|
31055
|
+
...options,
|
|
31056
|
+
headers: {
|
|
31057
|
+
'Content-Type': 'application/json',
|
|
31058
|
+
...options.headers,
|
|
31059
|
+
},
|
|
31060
|
+
});
|
|
31061
|
+
}
|
|
31062
|
+
|
|
31063
|
+
/**
|
|
31064
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
31065
|
+
*/
|
|
31066
|
+
public static replaceByIdPutSqlServersId<
|
|
31067
|
+
ThrowOnError extends boolean = false,
|
|
31068
|
+
>(options: Options<SqlServerReplaceByIdPutSqlServersIdData, ThrowOnError>) {
|
|
31069
|
+
return (options.client ?? _heyApiClient).put<
|
|
31070
|
+
SqlServerReplaceByIdPutSqlServersIdResponses,
|
|
31071
|
+
unknown,
|
|
31072
|
+
ThrowOnError
|
|
31073
|
+
>({
|
|
31074
|
+
responseTransformer:
|
|
31075
|
+
sqlServerReplaceByIdPutSqlServersIdResponseTransformer,
|
|
31076
|
+
url: '/SqlServers/{id}',
|
|
31077
|
+
...options,
|
|
31078
|
+
headers: {
|
|
31079
|
+
'Content-Type': 'application/json',
|
|
31080
|
+
...options.headers,
|
|
31081
|
+
},
|
|
31082
|
+
});
|
|
31083
|
+
}
|
|
31084
|
+
|
|
31085
|
+
/**
|
|
31086
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
31087
|
+
*/
|
|
31088
|
+
public static replaceByIdPostSqlServersIdReplace<
|
|
31089
|
+
ThrowOnError extends boolean = false,
|
|
31090
|
+
>(
|
|
31091
|
+
options: Options<
|
|
31092
|
+
SqlServerReplaceByIdPostSqlServersIdReplaceData,
|
|
31093
|
+
ThrowOnError
|
|
31094
|
+
>,
|
|
31095
|
+
) {
|
|
31096
|
+
return (options.client ?? _heyApiClient).post<
|
|
31097
|
+
SqlServerReplaceByIdPostSqlServersIdReplaceResponses,
|
|
31098
|
+
unknown,
|
|
31099
|
+
ThrowOnError
|
|
31100
|
+
>({
|
|
31101
|
+
responseTransformer:
|
|
31102
|
+
sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer,
|
|
31103
|
+
url: '/SqlServers/{id}/replace',
|
|
31104
|
+
...options,
|
|
31105
|
+
headers: {
|
|
31106
|
+
'Content-Type': 'application/json',
|
|
31107
|
+
...options.headers,
|
|
31108
|
+
},
|
|
31109
|
+
});
|
|
31110
|
+
}
|
|
31111
|
+
|
|
31112
|
+
/**
|
|
31113
|
+
* Find first instance of the model matched by filter from the data source.
|
|
31114
|
+
*/
|
|
31115
|
+
public static findOne<ThrowOnError extends boolean = false>(
|
|
31116
|
+
options?: Options<SqlServerFindOneData, ThrowOnError>,
|
|
31117
|
+
) {
|
|
31118
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31119
|
+
SqlServerFindOneResponses,
|
|
31120
|
+
unknown,
|
|
31121
|
+
ThrowOnError
|
|
31122
|
+
>({
|
|
31123
|
+
responseTransformer: sqlServerFindOneResponseTransformer,
|
|
31124
|
+
url: '/SqlServers/findOne',
|
|
31125
|
+
...options,
|
|
31126
|
+
});
|
|
31127
|
+
}
|
|
31128
|
+
|
|
31129
|
+
/**
|
|
31130
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
31131
|
+
*/
|
|
31132
|
+
public static updateAll<ThrowOnError extends boolean = false>(
|
|
31133
|
+
options?: Options<SqlServerUpdateAllData, ThrowOnError>,
|
|
31134
|
+
) {
|
|
31135
|
+
return (options?.client ?? _heyApiClient).post<
|
|
31136
|
+
SqlServerUpdateAllResponses,
|
|
31137
|
+
unknown,
|
|
31138
|
+
ThrowOnError
|
|
31139
|
+
>({
|
|
31140
|
+
url: '/SqlServers/update',
|
|
31141
|
+
...options,
|
|
31142
|
+
headers: {
|
|
31143
|
+
'Content-Type': 'application/json',
|
|
31144
|
+
...options?.headers,
|
|
31145
|
+
},
|
|
31146
|
+
});
|
|
31147
|
+
}
|
|
31148
|
+
|
|
31149
|
+
/**
|
|
31150
|
+
* Count instances of the model matched by where from the data source.
|
|
31151
|
+
*/
|
|
31152
|
+
public static count<ThrowOnError extends boolean = false>(
|
|
31153
|
+
options?: Options<SqlServerCountData, ThrowOnError>,
|
|
31154
|
+
) {
|
|
31155
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31156
|
+
SqlServerCountResponses,
|
|
31157
|
+
unknown,
|
|
31158
|
+
ThrowOnError
|
|
31159
|
+
>({
|
|
31160
|
+
url: '/SqlServers/count',
|
|
31161
|
+
...options,
|
|
31162
|
+
});
|
|
31163
|
+
}
|
|
31164
|
+
|
|
31165
|
+
/**
|
|
31166
|
+
* Add a parameter to SQL server
|
|
31167
|
+
*/
|
|
31168
|
+
public static addParameter<ThrowOnError extends boolean = false>(
|
|
31169
|
+
options: Options<SqlServerAddParameterData, ThrowOnError>,
|
|
31170
|
+
) {
|
|
31171
|
+
return (options.client ?? _heyApiClient).post<
|
|
31172
|
+
SqlServerAddParameterResponses,
|
|
31173
|
+
unknown,
|
|
31174
|
+
ThrowOnError
|
|
31175
|
+
>({
|
|
31176
|
+
url: '/SqlServers/addParameter',
|
|
31177
|
+
...options,
|
|
31178
|
+
headers: {
|
|
31179
|
+
'Content-Type': 'application/json',
|
|
31180
|
+
...options.headers,
|
|
31181
|
+
},
|
|
31182
|
+
});
|
|
31183
|
+
}
|
|
31184
|
+
|
|
31185
|
+
/**
|
|
31186
|
+
* Update a parameter in SQL server
|
|
31187
|
+
*/
|
|
31188
|
+
public static updateParameter<ThrowOnError extends boolean = false>(
|
|
31189
|
+
options: Options<SqlServerUpdateParameterData, ThrowOnError>,
|
|
31190
|
+
) {
|
|
31191
|
+
return (options.client ?? _heyApiClient).put<
|
|
31192
|
+
SqlServerUpdateParameterResponses,
|
|
31193
|
+
unknown,
|
|
31194
|
+
ThrowOnError
|
|
31195
|
+
>({
|
|
31196
|
+
url: '/SqlServers/updateParameter',
|
|
31197
|
+
...options,
|
|
31198
|
+
headers: {
|
|
31199
|
+
'Content-Type': 'application/json',
|
|
31200
|
+
...options.headers,
|
|
31201
|
+
},
|
|
31202
|
+
});
|
|
31203
|
+
}
|
|
31204
|
+
|
|
31205
|
+
/**
|
|
31206
|
+
* Delete a parameter from SQL server
|
|
31207
|
+
*/
|
|
31208
|
+
public static deleteParameter<ThrowOnError extends boolean = false>(
|
|
31209
|
+
options: Options<SqlServerDeleteParameterData, ThrowOnError>,
|
|
31210
|
+
) {
|
|
31211
|
+
return (options.client ?? _heyApiClient).delete<
|
|
31212
|
+
SqlServerDeleteParameterResponses,
|
|
31213
|
+
unknown,
|
|
31214
|
+
ThrowOnError
|
|
31215
|
+
>({
|
|
31216
|
+
url: '/SqlServers/deleteParameter',
|
|
31217
|
+
...options,
|
|
31218
|
+
headers: {
|
|
31219
|
+
'Content-Type': 'application/json',
|
|
31220
|
+
...options.headers,
|
|
31221
|
+
},
|
|
31222
|
+
});
|
|
31223
|
+
}
|
|
31224
|
+
|
|
31225
|
+
/**
|
|
31226
|
+
* Test connection to SQL server
|
|
31227
|
+
*/
|
|
31228
|
+
public static testConnection<ThrowOnError extends boolean = false>(
|
|
31229
|
+
options: Options<SqlServerTestConnectionData, ThrowOnError>,
|
|
31230
|
+
) {
|
|
31231
|
+
return (options.client ?? _heyApiClient).post<
|
|
31232
|
+
SqlServerTestConnectionResponses,
|
|
31233
|
+
unknown,
|
|
31234
|
+
ThrowOnError
|
|
31235
|
+
>({
|
|
31236
|
+
url: '/SqlServers/testConnection',
|
|
31237
|
+
...options,
|
|
31238
|
+
headers: {
|
|
31239
|
+
'Content-Type': 'application/json',
|
|
31240
|
+
...options.headers,
|
|
31241
|
+
},
|
|
31242
|
+
});
|
|
31243
|
+
}
|
|
31244
|
+
|
|
31245
|
+
/**
|
|
31246
|
+
* Test parameter query on SQL server
|
|
31247
|
+
*/
|
|
31248
|
+
public static testQuery<ThrowOnError extends boolean = false>(
|
|
31249
|
+
options: Options<SqlServerTestQueryData, ThrowOnError>,
|
|
31250
|
+
) {
|
|
31251
|
+
return (options.client ?? _heyApiClient).post<
|
|
31252
|
+
SqlServerTestQueryResponses,
|
|
31253
|
+
unknown,
|
|
31254
|
+
ThrowOnError
|
|
31255
|
+
>({
|
|
31256
|
+
url: '/SqlServers/testQuery',
|
|
31257
|
+
...options,
|
|
31258
|
+
headers: {
|
|
31259
|
+
'Content-Type': 'application/json',
|
|
31260
|
+
...options.headers,
|
|
31261
|
+
},
|
|
31262
|
+
});
|
|
31263
|
+
}
|
|
31264
|
+
|
|
31265
|
+
/**
|
|
31266
|
+
* Read parameter value from SQL server
|
|
31267
|
+
*/
|
|
31268
|
+
public static read<ThrowOnError extends boolean = false>(
|
|
31269
|
+
options: Options<SqlServerReadData, ThrowOnError>,
|
|
31270
|
+
) {
|
|
31271
|
+
return (options.client ?? _heyApiClient).post<
|
|
31272
|
+
SqlServerReadResponses,
|
|
31273
|
+
unknown,
|
|
31274
|
+
ThrowOnError
|
|
31275
|
+
>({
|
|
31276
|
+
url: '/SqlServers/read',
|
|
31277
|
+
...options,
|
|
31278
|
+
headers: {
|
|
31279
|
+
'Content-Type': 'application/json',
|
|
31280
|
+
...options.headers,
|
|
31281
|
+
},
|
|
31282
|
+
});
|
|
31283
|
+
}
|
|
31284
|
+
|
|
31285
|
+
/**
|
|
31286
|
+
* Count with deleted instances of the model matched by where from the data source.
|
|
31287
|
+
*/
|
|
31288
|
+
public static countWithDeleted<ThrowOnError extends boolean = false>(
|
|
31289
|
+
options?: Options<SqlServerCountWithDeletedData, ThrowOnError>,
|
|
31290
|
+
) {
|
|
31291
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31292
|
+
SqlServerCountWithDeletedResponses,
|
|
31293
|
+
unknown,
|
|
31294
|
+
ThrowOnError
|
|
31295
|
+
>({
|
|
31296
|
+
url: '/SqlServers/countWithDeleted',
|
|
31297
|
+
...options,
|
|
31298
|
+
});
|
|
31299
|
+
}
|
|
31300
|
+
}
|
|
31301
|
+
|
|
31302
|
+
export class ChatThreadService {
|
|
31303
|
+
/**
|
|
31304
|
+
* Fetches belongsTo relation user.
|
|
31305
|
+
*/
|
|
31306
|
+
public static prototypeGetUser<ThrowOnError extends boolean = false>(
|
|
31307
|
+
options: Options<ChatThreadPrototypeGetUserData, ThrowOnError>,
|
|
31308
|
+
) {
|
|
31309
|
+
return (options.client ?? _heyApiClient).get<
|
|
31310
|
+
ChatThreadPrototypeGetUserResponses,
|
|
31311
|
+
unknown,
|
|
31312
|
+
ThrowOnError
|
|
31313
|
+
>({
|
|
31314
|
+
responseTransformer: chatThreadPrototypeGetUserResponseTransformer,
|
|
31315
|
+
url: '/ChatThreads/{id}/user',
|
|
31316
|
+
...options,
|
|
31317
|
+
});
|
|
31318
|
+
}
|
|
31319
|
+
|
|
31320
|
+
/**
|
|
31321
|
+
* Find all instances of the model matched by filter from the data source.
|
|
31322
|
+
*/
|
|
31323
|
+
public static find<ThrowOnError extends boolean = false>(
|
|
31324
|
+
options?: Options<ChatThreadFindData, ThrowOnError>,
|
|
31325
|
+
) {
|
|
31326
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31327
|
+
ChatThreadFindResponses,
|
|
31328
|
+
unknown,
|
|
31329
|
+
ThrowOnError
|
|
31330
|
+
>({
|
|
31331
|
+
responseTransformer: chatThreadFindResponseTransformer,
|
|
31332
|
+
url: '/ChatThreads',
|
|
31333
|
+
...options,
|
|
31334
|
+
});
|
|
31335
|
+
}
|
|
31336
|
+
|
|
31337
|
+
/**
|
|
31338
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
31339
|
+
*/
|
|
31340
|
+
public static patchOrCreate<ThrowOnError extends boolean = false>(
|
|
31341
|
+
options?: Options<ChatThreadPatchOrCreateData, ThrowOnError>,
|
|
31342
|
+
) {
|
|
31343
|
+
return (options?.client ?? _heyApiClient).patch<
|
|
31344
|
+
ChatThreadPatchOrCreateResponses,
|
|
31345
|
+
unknown,
|
|
31346
|
+
ThrowOnError
|
|
31347
|
+
>({
|
|
31348
|
+
responseTransformer: chatThreadPatchOrCreateResponseTransformer,
|
|
31349
|
+
url: '/ChatThreads',
|
|
31350
|
+
...options,
|
|
31351
|
+
headers: {
|
|
31352
|
+
'Content-Type': 'application/json',
|
|
31353
|
+
...options?.headers,
|
|
31354
|
+
},
|
|
31355
|
+
});
|
|
31356
|
+
}
|
|
31357
|
+
|
|
31358
|
+
/**
|
|
31359
|
+
* Create a new instance of the model and persist it into the data source.
|
|
31360
|
+
*/
|
|
31361
|
+
public static create<ThrowOnError extends boolean = false>(
|
|
31362
|
+
options?: Options<ChatThreadCreateData, ThrowOnError>,
|
|
31363
|
+
) {
|
|
31364
|
+
return (options?.client ?? _heyApiClient).post<
|
|
31365
|
+
ChatThreadCreateResponses,
|
|
31366
|
+
unknown,
|
|
31367
|
+
ThrowOnError
|
|
31368
|
+
>({
|
|
31369
|
+
responseTransformer: chatThreadCreateResponseTransformer,
|
|
31370
|
+
url: '/ChatThreads',
|
|
31371
|
+
...options,
|
|
31372
|
+
headers: {
|
|
31373
|
+
'Content-Type': 'application/json',
|
|
31374
|
+
...options?.headers,
|
|
31375
|
+
},
|
|
31376
|
+
});
|
|
31377
|
+
}
|
|
31378
|
+
|
|
31379
|
+
/**
|
|
31380
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
31381
|
+
*/
|
|
31382
|
+
public static replaceOrCreatePutChatThreads<
|
|
31383
|
+
ThrowOnError extends boolean = false,
|
|
31384
|
+
>(
|
|
31385
|
+
options?: Options<
|
|
31386
|
+
ChatThreadReplaceOrCreatePutChatThreadsData,
|
|
31387
|
+
ThrowOnError
|
|
31388
|
+
>,
|
|
31389
|
+
) {
|
|
31390
|
+
return (options?.client ?? _heyApiClient).put<
|
|
31391
|
+
ChatThreadReplaceOrCreatePutChatThreadsResponses,
|
|
31392
|
+
unknown,
|
|
31393
|
+
ThrowOnError
|
|
31394
|
+
>({
|
|
31395
|
+
responseTransformer:
|
|
31396
|
+
chatThreadReplaceOrCreatePutChatThreadsResponseTransformer,
|
|
31397
|
+
url: '/ChatThreads',
|
|
31398
|
+
...options,
|
|
31399
|
+
headers: {
|
|
31400
|
+
'Content-Type': 'application/json',
|
|
31401
|
+
...options?.headers,
|
|
31402
|
+
},
|
|
31403
|
+
});
|
|
31404
|
+
}
|
|
31405
|
+
|
|
31406
|
+
/**
|
|
31407
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
31408
|
+
*/
|
|
31409
|
+
public static replaceOrCreatePostChatThreadsReplaceOrCreate<
|
|
31410
|
+
ThrowOnError extends boolean = false,
|
|
31411
|
+
>(
|
|
31412
|
+
options?: Options<
|
|
31413
|
+
ChatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateData,
|
|
31414
|
+
ThrowOnError
|
|
31415
|
+
>,
|
|
31416
|
+
) {
|
|
31417
|
+
return (options?.client ?? _heyApiClient).post<
|
|
31418
|
+
ChatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponses,
|
|
31419
|
+
unknown,
|
|
31420
|
+
ThrowOnError
|
|
31421
|
+
>({
|
|
31422
|
+
responseTransformer:
|
|
31423
|
+
chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer,
|
|
31424
|
+
url: '/ChatThreads/replaceOrCreate',
|
|
31425
|
+
...options,
|
|
31426
|
+
headers: {
|
|
31427
|
+
'Content-Type': 'application/json',
|
|
31428
|
+
...options?.headers,
|
|
31429
|
+
},
|
|
31430
|
+
});
|
|
31431
|
+
}
|
|
31432
|
+
|
|
31433
|
+
/**
|
|
31434
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
31435
|
+
*/
|
|
31436
|
+
public static upsertWithWhere<ThrowOnError extends boolean = false>(
|
|
31437
|
+
options?: Options<ChatThreadUpsertWithWhereData, ThrowOnError>,
|
|
31438
|
+
) {
|
|
31439
|
+
return (options?.client ?? _heyApiClient).post<
|
|
31440
|
+
ChatThreadUpsertWithWhereResponses,
|
|
31441
|
+
unknown,
|
|
31442
|
+
ThrowOnError
|
|
31443
|
+
>({
|
|
31444
|
+
responseTransformer: chatThreadUpsertWithWhereResponseTransformer,
|
|
31445
|
+
url: '/ChatThreads/upsertWithWhere',
|
|
31446
|
+
...options,
|
|
31447
|
+
headers: {
|
|
31448
|
+
'Content-Type': 'application/json',
|
|
31449
|
+
...options?.headers,
|
|
31450
|
+
},
|
|
31451
|
+
});
|
|
31452
|
+
}
|
|
31453
|
+
|
|
31454
|
+
/**
|
|
31455
|
+
* Check whether a model instance exists in the data source.
|
|
31456
|
+
*/
|
|
31457
|
+
public static existsGetChatThreadsIdExists<
|
|
31458
|
+
ThrowOnError extends boolean = false,
|
|
31459
|
+
>(
|
|
31460
|
+
options: Options<ChatThreadExistsGetChatThreadsIdExistsData, ThrowOnError>,
|
|
31461
|
+
) {
|
|
31462
|
+
return (options.client ?? _heyApiClient).get<
|
|
31463
|
+
ChatThreadExistsGetChatThreadsIdExistsResponses,
|
|
31464
|
+
unknown,
|
|
31465
|
+
ThrowOnError
|
|
31466
|
+
>({
|
|
31467
|
+
url: '/ChatThreads/{id}/exists',
|
|
31468
|
+
...options,
|
|
31469
|
+
});
|
|
31470
|
+
}
|
|
31471
|
+
|
|
31472
|
+
/**
|
|
31473
|
+
* Delete a model instance by {{id}} from the data source.
|
|
31474
|
+
*/
|
|
31475
|
+
public static deleteById<ThrowOnError extends boolean = false>(
|
|
31476
|
+
options: Options<ChatThreadDeleteByIdData, ThrowOnError>,
|
|
31477
|
+
) {
|
|
31478
|
+
return (options.client ?? _heyApiClient).delete<
|
|
31479
|
+
ChatThreadDeleteByIdResponses,
|
|
31480
|
+
unknown,
|
|
31481
|
+
ThrowOnError
|
|
31482
|
+
>({
|
|
31483
|
+
url: '/ChatThreads/{id}',
|
|
31484
|
+
...options,
|
|
31485
|
+
});
|
|
31486
|
+
}
|
|
31487
|
+
|
|
31488
|
+
/**
|
|
31489
|
+
* Find a model instance by {{id}} from the data source.
|
|
31490
|
+
*/
|
|
31491
|
+
public static findById<ThrowOnError extends boolean = false>(
|
|
31492
|
+
options: Options<ChatThreadFindByIdData, ThrowOnError>,
|
|
31493
|
+
) {
|
|
31494
|
+
return (options.client ?? _heyApiClient).get<
|
|
31495
|
+
ChatThreadFindByIdResponses,
|
|
31496
|
+
unknown,
|
|
31497
|
+
ThrowOnError
|
|
31498
|
+
>({
|
|
31499
|
+
responseTransformer: chatThreadFindByIdResponseTransformer,
|
|
31500
|
+
url: '/ChatThreads/{id}',
|
|
31501
|
+
...options,
|
|
31502
|
+
});
|
|
31503
|
+
}
|
|
31504
|
+
|
|
31505
|
+
/**
|
|
31506
|
+
* Check whether a model instance exists in the data source.
|
|
31507
|
+
*/
|
|
31508
|
+
public static existsHeadChatThreadsId<ThrowOnError extends boolean = false>(
|
|
31509
|
+
options: Options<ChatThreadExistsHeadChatThreadsIdData, ThrowOnError>,
|
|
31510
|
+
) {
|
|
31511
|
+
return (options.client ?? _heyApiClient).head<
|
|
31512
|
+
ChatThreadExistsHeadChatThreadsIdResponses,
|
|
31513
|
+
unknown,
|
|
31514
|
+
ThrowOnError
|
|
31515
|
+
>({
|
|
31516
|
+
url: '/ChatThreads/{id}',
|
|
31517
|
+
...options,
|
|
31518
|
+
});
|
|
31519
|
+
}
|
|
31520
|
+
|
|
31521
|
+
/**
|
|
31522
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
31523
|
+
*/
|
|
31524
|
+
public static prototypePatchAttributes<ThrowOnError extends boolean = false>(
|
|
31525
|
+
options: Options<ChatThreadPrototypePatchAttributesData, ThrowOnError>,
|
|
31526
|
+
) {
|
|
31527
|
+
return (options.client ?? _heyApiClient).patch<
|
|
31528
|
+
ChatThreadPrototypePatchAttributesResponses,
|
|
31529
|
+
unknown,
|
|
31530
|
+
ThrowOnError
|
|
31531
|
+
>({
|
|
31532
|
+
responseTransformer:
|
|
31533
|
+
chatThreadPrototypePatchAttributesResponseTransformer,
|
|
31534
|
+
url: '/ChatThreads/{id}',
|
|
31535
|
+
...options,
|
|
31536
|
+
headers: {
|
|
31537
|
+
'Content-Type': 'application/json',
|
|
31538
|
+
...options.headers,
|
|
31539
|
+
},
|
|
31540
|
+
});
|
|
31541
|
+
}
|
|
31542
|
+
|
|
31543
|
+
/**
|
|
31544
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
31545
|
+
*/
|
|
31546
|
+
public static replaceByIdPutChatThreadsId<
|
|
31547
|
+
ThrowOnError extends boolean = false,
|
|
31548
|
+
>(options: Options<ChatThreadReplaceByIdPutChatThreadsIdData, ThrowOnError>) {
|
|
31549
|
+
return (options.client ?? _heyApiClient).put<
|
|
31550
|
+
ChatThreadReplaceByIdPutChatThreadsIdResponses,
|
|
31551
|
+
unknown,
|
|
31552
|
+
ThrowOnError
|
|
31553
|
+
>({
|
|
31554
|
+
responseTransformer:
|
|
31555
|
+
chatThreadReplaceByIdPutChatThreadsIdResponseTransformer,
|
|
31556
|
+
url: '/ChatThreads/{id}',
|
|
31557
|
+
...options,
|
|
31558
|
+
headers: {
|
|
31559
|
+
'Content-Type': 'application/json',
|
|
31560
|
+
...options.headers,
|
|
31561
|
+
},
|
|
31562
|
+
});
|
|
31563
|
+
}
|
|
31564
|
+
|
|
31565
|
+
/**
|
|
31566
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
31567
|
+
*/
|
|
31568
|
+
public static replaceByIdPostChatThreadsIdReplace<
|
|
31569
|
+
ThrowOnError extends boolean = false,
|
|
31570
|
+
>(
|
|
31571
|
+
options: Options<
|
|
31572
|
+
ChatThreadReplaceByIdPostChatThreadsIdReplaceData,
|
|
31573
|
+
ThrowOnError
|
|
31574
|
+
>,
|
|
31575
|
+
) {
|
|
31576
|
+
return (options.client ?? _heyApiClient).post<
|
|
31577
|
+
ChatThreadReplaceByIdPostChatThreadsIdReplaceResponses,
|
|
31578
|
+
unknown,
|
|
31579
|
+
ThrowOnError
|
|
31580
|
+
>({
|
|
31581
|
+
responseTransformer:
|
|
31582
|
+
chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer,
|
|
31583
|
+
url: '/ChatThreads/{id}/replace',
|
|
31584
|
+
...options,
|
|
31585
|
+
headers: {
|
|
31586
|
+
'Content-Type': 'application/json',
|
|
31587
|
+
...options.headers,
|
|
31588
|
+
},
|
|
31589
|
+
});
|
|
31590
|
+
}
|
|
31591
|
+
|
|
31592
|
+
/**
|
|
31593
|
+
* Find first instance of the model matched by filter from the data source.
|
|
31594
|
+
*/
|
|
31595
|
+
public static findOne<ThrowOnError extends boolean = false>(
|
|
31596
|
+
options?: Options<ChatThreadFindOneData, ThrowOnError>,
|
|
31597
|
+
) {
|
|
31598
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31599
|
+
ChatThreadFindOneResponses,
|
|
31600
|
+
unknown,
|
|
31601
|
+
ThrowOnError
|
|
31602
|
+
>({
|
|
31603
|
+
responseTransformer: chatThreadFindOneResponseTransformer,
|
|
31604
|
+
url: '/ChatThreads/findOne',
|
|
31605
|
+
...options,
|
|
31606
|
+
});
|
|
31607
|
+
}
|
|
31608
|
+
|
|
31609
|
+
/**
|
|
31610
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
31611
|
+
*/
|
|
31612
|
+
public static updateAll<ThrowOnError extends boolean = false>(
|
|
31613
|
+
options?: Options<ChatThreadUpdateAllData, ThrowOnError>,
|
|
31614
|
+
) {
|
|
31615
|
+
return (options?.client ?? _heyApiClient).post<
|
|
31616
|
+
ChatThreadUpdateAllResponses,
|
|
31617
|
+
unknown,
|
|
31618
|
+
ThrowOnError
|
|
31619
|
+
>({
|
|
31620
|
+
url: '/ChatThreads/update',
|
|
31621
|
+
...options,
|
|
31622
|
+
headers: {
|
|
31623
|
+
'Content-Type': 'application/json',
|
|
31624
|
+
...options?.headers,
|
|
31625
|
+
},
|
|
31626
|
+
});
|
|
31627
|
+
}
|
|
31628
|
+
|
|
31629
|
+
/**
|
|
31630
|
+
* Count instances of the model matched by where from the data source.
|
|
31631
|
+
*/
|
|
31632
|
+
public static count<ThrowOnError extends boolean = false>(
|
|
31633
|
+
options?: Options<ChatThreadCountData, ThrowOnError>,
|
|
31634
|
+
) {
|
|
31635
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31636
|
+
ChatThreadCountResponses,
|
|
31637
|
+
unknown,
|
|
31638
|
+
ThrowOnError
|
|
31639
|
+
>({
|
|
31640
|
+
url: '/ChatThreads/count',
|
|
31641
|
+
...options,
|
|
31642
|
+
});
|
|
31643
|
+
}
|
|
31644
|
+
|
|
31645
|
+
public static getThreads<ThrowOnError extends boolean = false>(
|
|
31646
|
+
options?: Options<ChatThreadGetThreadsData, ThrowOnError>,
|
|
31647
|
+
) {
|
|
31648
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31649
|
+
ChatThreadGetThreadsResponses,
|
|
31650
|
+
unknown,
|
|
31651
|
+
ThrowOnError
|
|
31652
|
+
>({
|
|
31653
|
+
url: '/ChatThreads/getThreads',
|
|
31654
|
+
...options,
|
|
31655
|
+
});
|
|
31656
|
+
}
|
|
31657
|
+
|
|
31658
|
+
public static createThread<ThrowOnError extends boolean = false>(
|
|
31659
|
+
options: Options<ChatThreadCreateThreadData, ThrowOnError>,
|
|
31660
|
+
) {
|
|
31661
|
+
return (options.client ?? _heyApiClient).post<
|
|
31662
|
+
ChatThreadCreateThreadResponses,
|
|
31663
|
+
unknown,
|
|
31664
|
+
ThrowOnError
|
|
31665
|
+
>({
|
|
31666
|
+
url: '/ChatThreads/createThread',
|
|
31667
|
+
...options,
|
|
31668
|
+
headers: {
|
|
31669
|
+
'Content-Type': 'application/json',
|
|
31670
|
+
...options.headers,
|
|
31671
|
+
},
|
|
31672
|
+
});
|
|
31673
|
+
}
|
|
31674
|
+
|
|
31675
|
+
public static updateThread<ThrowOnError extends boolean = false>(
|
|
31676
|
+
options: Options<ChatThreadUpdateThreadData, ThrowOnError>,
|
|
31677
|
+
) {
|
|
31678
|
+
return (options.client ?? _heyApiClient).post<
|
|
31679
|
+
ChatThreadUpdateThreadResponses,
|
|
31680
|
+
unknown,
|
|
31681
|
+
ThrowOnError
|
|
31682
|
+
>({
|
|
31683
|
+
url: '/ChatThreads/updateThread',
|
|
31684
|
+
...options,
|
|
31685
|
+
headers: {
|
|
31686
|
+
'Content-Type': 'application/json',
|
|
31687
|
+
...options.headers,
|
|
31688
|
+
},
|
|
31689
|
+
});
|
|
31690
|
+
}
|
|
31691
|
+
|
|
31692
|
+
public static loadThread<ThrowOnError extends boolean = false>(
|
|
31693
|
+
options: Options<ChatThreadLoadThreadData, ThrowOnError>,
|
|
31694
|
+
) {
|
|
31695
|
+
return (options.client ?? _heyApiClient).get<
|
|
31696
|
+
ChatThreadLoadThreadResponses,
|
|
31697
|
+
unknown,
|
|
31698
|
+
ThrowOnError
|
|
31699
|
+
>({
|
|
31700
|
+
url: '/ChatThreads/loadThread',
|
|
31701
|
+
...options,
|
|
31702
|
+
});
|
|
31703
|
+
}
|
|
31704
|
+
}
|
|
31705
|
+
|
|
31706
|
+
export class CommandPaletteHistoryService {
|
|
31707
|
+
/**
|
|
31708
|
+
* Find all instances of the model matched by filter from the data source.
|
|
31709
|
+
*/
|
|
31710
|
+
public static find<ThrowOnError extends boolean = false>(
|
|
31711
|
+
options?: Options<CommandPaletteHistoryFindData, ThrowOnError>,
|
|
31712
|
+
) {
|
|
31713
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31714
|
+
CommandPaletteHistoryFindResponses,
|
|
31715
|
+
unknown,
|
|
31716
|
+
ThrowOnError
|
|
31717
|
+
>({
|
|
31718
|
+
responseTransformer: commandPaletteHistoryFindResponseTransformer,
|
|
31719
|
+
url: '/CommandPaletteHistories',
|
|
31720
|
+
...options,
|
|
31721
|
+
});
|
|
31722
|
+
}
|
|
31723
|
+
|
|
31724
|
+
/**
|
|
31725
|
+
* Create a new instance of the model and persist it into the data source.
|
|
31726
|
+
*/
|
|
31727
|
+
public static create<ThrowOnError extends boolean = false>(
|
|
31728
|
+
options?: Options<CommandPaletteHistoryCreateData, ThrowOnError>,
|
|
31729
|
+
) {
|
|
31730
|
+
return (options?.client ?? _heyApiClient).post<
|
|
31731
|
+
CommandPaletteHistoryCreateResponses,
|
|
31732
|
+
unknown,
|
|
31733
|
+
ThrowOnError
|
|
31734
|
+
>({
|
|
31735
|
+
responseTransformer: commandPaletteHistoryCreateResponseTransformer,
|
|
31736
|
+
url: '/CommandPaletteHistories',
|
|
31737
|
+
...options,
|
|
31738
|
+
headers: {
|
|
31739
|
+
'Content-Type': 'application/json',
|
|
31740
|
+
...options?.headers,
|
|
31741
|
+
},
|
|
31742
|
+
});
|
|
31743
|
+
}
|
|
31744
|
+
|
|
31745
|
+
/**
|
|
31746
|
+
* Delete a model instance by {{id}} from the data source.
|
|
31747
|
+
*/
|
|
31748
|
+
public static deleteById<ThrowOnError extends boolean = false>(
|
|
31749
|
+
options: Options<CommandPaletteHistoryDeleteByIdData, ThrowOnError>,
|
|
31750
|
+
) {
|
|
31751
|
+
return (options.client ?? _heyApiClient).delete<
|
|
31752
|
+
CommandPaletteHistoryDeleteByIdResponses,
|
|
31753
|
+
unknown,
|
|
31754
|
+
ThrowOnError
|
|
31755
|
+
>({
|
|
31756
|
+
url: '/CommandPaletteHistories/{id}',
|
|
31757
|
+
...options,
|
|
31758
|
+
});
|
|
31759
|
+
}
|
|
31760
|
+
|
|
31761
|
+
/**
|
|
31762
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
31763
|
+
*/
|
|
31764
|
+
public static prototypePatchAttributes<ThrowOnError extends boolean = false>(
|
|
31765
|
+
options: Options<
|
|
31766
|
+
CommandPaletteHistoryPrototypePatchAttributesData,
|
|
31767
|
+
ThrowOnError
|
|
31768
|
+
>,
|
|
31769
|
+
) {
|
|
31770
|
+
return (options.client ?? _heyApiClient).patch<
|
|
31771
|
+
CommandPaletteHistoryPrototypePatchAttributesResponses,
|
|
31772
|
+
unknown,
|
|
31773
|
+
ThrowOnError
|
|
31774
|
+
>({
|
|
31775
|
+
responseTransformer:
|
|
31776
|
+
commandPaletteHistoryPrototypePatchAttributesResponseTransformer,
|
|
31777
|
+
url: '/CommandPaletteHistories/{id}',
|
|
31778
|
+
...options,
|
|
31779
|
+
headers: {
|
|
31780
|
+
'Content-Type': 'application/json',
|
|
31781
|
+
...options.headers,
|
|
31782
|
+
},
|
|
31783
|
+
});
|
|
31784
|
+
}
|
|
31785
|
+
|
|
31786
|
+
/**
|
|
31787
|
+
* Count instances of the model matched by where from the data source.
|
|
31788
|
+
*/
|
|
31789
|
+
public static count<ThrowOnError extends boolean = false>(
|
|
31790
|
+
options?: Options<CommandPaletteHistoryCountData, ThrowOnError>,
|
|
31791
|
+
) {
|
|
31792
|
+
return (options?.client ?? _heyApiClient).get<
|
|
31793
|
+
CommandPaletteHistoryCountResponses,
|
|
31794
|
+
unknown,
|
|
31795
|
+
ThrowOnError
|
|
31796
|
+
>({
|
|
31797
|
+
url: '/CommandPaletteHistories/count',
|
|
31798
|
+
...options,
|
|
31799
|
+
});
|
|
31800
|
+
}
|
|
31801
|
+
}
|