@nextplus/js-sdk 0.0.11 → 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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sdk_exports
3
- } from "./chunk-7J2MXBSD.js";
3
+ } from "./chunk-ASHZA665.js";
4
4
  import {
5
5
  AclService,
6
6
  AddonService,
@@ -108,7 +108,7 @@ import {
108
108
  WorkorderStatusTransitionService,
109
109
  WorkorderTemplateService,
110
110
  client
111
- } from "./chunk-QDNBVWJS.js";
111
+ } from "./chunk-PEBCO4EJ.js";
112
112
  import {
113
113
  __publicField,
114
114
  createClient,
@@ -5594,12 +5594,12 @@ var DocumentService = class {
5594
5594
  });
5595
5595
  }
5596
5596
  static deleteDocument(options) {
5597
- return (options.client ?? client).post({
5597
+ return (options?.client ?? client).post({
5598
5598
  url: "/Documents/deleteDocument",
5599
5599
  ...options,
5600
5600
  headers: {
5601
5601
  "Content-Type": "application/json",
5602
- ...options.headers
5602
+ ...options?.headers
5603
5603
  }
5604
5604
  });
5605
5605
  }
@@ -5624,12 +5624,12 @@ var DocumentService = class {
5624
5624
  });
5625
5625
  }
5626
5626
  static revertVersion(options) {
5627
- return (options.client ?? client).post({
5627
+ return (options?.client ?? client).post({
5628
5628
  url: "/Documents/revertVersion",
5629
5629
  ...options,
5630
5630
  headers: {
5631
5631
  "Content-Type": "application/json",
5632
- ...options.headers
5632
+ ...options?.headers
5633
5633
  }
5634
5634
  });
5635
5635
  }
@@ -6910,42 +6910,42 @@ var PartAssemblyService = class {
6910
6910
  });
6911
6911
  }
