@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.
@@ -460,6 +460,9 @@ var resourceSchemaResponseTransformer = (data) => {
460
460
  if (data.serverModified) {
461
461
  data.serverModified = new Date(data.serverModified);
462
462
  }
463
+ if (data.deletedAt) {
464
+ data.deletedAt = new Date(data.deletedAt);
465
+ }
463
466
  return data;
464
467
  };
465
468
  var partAssemblyPrototypeGetImageObjectResponseTransformer = async (data) => {
@@ -3422,6 +3425,36 @@ var workorderStatusFindOneResponseTransformer = async (data) => {
3422
3425
  data = workorderStatusSchemaResponseTransformer(data);
3423
3426
  return data;
3424
3427
  };
3428
+ var workorderStatusTransitionSchemaResponseTransformer = (data) => {
3429
+ if (data.created) {
3430
+ data.created = new Date(data.created);
3431
+ }
3432
+ if (data.modified) {
3433
+ data.modified = new Date(data.modified);
3434
+ }
3435
+ if (data.serverModified) {
3436
+ data.serverModified = new Date(data.serverModified);
3437
+ }
3438
+ return data;
3439
+ };
3440
+ var workorderStatusTransitionFindResponseTransformer = async (data) => {
3441
+ data = data.map((item) => {
3442
+ return workorderStatusTransitionSchemaResponseTransformer(item);
3443
+ });
3444
+ return data;
3445
+ };
3446
+ var workorderStatusTransitionCreateResponseTransformer = async (data) => {
3447
+ data = workorderStatusTransitionSchemaResponseTransformer(data);
3448
+ return data;
3449
+ };
3450
+ var workorderStatusTransitionFindOneResponseTransformer = async (data) => {
3451
+ data = workorderStatusTransitionSchemaResponseTransformer(data);
3452
+ return data;
3453
+ };
3454
+ var workorderStatusTransitionPrototypePatchAttributesResponseTransformer = async (data) => {
3455
+ data = workorderStatusTransitionSchemaResponseTransformer(data);
3456
+ return data;
3457
+ };
3425
3458
  var timeLogReportSchemaResponseTransformer = (data) => {
3426
3459
  if (data.start) {
3427
3460
  data.start = new Date(data.start);
@@ -4323,6 +4356,163 @@ var addonFindOneResponseTransformer = async (data) => {
4323
4356
  data = addonSchemaResponseTransformer(data);
4324
4357
  return data;
4325
4358
  };
4359
+ var sqlServerPrototypeGetUserResponseTransformer = async (data) => {
4360
+ data = userModelSchemaResponseTransformer(data);
4361
+ return data;
4362
+ };
4363
+ var sqlServerSchemaResponseTransformer = (data) => {
4364
+ if (data.created) {
4365
+ data.created = new Date(data.created);
4366
+ }
4367
+ if (data.modified) {
4368
+ data.modified = new Date(data.modified);
4369
+ }
4370
+ if (data.serverModified) {
4371
+ data.serverModified = new Date(data.serverModified);
4372
+ }
4373
+ if (data.deletedAt) {
4374
+ data.deletedAt = new Date(data.deletedAt);
4375
+ }
4376
+ return data;
4377
+ };
4378
+ var sqlServerFindResponseTransformer = async (data) => {
4379
+ data = data.map((item) => {
4380
+ return sqlServerSchemaResponseTransformer(item);
4381
+ });
4382
+ return data;
4383
+ };
4384
+ var sqlServerPatchOrCreateResponseTransformer = async (data) => {
4385
+ data = sqlServerSchemaResponseTransformer(data);
4386
+ return data;
4387
+ };
4388
+ var sqlServerCreateResponseTransformer = async (data) => {
4389
+ data = sqlServerSchemaResponseTransformer(data);
4390
+ return data;
4391
+ };
4392
+ var sqlServerReplaceOrCreatePutSqlServersResponseTransformer = async (data) => {
4393
+ data = sqlServerSchemaResponseTransformer(data);
4394
+ return data;
4395
+ };
4396
+ var sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer = async (data) => {
4397
+ data = sqlServerSchemaResponseTransformer(data);
4398
+ return data;
4399
+ };
4400
+ var sqlServerUpsertWithWhereResponseTransformer = async (data) => {
4401
+ data = sqlServerSchemaResponseTransformer(data);
4402
+ return data;
4403
+ };
4404
+ var sqlServerFindByIdResponseTransformer = async (data) => {
4405
+ data = sqlServerSchemaResponseTransformer(data);
4406
+ return data;
4407
+ };
4408
+ var sqlServerPrototypePatchAttributesResponseTransformer = async (data) => {
4409
+ data = sqlServerSchemaResponseTransformer(data);
4410
+ return data;
4411
+ };
4412
+ var sqlServerReplaceByIdPutSqlServersIdResponseTransformer = async (data) => {
4413
+ data = sqlServerSchemaResponseTransformer(data);
4414
+ return data;
4415
+ };
4416
+ var sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer = async (data) => {
4417
+ data = sqlServerSchemaResponseTransformer(data);
4418
+ return data;
4419
+ };
4420
+ var sqlServerFindOneResponseTransformer = async (data) => {
4421
+ data = sqlServerSchemaResponseTransformer(data);
4422
+ return data;
4423
+ };
4424
+ var chatThreadPrototypeGetUserResponseTransformer = async (data) => {
4425
+ data = userModelSchemaResponseTransformer(data);
4426
+ return data;
4427
+ };
4428
+ var chatThreadSchemaResponseTransformer = (data) => {
4429
+ if (data.created) {
4430
+ data.created = new Date(data.created);
4431
+ }
4432
+ if (data.modified) {
4433
+ data.modified = new Date(data.modified);
4434
+ }
4435
+ if (data.serverModified) {
4436
+ data.serverModified = new Date(data.serverModified);
4437
+ }
4438
+ return data;
4439
+ };
4440
+ var chatThreadFindResponseTransformer = async (data) => {
4441
+ data = data.map((item) => {
4442
+ return chatThreadSchemaResponseTransformer(item);
4443
+ });
4444
+ return data;
4445
+ };
4446
+ var chatThreadPatchOrCreateResponseTransformer = async (data) => {
4447
+ data = chatThreadSchemaResponseTransformer(data);
4448
+ return data;
4449
+ };
4450
+ var chatThreadCreateResponseTransformer = async (data) => {
4451
+ data = chatThreadSchemaResponseTransformer(data);
4452
+ return data;
4453
+ };
4454
+ var chatThreadReplaceOrCreatePutChatThreadsResponseTransformer = async (data) => {
4455
+ data = chatThreadSchemaResponseTransformer(data);
4456
+ return data;
4457
+ };
4458
+ var chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer = async (data) => {
4459
+ data = chatThreadSchemaResponseTransformer(data);
4460
+ return data;
4461
+ };
4462
+ var chatThreadUpsertWithWhereResponseTransformer = async (data) => {
4463
+ data = chatThreadSchemaResponseTransformer(data);
4464
+ return data;
4465
+ };
4466
+ var chatThreadFindByIdResponseTransformer = async (data) => {
4467
+ data = chatThreadSchemaResponseTransformer(data);
4468
+ return data;
4469
+ };
4470
+ var chatThreadPrototypePatchAttributesResponseTransformer = async (data) => {
4471
+ data = chatThreadSchemaResponseTransformer(data);
4472
+ return data;
4473
+ };
4474
+ var chatThreadReplaceByIdPutChatThreadsIdResponseTransformer = async (data) => {
4475
+ data = chatThreadSchemaResponseTransformer(data);
4476
+ return data;
4477
+ };
4478
+ var chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer = async (data) => {
4479
+ data = chatThreadSchemaResponseTransformer(data);
4480
+ return data;
4481
+ };
4482
+ var chatThreadFindOneResponseTransformer = async (data) => {
4483
+ data = chatThreadSchemaResponseTransformer(data);
4484
+ return data;
4485
+ };
4486
+ var commandPaletteHistorySchemaResponseTransformer = (data) => {
4487
+ data.lastVisited = new Date(data.lastVisited);
4488
+ if (data.created) {
4489
+ data.created = new Date(data.created);
4490
+ }
4491
+ if (data.modified) {
4492
+ data.modified = new Date(data.modified);
4493
+ }
4494
+ if (data.serverModified) {
4495
+ data.serverModified = new Date(data.serverModified);
4496
+ }
4497
+ if (data.deletedAt) {
4498
+ data.deletedAt = new Date(data.deletedAt);
4499
+ }
4500
+ return data;
4501
+ };
4502
+ var commandPaletteHistoryFindResponseTransformer = async (data) => {
4503
+ data = data.map((item) => {
4504
+ return commandPaletteHistorySchemaResponseTransformer(item);
4505
+ });
4506
+ return data;
4507
+ };
4508
+ var commandPaletteHistoryCreateResponseTransformer = async (data) => {
4509
+ data = commandPaletteHistorySchemaResponseTransformer(data);
4510
+ return data;
4511
+ };
4512
+ var commandPaletteHistoryPrototypePatchAttributesResponseTransformer = async (data) => {
4513
+ data = commandPaletteHistorySchemaResponseTransformer(data);
4514
+ return data;
4515
+ };
4326
4516
 
4327
4517
  // src/sdk/sdk.gen.ts
4328
4518
  var ContainerService = class {
@@ -8278,6 +8468,19 @@ var ResourceService = class {
8278
8468
  }
8279
8469
  });
8280
8470
  }
8471
+ /**
8472
+ * Delete file if not used on another session
8473
+ */
8474
+ static deleteFileIfNotUsed(options) {
8475
+ return (options.client ?? client).post({
8476
+ url: "/Resources/deleteFileIfNotUsed",
8477
+ ...options,
8478
+ headers: {
8479
+ "Content-Type": "application/json",
8480
+ ...options.headers
8481
+ }
8482
+ });
8483
+ }
8281
8484
  static processingFile(options) {
8282
8485
  return (options?.client ?? client).get({
8283
8486
  url: "/Resources/processingFile",
@@ -8293,6 +8496,37 @@ var ResourceService = class {
8293
8496
  ...options
8294
8497
  });
8295
8498
  }
8499
+ /**
8500
+ * Upload a file from base64 data
8501
+ */
8502
+ static uploadBase64(options) {
8503
+ return (options.client ?? client).post({
8504
+ url: "/Resources/uploadBase64",
8505
+ ...options,
8506
+ headers: {
8507
+ "Content-Type": "application/json",
8508
+ ...options.headers
8509
+ }
8510
+ });
8511
+ }
8512
+ /**
8513
+ * Get file as base64-encoded buffer in JSON response
8514
+ */
8515
+ static getFileAsBuffer(options) {
8516
+ return (options.client ?? client).get({
8517
+ url: "/Resources/buffer/{id}",
8518
+ ...options
8519
+ });
8520
+ }
8521
+ /**
8522
+ * Count with deleted instances of the model matched by where from the data source.
8523
+ */
8524
+ static countWithDeleted(options) {
8525
+ return (options?.client ?? client).get({
8526
+ url: "/Resources/countWithDeleted",
8527
+ ...options
8528
+ });
8529
+ }
8296
8530
  };
8297
8531
  var WorkflowService = class {
8298
8532
  /**
@@ -9291,6 +9525,16 @@ var WorkflowService = class {
9291
9525
  }
9292
9526
  });
9293
9527
  }
9528
+ static prototypeImportFromZip(options) {
9529
+ return (options.client ?? client).post({
9530
+ url: "/Workflows/{id}/importFromZip",
9531
+ ...options,
9532
+ headers: {
9533
+ "Content-Type": "application/json",
9534
+ ...options.headers
9535
+ }
9536
+ });
9537
+ }
9294
9538
  /**
9295
9539
  * Fork a workflow
9296
9540
  */
@@ -10929,6 +11173,19 @@ var ToolService = class {
10929
11173
  ...options
10930
11174
  });
10931
11175
  }
