@nextplus/js-sdk 0.0.10 → 0.0.12

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.
@@ -4885,12 +4885,12 @@ var DocumentService = class {
4885
4885
  });
4886
4886
  }
4887
4887
  static deleteDocument(options) {
4888
- return (options.client ?? client).post({
4888
+ return (options?.client ?? client).post({
4889
4889
  url: "/Documents/deleteDocument",
4890
4890
  ...options,
4891
4891
  headers: {
4892
4892
  "Content-Type": "application/json",
4893
- ...options.headers
4893
+ ...options?.headers
4894
4894
  }
4895
4895
  });
4896
4896
  }
@@ -4915,12 +4915,12 @@ var DocumentService = class {
4915
4915
  });
4916
4916
  }
4917
4917
  static revertVersion(options) {
4918
- return (options.client ?? client).post({
4918
+ return (options?.client ?? client).post({
4919
4919
  url: "/Documents/revertVersion",
4920
4920
  ...options,
4921
4921
  headers: {
4922
4922
  "Content-Type": "application/json",
4923
- ...options.headers
4923
+ ...options?.headers
4924
4924
  }
4925
4925
  });
4926
4926
  }
@@ -6201,42 +6201,42 @@ var PartAssemblyService = class {
6201
6201
  });
6202
6202
  }
