@nextplus/js-sdk 0.0.8 → 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/index.cjs CHANGED
@@ -638,6 +638,8 @@ __export(sdk_exports, {
638
638
  CertificateMappingService: () => CertificateMappingService,
639
639
  CertificateService: () => CertificateService,
640
640
  ChapterService: () => ChapterService,
641
+ ChatThreadService: () => ChatThreadService,
642
+ CommandPaletteHistoryService: () => CommandPaletteHistoryService,
641
643
  CommentService: () => CommentService,
642
644
  ConfigurationService: () => ConfigurationService,
643
645
  ConnectionService: () => ConnectionService,
@@ -696,6 +698,7 @@ __export(sdk_exports, {
696
698
  SettingService: () => SettingService,
697
699
  ShiftService: () => ShiftService,
698
700
  ShiftTypeService: () => ShiftTypeService,
701
+ SqlServerService: () => SqlServerService,
699
702
  StationService: () => StationService,
700
703
  StockService: () => StockService,
701
704
  SyncClientsService: () => SyncClientsService,
@@ -724,6 +727,7 @@ __export(sdk_exports, {
724
727
  WorkflowTypeService: () => WorkflowTypeService,
725
728
  WorkorderService: () => WorkorderService,
726
729
  WorkorderStatusService: () => WorkorderStatusService,
730
+ WorkorderStatusTransitionService: () => WorkorderStatusTransitionService,
727
731
  WorkorderTemplateService: () => WorkorderTemplateService
728
732
  });
729
733
 
@@ -1184,6 +1188,9 @@ var resourceSchemaResponseTransformer = (data) => {
1184
1188
  if (data.serverModified) {
1185
1189
  data.serverModified = new Date(data.serverModified);
1186
1190
  }
1191
+ if (data.deletedAt) {
1192
+ data.deletedAt = new Date(data.deletedAt);
1193
+ }
1187
1194
  return data;
1188
1195
  };
1189
1196
  var partAssemblyPrototypeGetImageObjectResponseTransformer = async (data) => {
@@ -4146,6 +4153,36 @@ var workorderStatusFindOneResponseTransformer = async (data) => {
4146
4153
  data = workorderStatusSchemaResponseTransformer(data);
4147
4154
  return data;
4148
4155
  };
4156
+ var workorderStatusTransitionSchemaResponseTransformer = (data) => {
4157
+ if (data.created) {
4158
+ data.created = new Date(data.created);
4159
+ }
4160
+ if (data.modified) {
4161
+ data.modified = new Date(data.modified);
4162
+ }
4163
+ if (data.serverModified) {
4164
+ data.serverModified = new Date(data.serverModified);
4165
+ }
4166
+ return data;
4167
+ };
4168
+ var workorderStatusTransitionFindResponseTransformer = async (data) => {
4169
+ data = data.map((item) => {
4170
+ return workorderStatusTransitionSchemaResponseTransformer(item);
4171
+ });
4172
+ return data;
4173
+ };
4174
+ var workorderStatusTransitionCreateResponseTransformer = async (data) => {
4175
+ data = workorderStatusTransitionSchemaResponseTransformer(data);
4176
+ return data;
4177
+ };
4178
+ var workorderStatusTransitionFindOneResponseTransformer = async (data) => {
4179
+ data = workorderStatusTransitionSchemaResponseTransformer(data);
4180
+ return data;
4181
+ };
4182
+ var workorderStatusTransitionPrototypePatchAttributesResponseTransformer = async (data) => {
4183
+ data = workorderStatusTransitionSchemaResponseTransformer(data);
4184
+ return data;
4185
+ };
4149
4186
  var timeLogReportSchemaResponseTransformer = (data) => {
4150
4187
  if (data.start) {
4151
4188
  data.start = new Date(data.start);
@@ -5047,6 +5084,163 @@ var addonFindOneResponseTransformer = async (data) => {
5047
5084
  data = addonSchemaResponseTransformer(data);
5048
5085
  return data;
5049
5086
  };
5087
+ var sqlServerPrototypeGetUserResponseTransformer = async (data) => {
5088
+ data = userModelSchemaResponseTransformer(data);
5089
+ return data;
5090
+ };
5091
+ var sqlServerSchemaResponseTransformer = (data) => {
5092
+ if (data.created) {
5093
+ data.created = new Date(data.created);
5094
+ }
5095
+ if (data.modified) {
5096
+ data.modified = new Date(data.modified);
5097
+ }
5098
+ if (data.serverModified) {
5099
+ data.serverModified = new Date(data.serverModified);
5100
+ }
5101
+ if (data.deletedAt) {
5102
+ data.deletedAt = new Date(data.deletedAt);
5103
+ }
5104
+ return data;
5105
+ };
5106
+ var sqlServerFindResponseTransformer = async (data) => {
5107
+ data = data.map((item) => {
5108
+ return sqlServerSchemaResponseTransformer(item);
5109
+ });
5110
+ return data;
5111
+ };
5112
+ var sqlServerPatchOrCreateResponseTransformer = async (data) => {
5113
+ data = sqlServerSchemaResponseTransformer(data);
5114
+ return data;
5115
+ };
5116
+ var sqlServerCreateResponseTransformer = async (data) => {
5117
+ data = sqlServerSchemaResponseTransformer(data);
5118
+ return data;
5119
+ };
5120
+ var sqlServerReplaceOrCreatePutSqlServersResponseTransformer = async (data) => {
5121
+ data = sqlServerSchemaResponseTransformer(data);
5122
+ return data;
5123
+ };
5124
+ var sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer = async (data) => {
5125
+ data = sqlServerSchemaResponseTransformer(data);
5126
+ return data;
5127
+ };
5128
+ var sqlServerUpsertWithWhereResponseTransformer = async (data) => {
5129
+ data = sqlServerSchemaResponseTransformer(data);
5130
+ return data;
5131
+ };
5132
+ var sqlServerFindByIdResponseTransformer = async (data) => {
5133
+ data = sqlServerSchemaResponseTransformer(data);
5134
+ return data;
5135
+ };
5136
+ var sqlServerPrototypePatchAttributesResponseTransformer = async (data) => {
5137
+ data = sqlServerSchemaResponseTransformer(data);
5138
+ return data;
5139
+ };
5140
+ var sqlServerReplaceByIdPutSqlServersIdResponseTransformer = async (data) => {
5141
+ data = sqlServerSchemaResponseTransformer(data);
5142
+ return data;
5143
+ };
5144
+ var sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer = async (data) => {
5145
+ data = sqlServerSchemaResponseTransformer(data);
5146
+ return data;
5147
+ };
5148
+ var sqlServerFindOneResponseTransformer = async (data) => {
5149
+ data = sqlServerSchemaResponseTransformer(data);
5150
+ return data;
5151
+ };
5152
+ var chatThreadPrototypeGetUserResponseTransformer = async (data) => {
5153
+ data = userModelSchemaResponseTransformer(data);
5154
+ return data;
5155
+ };
5156
+ var chatThreadSchemaResponseTransformer = (data) => {
5157
+ if (data.created) {
5158
+ data.created = new Date(data.created);
5159
+ }
5160
+ if (data.modified) {
5161
+ data.modified = new Date(data.modified);
5162
+ }
5163
+ if (data.serverModified) {
5164
+ data.serverModified = new Date(data.serverModified);
5165
+ }
5166
+ return data;
5167
+ };
5168
+ var chatThreadFindResponseTransformer = async (data) => {
5169
+ data = data.map((item) => {
5170
+ return chatThreadSchemaResponseTransformer(item);
5171
+ });
5172
+ return data;
5173
+ };
5174
+ var chatThreadPatchOrCreateResponseTransformer = async (data) => {
5175
+ data = chatThreadSchemaResponseTransformer(data);
5176
+ return data;
5177
+ };
5178
+ var chatThreadCreateResponseTransformer = async (data) => {
5179
+ data = chatThreadSchemaResponseTransformer(data);
5180
+ return data;
5181
+ };
5182
+ var chatThreadReplaceOrCreatePutChatThreadsResponseTransformer = async (data) => {
5183
+ data = chatThreadSchemaResponseTransformer(data);
5184
+ return data;
5185
+ };
5186
+ var chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer = async (data) => {
5187
+ data = chatThreadSchemaResponseTransformer(data);
5188
+ return data;
5189
+ };
5190
+ var chatThreadUpsertWithWhereResponseTransformer = async (data) => {
5191
+ data = chatThreadSchemaResponseTransformer(data);
5192
+ return data;
5193
+ };
5194
+ var chatThreadFindByIdResponseTransformer = async (data) => {
5195
+ data = chatThreadSchemaResponseTransformer(data);
5196
+ return data;
5197
+ };
5198
+ var chatThreadPrototypePatchAttributesResponseTransformer = async (data) => {
5199
+ data = chatThreadSchemaResponseTransformer(data);
5200
+ return data;
5201
+ };
5202
+ var chatThreadReplaceByIdPutChatThreadsIdResponseTransformer = async (data) => {
5203
+ data = chatThreadSchemaResponseTransformer(data);
5204
+ return data;
5205
+ };
5206
+ var chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer = async (data) => {
5207
+ data = chatThreadSchemaResponseTransformer(data);
5208
+ return data;
5209
+ };
5210
+ var chatThreadFindOneResponseTransformer = async (data) => {
5211
+ data = chatThreadSchemaResponseTransformer(data);
5212
+ return data;
5213
+ };
5214
+ var commandPaletteHistorySchemaResponseTransformer = (data) => {
5215
+ data.lastVisited = new Date(data.lastVisited);
5216
+ if (data.created) {
5217
+ data.created = new Date(data.created);
5218
+ }
5219
+ if (data.modified) {
5220
+ data.modified = new Date(data.modified);
5221
+ }
5222
+ if (data.serverModified) {
5223
+ data.serverModified = new Date(data.serverModified);
5224
+ }
5225
+ if (data.deletedAt) {
5226
+ data.deletedAt = new Date(data.deletedAt);
5227
+ }
5228
+ return data;
5229
+ };
5230
+ var commandPaletteHistoryFindResponseTransformer = async (data) => {
5231
+ data = data.map((item) => {
5232
+ return commandPaletteHistorySchemaResponseTransformer(item);
5233
+ });
5234
+ return data;
5235
+ };
5236
+ var commandPaletteHistoryCreateResponseTransformer = async (data) => {
5237
+ data = commandPaletteHistorySchemaResponseTransformer(data);
5238
+ return data;
5239
+ };
5240
+ var commandPaletteHistoryPrototypePatchAttributesResponseTransformer = async (data) => {
5241
+ data = commandPaletteHistorySchemaResponseTransformer(data);
5242
+ return data;
5243
+ };
5050
5244
 
5051
5245
  // src/sdk/sdk.gen.ts
5052
5246
  var ContainerService = class {
@@ -9002,6 +9196,19 @@ var ResourceService = class {
9002
9196
  }
9003
9197
  });
9004
9198
  }
9199
+ /**
9200
+ * Delete file if not used on another session
9201
+ */
9202
+ static deleteFileIfNotUsed(options) {
9203
+ return (options.client ?? client).post({
9204
+ url: "/Resources/deleteFileIfNotUsed",
9205
+ ...options,
9206
+ headers: {
9207
+ "Content-Type": "application/json",
9208
+ ...options.headers
9209
+ }
9210
+ });
9211
+ }
9005
9212
  static processingFile(options) {
9006
9213
  return (options?.client ?? client).get({
9007
9214
  url: "/Resources/processingFile",
@@ -9017,6 +9224,37 @@ var ResourceService = class {
9017
9224
  ...options
9018
9225
  });
9019
9226
  }
9227
+ /**
9228
+ * Upload a file from base64 data
9229
+ */
9230
+ static uploadBase64(options) {
9231
+ return (options.client ?? client).post({
9232
+ url: "/Resources/uploadBase64",
9233
+ ...options,
9234
+ headers: {
9235
+ "Content-Type": "application/json",
9236
+ ...options.headers
9237
+ }
9238
+ });
9239
+ }
9240
+ /**
9241
+ * Get file as base64-encoded buffer in JSON response
9242
+ */
9243
+ static getFileAsBuffer(options) {
9244
+ return (options.client ?? client).get({
9245
+ url: "/Resources/buffer/{id}",
9246
+ ...options
9247
+ });
9248
+ }
9249
+ /**
9250
+ * Count with deleted instances of the model matched by where from the data source.
9251
+ */
9252
+ static countWithDeleted(options) {
9253
+ return (options?.client ?? client).get({
9254
+ url: "/Resources/countWithDeleted",
9255
+ ...options
9256
+ });
9257
+ }
9020
9258
  };
9021
9259
  var WorkflowService = class {
9022
9260
  /**
@@ -10015,6 +10253,16 @@ var WorkflowService = class {
10015
10253
  }
10016
10254
  });
10017
10255
  }
10256
+ static prototypeImportFromZip(options) {
10257
+ return (options.client ?? client).post({
10258
+ url: "/Workflows/{id}/importFromZip",
10259
+ ...options,
10260
+ headers: {
10261
+ "Content-Type": "application/json",
10262
+ ...options.headers
10263
+ }
10264
+ });
10265
+ }
10018
10266
  /**
10019
10267
  * Fork a workflow
10020
10268
  */
@@ -11653,6 +11901,19 @@ var ToolService = class {
11653
11901
  ...options
11654
11902
  });
11655
11903
  }
11904
+ /**
11905
+ * Import tools and serials from CSV-like data with validation
11906
+ */
11907
+ static importTools(options) {
11908
+ return (options.client ?? client).post({
11909
+ url: "/Tools/import",
11910
+ ...options,
11911
+ headers: {
11912
+ "Content-Type": "application/json",
11913
+ ...options.headers
11914
+ }
11915
+ });
11916
+ }
11656
11917
  static exportTranslations(options) {
11657
11918
  return (options.client ?? client).get({
11658
11919
  url: "/Tools/exportTranslations",
@@ -12039,6 +12300,15 @@ var WorkorderService = class {
12039
12300
  ...options
12040
12301
  });
12041
12302
  }
12303
+ /**
12304
+ * Get status change history for a workorder
12305
+ */
12306
+ static getStatusHistory(options) {
12307
+ return (options.client ?? client).get({
12308
+ url: "/Workorders/getStatusHistory",
12309
+ ...options
12310
+ });
12311
+ }
12042
12312
  /**
12043
12313
  * Work on a specific stock
12044
12314
  */
@@ -15251,6 +15521,16 @@ var FormDataService = class {
15251
15521
  }
15252
15522
  });
15253
15523
  }
15524
+ static updateFormData(options) {
15525
+ return (options.client ?? client).patch({
15526
+ url: "/FormData/updateFormData/{formDataId}",
15527
+ ...options,
15528
+ headers: {
15529
+ "Content-Type": "application/json",
15530
+ ...options.headers
15531
+ }
15532
+ });
15533
+ }
15254
15534
  };
15255
15535
  var FolderService = class {
15256
15536
  /**
@@ -17573,24 +17853,6 @@ var WorkorderStatusService = class {
17573
17853
  }
17574
17854
  });
17575
17855
  }
17576
- /**
17577
- * get Current Status Fields
17578
- */
17579
- static getFieldsByFieldIds(options) {
17580
- return (options.client ?? client).get({
17581
- url: "/WorkorderStatuses/getFieldsByFieldIds",
17582
- ...options
17583
- });
17584
- }
17585
- /**
17586
- * check user status change permission
17587
- */
17588
- static checkPermission(options) {
17589
- return (options.client ?? client).get({
17590
- url: "/WorkorderStatuses/checkPermission",
17591
- ...options
17592
- });
17593
- }
17594
17856
  /**
17595
17857
  * Change workorder status
17596
17858
  */
@@ -17618,11 +17880,11 @@ var WorkorderStatusService = class {
17618
17880
  });
17619
17881
  }