11176
+ /**
11177
+ * Import tools and serials from CSV-like data with validation
11178
+ */
11179
+ static importTools(options) {
11180
+ return (options.client ?? client).post({
11181
+ url: "/Tools/import",
11182
+ ...options,
11183
+ headers: {
11184
+ "Content-Type": "application/json",
11185
+ ...options.headers
11186
+ }
11187
+ });
11188
+ }
10932
11189
  static exportTranslations(options) {
10933
11190
  return (options.client ?? client).get({
10934
11191
  url: "/Tools/exportTranslations",
@@ -11315,6 +11572,15 @@ var WorkorderService = class {
11315
11572
  ...options
11316
11573
  });
11317
11574
  }
11575
+ /**
11576
+ * Get status change history for a workorder
11577
+ */
11578
+ static getStatusHistory(options) {
11579
+ return (options.client ?? client).get({
11580
+ url: "/Workorders/getStatusHistory",
11581
+ ...options
11582
+ });
11583
+ }
11318
11584
  /**
11319
11585
  * Work on a specific stock
11320
11586
  */
@@ -14527,6 +14793,16 @@ var FormDataService = class {
14527
14793
  }
14528
14794
  });
14529
14795
  }
14796
+ static updateFormData(options) {
14797
+ return (options.client ?? client).patch({
14798
+ url: "/FormData/updateFormData/{formDataId}",
14799
+ ...options,
14800
+ headers: {
14801
+ "Content-Type": "application/json",
14802
+ ...options.headers
14803
+ }
14804
+ });
14805
+ }
14530
14806
  };