6912
6912
  static addPartAssembly(options) {
6913
- return (options.client ?? client).post({
6913
+ return (options?.client ?? client).post({
6914
6914
  url: "/Part-assembly/addPartAssembly",
6915
6915
  ...options,
6916
6916
  headers: {
6917
6917
  "Content-Type": "application/json",
6918
- ...options.headers
6918
+ ...options?.headers
6919
6919
  }
6920
6920
  });
6921
6921
  }
6922
6922
  static savePartAssembly(options) {
6923
- return (options.client ?? client).post({
6923
+ return (options?.client ?? client).post({
6924
6924
  url: "/Part-assembly/savePartAssembly",
6925
6925
  ...options,
6926
6926
  headers: {
6927
6927
  "Content-Type": "application/json",
6928
- ...options.headers
6928
+ ...options?.headers
6929
6929
  }
6930
6930
  });
6931
6931
  }
6932
6932
  static bulkImportParts(options) {
6933
- return (options.client ?? client).post({
6933
+ return (options?.client ?? client).post({
6934
6934
  url: "/Part-assembly/bulkImportParts",
6935
6935
  ...options,
6936
6936
  headers: {
6937
6937
  "Content-Type": "application/json",
6938
- ...options.headers
6938
+ ...options?.headers
6939
6939
  }
6940
6940
  });
6941
6941
  }
6942
6942
  static bulkChangeParts(options) {
6943
- return (options.client ?? client).post({
6943
+ return (options?.client ?? client).post({
6944
6944
  url: "/Part-assembly/bulkChangeParts",
6945
6945
  ...options,
6946
6946
  headers: {
6947
6947
  "Content-Type": "application/json",
6948
- ...options.headers
6948
+ ...options?.headers
6949
6949
  }
6950
6950
  });
6951
6951
  }
@@ -6956,22 +6956,22 @@ var PartAssemblyService = class {
6956
6956
  });
6957
6957
  }
6958
6958
  static importModels(options) {
6959
- return (options.client ?? client).post({
6959
+ return (options?.client ?? client).post({
6960
6960
  url: "/Part-assembly/importModels",
6961
6961
  ...options,
6962
6962
  headers: {
6963
6963
  "Content-Type": "application/json",
6964
- ...options.headers
6964
+ ...options?.headers
6965
6965
  }
6966
6966
  });
6967
6967
  }
6968
6968
  static findParts(options) {
6969
- return (options.client ?? client).post({
6969
+ return (options?.client ?? client).post({
6970
6970
  url: "/Part-assembly/findParts",
6971
6971
  ...options,
6972
6972
  headers: {
6973
6973
  "Content-Type": "application/json",
6974
- ...options.headers
6974
+ ...options?.headers
6975
6975
  }
6976
6976
  });
6977
6977
  }
@@ -8367,12 +8367,12 @@ var UserModelService = class {
8367
8367
  });
8368
8368
  }
8369
8369
  static createNewUser(options) {
8370
- return (options.client ?? client).post({
8370
+ return (options?.client ?? client).post({
8371
8371
  url: "/UserModels/createNewUser",
8372
8372
  ...options,
8373
8373
  headers: {
8374
8374
  "Content-Type": "application/json",
8375
- ...options.headers
8375
+ ...options?.headers
8376
8376
  }
8377
8377
  });
8378
8378
  }
@@ -10204,13 +10204,13 @@ var WorkflowService = class {
10204
10204
  * Softdelete workflow by id (recordId)
10205
10205
  */
10206
10206
  static deleteByWorkflowId(options) {
10207
- return (options.client ?? client).post({
10207
+ return (options?.client ?? client).post({
10208
10208
  responseTransformer: workflowDeleteByWorkflowIdResponseTransformer,
10209
10209
  url: "/Workflows/deleteByWorkflowId",
10210
10210
  ...options,
10211
10211
  headers: {
10212
10212
  "Content-Type": "application/json",
10213
- ...options.headers
10213
+ ...options?.headers
10214
10214
  }
10215
10215
  });
10216
10216
  }
@@ -10401,12 +10401,12 @@ var WorkflowService = class {
10401
10401
  });
10402
10402
  }
10403
10403
  static createWorkflow(options) {
10404
- return (options.client ?? client).post({
10404
+ return (options?.client ?? client).post({
10405
10405
  url: "/Workflows/createWorkflow",
10406
10406
  ...options,
10407
10407
  headers: {
10408
10408
  "Content-Type": "application/json",
10409
- ...options.headers
10409
+ ...options?.headers
10410
10410
  }
10411
10411
  });
10412
10412
  }
@@ -10502,12 +10502,12 @@ var WorkflowService = class {
10502
10502
  };
10503
10503
  var AiService = class {
10504
10504
  static completion(options) {
10505
- return (options.client ?? client).post({
10505
+ return (options?.client ?? client).post({
10506
10506
  url: "/ai/completion",
10507
10507
  ...options,
10508
10508
  headers: {
10509
10509
  "Content-Type": "application/json",
10510
- ...options.headers
10510
+ ...options?.headers
10511
10511
  }
10512
10512
  });
10513
10513
  }
@@ -11886,12 +11886,12 @@ var ToolService = class {
11886
11886
  * Import tools and serials from CSV-like data with validation
11887
11887
  */
11888
11888
  static importTools(options) {
11889
- return (options.client ?? client).post({
11889
+ return (options?.client ?? client).post({
11890
11890
  url: "/Tools/import",
11891
11891
  ...options,
11892
11892
  headers: {
11893
11893
  "Content-Type": "application/json",
11894
- ...options.headers
11894
+ ...options?.headers
11895
11895
  }
11896
11896
  });
11897
11897
  }
@@ -12152,12 +12152,12 @@ var FieldService = class {
12152
12152
  });
12153
12153
  }
12154
12154
  static getFieldsWithInnerFields(options) {
12155
- return (options.client ?? client).post({
12155
+ return (options?.client ?? client).post({
12156
12156
  url: "/Fields/getFieldsWithInnerFields",
12157
12157
  ...options,
12158
12158
  headers: {
12159
12159
  "Content-Type": "application/json",
12160
- ...options.headers
12160
+ ...options?.headers
12161
12161
  }
12162
12162
  });
12163
12163
  }
@@ -12405,12 +12405,12 @@ var WorkorderService = class {
12405
12405
  });
12406
12406
  }
12407
12407
  static createMultipleWorkordersFromTemplate(options) {
12408
- return (options.client ?? client).post({
12408
+ return (options?.client ?? client).post({
12409
12409
  url: "/Workorders/createMultipleWorkordersFromTemplate",
12410
12410
  ...options,
12411
12411
  headers: {
12412
12412
  "Content-Type": "application/json",
12413
- ...options.headers
12413
+ ...options?.headers
12414
12414
  }
12415
12415
  });
12416
12416
  }
@@ -12717,12 +12717,12 @@ var StockService = class {
12717
12717
  * Validate stock kit items
12718
12718
  */
12719
12719
  static validateLocalSerials(options) {
12720
- return (options.client ?? client).post({
12720
+ return (options?.client ?? client).post({
12721
12721
  url: "/Stocks/validateLocalSerials",
12722
12722
  ...options,
12723
12723
  headers: {
12724
12724
  "Content-Type": "application/json",
12725
- ...options.headers
12725
+ ...options?.headers
12726
12726
  }
12727
12727
  });
12728
12728
  }
@@ -12751,22 +12751,22 @@ var StockService = class {
12751
12751
  });
12752
12752
  }
12753
12753
  static createManualStock(options) {
12754
- return (options.client ?? client).post({
12754
+ return (options?.client ?? client).post({
12755
12755
  url: "/Stocks/createManualStock",
12756
12756
  ...options,
12757
12757
  headers: {
12758
12758
  "Content-Type": "application/json",
12759
- ...options.headers
12759
+ ...options?.headers
12760
12760
  }
12761
12761
  });
12762
12762
  }
12763
12763
  static createApprovedStocks(options) {
12764
- return (options.client ?? client).post({
12764
+ return (options?.client ?? client).post({
12765
12765
  url: "/Stocks/createApprovedStocks",
12766
12766
  ...options,
12767
12767
  headers: {
12768
12768
  "Content-Type": "application/json",
12769
- ...options.headers
12769
+ ...options?.headers
12770
12770
  }
12771
12771
  });
12772
12772
  }
@@ -13607,12 +13607,12 @@ var GroupService = class {
13607
13607
  });
13608
13608
  }
13609
13609
  static deleteGroup(options) {
13610
- return (options.client ?? client).post({
13610
+ return (options?.client ?? client).post({
13611
13611
  url: "/Groups/deleteGroup",
13612
13612
  ...options,
13613
13613
  headers: {
13614
13614
  "Content-Type": "application/json",
13615
- ...options.headers
13615
+ ...options?.headers
13616
13616
  }
13617
13617
  });
13618
13618
  }
@@ -13676,12 +13676,12 @@ var CategoryService = class {
13676
13676
  });
13677
13677
  }
13678
13678
  static deleteCategory(options) {
13679
- return (options.client ?? client).post({
13679
+ return (options?.client ?? client).post({
13680
13680
  url: "/Categories/deleteCategory",
13681
13681
  ...options,
13682
13682
  headers: {
13683
13683
  "Content-Type": "application/json",
13684
- ...options.headers
13684
+ ...options?.headers
13685
13685
  }
13686
13686
  });
13687
13687
  }
@@ -14839,12 +14839,12 @@ var CustomFieldService = class {
14839
14839
  });
14840
14840
  }
14841
14841
  static deleteCustomField(options) {
14842
- return (options.client ?? client).post({
14842
+ return (options?.client ?? client).post({
14843
14843
  url: "/CustomFields/deleteCustomField",
14844
14844
  ...options,
14845
14845
  headers: {
14846
14846
  "Content-Type": "application/json",
14847
- ...options.headers
14847
+ ...options?.headers
14848
14848
  }
14849
14849
  });
14850
14850
  }
@@ -14928,12 +14928,12 @@ var FormService = class {
14928
14928
  });
14929
14929
  }
14930
14930
  static performFormDataRestart(options) {
14931
- return (options.client ?? client).post({
14931
+ return (options?.client ?? client).post({
14932
14932
  url: "/Forms/performFormDataRestart",
14933
14933
  ...options,
14934
14934
  headers: {
14935
14935
  "Content-Type": "application/json",
14936
- ...options.headers
14936
+ ...options?.headers
14937
14937
  }
14938
14938
  });
14939
14939
  }
@@ -15351,12 +15351,12 @@ var FormDataService = class {
15351
15351
  });
15352
15352
  }
15353
15353
  static findInstance(options) {
15354
- return (options.client ?? client).post({
15354
+ return (options?.client ?? client).post({
15355
15355
  url: "/FormData/findInstance",
15356
15356
  ...options,
15357
15357
  headers: {
15358
15358
  "Content-Type": "application/json",
15359
- ...options.headers
15359
+ ...options?.headers
15360
15360
  }
15361
15361
  });
15362
15362
  }
@@ -15397,12 +15397,12 @@ var FormDataService = class {
15397
15397
  });
15398
15398
  }
15399
15399
  static findRelatedForms(options) {
15400
- return (options.client ?? client).post({
15400
+ return (options?.client ?? client).post({
15401
15401
  url: "/FormData/findRelatedForms",
15402
15402
  ...options,
15403
15403
  headers: {
15404
15404
  "Content-Type": "application/json",
15405
- ...options.headers
15405
+ ...options?.headers
15406
15406
  }
15407
15407
  });
15408
15408
  }
@@ -15473,12 +15473,12 @@ var FormDataService = class {
15473
15473
  });
15474
15474
  }
15475
15475
  static getFormsForSession(options) {
15476
- return (options.client ?? client).post({
15476
+ return (options?.client ?? client).post({
15477
15477
  url: "/FormData/getFormsForSession",
15478
15478
  ...options,
15479
15479
  headers: {
15480
15480
  "Content-Type": "application/json",
15481
- ...options.headers
15481
+ ...options?.headers
15482
15482
  }
15483
15483
  });
15484
15484
  }
@@ -15789,12 +15789,12 @@ var WorkflowSessionItemService = class {
15789
15789
  });
15790
15790
  }
15791
15791
  static getNptVariableValue(options) {
15792
- return (options.client ?? client).post({
15792
+ return (options?.client ?? client).post({
15793
15793
  url: "/WorkflowSessionItems/getNPTVariableValue",
15794
15794
  ...options,
15795
15795
  headers: {
15796
15796
  "Content-Type": "application/json",
15797
- ...options.headers
15797
+ ...options?.headers
15798
15798
  }
15799
15799
  });
15800
15800
  }
@@ -15802,13 +15802,13 @@ var WorkflowSessionItemService = class {
15802
15802
  * Update the time reports for a specific session
15803
15803
  */
15804
15804
  static updateTimeReports(options) {
15805
- return (options.client ?? client).post({
15805
+ return (options?.client ?? client).post({
15806
15806
  responseTransformer: workflowSessionItemUpdateTimeReportsResponseTransformer,
15807
15807
  url: "/WorkflowSessionItems/updateTimeReports",
15808
15808
  ...options,
15809
15809
  headers: {
15810
15810
  "Content-Type": "application/json",
15811
- ...options.headers
15811
+ ...options?.headers
15812
15812
  }
15813
15813
  });
15814
15814
  }
@@ -16645,12 +16645,12 @@ var SyncService = class {
16645
16645
  });
16646
16646
  }
16647
16647
  static getResourceZipByIds(options) {
16648
- return (options.client ?? client).post({
16648
+ return (options?.client ?? client).post({
16649
16649
  url: "/Sync/getResourceZipByIds",
16650
16650
  ...options,
16651
16651
  headers: {
16652
16652
  "Content-Type": "application/json",
16653
- ...options.headers
16653
+ ...options?.headers
16654
16654
  }
16655
16655
  });
16656
16656
  }
@@ -17235,12 +17235,12 @@ var FileParserService = class {
17235
17235
  });
17236
17236
  }
17237
17237
  static notify(options) {
17238
- return (options.client ?? client).post({
17238
+ return (options?.client ?? client).post({
17239
17239
  url: "/FileParsers/notify",
17240
17240
  ...options,
17241
17241
  headers: {
17242
17242
  "Content-Type": "application/json",
17243
- ...options.headers
17243
+ ...options?.headers
17244
17244
  }
17245
17245
  });
17246
17246
  }
@@ -17767,12 +17767,12 @@ var WorkflowTypeService = class {
17767
17767
  * Update the time reports for a specific session
17768
17768
  */
17769
17769
  static bulkSave(options) {
17770
- return (options.client ?? client).post({
17770
+ return (options?.client ?? client).post({
17771
17771
  url: "/WorkflowTypes/bulkSave",
17772
17772
  ...options,
17773
17773
  headers: {
17774
17774
  "Content-Type": "application/json",
17775
- ...options.headers
17775
+ ...options?.headers
17776
17776
  }
17777
17777
  });
17778
17778
  }
@@ -17825,12 +17825,12 @@ var WorkorderStatusService = class {
17825
17825
  * Bulk save of workorder statuses
17826
17826
  */
17827
17827
  static bulkSave(options) {
17828
- return (options.client ?? client).post({
17828
+ return (options?.client ?? client).post({
17829
17829
  url: "/WorkorderStatuses/bulkSave",
17830
17830
  ...options,
17831
17831
  headers: {
17832
17832
  "Content-Type": "application/json",
17833
- ...options.headers
17833
+ ...options?.headers
17834
17834
  }
17835
17835
  });
17836
17836
  }
@@ -18026,12 +18026,12 @@ var TimeLogReportService = class {
18026
18026
  * add time log
18027
18027
  */
18028
18028
  static addTimeRecord(options) {
18029
- return (options.client ?? client).post({
18029
+ return (options?.client ?? client).post({
18030
18030
  url: "/TimeLogReports/addTimeRecord",
18031
18031
  ...options,
18032
18032
  headers: {
18033
18033
  "Content-Type": "application/json",
18034
- ...options.headers
18034
+ ...options?.headers
18035
18035
  }
18036
18036
  });
18037
18037
  }
@@ -18100,12 +18100,12 @@ var PriorityService = class {
18100
18100
  });
18101
18101
  }
18102
18102
  static saveSettings(options) {
18103
- return (options.client ?? client).post({
18103
+ return (options?.client ?? client).post({
18104
18104
  url: "/Priority/saveSettings",
18105
18105
  ...options,
18106
18106
  headers: {
18107
18107
  "Content-Type": "application/json",
18108
- ...options.headers
18108
+ ...options?.headers
18109
18109
  }
18110
18110
  });
18111
18111
  }
@@ -18962,12 +18962,12 @@ var ProductionEntityService = class {
18962
18962
  * Get the related mapping of a stock
18963
18963
  */
18964
18964
  static getStockRelatedMapping(options) {
18965
- return (options.client ?? client).post({
18965
+ return (options?.client ?? client).post({
18966
18966
  url: "/ProductionEntities/getStockRelatedMapping",
18967
18967
  ...options,
18968
18968
  headers: {
18969
18969
  "Content-Type": "application/json",
18970
- ...options.headers
18970
+ ...options?.headers
18971
18971
  }
18972
18972
  });
18973
18973
  }
@@ -19698,12 +19698,12 @@ var OpcUaServerService = class {
19698
19698
  * Test connection to OPC UA server
19699
19699
  */
19700
19700
  static testConnection(options) {
19701
- return (options.client ?? client).post({
19701
+ return (options?.client ?? client).post({
19702
19702
  url: "/OpcUaServers/testConnection",
19703
19703
  ...options,
19704
19704
  headers: {
19705
19705
  "Content-Type": "application/json",
19706
- ...options.headers
19706
+ ...options?.headers
19707
19707
  }
19708
19708
  });
19709
19709
  }
@@ -20346,12 +20346,12 @@ var ShiftService = class {
20346
20346
  * Delete many shifts
20347
20347
  */
20348
20348
  static deleteMany(options) {
20349
- return (options.client ?? client).post({
20349
+ return (options?.client ?? client).post({
20350
20350
  url: "/Shifts/deleteMany",
20351
20351
  ...options,
20352
20352
  headers: {
20353
20353
  "Content-Type": "application/json",
20354
- ...options.headers
20354
+ ...options?.headers
20355
20355
  }
20356
20356
  });
20357
20357
  }
@@ -20359,12 +20359,12 @@ var ShiftService = class {
20359
20359
  * Set week as default
20360
20360
  */
20361
20361
  static setWeekAsDefault(options) {
20362
- return (options.client ?? client).post({
20362
+ return (options?.client ?? client).post({
20363
20363
  url: "/Shifts/setWeekAsDefault",
20364
20364
  ...options,
20365
20365
  headers: {
20366
20366
  "Content-Type": "application/json",
20367
- ...options.headers
20367
+ ...options?.headers
20368
20368
  }
20369
20369
  });
20370
20370
  }
@@ -21308,12 +21308,12 @@ var SqlServerService = class {
21308
21308
  * Test connection to SQL server
21309
21309
  */
21310
21310
  static testConnection(options) {
21311
- return (options.client ?? client).post({
21311
+ return (options?.client ?? client).post({
21312
21312
  url: "/SqlServers/testConnection",
21313
21313
  ...options,
21314
21314
  headers: {
21315
21315
  "Content-Type": "application/json",
21316
- ...options.headers
21316
+ ...options?.headers
21317
21317
  }
21318
21318
  });
21319
21319
  }
@@ -21562,12 +21562,12 @@ var ChatThreadService = class {
21562
21562
  });
21563
21563
  }
21564
21564
  static createThread(options) {
21565
- return (options.client ?? client).post({
21565
+ return (options?.client ?? client).post({
21566
21566
  url: "/ChatThreads/createThread",
21567
21567
  ...options,
21568
21568
  headers: {
21569
21569
  "Content-Type": "application/json",
21570
- ...options.headers
21570
+ ...options?.headers
21571
21571
  }
21572
21572
  });
21573
21573
  }