17620
17882
  /**
17621
- * bulk workorder status change
17883
+ * delete Workorder Status
17622
17884
  */
17623
- static bulkWorkorderStatusChange(options) {
17885
+ static deleteWorkorderStatus(options) {
17624
17886
  return (options.client ?? client).post({
17625
- url: "/WorkorderStatuses/bulkWorkorderStatusChange",
17887
+ url: "/WorkorderStatuses/deleteWorkorderStatus",
17626
17888
  ...options,
17627
17889
  headers: {
17628
17890
  "Content-Type": "application/json",
@@ -17631,14 +17893,14 @@ var WorkorderStatusService = class {
17631
17893
  });
17632
17894
  }
17633
17895
  };
17634
- var TimeLogReportService = class {
17896
+ var WorkorderStatusTransitionService = class {
17635
17897
  /**
17636
17898
  * Find all instances of the model matched by filter from the data source.
17637
17899
  */
17638
17900
  static find(options) {
17639
17901
  return (options?.client ?? client).get({
17640
- responseTransformer: timeLogReportFindResponseTransformer,
17641
- url: "/TimeLogReports",
17902
+ responseTransformer: workorderStatusTransitionFindResponseTransformer,
17903
+ url: "/WorkorderStatusTransitions",
17642
17904
  ...options
17643
17905
  });
17644
17906
  }
@@ -17647,8 +17909,8 @@ var TimeLogReportService = class {
17647
17909
  */
17648
17910
  static create(options) {
17649
17911
  return (options?.client ?? client).post({
17650
- responseTransformer: timeLogReportCreateResponseTransformer,
17651
- url: "/TimeLogReports",
17912
+ responseTransformer: workorderStatusTransitionCreateResponseTransformer,
17913
+ url: "/WorkorderStatusTransitions",
17652
17914
  ...options,
17653
17915
  headers: {
17654
17916
  "Content-Type": "application/json",
@@ -17661,8 +17923,8 @@ var TimeLogReportService = class {
17661
17923
  */
17662
17924
  static findOne(options) {
17663
17925
  return (options?.client ?? client).get({
17664
- responseTransformer: timeLogReportFindOneResponseTransformer,
17665
- url: "/TimeLogReports/findOne",
17926
+ responseTransformer: workorderStatusTransitionFindOneResponseTransformer,
17927
+ url: "/WorkorderStatusTransitions/findOne",
17666
17928
  ...options
17667
17929
  });
17668
17930
  }
@@ -17671,25 +17933,17 @@ var TimeLogReportService = class {
17671
17933
  */
17672
17934
  static deleteById(options) {
17673
17935
  return (options.client ?? client).delete({
17674
- url: "/TimeLogReports/{id}",
17675
- ...options
17676
- });
17677
- }
17678
- /**
17679
- * Count instances of the model matched by where from the data source.
17680
- */
17681
- static count(options) {
17682
- return (options?.client ?? client).get({
17683
- url: "/TimeLogReports/count",
17936
+ url: "/WorkorderStatusTransitions/{id}",
17684
17937
  ...options
17685
17938
  });
17686
17939
  }
17687
17940
  /**
17688
- * add time log
17941
+ * Patch attributes for a model instance and persist it into the data source.
17689
17942
  */
17690
- static addTimeRecord(options) {
17691
- return (options.client ?? client).post({
17692
- url: "/TimeLogReports/addTimeRecord",
17943
+ static prototypePatchAttributes(options) {
17944
+ return (options.client ?? client).patch({
17945
+ responseTransformer: workorderStatusTransitionPrototypePatchAttributesResponseTransformer,
17946
+ url: "/WorkorderStatusTransitions/{id}",
17693
17947
  ...options,
17694
17948
  headers: {
17695
17949
  "Content-Type": "application/json",
@@ -17698,38 +17952,141 @@ var TimeLogReportService = class {
17698
17952
  });
17699
17953
  }
17700
17954
  /**
17701
- * check if user have open timer
17955
+ * Count instances of the model matched by where from the data source.
17702
17956
  */
17703
- static checkForUserOpenTimer(options) {
17957
+ static count(options) {
17704
17958
  return (options?.client ?? client).get({
17705
- url: "/TimeLogReports/checkForUserOpenTimer",
17959
+ url: "/WorkorderStatusTransitions/count",
17706
17960
  ...options
17707
17961
  });
17708
17962
  }
17709
17963
  /**
17710
- * add time log
17964
+ * get Fields by field ids
17711
17965
  */
17712
- static updateTimeRecord(options) {
17713
- return (options.client ?? client).post({
17714
- url: "/TimeLogReports/updateTimeRecord",
17715
- ...options,
17716
- headers: {
17717
- "Content-Type": "application/json",
17718
- ...options.headers
17719
- }
17966
+ static getFieldsByFieldIds(options) {
17967
+ return (options.client ?? client).get({
17968
+ url: "/WorkorderStatusTransitions/getFieldsByFieldIds",
17969
+ ...options
17720
17970
  });
17721
17971
  }
17722
17972
  /**
17723
- * approve time log
17973
+ * get Transition by id
17724
17974
  */
17725
- static approveTimeRecord(options) {
17726
- return (options.client ?? client).post({
17727
- url: "/TimeLogReports/approveTimeRecord",
17728
- ...options,
17729
- headers: {
17730
- "Content-Type": "application/json",
17731
- ...options.headers
17732
- }
17975
+ static getTransitionWithFields(options) {
17976
+ return (options.client ?? client).get({
17977
+ url: "/WorkorderStatusTransitions/getTransitionWithFields",
17978
+ ...options
17979
+ });
17980
+ }
17981
+ /**
17982
+ * get Transition by source and target status
17983
+ */
17984
+ static getTransitionBySourceAndTargetStatus(options) {
17985
+ return (options.client ?? client).get({
17986
+ url: "/WorkorderStatusTransitions/getTransitionBySourceAndTargetStatus",
17987
+ ...options
17988
+ });
17989
+ }
17990
+ };
17991
+ var TimeLogReportService = class {
17992
+ /**
17993
+ * Find all instances of the model matched by filter from the data source.
17994
+ */
17995
+ static find(options) {
17996
+ return (options?.client ?? client).get({
17997
+ responseTransformer: timeLogReportFindResponseTransformer,
17998
+ url: "/TimeLogReports",
17999
+ ...options
18000
+ });
18001
+ }
18002
+ /**
18003
+ * Create a new instance of the model and persist it into the data source.
18004
+ */
18005
+ static create(options) {
18006
+ return (options?.client ?? client).post({
18007
+ responseTransformer: timeLogReportCreateResponseTransformer,
18008
+ url: "/TimeLogReports",
18009
+ ...options,
18010
+ headers: {
18011
+ "Content-Type": "application/json",
18012
+ ...options?.headers
18013
+ }
18014
+ });
18015
+ }
18016
+ /**
18017
+ * Find first instance of the model matched by filter from the data source.
18018
+ */
18019
+ static findOne(options) {
18020
+ return (options?.client ?? client).get({
18021
+ responseTransformer: timeLogReportFindOneResponseTransformer,
18022
+ url: "/TimeLogReports/findOne",
18023
+ ...options
18024
+ });
18025
+ }
18026
+ /**
18027
+ * Delete a model instance by {{id}} from the data source.
18028
+ */
18029
+ static deleteById(options) {
18030
+ return (options.client ?? client).delete({
18031
+ url: "/TimeLogReports/{id}",
18032
+ ...options
18033
+ });
18034
+ }
18035
+ /**
18036
+ * Count instances of the model matched by where from the data source.
18037
+ */
18038
+ static count(options) {
18039
+ return (options?.client ?? client).get({
18040
+ url: "/TimeLogReports/count",
18041
+ ...options
18042
+ });
18043
+ }
18044
+ /**
18045
+ * add time log
18046
+ */
18047
+ static addTimeRecord(options) {
18048
+ return (options.client ?? client).post({
18049
+ url: "/TimeLogReports/addTimeRecord",
18050
+ ...options,
18051
+ headers: {
18052
+ "Content-Type": "application/json",
18053
+ ...options.headers
18054
+ }
18055
+ });
18056
+ }
18057
+ /**
18058
+ * check if user have open timer
18059
+ */
18060
+ static checkForUserOpenTimer(options) {
18061
+ return (options?.client ?? client).get({
18062
+ url: "/TimeLogReports/checkForUserOpenTimer",
18063
+ ...options
18064
+ });
18065
+ }
18066
+ /**
18067
+ * add time log
18068
+ */
18069
+ static updateTimeRecord(options) {
18070
+ return (options.client ?? client).post({
18071
+ url: "/TimeLogReports/updateTimeRecord",
18072
+ ...options,
18073
+ headers: {
18074
+ "Content-Type": "application/json",
18075
+ ...options.headers
18076
+ }
18077
+ });
18078
+ }
18079
+ /**
18080
+ * approve time log
18081
+ */
18082
+ static approveTimeRecord(options) {
18083
+ return (options.client ?? client).post({
18084
+ url: "/TimeLogReports/approveTimeRecord",
18085
+ ...options,
18086
+ headers: {
18087
+ "Content-Type": "application/json",
18088
+ ...options.headers
18089
+ }
17733
18090
  });
17734
18091
  }
17735
18092
  /**
@@ -20725,6 +21082,589 @@ var IntegrationBuilderService = class {
20725
21082
  });
20726
21083
  }
20727
21084
  };
21085
+ var SqlServerService = class {
21086
+ /**
21087
+ * Fetches belongsTo relation user.
21088
+ */
21089
+ static prototypeGetUser(options) {
21090
+ return (options.client ?? client).get({
21091
+ responseTransformer: sqlServerPrototypeGetUserResponseTransformer,
21092
+ url: "/SqlServers/{id}/user",
21093
+ ...options
21094
+ });
21095
+ }
21096
+ /**
21097
+ * Find all instances of the model matched by filter from the data source.
21098
+ */
21099
+ static find(options) {
21100
+ return (options?.client ?? client).get({
21101
+ responseTransformer: sqlServerFindResponseTransformer,
21102
+ url: "/SqlServers",
21103
+ ...options
21104
+ });
21105
+ }
21106
+ /**
21107
+ * Patch an existing model instance or insert a new one into the data source.
21108
+ */
21109
+ static patchOrCreate(options) {
21110
+ return (options?.client ?? client).patch({
21111
+ responseTransformer: sqlServerPatchOrCreateResponseTransformer,
21112
+ url: "/SqlServers",
21113
+ ...options,
21114
+ headers: {
21115
+ "Content-Type": "application/json",
21116
+ ...options?.headers
21117
+ }
21118
+ });
21119
+ }
21120
+ /**
21121
+ * Create a new instance of the model and persist it into the data source.
21122
+ */
21123
+ static create(options) {
21124
+ return (options?.client ?? client).post({
21125
+ responseTransformer: sqlServerCreateResponseTransformer,
21126
+ url: "/SqlServers",
21127
+ ...options,
21128
+ headers: {
21129
+ "Content-Type": "application/json",
21130
+ ...options?.headers
21131
+ }
21132
+ });
21133
+ }
21134
+ /**
21135
+ * Replace an existing model instance or insert a new one into the data source.
21136
+ */
21137
+ static replaceOrCreatePutSqlServers(options) {
21138
+ return (options?.client ?? client).put({
21139
+ responseTransformer: sqlServerReplaceOrCreatePutSqlServersResponseTransformer,
21140
+ url: "/SqlServers",
21141
+ ...options,
21142
+ headers: {
21143
+ "Content-Type": "application/json",
21144
+ ...options?.headers
21145
+ }
21146
+ });
21147
+ }
21148
+ /**
21149
+ * Replace an existing model instance or insert a new one into the data source.
21150
+ */
21151
+ static replaceOrCreatePostSqlServersReplaceOrCreate(options) {
21152
+ return (options?.client ?? client).post({
21153
+ responseTransformer: sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer,
21154
+ url: "/SqlServers/replaceOrCreate",
21155
+ ...options,
21156
+ headers: {
21157
+ "Content-Type": "application/json",
21158
+ ...options?.headers
21159
+ }
21160
+ });
21161
+ }
21162
+ /**
21163
+ * Update an existing model instance or insert a new one into the data source based on the where criteria.
21164
+ */
21165
+ static upsertWithWhere(options) {
21166
+ return (options?.client ?? client).post({
21167
+ responseTransformer: sqlServerUpsertWithWhereResponseTransformer,
21168
+ url: "/SqlServers/upsertWithWhere",
21169
+ ...options,
21170
+ headers: {
21171
+ "Content-Type": "application/json",
21172
+ ...options?.headers
21173
+ }
21174
+ });
21175
+ }
21176
+ /**
21177
+ * Check whether a model instance exists in the data source.
21178
+ */
21179
+ static existsGetSqlServersIdExists(options) {
21180
+ return (options.client ?? client).get({
21181
+ url: "/SqlServers/{id}/exists",
21182
+ ...options
21183
+ });
21184
+ }
21185
+ /**
21186
+ * Delete a model instance by {{id}} from the data source.
21187
+ */
21188
+ static deleteById(options) {
21189
+ return (options.client ?? client).delete({
21190
+ url: "/SqlServers/{id}",
21191
+ ...options
21192
+ });
21193
+ }
21194
+ /**
21195
+ * Find a model instance by {{id}} from the data source.
21196
+ */
21197
+ static findById(options) {
21198
+ return (options.client ?? client).get({
21199
+ responseTransformer: sqlServerFindByIdResponseTransformer,
21200
+ url: "/SqlServers/{id}",
21201
+ ...options
21202
+ });
21203
+ }
21204
+ /**
21205
+ * Check whether a model instance exists in the data source.
21206
+ */
21207
+ static existsHeadSqlServersId(options) {
21208
+ return (options.client ?? client).head({
21209
+ url: "/SqlServers/{id}",
21210
+ ...options
21211
+ });
21212
+ }
21213
+ /**
21214
+ * Patch attributes for a model instance and persist it into the data source.
21215
+ */
21216
+ static prototypePatchAttributes(options) {
21217
+ return (options.client ?? client).patch({
21218
+ responseTransformer: sqlServerPrototypePatchAttributesResponseTransformer,
21219
+ url: "/SqlServers/{id}",
21220
+ ...options,
21221
+ headers: {
21222
+ "Content-Type": "application/json",
21223
+ ...options.headers
21224
+ }
21225
+ });
21226
+ }
21227
+ /**
21228
+ * Replace attributes for a model instance and persist it into the data source.
21229
+ */
21230
+ static replaceByIdPutSqlServersId(options) {
21231
+ return (options.client ?? client).put({
21232
+ responseTransformer: sqlServerReplaceByIdPutSqlServersIdResponseTransformer,
21233
+ url: "/SqlServers/{id}",
21234
+ ...options,
21235
+ headers: {
21236
+ "Content-Type": "application/json",
21237
+ ...options.headers
21238
+ }
21239
+ });
21240
+ }
21241
+ /**
21242
+ * Replace attributes for a model instance and persist it into the data source.
21243
+ */
21244
+ static replaceByIdPostSqlServersIdReplace(options) {
21245
+ return (options.client ?? client).post({
21246
+ responseTransformer: sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer,
21247
+ url: "/SqlServers/{id}/replace",
21248
+ ...options,
21249
+ headers: {
21250
+ "Content-Type": "application/json",
21251
+ ...options.headers
21252
+ }
21253
+ });
21254
+ }
21255
+ /**
21256
+ * Find first instance of the model matched by filter from the data source.
21257
+ */
21258
+ static findOne(options) {
21259
+ return (options?.client ?? client).get({
21260
+ responseTransformer: sqlServerFindOneResponseTransformer,
21261
+ url: "/SqlServers/findOne",
21262
+ ...options
21263
+ });
21264
+ }
21265
+ /**
21266
+ * Update instances of the model matched by {{where}} from the data source.
21267
+ */
21268
+ static updateAll(options) {
21269
+ return (options?.client ?? client).post({
21270
+ url: "/SqlServers/update",
21271
+ ...options,
21272
+ headers: {
21273
+ "Content-Type": "application/json",
21274
+ ...options?.headers
21275
+ }
21276
+ });
21277
+ }
21278
+ /**
21279
+ * Count instances of the model matched by where from the data source.
21280
+ */
21281
+ static count(options) {
21282
+ return (options?.client ?? client).get({
21283
+ url: "/SqlServers/count",
21284
+ ...options
21285
+ });
21286
+ }
21287
+ /**
21288
+ * Add a parameter to SQL server
21289
+ */
21290
+ static addParameter(options) {
21291
+ return (options.client ?? client).post({
21292
+ url: "/SqlServers/addParameter",
21293
+ ...options,
21294
+ headers: {
21295
+ "Content-Type": "application/json",
21296
+ ...options.headers
21297
+ }
21298
+ });
21299
+ }
21300
+ /**
21301
+ * Update a parameter in SQL server
21302
+ */
21303
+ static updateParameter(options) {
21304
+ return (options.client ?? client).put({
21305
+ url: "/SqlServers/updateParameter",
21306
+ ...options,
21307
+ headers: {
21308
+ "Content-Type": "application/json",
21309
+ ...options.headers
21310
+ }
21311
+ });
21312
+ }
21313
+ /**
21314
+ * Delete a parameter from SQL server
21315
+ */
21316
+ static deleteParameter(options) {
21317
+ return (options.client ?? client).delete({
21318
+ url: "/SqlServers/deleteParameter",
21319
+ ...options,
21320
+ headers: {
21321
+ "Content-Type": "application/json",
21322
+ ...options.headers
21323
+ }
21324
+ });
21325
+ }
21326
+ /**
21327
+ * Test connection to SQL server
21328
+ */
21329
+ static testConnection(options) {
21330
+ return (options.client ?? client).post({
21331
+ url: "/SqlServers/testConnection",
21332
+ ...options,
21333
+ headers: {
21334
+ "Content-Type": "application/json",
21335
+ ...options.headers
21336
+ }
21337
+ });
21338
+ }
21339
+ /**
21340
+ * Test parameter query on SQL server
21341
+ */
21342
+ static testQuery(options) {
21343
+ return (options.client ?? client).post({
21344
+ url: "/SqlServers/testQuery",
21345
+ ...options,
21346
+ headers: {
21347
+ "Content-Type": "application/json",
21348
+ ...options.headers
21349
+ }
21350
+ });
21351
+ }
21352
+ /**
21353
+ * Read parameter value from SQL server
21354
+ */
21355
+ static read(options) {
21356
+ return (options.client ?? client).post({
21357
+ url: "/SqlServers/read",
21358
+ ...options,
21359
+ headers: {
21360
+ "Content-Type": "application/json",
21361
+ ...options.headers
21362
+ }
21363
+ });
21364
+ }
21365
+ /**
21366
+ * Count with deleted instances of the model matched by where from the data source.
21367
+ */
21368
+ static countWithDeleted(options) {
21369
+ return (options?.client ?? client).get({
21370
+ url: "/SqlServers/countWithDeleted",
21371
+ ...options
21372
+ });
21373
+ }
21374
+ };
21375
+ var ChatThreadService = class {
21376
+ /**
21377
+ * Fetches belongsTo relation user.
21378
+ */
21379
+ static prototypeGetUser(options) {
21380
+ return (options.client ?? client).get({
21381
+ responseTransformer: chatThreadPrototypeGetUserResponseTransformer,
21382
+ url: "/ChatThreads/{id}/user",
21383
+ ...options
21384
+ });
21385
+ }
21386
+ /**
21387
+ * Find all instances of the model matched by filter from the data source.
21388
+ */
21389
+ static find(options) {
21390
+ return (options?.client ?? client).get({
21391
+ responseTransformer: chatThreadFindResponseTransformer,
21392
+ url: "/ChatThreads",
21393
+ ...options
21394
+ });
21395
+ }
21396
+ /**
21397
+ * Patch an existing model instance or insert a new one into the data source.
21398
+ */
21399
+ static patchOrCreate(options) {
21400
+ return (options?.client ?? client).patch({
21401
+ responseTransformer: chatThreadPatchOrCreateResponseTransformer,
21402
+ url: "/ChatThreads",
21403
+ ...options,
21404
+ headers: {
21405
+ "Content-Type": "application/json",
21406
+ ...options?.headers
21407
+ }
21408
+ });
21409
+ }
21410
+ /**
21411
+ * Create a new instance of the model and persist it into the data source.
21412
+ */
21413
+ static create(options) {
21414
+ return (options?.client ?? client).post({
21415
+ responseTransformer: chatThreadCreateResponseTransformer,
21416
+ url: "/ChatThreads",
21417
+ ...options,
21418
+ headers: {
21419
+ "Content-Type": "application/json",
21420
+ ...options?.headers
21421
+ }
21422
+ });
21423
+ }
21424
+ /**
21425
+ * Replace an existing model instance or insert a new one into the data source.
21426
+ */
21427
+ static replaceOrCreatePutChatThreads(options) {
21428
+ return (options?.client ?? client).put({
21429
+ responseTransformer: chatThreadReplaceOrCreatePutChatThreadsResponseTransformer,
21430
+ url: "/ChatThreads",
21431
+ ...options,
21432
+ headers: {
21433
+ "Content-Type": "application/json",
21434
+ ...options?.headers
21435
+ }
21436
+ });
21437
+ }
21438
+ /**
21439
+ * Replace an existing model instance or insert a new one into the data source.
21440
+ */
21441
+ static replaceOrCreatePostChatThreadsReplaceOrCreate(options) {
21442
+ return (options?.client ?? client).post({
21443
+ responseTransformer: chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer,
21444
+ url: "/ChatThreads/replaceOrCreate",
21445
+ ...options,
21446
+ headers: {
21447
+ "Content-Type": "application/json",
21448
+ ...options?.headers
21449
+ }
21450
+ });
21451
+ }
21452
+ /**
21453
+ * Update an existing model instance or insert a new one into the data source based on the where criteria.
21454
+ */
21455
+ static upsertWithWhere(options) {
21456
+ return (options?.client ?? client).post({
21457
+ responseTransformer: chatThreadUpsertWithWhereResponseTransformer,
21458
+ url: "/ChatThreads/upsertWithWhere",
21459
+ ...options,
21460
+ headers: {
21461
+ "Content-Type": "application/json",
21462
+ ...options?.headers
21463
+ }
21464
+ });
21465
+ }
21466
+ /**
21467
+ * Check whether a model instance exists in the data source.
21468
+ */
21469
+ static existsGetChatThreadsIdExists(options) {
21470
+ return (options.client ?? client).get({
21471
+ url: "/ChatThreads/{id}/exists",
21472
+ ...options
21473
+ });
21474
+ }
21475
+ /**
21476
+ * Delete a model instance by {{id}} from the data source.
21477
+ */
21478
+ static deleteById(options) {
21479
+ return (options.client ?? client).delete({
21480
+ url: "/ChatThreads/{id}",
21481
+ ...options
21482
+ });
21483
+ }
21484
+ /**
21485
+ * Find a model instance by {{id}} from the data source.
21486
+ */
21487
+ static findById(options) {
21488
+ return (options.client ?? client).get({
21489
+ responseTransformer: chatThreadFindByIdResponseTransformer,
21490
+ url: "/ChatThreads/{id}",
21491
+ ...options
21492
+ });
21493
+ }
21494
+ /**
21495
+ * Check whether a model instance exists in the data source.
21496
+ */
21497
+ static existsHeadChatThreadsId(options) {
21498
+ return (options.client ?? client).head({
21499
+ url: "/ChatThreads/{id}",
21500
+ ...options
21501
+ });
21502
+ }
21503
+ /**
21504
+ * Patch attributes for a model instance and persist it into the data source.
21505
+ */
21506
+ static prototypePatchAttributes(options) {
21507
+ return (options.client ?? client).patch({
21508
+ responseTransformer: chatThreadPrototypePatchAttributesResponseTransformer,
21509
+ url: "/ChatThreads/{id}",
21510
+ ...options,
21511
+ headers: {
21512
+ "Content-Type": "application/json",
21513
+ ...options.headers
21514
+ }
21515
+ });
21516
+ }
21517
+ /**
21518
+ * Replace attributes for a model instance and persist it into the data source.
21519
+ */
21520
+ static replaceByIdPutChatThreadsId(options) {
21521
+ return (options.client ?? client).put({
21522
+ responseTransformer: chatThreadReplaceByIdPutChatThreadsIdResponseTransformer,
21523
+ url: "/ChatThreads/{id}",
21524
+ ...options,
21525
+ headers: {
21526
+ "Content-Type": "application/json",
21527
+ ...options.headers
21528
+ }
21529
+ });
21530
+ }
21531
+ /**
21532
+ * Replace attributes for a model instance and persist it into the data source.
21533
+ */
21534
+ static replaceByIdPostChatThreadsIdReplace(options) {
21535
+ return (options.client ?? client).post({
21536
+ responseTransformer: chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer,
21537
+ url: "/ChatThreads/{id}/replace",
21538
+ ...options,
21539
+ headers: {
21540
+ "Content-Type": "application/json",
21541
+ ...options.headers
21542
+ }
21543
+ });
21544
+ }
21545
+ /**
21546
+ * Find first instance of the model matched by filter from the data source.
21547
+ */
21548
+ static findOne(options) {
21549
+ return (options?.client ?? client).get({
21550
+ responseTransformer: chatThreadFindOneResponseTransformer,
21551
+ url: "/ChatThreads/findOne",
21552
+ ...options
21553
+ });
21554
+ }
21555
+ /**
21556
+ * Update instances of the model matched by {{where}} from the data source.
21557
+ */
21558
+ static updateAll(options) {
21559
+ return (options?.client ?? client).post({
21560
+ url: "/ChatThreads/update",
21561
+ ...options,
21562
+ headers: {
21563
+ "Content-Type": "application/json",
21564
+ ...options?.headers
21565
+ }
21566
+ });
21567
+ }
21568
+ /**
21569
+ * Count instances of the model matched by where from the data source.
21570
+ */
21571
+ static count(options) {
21572
+ return (options?.client ?? client).get({
21573
+ url: "/ChatThreads/count",
21574
+ ...options
21575
+ });
21576
+ }
21577
+ static getThreads(options) {
21578
+ return (options?.client ?? client).get({
21579
+ url: "/ChatThreads/getThreads",
21580
+ ...options
21581
+ });
21582
+ }
21583
+ static createThread(options) {
21584
+ return (options.client ?? client).post({
21585
+ url: "/ChatThreads/createThread",
21586
+ ...options,
21587
+ headers: {
21588
+ "Content-Type": "application/json",
21589
+ ...options.headers
21590
+ }
21591
+ });
21592
+ }
21593
+ static updateThread(options) {
21594
+ return (options.client ?? client).post({
21595
+ url: "/ChatThreads/updateThread",
21596
+ ...options,
21597
+ headers: {
21598
+ "Content-Type": "application/json",
21599
+ ...options.headers
21600
+ }
21601
+ });
21602
+ }
21603
+ static loadThread(options) {
21604
+ return (options.client ?? client).get({
21605
+ url: "/ChatThreads/loadThread",
21606
+ ...options
21607
+ });
21608
+ }
21609
+ };
21610
+ var CommandPaletteHistoryService = class {
21611
+ /**
21612
+ * Find all instances of the model matched by filter from the data source.
21613
+ */
21614
+ static find(options) {
21615
+ return (options?.client ?? client).get({
21616
+ responseTransformer: commandPaletteHistoryFindResponseTransformer,
21617
+ url: "/CommandPaletteHistories",
21618
+ ...options
21619
+ });
21620
+ }
21621
+ /**
21622
+ * Create a new instance of the model and persist it into the data source.
21623
+ */
21624
+ static create(options) {
21625
+ return (options?.client ?? client).post({
21626
+ responseTransformer: commandPaletteHistoryCreateResponseTransformer,
21627
+ url: "/CommandPaletteHistories",
21628
+ ...options,
21629
+ headers: {
21630
+ "Content-Type": "application/json",
21631
+ ...options?.headers
21632
+ }
21633
+ });
21634
+ }
21635
+ /**
21636
+ * Delete a model instance by {{id}} from the data source.
21637
+ */
21638
+ static deleteById(options) {
21639
+ return (options.client ?? client).delete({
21640
+ url: "/CommandPaletteHistories/{id}",
21641
+ ...options
21642
+ });
21643
+ }
21644
+ /**
21645
+ * Patch attributes for a model instance and persist it into the data source.
21646
+ */
21647
+ static prototypePatchAttributes(options) {
21648
+ return (options.client ?? client).patch({
21649
+ responseTransformer: commandPaletteHistoryPrototypePatchAttributesResponseTransformer,
21650
+ url: "/CommandPaletteHistories/{id}",
21651
+ ...options,
21652
+ headers: {
21653
+ "Content-Type": "application/json",
21654
+ ...options.headers
21655
+ }
21656
+ });
21657
+ }
21658
+ /**
21659
+ * Count instances of the model matched by where from the data source.
21660
+ */
21661
+ static count(options) {
21662
+ return (options?.client ?? client).get({
21663
+ url: "/CommandPaletteHistories/count",
21664
+ ...options
21665
+ });
21666
+ }
21667
+ };
20728
21668
 
20729
21669
  // src/index.ts
20730
21670
  var log = (0, import_debug.default)("nextplus:sdk");