14531
14807
  var FolderService = class {
14532
14808
  /**
@@ -16849,24 +17125,6 @@ var WorkorderStatusService = class {
16849
17125
  }
16850
17126
  });
16851
17127
  }
16852
- /**
16853
- * get Current Status Fields
16854
- */
16855
- static getFieldsByFieldIds(options) {
16856
- return (options.client ?? client).get({
16857
- url: "/WorkorderStatuses/getFieldsByFieldIds",
16858
- ...options
16859
- });
16860
- }
16861
- /**
16862
- * check user status change permission
16863
- */
16864
- static checkPermission(options) {
16865
- return (options.client ?? client).get({
16866
- url: "/WorkorderStatuses/checkPermission",
16867
- ...options
16868
- });
16869
- }
16870
17128
  /**
16871
17129
  * Change workorder status
16872
17130
  */
@@ -16894,11 +17152,11 @@ var WorkorderStatusService = class {
16894
17152
  });
16895
17153
  }
16896
17154
  /**
16897
- * bulk workorder status change
17155
+ * delete Workorder Status
16898
17156
  */
16899
- static bulkWorkorderStatusChange(options) {
17157
+ static deleteWorkorderStatus(options) {
16900
17158
  return (options.client ?? client).post({
16901
- url: "/WorkorderStatuses/bulkWorkorderStatusChange",
17159
+ url: "/WorkorderStatuses/deleteWorkorderStatus",
16902
17160
  ...options,
16903
17161
  headers: {
16904
17162
  "Content-Type": "application/json",
@@ -16907,14 +17165,14 @@ var WorkorderStatusService = class {
16907
17165
  });
16908
17166
  }
16909
17167
  };
16910
- var TimeLogReportService = class {
17168
+ var WorkorderStatusTransitionService = class {
16911
17169
  /**
16912
17170
  * Find all instances of the model matched by filter from the data source.
16913
17171
  */
16914
17172
  static find(options) {
16915
17173
  return (options?.client ?? client).get({
16916
- responseTransformer: timeLogReportFindResponseTransformer,
16917
- url: "/TimeLogReports",
17174
+ responseTransformer: workorderStatusTransitionFindResponseTransformer,
17175
+ url: "/WorkorderStatusTransitions",
16918
17176
  ...options
16919
17177
  });
16920
17178
  }
@@ -16923,8 +17181,8 @@ var TimeLogReportService = class {
16923
17181
  */
16924
17182
  static create(options) {
16925
17183
  return (options?.client ?? client).post({
16926
- responseTransformer: timeLogReportCreateResponseTransformer,
16927
- url: "/TimeLogReports",
17184
+ responseTransformer: workorderStatusTransitionCreateResponseTransformer,
17185
+ url: "/WorkorderStatusTransitions",
16928
17186
  ...options,
16929
17187
  headers: {
16930
17188
  "Content-Type": "application/json",
@@ -16937,8 +17195,8 @@ var TimeLogReportService = class {
16937
17195
  */
16938
17196
  static findOne(options) {
16939
17197
  return (options?.client ?? client).get({
16940
- responseTransformer: timeLogReportFindOneResponseTransformer,
16941
- url: "/TimeLogReports/findOne",
17198
+ responseTransformer: workorderStatusTransitionFindOneResponseTransformer,
17199
+ url: "/WorkorderStatusTransitions/findOne",
16942
17200
  ...options
16943
17201
  });
16944
17202
  }
@@ -16947,25 +17205,17 @@ var TimeLogReportService = class {
16947
17205
  */
16948
17206
  static deleteById(options) {
16949
17207
  return (options.client ?? client).delete({
16950
- url: "/TimeLogReports/{id}",
16951
- ...options
16952
- });
16953
- }
16954
- /**
16955
- * Count instances of the model matched by where from the data source.
16956
- */
16957
- static count(options) {
16958
- return (options?.client ?? client).get({
16959
- url: "/TimeLogReports/count",
17208
+ url: "/WorkorderStatusTransitions/{id}",
16960
17209
  ...options
16961
17210
  });
16962
17211
  }
16963
17212
  /**
16964
- * add time log
17213
+ * Patch attributes for a model instance and persist it into the data source.
16965
17214
  */
16966
- static addTimeRecord(options) {
16967
- return (options.client ?? client).post({
16968
- url: "/TimeLogReports/addTimeRecord",
17215
+ static prototypePatchAttributes(options) {
17216
+ return (options.client ?? client).patch({
17217
+ responseTransformer: workorderStatusTransitionPrototypePatchAttributesResponseTransformer,
17218
+ url: "/WorkorderStatusTransitions/{id}",
16969
17219
  ...options,
16970
17220
  headers: {
16971
17221
  "Content-Type": "application/json",
@@ -16974,38 +17224,141 @@ var TimeLogReportService = class {
16974
17224
  });
16975
17225
  }
16976
17226
  /**
16977
- * check if user have open timer
17227
+ * Count instances of the model matched by where from the data source.
16978
17228
  */
16979
- static checkForUserOpenTimer(options) {
17229
+ static count(options) {
16980
17230
  return (options?.client ?? client).get({
16981
- url: "/TimeLogReports/checkForUserOpenTimer",
17231
+ url: "/WorkorderStatusTransitions/count",
16982
17232
  ...options
16983
17233
  });
16984
17234
  }
16985
17235
  /**
16986
- * add time log
17236
+ * get Fields by field ids
16987
17237
  */
16988
- static updateTimeRecord(options) {
16989
- return (options.client ?? client).post({
16990
- url: "/TimeLogReports/updateTimeRecord",
16991
- ...options,
16992
- headers: {
16993
- "Content-Type": "application/json",
16994
- ...options.headers
16995
- }
17238
+ static getFieldsByFieldIds(options) {
17239
+ return (options.client ?? client).get({
17240
+ url: "/WorkorderStatusTransitions/getFieldsByFieldIds",
17241
+ ...options
16996
17242
  });
16997
17243
  }
16998
17244
  /**
16999
- * approve time log
17245
+ * get Transition by id
17000
17246
  */
17001
- static approveTimeRecord(options) {
17002
- return (options.client ?? client).post({
17003
- url: "/TimeLogReports/approveTimeRecord",
17004
- ...options,
17005
- headers: {
17006
- "Content-Type": "application/json",
17007
- ...options.headers
17008
- }
17247
+ static getTransitionWithFields(options) {
17248
+ return (options.client ?? client).get({
17249
+ url: "/WorkorderStatusTransitions/getTransitionWithFields",
17250
+ ...options
17251
+ });
17252
+ }
17253
+ /**
17254
+ * get Transition by source and target status
17255
+ */
17256
+ static getTransitionBySourceAndTargetStatus(options) {
17257
+ return (options.client ?? client).get({
17258
+ url: "/WorkorderStatusTransitions/getTransitionBySourceAndTargetStatus",
17259
+ ...options
17260
+ });
17261
+ }
17262
+ };
17263
+ var TimeLogReportService = class {
17264
+ /**
17265
+ * Find all instances of the model matched by filter from the data source.
17266
+ */
17267
+ static find(options) {
17268
+ return (options?.client ?? client).get({
17269
+ responseTransformer: timeLogReportFindResponseTransformer,
17270
+ url: "/TimeLogReports",
17271
+ ...options
17272
+ });
17273
+ }
17274
+ /**
17275
+ * Create a new instance of the model and persist it into the data source.
17276
+ */
17277
+ static create(options) {
17278
+ return (options?.client ?? client).post({
17279
+ responseTransformer: timeLogReportCreateResponseTransformer,
17280
+ url: "/TimeLogReports",
17281
+ ...options,
17282
+ headers: {
17283
+ "Content-Type": "application/json",
17284
+ ...options?.headers
17285
+ }
17286
+ });
17287
+ }
17288
+ /**
17289
+ * Find first instance of the model matched by filter from the data source.
17290
+ */
17291
+ static findOne(options) {
17292
+ return (options?.client ?? client).get({
17293
+ responseTransformer: timeLogReportFindOneResponseTransformer,
17294
+ url: "/TimeLogReports/findOne",
17295
+ ...options
17296
+ });
17297
+ }
17298
+ /**
17299
+ * Delete a model instance by {{id}} from the data source.
17300
+ */
17301
+ static deleteById(options) {
17302
+ return (options.client ?? client).delete({
17303
+ url: "/TimeLogReports/{id}",
17304
+ ...options
17305
+ });
17306
+ }
17307
+ /**
17308
+ * Count instances of the model matched by where from the data source.
17309
+ */
17310
+ static count(options) {
17311
+ return (options?.client ?? client).get({
17312
+ url: "/TimeLogReports/count",
17313
+ ...options
17314
+ });
17315
+ }
17316
+ /**
17317
+ * add time log
17318
+ */
17319
+ static addTimeRecord(options) {
17320
+ return (options.client ?? client).post({
17321
+ url: "/TimeLogReports/addTimeRecord",
17322
+ ...options,
17323
+ headers: {
17324
+ "Content-Type": "application/json",
17325
+ ...options.headers
17326
+ }
17327
+ });
17328
+ }
17329
+ /**
17330
+ * check if user have open timer
17331
+ */
17332
+ static checkForUserOpenTimer(options) {
17333
+ return (options?.client ?? client).get({
17334
+ url: "/TimeLogReports/checkForUserOpenTimer",
17335
+ ...options
17336
+ });
17337
+ }
17338
+ /**
17339
+ * add time log
17340
+ */
17341
+ static updateTimeRecord(options) {
17342
+ return (options.client ?? client).post({
17343
+ url: "/TimeLogReports/updateTimeRecord",
17344
+ ...options,
17345
+ headers: {
17346
+ "Content-Type": "application/json",
17347
+ ...options.headers
17348
+ }
17349
+ });
17350
+ }
17351
+ /**
17352
+ * approve time log
17353
+ */
17354
+ static approveTimeRecord(options) {
17355
+ return (options.client ?? client).post({
17356
+ url: "/TimeLogReports/approveTimeRecord",
17357
+ ...options,
17358
+ headers: {
17359
+ "Content-Type": "application/json",
17360
+ ...options.headers
17361
+ }
17009
17362
  });
17010
17363
  }
17011
17364
  /**
@@ -20001,6 +20354,589 @@ var IntegrationBuilderService = class {
20001
20354
  });
20002
20355
  }
20003
20356
  };
20357
+ var SqlServerService = class {
20358
+ /**
20359
+ * Fetches belongsTo relation user.
20360
+ */
20361
+ static prototypeGetUser(options) {
20362
+ return (options.client ?? client).get({
20363
+ responseTransformer: sqlServerPrototypeGetUserResponseTransformer,
20364
+ url: "/SqlServers/{id}/user",
20365
+ ...options
20366
+ });
20367
+ }
20368
+ /**
20369
+ * Find all instances of the model matched by filter from the data source.
20370
+ */
20371
+ static find(options) {
20372
+ return (options?.client ?? client).get({
20373
+ responseTransformer: sqlServerFindResponseTransformer,
20374
+ url: "/SqlServers",
20375
+ ...options
20376
+ });
20377
+ }
20378
+ /**
20379
+ * Patch an existing model instance or insert a new one into the data source.
20380
+ */
20381
+ static patchOrCreate(options) {
20382
+ return (options?.client ?? client).patch({
20383
+ responseTransformer: sqlServerPatchOrCreateResponseTransformer,
20384
+ url: "/SqlServers",
20385
+ ...options,
20386
+ headers: {
20387
+ "Content-Type": "application/json",
20388
+ ...options?.headers
20389
+ }
20390
+ });
20391
+ }
20392
+ /**
20393
+ * Create a new instance of the model and persist it into the data source.
20394
+ */
20395
+ static create(options) {
20396
+ return (options?.client ?? client).post({
20397
+ responseTransformer: sqlServerCreateResponseTransformer,
20398
+ url: "/SqlServers",
20399
+ ...options,
20400
+ headers: {
20401
+ "Content-Type": "application/json",
20402
+ ...options?.headers
20403
+ }
20404
+ });
20405
+ }
20406
+ /**
20407
+ * Replace an existing model instance or insert a new one into the data source.
20408
+ */
20409
+ static replaceOrCreatePutSqlServers(options) {
20410
+ return (options?.client ?? client).put({
20411
+ responseTransformer: sqlServerReplaceOrCreatePutSqlServersResponseTransformer,
20412
+ url: "/SqlServers",
20413
+ ...options,
20414
+ headers: {
20415
+ "Content-Type": "application/json",
20416
+ ...options?.headers
20417
+ }
20418
+ });
20419
+ }
20420
+ /**
20421
+ * Replace an existing model instance or insert a new one into the data source.
20422
+ */
20423
+ static replaceOrCreatePostSqlServersReplaceOrCreate(options) {
20424
+ return (options?.client ?? client).post({
20425
+ responseTransformer: sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer,
20426
+ url: "/SqlServers/replaceOrCreate",
20427
+ ...options,
20428
+ headers: {
20429
+ "Content-Type": "application/json",
20430
+ ...options?.headers
20431
+ }
20432
+ });
20433
+ }
20434
+ /**
20435
+ * Update an existing model instance or insert a new one into the data source based on the where criteria.
20436
+ */
20437
+ static upsertWithWhere(options) {
20438
+ return (options?.client ?? client).post({
20439
+ responseTransformer: sqlServerUpsertWithWhereResponseTransformer,
20440
+ url: "/SqlServers/upsertWithWhere",
20441
+ ...options,
20442
+ headers: {
20443
+ "Content-Type": "application/json",
20444
+ ...options?.headers
20445
+ }
20446
+ });
20447
+ }
20448
+ /**
20449
+ * Check whether a model instance exists in the data source.
20450
+ */
20451
+ static existsGetSqlServersIdExists(options) {
20452
+ return (options.client ?? client).get({
20453
+ url: "/SqlServers/{id}/exists",
20454
+ ...options
20455
+ });
20456
+ }
20457
+ /**
20458
+ * Delete a model instance by {{id}} from the data source.
20459
+ */
20460
+ static deleteById(options) {
20461
+ return (options.client ?? client).delete({
20462
+ url: "/SqlServers/{id}",
20463
+ ...options
20464
+ });
20465
+ }
20466
+ /**
20467
+ * Find a model instance by {{id}} from the data source.
20468
+ */
20469
+ static findById(options) {
20470
+ return (options.client ?? client).get({
20471
+ responseTransformer: sqlServerFindByIdResponseTransformer,
20472
+ url: "/SqlServers/{id}",
20473
+ ...options
20474
+ });
20475
+ }
20476
+ /**
20477
+ * Check whether a model instance exists in the data source.
20478
+ */
20479
+ static existsHeadSqlServersId(options) {
20480
+ return (options.client ?? client).head({
20481
+ url: "/SqlServers/{id}",
20482
+ ...options
20483
+ });
20484
+ }
20485
+ /**
20486
+ * Patch attributes for a model instance and persist it into the data source.
20487
+ */
20488
+ static prototypePatchAttributes(options) {
20489
+ return (options.client ?? client).patch({
20490
+ responseTransformer: sqlServerPrototypePatchAttributesResponseTransformer,
20491
+ url: "/SqlServers/{id}",
20492
+ ...options,
20493
+ headers: {
20494
+ "Content-Type": "application/json",
20495
+ ...options.headers
20496
+ }
20497
+ });
20498
+ }
20499
+ /**
20500
+ * Replace attributes for a model instance and persist it into the data source.
20501
+ */
20502
+ static replaceByIdPutSqlServersId(options) {
20503
+ return (options.client ?? client).put({
20504
+ responseTransformer: sqlServerReplaceByIdPutSqlServersIdResponseTransformer,
20505
+ url: "/SqlServers/{id}",
20506
+ ...options,
20507
+ headers: {
20508
+ "Content-Type": "application/json",
20509
+ ...options.headers
20510
+ }
20511
+ });
20512
+ }
20513
+ /**
20514
+ * Replace attributes for a model instance and persist it into the data source.
20515
+ */
20516
+ static replaceByIdPostSqlServersIdReplace(options) {
20517
+ return (options.client ?? client).post({
20518
+ responseTransformer: sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer,
20519
+ url: "/SqlServers/{id}/replace",
20520
+ ...options,
20521
+ headers: {
20522
+ "Content-Type": "application/json",
20523
+ ...options.headers
20524
+ }
20525
+ });
20526
+ }
20527
+ /**
20528
+ * Find first instance of the model matched by filter from the data source.
20529
+ */
20530
+ static findOne(options) {
20531
+ return (options?.client ?? client).get({
20532
+ responseTransformer: sqlServerFindOneResponseTransformer,
20533
+ url: "/SqlServers/findOne",
20534
+ ...options
20535
+ });
20536
+ }
20537
+ /**
20538
+ * Update instances of the model matched by {{where}} from the data source.
20539
+ */
20540
+ static updateAll(options) {
20541
+ return (options?.client ?? client).post({
20542
+ url: "/SqlServers/update",
20543
+ ...options,
20544
+ headers: {
20545
+ "Content-Type": "application/json",
20546
+ ...options?.headers
20547
+ }
20548
+ });
20549
+ }
20550
+ /**
20551
+ * Count instances of the model matched by where from the data source.
20552
+ */
20553
+ static count(options) {
20554
+ return (options?.client ?? client).get({
20555
+ url: "/SqlServers/count",
20556
+ ...options
20557
+ });
20558
+ }
20559
+ /**
20560
+ * Add a parameter to SQL server
20561
+ */
20562
+ static addParameter(options) {
20563
+ return (options.client ?? client).post({
20564
+ url: "/SqlServers/addParameter",
20565
+ ...options,
20566
+ headers: {
20567
+ "Content-Type": "application/json",
20568
+ ...options.headers
20569
+ }
20570
+ });
20571
+ }
20572
+ /**
20573
+ * Update a parameter in SQL server
20574
+ */
20575
+ static updateParameter(options) {
20576
+ return (options.client ?? client).put({
20577
+ url: "/SqlServers/updateParameter",
20578
+ ...options,
20579
+ headers: {
20580
+ "Content-Type": "application/json",
20581
+ ...options.headers
20582
+ }
20583
+ });
20584
+ }
20585
+ /**
20586
+ * Delete a parameter from SQL server
20587
+ */
20588
+ static deleteParameter(options) {
20589
+ return (options.client ?? client).delete({
20590
+ url: "/SqlServers/deleteParameter",
20591
+ ...options,
20592
+ headers: {
20593
+ "Content-Type": "application/json",
20594
+ ...options.headers
20595
+ }
20596
+ });
20597
+ }
20598
+ /**
20599
+ * Test connection to SQL server
20600
+ */
20601
+ static testConnection(options) {
20602
+ return (options.client ?? client).post({
20603
+ url: "/SqlServers/testConnection",
20604
+ ...options,
20605
+ headers: {
20606
+ "Content-Type": "application/json",
20607
+ ...options.headers
20608
+ }
20609
+ });
20610
+ }
20611
+ /**
20612
+ * Test parameter query on SQL server
20613
+ */
20614
+ static testQuery(options) {
20615
+ return (options.client ?? client).post({
20616
+ url: "/SqlServers/testQuery",
20617
+ ...options,
20618
+ headers: {
20619
+ "Content-Type": "application/json",
20620
+ ...options.headers
20621
+ }
20622
+ });
20623
+ }
20624
+ /**
20625
+ * Read parameter value from SQL server
20626
+ */
20627
+ static read(options) {
20628
+ return (options.client ?? client).post({
20629
+ url: "/SqlServers/read",
20630
+ ...options,
20631
+ headers: {
20632
+ "Content-Type": "application/json",
20633
+ ...options.headers
20634
+ }
20635
+ });
20636
+ }
20637
+ /**
20638
+ * Count with deleted instances of the model matched by where from the data source.
20639
+ */
20640
+ static countWithDeleted(options) {
20641
+ return (options?.client ?? client).get({
20642
+ url: "/SqlServers/countWithDeleted",
20643
+ ...options
20644
+ });
20645
+ }
20646
+ };
20647
+ var ChatThreadService = class {
20648
+ /**
20649
+ * Fetches belongsTo relation user.
20650
+ */
20651
+ static prototypeGetUser(options) {
20652
+ return (options.client ?? client).get({
20653
+ responseTransformer: chatThreadPrototypeGetUserResponseTransformer,
20654
+ url: "/ChatThreads/{id}/user",
20655
+ ...options
20656
+ });
20657
+ }
20658
+ /**
20659
+ * Find all instances of the model matched by filter from the data source.
20660
+ */
20661
+ static find(options) {
20662
+ return (options?.client ?? client).get({
20663
+ responseTransformer: chatThreadFindResponseTransformer,
20664
+ url: "/ChatThreads",
20665
+ ...options
20666
+ });
20667
+ }
20668
+ /**
20669
+ * Patch an existing model instance or insert a new one into the data source.
20670
+ */
20671
+ static patchOrCreate(options) {
20672
+ return (options?.client ?? client).patch({
20673
+ responseTransformer: chatThreadPatchOrCreateResponseTransformer,
20674
+ url: "/ChatThreads",
20675
+ ...options,
20676
+ headers: {
20677
+ "Content-Type": "application/json",
20678
+ ...options?.headers
20679
+ }
20680
+ });
20681
+ }
20682
+ /**
20683
+ * Create a new instance of the model and persist it into the data source.
20684
+ */
20685
+ static create(options) {
20686
+ return (options?.client ?? client).post({
20687
+ responseTransformer: chatThreadCreateResponseTransformer,
20688
+ url: "/ChatThreads",
20689
+ ...options,
20690
+ headers: {
20691
+ "Content-Type": "application/json",
20692
+ ...options?.headers
20693
+ }
20694
+ });
20695
+ }
20696
+ /**
20697
+ * Replace an existing model instance or insert a new one into the data source.
20698
+ */
20699
+ static replaceOrCreatePutChatThreads(options) {
20700
+ return (options?.client ?? client).put({
20701
+ responseTransformer: chatThreadReplaceOrCreatePutChatThreadsResponseTransformer,
20702
+ url: "/ChatThreads",
20703
+ ...options,
20704
+ headers: {
20705
+ "Content-Type": "application/json",
20706
+ ...options?.headers
20707
+ }
20708
+ });
20709
+ }
20710
+ /**
20711
+ * Replace an existing model instance or insert a new one into the data source.
20712
+ */
20713
+ static replaceOrCreatePostChatThreadsReplaceOrCreate(options) {
20714
+ return (options?.client ?? client).post({
20715
+ responseTransformer: chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer,
20716
+ url: "/ChatThreads/replaceOrCreate",
20717
+ ...options,
20718
+ headers: {
20719
+ "Content-Type": "application/json",
20720
+ ...options?.headers
20721
+ }
20722
+ });
20723
+ }
20724
+ /**
20725
+ * Update an existing model instance or insert a new one into the data source based on the where criteria.
20726
+ */
20727
+ static upsertWithWhere(options) {
20728
+ return (options?.client ?? client).post({
20729
+ responseTransformer: chatThreadUpsertWithWhereResponseTransformer,
20730
+ url: "/ChatThreads/upsertWithWhere",
20731
+ ...options,
20732
+ headers: {
20733
+ "Content-Type": "application/json",
20734
+ ...options?.headers
20735
+ }
20736
+ });
20737
+ }
20738
+ /**
20739
+ * Check whether a model instance exists in the data source.
20740
+ */
20741
+ static existsGetChatThreadsIdExists(options) {
20742
+ return (options.client ?? client).get({
20743
+ url: "/ChatThreads/{id}/exists",
20744
+ ...options
20745
+ });
20746
+ }
20747
+ /**
20748
+ * Delete a model instance by {{id}} from the data source.
20749
+ */
20750
+ static deleteById(options) {
20751
+ return (options.client ?? client).delete({
20752
+ url: "/ChatThreads/{id}",
20753
+ ...options
20754
+ });
20755
+ }
20756
+ /**
20757
+ * Find a model instance by {{id}} from the data source.
20758
+ */
20759
+ static findById(options) {
20760
+ return (options.client ?? client).get({
20761
+ responseTransformer: chatThreadFindByIdResponseTransformer,
20762
+ url: "/ChatThreads/{id}",
20763
+ ...options
20764
+ });
20765
+ }
20766
+ /**
20767
+ * Check whether a model instance exists in the data source.
20768
+ */
20769
+ static existsHeadChatThreadsId(options) {
20770
+ return (options.client ?? client).head({
20771
+ url: "/ChatThreads/{id}",
20772
+ ...options
20773
+ });
20774
+ }
20775
+ /**
20776
+ * Patch attributes for a model instance and persist it into the data source.
20777
+ */
20778
+ static prototypePatchAttributes(options) {
20779
+ return (options.client ?? client).patch({
20780
+ responseTransformer: chatThreadPrototypePatchAttributesResponseTransformer,
20781
+ url: "/ChatThreads/{id}",
20782
+ ...options,
20783
+ headers: {
20784
+ "Content-Type": "application/json",
20785
+ ...options.headers
20786
+ }
20787
+ });
20788
+ }
20789
+ /**
20790
+ * Replace attributes for a model instance and persist it into the data source.
20791
+ */
20792
+ static replaceByIdPutChatThreadsId(options) {
20793
+ return (options.client ?? client).put({
20794
+ responseTransformer: chatThreadReplaceByIdPutChatThreadsIdResponseTransformer,
20795
+ url: "/ChatThreads/{id}",
20796
+ ...options,
20797
+ headers: {
20798
+ "Content-Type": "application/json",
20799
+ ...options.headers
20800
+ }
20801
+ });
20802
+ }
20803
+ /**
20804
+ * Replace attributes for a model instance and persist it into the data source.
20805
+ */
20806
+ static replaceByIdPostChatThreadsIdReplace(options) {
20807
+ return (options.client ?? client).post({
20808
+ responseTransformer: chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer,
20809
+ url: "/ChatThreads/{id}/replace",
20810
+ ...options,
20811
+ headers: {
20812
+ "Content-Type": "application/json",
20813
+ ...options.headers
20814
+ }
20815
+ });
20816
+ }
20817
+ /**
20818
+ * Find first instance of the model matched by filter from the data source.
20819
+ */
20820
+ static findOne(options) {
20821
+ return (options?.client ?? client).get({
20822
+ responseTransformer: chatThreadFindOneResponseTransformer,
20823
+ url: "/ChatThreads/findOne",
20824
+ ...options
20825
+ });
20826
+ }
20827
+ /**
20828
+ * Update instances of the model matched by {{where}} from the data source.
20829
+ */
20830
+ static updateAll(options) {
20831
+ return (options?.client ?? client).post({
20832
+ url: "/ChatThreads/update",
20833
+ ...options,
20834
+ headers: {
20835
+ "Content-Type": "application/json",
20836
+ ...options?.headers
20837
+ }
20838
+ });
20839
+ }
20840
+ /**
20841
+ * Count instances of the model matched by where from the data source.
20842
+ */
20843
+ static count(options) {
20844
+ return (options?.client ?? client).get({
20845
+ url: "/ChatThreads/count",
20846
+ ...options
20847
+ });
20848
+ }
20849
+ static getThreads(options) {
20850
+ return (options?.client ?? client).get({
20851
+ url: "/ChatThreads/getThreads",
20852
+ ...options
20853
+ });
20854
+ }
20855
+ static createThread(options) {
20856
+ return (options.client ?? client).post({
20857
+ url: "/ChatThreads/createThread",
20858
+ ...options,
20859
+ headers: {
20860
+ "Content-Type": "application/json",
20861
+ ...options.headers
20862
+ }
20863
+ });
20864
+ }
20865
+ static updateThread(options) {
20866
+ return (options.client ?? client).post({
20867
+ url: "/ChatThreads/updateThread",
20868
+ ...options,
20869
+ headers: {
20870
+ "Content-Type": "application/json",
20871
+ ...options.headers
20872
+ }
20873
+ });
20874
+ }
20875
+ static loadThread(options) {
20876
+ return (options.client ?? client).get({
20877
+ url: "/ChatThreads/loadThread",
20878
+ ...options
20879
+ });
20880
+ }
20881
+ };
20882
+ var CommandPaletteHistoryService = class {
20883
+ /**
20884
+ * Find all instances of the model matched by filter from the data source.
20885
+ */
20886
+ static find(options) {
20887
+ return (options?.client ?? client).get({
20888
+ responseTransformer: commandPaletteHistoryFindResponseTransformer,
20889
+ url: "/CommandPaletteHistories",
20890
+ ...options
20891
+ });
20892
+ }
20893
+ /**
20894
+ * Create a new instance of the model and persist it into the data source.
20895
+ */
20896
+ static create(options) {
20897
+ return (options?.client ?? client).post({
20898
+ responseTransformer: commandPaletteHistoryCreateResponseTransformer,
20899
+ url: "/CommandPaletteHistories",
20900
+ ...options,
20901
+ headers: {
20902
+ "Content-Type": "application/json",
20903
+ ...options?.headers
20904
+ }
20905
+ });
20906
+ }
20907
+ /**
20908
+ * Delete a model instance by {{id}} from the data source.
20909
+ */
20910
+ static deleteById(options) {
20911
+ return (options.client ?? client).delete({
20912
+ url: "/CommandPaletteHistories/{id}",
20913
+ ...options
20914
+ });
20915
+ }
20916
+ /**
20917
+ * Patch attributes for a model instance and persist it into the data source.
20918
+ */
20919
+ static prototypePatchAttributes(options) {
20920
+ return (options.client ?? client).patch({
20921
+ responseTransformer: commandPaletteHistoryPrototypePatchAttributesResponseTransformer,
20922
+ url: "/CommandPaletteHistories/{id}",
20923
+ ...options,
20924
+ headers: {
20925
+ "Content-Type": "application/json",
20926
+ ...options.headers
20927
+ }
20928
+ });
20929
+ }
20930
+ /**
20931
+ * Count instances of the model matched by where from the data source.
20932
+ */
20933
+ static count(options) {
20934
+ return (options?.client ?? client).get({
20935
+ url: "/CommandPaletteHistories/count",
20936
+ ...options
20937
+ });
20938
+ }
20939
+ };
20004
20940
 
20005
20941
  export {
20006
20942
  ContainerService,
@@ -20086,6 +21022,7 @@ export {
20086
21022
  NpsService,
20087
21023
  WorkflowTypeService,
20088
21024
  WorkorderStatusService,
21025
+ WorkorderStatusTransitionService,
20089
21026
  TimeLogReportService,
20090
21027
  PriorityService,
20091
21028
  OperationService,
@@ -20103,5 +21040,8 @@ export {
20103
21040
  ApiMethodService,
20104
21041
  ApiMethodLogService,
20105
21042
  AddonService,
20106
- IntegrationBuilderService
21043
+ IntegrationBuilderService,
21044
+ SqlServerService,
21045
+ ChatThreadService,
21046
+ CommandPaletteHistoryService
20107
21047
  };