6203
6203
  static addPartAssembly(options) {
6204
- return (options.client ?? client).post({
6204
+ return (options?.client ?? client).post({
6205
6205
  url: "/Part-assembly/addPartAssembly",
6206
6206
  ...options,
6207
6207
  headers: {
6208
6208
  "Content-Type": "application/json",
6209
- ...options.headers
6209
+ ...options?.headers
6210
6210
  }
6211
6211
  });
6212
6212
  }
6213
6213
  static savePartAssembly(options) {
6214
- return (options.client ?? client).post({
6214
+ return (options?.client ?? client).post({
6215
6215
  url: "/Part-assembly/savePartAssembly",
6216
6216
  ...options,
6217
6217
  headers: {
6218
6218
  "Content-Type": "application/json",
6219
- ...options.headers
6219
+ ...options?.headers
6220
6220
  }
6221
6221
  });
6222
6222
  }
6223
6223
  static bulkImportParts(options) {
6224
- return (options.client ?? client).post({
6224
+ return (options?.client ?? client).post({
6225
6225
  url: "/Part-assembly/bulkImportParts",
6226
6226
  ...options,
6227
6227
  headers: {
6228
6228
  "Content-Type": "application/json",
6229
- ...options.headers
6229
+ ...options?.headers
6230
6230
  }
6231
6231
  });
6232
6232
  }
6233
6233
  static bulkChangeParts(options) {
6234
- return (options.client ?? client).post({
6234
+ return (options?.client ?? client).post({
6235
6235
  url: "/Part-assembly/bulkChangeParts",
6236
6236
  ...options,
6237
6237
  headers: {
6238
6238
  "Content-Type": "application/json",
6239
- ...options.headers
6239
+ ...options?.headers
6240
6240
  }
6241
6241
  });
6242
6242
  }
@@ -6247,22 +6247,22 @@ var PartAssemblyService = class {
6247
6247
  });
6248
6248
  }
6249
6249
  static importModels(options) {
6250
- return (options.client ?? client).post({
6250
+ return (options?.client ?? client).post({
6251
6251
  url: "/Part-assembly/importModels",
6252
6252
  ...options,
6253
6253
  headers: {
6254
6254
  "Content-Type": "application/json",
6255
- ...options.headers
6255
+ ...options?.headers
6256
6256
  }
6257
6257
  });
6258
6258
  }
6259
6259
  static findParts(options) {
6260
- return (options.client ?? client).post({
6260
+ return (options?.client ?? client).post({
6261
6261
  url: "/Part-assembly/findParts",
6262
6262
  ...options,
6263
6263
  headers: {
6264
6264
  "Content-Type": "application/json",
6265
- ...options.headers
6265
+ ...options?.headers
6266
6266
  }
6267
6267
  });
6268
6268
  }
@@ -7658,12 +7658,12 @@ var UserModelService = class {
7658
7658
  });
7659
7659
  }
7660
7660
  static createNewUser(options) {
7661
- return (options.client ?? client).post({
7661
+ return (options?.client ?? client).post({
7662
7662
  url: "/UserModels/createNewUser",
7663
7663
  ...options,
7664
7664
  headers: {
7665
7665
  "Content-Type": "application/json",
7666
- ...options.headers
7666
+ ...options?.headers
7667
7667
  }
7668
7668
  });
7669
7669
  }
@@ -9495,13 +9495,13 @@ var WorkflowService = class {
9495
9495
  * Softdelete workflow by id (recordId)
9496
9496
  */
9497
9497
  static deleteByWorkflowId(options) {
9498
- return (options.client ?? client).post({
9498
+ return (options?.client ?? client).post({
9499
9499
  responseTransformer: workflowDeleteByWorkflowIdResponseTransformer,
9500
9500
  url: "/Workflows/deleteByWorkflowId",
9501
9501
  ...options,
9502
9502
  headers: {
9503
9503
  "Content-Type": "application/json",
9504
- ...options.headers
9504
+ ...options?.headers
9505
9505
  }
9506
9506
  });
9507
9507
  }
@@ -9692,12 +9692,12 @@ var WorkflowService = class {
9692
9692
  });
9693
9693
  }
9694
9694
  static createWorkflow(options) {
9695
- return (options.client ?? client).post({
9695
+ return (options?.client ?? client).post({
9696
9696
  url: "/Workflows/createWorkflow",
9697
9697
  ...options,
9698
9698
  headers: {
9699
9699
  "Content-Type": "application/json",
9700
- ...options.headers
9700
+ ...options?.headers
9701
9701
  }
9702
9702
  });
9703
9703
  }
@@ -9793,12 +9793,12 @@ var WorkflowService = class {
9793
9793
  };
9794
9794
  var AiService = class {
9795
9795
  static completion(options) {
9796
- return (options.client ?? client).post({
9796
+ return (options?.client ?? client).post({
9797
9797
  url: "/ai/completion",
9798
9798
  ...options,
9799
9799
  headers: {
9800
9800
  "Content-Type": "application/json",
9801
- ...options.headers
9801
+ ...options?.headers
9802
9802
  }
9803
9803
  });
9804
9804
  }
@@ -11177,12 +11177,12 @@ var ToolService = class {
11177
11177
  * Import tools and serials from CSV-like data with validation
11178
11178
  */
11179
11179
  static importTools(options) {
11180
- return (options.client ?? client).post({
11180
+ return (options?.client ?? client).post({
11181
11181
  url: "/Tools/import",
11182
11182
  ...options,
11183
11183
  headers: {
11184
11184
  "Content-Type": "application/json",
11185
- ...options.headers
11185
+ ...options?.headers
11186
11186
  }
11187
11187
  });
11188
11188
  }
@@ -11443,12 +11443,12 @@ var FieldService = class {
11443
11443
  });
11444
11444
  }
11445
11445
  static getFieldsWithInnerFields(options) {
11446
- return (options.client ?? client).post({
11446
+ return (options?.client ?? client).post({
11447
11447
  url: "/Fields/getFieldsWithInnerFields",
11448
11448
  ...options,
11449
11449
  headers: {
11450
11450
  "Content-Type": "application/json",
11451
- ...options.headers
11451
+ ...options?.headers
11452
11452
  }
11453
11453
  });
11454
11454
  }
@@ -11696,12 +11696,12 @@ var WorkorderService = class {
11696
11696
  });
11697
11697
  }
11698
11698
  static createMultipleWorkordersFromTemplate(options) {
11699
- return (options.client ?? client).post({
11699
+ return (options?.client ?? client).post({
11700
11700
  url: "/Workorders/createMultipleWorkordersFromTemplate",
11701
11701
  ...options,
11702
11702
  headers: {
11703
11703
  "Content-Type": "application/json",
11704
- ...options.headers
11704
+ ...options?.headers
11705
11705
  }
11706
11706
  });
11707
11707
  }
@@ -12008,12 +12008,12 @@ var StockService = class {
12008
12008
  * Validate stock kit items
12009
12009
  */
12010
12010
  static validateLocalSerials(options) {
12011
- return (options.client ?? client).post({
12011
+ return (options?.client ?? client).post({
12012
12012
  url: "/Stocks/validateLocalSerials",
12013
12013
  ...options,
12014
12014
  headers: {
12015
12015
  "Content-Type": "application/json",
12016
- ...options.headers
12016
+ ...options?.headers
12017
12017
  }
12018
12018
  });
12019
12019
  }
@@ -12042,22 +12042,22 @@ var StockService = class {
12042
12042
  });
12043
12043
  }
12044
12044
  static createManualStock(options) {
12045
- return (options.client ?? client).post({
12045
+ return (options?.client ?? client).post({
12046
12046
  url: "/Stocks/createManualStock",
12047
12047
  ...options,
12048
12048
  headers: {
12049
12049
  "Content-Type": "application/json",
12050
- ...options.headers
12050
+ ...options?.headers
12051
12051
  }
12052
12052
  });
12053
12053
  }
12054
12054
  static createApprovedStocks(options) {
12055
- return (options.client ?? client).post({
12055
+ return (options?.client ?? client).post({
12056
12056
  url: "/Stocks/createApprovedStocks",
12057
12057
  ...options,
12058
12058
  headers: {
12059
12059
  "Content-Type": "application/json",
12060
- ...options.headers
12060
+ ...options?.headers
12061
12061
  }
12062
12062
  });
12063
12063
  }
@@ -12898,12 +12898,12 @@ var GroupService = class {
12898
12898
  });
12899
12899
  }
12900
12900
  static deleteGroup(options) {
12901
- return (options.client ?? client).post({
12901
+ return (options?.client ?? client).post({
12902
12902
  url: "/Groups/deleteGroup",
12903
12903
  ...options,
12904
12904
  headers: {
12905
12905
  "Content-Type": "application/json",
12906
- ...options.headers
12906
+ ...options?.headers
12907
12907
  }
12908
12908
  });
12909
12909
  }
@@ -12967,12 +12967,12 @@ var CategoryService = class {
12967
12967
  });
12968
12968
  }
12969
12969
  static deleteCategory(options) {
12970
- return (options.client ?? client).post({
12970
+ return (options?.client ?? client).post({
12971
12971
  url: "/Categories/deleteCategory",
12972
12972
  ...options,
12973
12973
  headers: {
12974
12974
  "Content-Type": "application/json",
12975
- ...options.headers
12975
+ ...options?.headers
12976
12976
  }
12977
12977
  });
12978
12978
  }
@@ -14130,12 +14130,12 @@ var CustomFieldService = class {
14130
14130
  });
14131
14131
  }
14132
14132
  static deleteCustomField(options) {
14133
- return (options.client ?? client).post({
14133
+ return (options?.client ?? client).post({
14134
14134
  url: "/CustomFields/deleteCustomField",
14135
14135
  ...options,
14136
14136
  headers: {
14137
14137
  "Content-Type": "application/json",
14138
- ...options.headers
14138
+ ...options?.headers
14139
14139
  }
14140
14140
  });
14141
14141
  }
@@ -14219,12 +14219,12 @@ var FormService = class {
14219
14219
  });
14220
14220
  }
14221
14221
  static performFormDataRestart(options) {
14222
- return (options.client ?? client).post({
14222
+ return (options?.client ?? client).post({
14223
14223
  url: "/Forms/performFormDataRestart",
14224
14224
  ...options,
14225
14225
  headers: {
14226
14226
  "Content-Type": "application/json",
14227
- ...options.headers
14227
+ ...options?.headers
14228
14228
  }
14229
14229
  });
14230
14230
  }
@@ -14642,12 +14642,12 @@ var FormDataService = class {
14642
14642
  });
14643
14643
  }
14644
14644
  static findInstance(options) {
14645
- return (options.client ?? client).post({
14645
+ return (options?.client ?? client).post({
14646
14646
  url: "/FormData/findInstance",
14647
14647
  ...options,
14648
14648
  headers: {
14649
14649
  "Content-Type": "application/json",
14650
- ...options.headers
14650
+ ...options?.headers
14651
14651
  }
14652
14652
  });
14653
14653
  }
@@ -14688,12 +14688,12 @@ var FormDataService = class {
14688
14688
  });
14689
14689
  }
14690
14690
  static findRelatedForms(options) {
14691
- return (options.client ?? client).post({
14691
+ return (options?.client ?? client).post({
14692
14692
  url: "/FormData/findRelatedForms",
14693
14693
  ...options,
14694
14694
  headers: {
14695
14695
  "Content-Type": "application/json",
14696
- ...options.headers
14696
+ ...options?.headers
14697
14697
  }
14698
14698
  });
14699
14699
  }
@@ -14764,12 +14764,12 @@ var FormDataService = class {
14764
14764
  });
14765
14765
  }
14766
14766
  static getFormsForSession(options) {
14767
- return (options.client ?? client).post({
14767
+ return (options?.client ?? client).post({
14768
14768
  url: "/FormData/getFormsForSession",
14769
14769
  ...options,
14770
14770
  headers: {
14771
14771
  "Content-Type": "application/json",
14772
- ...options.headers
14772
+ ...options?.headers
14773
14773
  }
14774
14774
  });
14775
14775
  }
@@ -15080,12 +15080,12 @@ var WorkflowSessionItemService = class {
15080
15080
  });
15081
15081
  }
15082
15082
  static getNptVariableValue(options) {
15083
- return (options.client ?? client).post({
15083
+ return (options?.client ?? client).post({
15084
15084
  url: "/WorkflowSessionItems/getNPTVariableValue",
15085
15085
  ...options,
15086
15086
  headers: {
15087
15087
  "Content-Type": "application/json",
15088
- ...options.headers
15088
+ ...options?.headers
15089
15089
  }
15090
15090
  });
15091
15091
  }
@@ -15093,13 +15093,13 @@ var WorkflowSessionItemService = class {
15093
15093
  * Update the time reports for a specific session
15094
15094
  */
15095
15095
  static updateTimeReports(options) {
15096
- return (options.client ?? client).post({
15096
+ return (options?.client ?? client).post({
15097
15097
  responseTransformer: workflowSessionItemUpdateTimeReportsResponseTransformer,
15098
15098
  url: "/WorkflowSessionItems/updateTimeReports",
15099
15099
  ...options,
15100
15100
  headers: {
15101
15101
  "Content-Type": "application/json",
15102
- ...options.headers
15102
+ ...options?.headers
15103
15103
  }
15104
15104
  });
15105
15105
  }
@@ -15936,12 +15936,12 @@ var SyncService = class {
15936
15936
  });
15937
15937
  }
15938
15938
  static getResourceZipByIds(options) {
15939
- return (options.client ?? client).post({
15939
+ return (options?.client ?? client).post({
15940
15940
  url: "/Sync/getResourceZipByIds",
15941
15941
  ...options,
15942
15942
  headers: {
15943
15943
  "Content-Type": "application/json",
15944
- ...options.headers
15944
+ ...options?.headers
15945
15945
  }
15946
15946
  });
15947
15947
  }
@@ -16526,12 +16526,12 @@ var FileParserService = class {
16526
16526
  });
16527
16527
  }
16528
16528
  static notify(options) {
16529
- return (options.client ?? client).post({
16529
+ return (options?.client ?? client).post({
16530
16530
  url: "/FileParsers/notify",
16531
16531
  ...options,
16532
16532
  headers: {
16533
16533
  "Content-Type": "application/json",
16534
- ...options.headers
16534
+ ...options?.headers
16535
16535
  }
16536
16536
  });
16537
16537
  }
@@ -17058,12 +17058,12 @@ var WorkflowTypeService = class {
17058
17058
  * Update the time reports for a specific session
17059
17059
  */
17060
17060
  static bulkSave(options) {
17061
- return (options.client ?? client).post({
17061
+ return (options?.client ?? client).post({
17062
17062
  url: "/WorkflowTypes/bulkSave",
17063
17063
  ...options,
17064
17064
  headers: {
17065
17065
  "Content-Type": "application/json",
17066
- ...options.headers
17066
+ ...options?.headers
17067
17067
  }
17068
17068
  });
17069
17069
  }
@@ -17116,12 +17116,12 @@ var WorkorderStatusService = class {
17116
17116
  * Bulk save of workorder statuses
17117
17117
  */
17118
17118
  static bulkSave(options) {
17119
- return (options.client ?? client).post({
17119
+ return (options?.client ?? client).post({
17120
17120
  url: "/WorkorderStatuses/bulkSave",
17121
17121
  ...options,
17122
17122
  headers: {
17123
17123
  "Content-Type": "application/json",
17124
- ...options.headers
17124
+ ...options?.headers
17125
17125
  }
17126
17126
  });
17127
17127
  }
@@ -17317,12 +17317,12 @@ var TimeLogReportService = class {
17317
17317
  * add time log
17318
17318
  */
17319
17319
  static addTimeRecord(options) {
17320
- return (options.client ?? client).post({
17320
+ return (options?.client ?? client).post({
17321
17321
  url: "/TimeLogReports/addTimeRecord",
17322
17322
  ...options,
17323
17323
  headers: {
17324
17324
  "Content-Type": "application/json",
17325
- ...options.headers
17325
+ ...options?.headers
17326
17326
  }
17327
17327
  });
17328
17328
  }
@@ -17391,12 +17391,12 @@ var PriorityService = class {
17391
17391
  });
17392
17392
  }
17393
17393
  static saveSettings(options) {
17394
- return (options.client ?? client).post({
17394
+ return (options?.client ?? client).post({
17395
17395
  url: "/Priority/saveSettings",
17396
17396
  ...options,
17397
17397
  headers: {
17398
17398
  "Content-Type": "application/json",
17399
- ...options.headers
17399
+ ...options?.headers
17400
17400
  }
17401
17401
  });
17402
17402
  }
@@ -18253,12 +18253,12 @@ var ProductionEntityService = class {
18253
18253
  * Get the related mapping of a stock
18254
18254
  */
18255
18255
  static getStockRelatedMapping(options) {
18256
- return (options.client ?? client).post({
18256
+ return (options?.client ?? client).post({
18257
18257
  url: "/ProductionEntities/getStockRelatedMapping",
18258
18258
  ...options,
18259
18259
  headers: {
18260
18260
  "Content-Type": "application/json",
18261
- ...options.headers
18261
+ ...options?.headers
18262
18262
  }
18263
18263
  });
18264
18264
  }
@@ -18989,12 +18989,12 @@ var OpcUaServerService = class {
18989
18989
  * Test connection to OPC UA server
18990
18990
  */
18991
18991
  static testConnection(options) {
18992
- return (options.client ?? client).post({
18992
+ return (options?.client ?? client).post({
18993
18993
  url: "/OpcUaServers/testConnection",
18994
18994
  ...options,
18995
18995
  headers: {
18996
18996
  "Content-Type": "application/json",
18997
- ...options.headers
18997
+ ...options?.headers
18998
18998
  }
18999
18999
  });
19000
19000
  }
@@ -19637,12 +19637,12 @@ var ShiftService = class {
19637
19637
  * Delete many shifts
19638
19638
  */
19639
19639
  static deleteMany(options) {
19640
- return (options.client ?? client).post({
19640
+ return (options?.client ?? client).post({
19641
19641
  url: "/Shifts/deleteMany",
19642
19642
  ...options,
19643
19643
  headers: {
19644
19644
  "Content-Type": "application/json",
19645
- ...options.headers
19645
+ ...options?.headers
19646
19646
  }
19647
19647
  });
19648
19648
  }
@@ -19650,12 +19650,12 @@ var ShiftService = class {
19650
19650
  * Set week as default
19651
19651
  */
19652
19652
  static setWeekAsDefault(options) {
19653
- return (options.client ?? client).post({
19653
+ return (options?.client ?? client).post({
19654
19654
  url: "/Shifts/setWeekAsDefault",
19655
19655
  ...options,
19656
19656
  headers: {
19657
19657
  "Content-Type": "application/json",
19658
- ...options.headers
19658
+ ...options?.headers
19659
19659
  }
19660
19660
  });
19661
19661
  }
@@ -20599,12 +20599,12 @@ var SqlServerService = class {
20599
20599
  * Test connection to SQL server
20600
20600
  */
20601
20601
  static testConnection(options) {
20602
- return (options.client ?? client).post({
20602
+ return (options?.client ?? client).post({
20603
20603
  url: "/SqlServers/testConnection",
20604
20604
  ...options,
20605
20605
  headers: {
20606
20606
  "Content-Type": "application/json",
20607
- ...options.headers
20607
+ ...options?.headers
20608
20608
  }
20609
20609
  });
20610
20610
  }
@@ -20853,12 +20853,12 @@ var ChatThreadService = class {
20853
20853
  });
20854
20854
  }
20855
20855
  static createThread(options) {
20856
- return (options.client ?? client).post({
20856
+ return (options?.client ?? client).post({
20857
20857
  url: "/ChatThreads/createThread",
20858
20858
  ...options,
20859
20859
  headers: {
20860
20860
  "Content-Type": "application/json",
20861
- ...options.headers
20861
+ ...options?.headers
20862
20862
  }
20863
20863
  });
20864
20864
  }
@@ -20939,6 +20939,7 @@ var CommandPaletteHistoryService = class {
20939
20939
  };
20940
20940
 
20941
20941
  export {
20942
+ client,
20942
20943
  ContainerService,
20943
20944
  StationService,
20944
20945
  DeviceFamilyService,