@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.cjs CHANGED
@@ -5721,12 +5721,12 @@ var DocumentService = class {
5721
5721
  });
5722
5722
  }
5723
5723
  static deleteDocument(options) {
5724
- return (options.client ?? client).post({
5724
+ return (options?.client ?? client).post({
5725
5725
  url: "/Documents/deleteDocument",
5726
5726
  ...options,
5727
5727
  headers: {
5728
5728
  "Content-Type": "application/json",
5729
- ...options.headers
5729
+ ...options?.headers
5730
5730
  }
5731
5731
  });
5732
5732
  }
@@ -5751,12 +5751,12 @@ var DocumentService = class {
5751
5751
  });
5752
5752
  }
5753
5753
  static revertVersion(options) {
5754
- return (options.client ?? client).post({
5754
+ return (options?.client ?? client).post({
5755
5755
  url: "/Documents/revertVersion",
5756
5756
  ...options,
5757
5757
  headers: {
5758
5758
  "Content-Type": "application/json",
5759
- ...options.headers
5759
+ ...options?.headers
5760
5760
  }
5761
5761
  });
5762
5762
  }
@@ -7037,42 +7037,42 @@ var PartAssemblyService = class {
7037
7037
  });
7038
7038
  }
7039
7039
  static addPartAssembly(options) {
7040
- return (options.client ?? client).post({
7040
+ return (options?.client ?? client).post({
7041
7041
  url: "/Part-assembly/addPartAssembly",
7042
7042
  ...options,
7043
7043
  headers: {
7044
7044
  "Content-Type": "application/json",
7045
- ...options.headers
7045
+ ...options?.headers
7046
7046
  }
7047
7047
  });
7048
7048
  }
7049
7049
  static savePartAssembly(options) {
7050
- return (options.client ?? client).post({
7050
+ return (options?.client ?? client).post({
7051
7051
  url: "/Part-assembly/savePartAssembly",
7052
7052
  ...options,
7053
7053
  headers: {
7054
7054
  "Content-Type": "application/json",
7055
- ...options.headers
7055
+ ...options?.headers
7056
7056
  }
7057
7057
  });
7058
7058
  }
7059
7059
  static bulkImportParts(options) {
7060
- return (options.client ?? client).post({
7060
+ return (options?.client ?? client).post({
7061
7061
  url: "/Part-assembly/bulkImportParts",
7062
7062
  ...options,
7063
7063
  headers: {
7064
7064
  "Content-Type": "application/json",
7065
- ...options.headers
7065
+ ...options?.headers
7066
7066
  }
7067
7067
  });
7068
7068
  }
7069
7069
  static bulkChangeParts(options) {
7070
- return (options.client ?? client).post({
7070
+ return (options?.client ?? client).post({
7071
7071
  url: "/Part-assembly/bulkChangeParts",
7072
7072
  ...options,
7073
7073
  headers: {
7074
7074
  "Content-Type": "application/json",
7075
- ...options.headers
7075
+ ...options?.headers
7076
7076
  }
7077
7077
  });
7078
7078
  }
@@ -7083,22 +7083,22 @@ var PartAssemblyService = class {
7083
7083
  });
7084
7084
  }
7085
7085
  static importModels(options) {
7086
- return (options.client ?? client).post({
7086
+ return (options?.client ?? client).post({
7087
7087
  url: "/Part-assembly/importModels",
7088
7088
  ...options,
7089
7089
  headers: {
7090
7090
  "Content-Type": "application/json",
7091
- ...options.headers
7091
+ ...options?.headers
7092
7092
  }
7093
7093
  });
7094
7094
  }
7095
7095
  static findParts(options) {
7096
- return (options.client ?? client).post({
7096
+ return (options?.client ?? client).post({
7097
7097
  url: "/Part-assembly/findParts",
7098
7098
  ...options,
7099
7099
  headers: {
7100
7100
  "Content-Type": "application/json",
7101
- ...options.headers
7101
+ ...options?.headers
7102
7102
  }
7103
7103
  });
7104
7104
  }
@@ -8494,12 +8494,12 @@ var UserModelService = class {
8494
8494
  });
8495
8495
  }
8496
8496
  static createNewUser(options) {
8497
- return (options.client ?? client).post({
8497
+ return (options?.client ?? client).post({
8498
8498
  url: "/UserModels/createNewUser",
8499
8499
  ...options,
8500
8500
  headers: {
8501
8501
  "Content-Type": "application/json",
8502
- ...options.headers
8502
+ ...options?.headers
8503
8503
  }
8504
8504
  });
8505
8505
  }
@@ -10331,13 +10331,13 @@ var WorkflowService = class {
10331
10331
  * Softdelete workflow by id (recordId)
10332
10332
  */
10333
10333
  static deleteByWorkflowId(options) {
10334
- return (options.client ?? client).post({
10334
+ return (options?.client ?? client).post({
10335
10335
  responseTransformer: workflowDeleteByWorkflowIdResponseTransformer,
10336
10336
  url: "/Workflows/deleteByWorkflowId",
10337
10337
  ...options,
10338
10338
  headers: {
10339
10339
  "Content-Type": "application/json",
10340
- ...options.headers
10340
+ ...options?.headers
10341
10341
  }
10342
10342
  });
10343
10343
  }
@@ -10528,12 +10528,12 @@ var WorkflowService = class {
10528
10528
  });
10529
10529
  }
10530
10530
  static createWorkflow(options) {
10531
- return (options.client ?? client).post({
10531
+ return (options?.client ?? client).post({
10532
10532
  url: "/Workflows/createWorkflow",
10533
10533
  ...options,
10534
10534
  headers: {
10535
10535
  "Content-Type": "application/json",
10536
- ...options.headers
10536
+ ...options?.headers
10537
10537
  }
10538
10538
  });
10539
10539
  }
@@ -10629,12 +10629,12 @@ var WorkflowService = class {
10629
10629
  };
10630
10630
  var AiService = class {
10631
10631
  static completion(options) {
10632
- return (options.client ?? client).post({
10632
+ return (options?.client ?? client).post({
10633
10633
  url: "/ai/completion",
10634
10634
  ...options,
10635
10635
  headers: {
10636
10636
  "Content-Type": "application/json",
10637
- ...options.headers
10637
+ ...options?.headers
10638
10638
  }
10639
10639
  });
10640
10640
  }
@@ -12013,12 +12013,12 @@ var ToolService = class {
12013
12013
  * Import tools and serials from CSV-like data with validation
12014
12014
  */
12015
12015
  static importTools(options) {
12016
- return (options.client ?? client).post({
12016
+ return (options?.client ?? client).post({
12017
12017
  url: "/Tools/import",
12018
12018
  ...options,
12019
12019
  headers: {
12020
12020
  "Content-Type": "application/json",
12021
- ...options.headers
12021
+ ...options?.headers
12022
12022
  }
12023
12023
  });
12024
12024
  }
@@ -12279,12 +12279,12 @@ var FieldService = class {
12279
12279
  });
12280
12280
  }
12281
12281
  static getFieldsWithInnerFields(options) {
12282
- return (options.client ?? client).post({
12282
+ return (options?.client ?? client).post({
12283
12283
  url: "/Fields/getFieldsWithInnerFields",
12284
12284
  ...options,
12285
12285
  headers: {
12286
12286
  "Content-Type": "application/json",
12287
- ...options.headers
12287
+ ...options?.headers
12288
12288
  }
12289
12289
  });
12290
12290
  }
@@ -12532,12 +12532,12 @@ var WorkorderService = class {
12532
12532
  });
12533
12533
  }
12534
12534
  static createMultipleWorkordersFromTemplate(options) {
12535
- return (options.client ?? client).post({
12535
+ return (options?.client ?? client).post({
12536
12536
  url: "/Workorders/createMultipleWorkordersFromTemplate",
12537
12537
  ...options,
12538
12538
  headers: {
12539
12539
  "Content-Type": "application/json",
12540
- ...options.headers
12540
+ ...options?.headers
12541
12541
  }
12542
12542
  });
12543
12543
  }
@@ -12844,12 +12844,12 @@ var StockService = class {
12844
12844
  * Validate stock kit items
12845
12845
  */
12846
12846
  static validateLocalSerials(options) {
12847
- return (options.client ?? client).post({
12847
+ return (options?.client ?? client).post({
12848
12848
  url: "/Stocks/validateLocalSerials",
12849
12849
  ...options,
12850
12850
  headers: {
12851
12851
  "Content-Type": "application/json",
12852
- ...options.headers
12852
+ ...options?.headers
12853
12853
  }
12854
12854
  });
12855
12855
  }
@@ -12878,22 +12878,22 @@ var StockService = class {
12878
12878
  });
12879
12879
  }
12880
12880
  static createManualStock(options) {
12881
- return (options.client ?? client).post({
12881
+ return (options?.client ?? client).post({
12882
12882
  url: "/Stocks/createManualStock",
12883
12883
  ...options,
12884
12884
  headers: {
12885
12885
  "Content-Type": "application/json",
12886
- ...options.headers
12886
+ ...options?.headers
12887
12887
  }
12888
12888
  });
12889
12889
  }
12890
12890
  static createApprovedStocks(options) {
12891
- return (options.client ?? client).post({
12891
+ return (options?.client ?? client).post({
12892
12892
  url: "/Stocks/createApprovedStocks",
12893
12893
  ...options,
12894
12894
  headers: {
12895
12895
  "Content-Type": "application/json",
12896
- ...options.headers
12896
+ ...options?.headers
12897
12897
  }
12898
12898
  });
12899
12899
  }
@@ -13734,12 +13734,12 @@ var GroupService = class {
13734
13734
  });
13735
13735
  }
13736
13736
  static deleteGroup(options) {
13737
- return (options.client ?? client).post({
13737
+ return (options?.client ?? client).post({
13738
13738
  url: "/Groups/deleteGroup",
13739
13739
  ...options,
13740
13740
  headers: {
13741
13741
  "Content-Type": "application/json",
13742
- ...options.headers
13742
+ ...options?.headers
13743
13743
  }
13744
13744
  });
13745
13745
  }
@@ -13803,12 +13803,12 @@ var CategoryService = class {
13803
13803
  });
13804
13804
  }
13805
13805
  static deleteCategory(options) {
13806
- return (options.client ?? client).post({
13806
+ return (options?.client ?? client).post({
13807
13807
  url: "/Categories/deleteCategory",
13808
13808
  ...options,
13809
13809
  headers: {
13810
13810
  "Content-Type": "application/json",
13811
- ...options.headers
13811
+ ...options?.headers
13812
13812
  }
13813
13813
  });
13814
13814
  }
@@ -14966,12 +14966,12 @@ var CustomFieldService = class {
14966
14966
  });
14967
14967
  }
14968
14968
  static deleteCustomField(options) {
14969
- return (options.client ?? client).post({
14969
+ return (options?.client ?? client).post({
14970
14970
  url: "/CustomFields/deleteCustomField",
14971
14971
  ...options,
14972
14972
  headers: {
14973
14973
  "Content-Type": "application/json",
14974
- ...options.headers
14974
+ ...options?.headers
14975
14975
  }
14976
14976
  });
14977
14977
  }
@@ -15055,12 +15055,12 @@ var FormService = class {
15055
15055
  });
15056
15056
  }
15057
15057
  static performFormDataRestart(options) {
15058
- return (options.client ?? client).post({
15058
+ return (options?.client ?? client).post({
15059
15059
  url: "/Forms/performFormDataRestart",
15060
15060
  ...options,
15061
15061
  headers: {
15062
15062
  "Content-Type": "application/json",
15063
- ...options.headers
15063
+ ...options?.headers
15064
15064
  }
15065
15065
  });
15066
15066
  }
@@ -15478,12 +15478,12 @@ var FormDataService = class {
15478
15478
  });
15479
15479
  }
15480
15480
  static findInstance(options) {
15481
- return (options.client ?? client).post({
15481
+ return (options?.client ?? client).post({
15482
15482
  url: "/FormData/findInstance",
15483
15483
  ...options,
15484
15484
  headers: {
15485
15485
  "Content-Type": "application/json",
15486
- ...options.headers
15486
+ ...options?.headers
15487
15487
  }
15488
15488
  });
15489
15489
  }
@@ -15524,12 +15524,12 @@ var FormDataService = class {
15524
15524
  });
15525
15525
  }
15526
15526
  static findRelatedForms(options) {
15527
- return (options.client ?? client).post({
15527
+ return (options?.client ?? client).post({
15528
15528
  url: "/FormData/findRelatedForms",
15529
15529
  ...options,
15530
15530
  headers: {
15531
15531
  "Content-Type": "application/json",
15532
- ...options.headers
15532
+ ...options?.headers
15533
15533
  }
15534
15534
  });
15535
15535
  }
@@ -15600,12 +15600,12 @@ var FormDataService = class {
15600
15600
  });
15601
15601
  }
15602
15602
  static getFormsForSession(options) {
15603
- return (options.client ?? client).post({
15603
+ return (options?.client ?? client).post({
15604
15604
  url: "/FormData/getFormsForSession",
15605
15605
  ...options,
15606
15606
  headers: {
15607
15607
  "Content-Type": "application/json",
15608
- ...options.headers
15608
+ ...options?.headers
15609
15609
  }
15610
15610
  });
15611
15611
  }
@@ -15916,12 +15916,12 @@ var WorkflowSessionItemService = class {
15916
15916
  });
15917
15917
  }
15918
15918
  static getNptVariableValue(options) {
15919
- return (options.client ?? client).post({
15919
+ return (options?.client ?? client).post({
15920
15920
  url: "/WorkflowSessionItems/getNPTVariableValue",
15921
15921
  ...options,
15922
15922
  headers: {
15923
15923
  "Content-Type": "application/json",
15924
- ...options.headers
15924
+ ...options?.headers
15925
15925
  }
15926
15926
  });
15927
15927
  }
@@ -15929,13 +15929,13 @@ var WorkflowSessionItemService = class {
15929
15929
  * Update the time reports for a specific session
15930
15930
  */
15931
15931
  static updateTimeReports(options) {
15932
- return (options.client ?? client).post({
15932
+ return (options?.client ?? client).post({
15933
15933
  responseTransformer: workflowSessionItemUpdateTimeReportsResponseTransformer,
15934
15934
  url: "/WorkflowSessionItems/updateTimeReports",
15935
15935
  ...options,
15936
15936
  headers: {
15937
15937
  "Content-Type": "application/json",
15938
- ...options.headers
15938
+ ...options?.headers
15939
15939
  }
15940
15940
  });
15941
15941
  }
@@ -16772,12 +16772,12 @@ var SyncService = class {
16772
16772
  });
16773
16773
  }
16774
16774
  static getResourceZipByIds(options) {
16775
- return (options.client ?? client).post({
16775
+ return (options?.client ?? client).post({
16776
16776
  url: "/Sync/getResourceZipByIds",
16777
16777
  ...options,
16778
16778
  headers: {
16779
16779
  "Content-Type": "application/json",
16780
- ...options.headers
16780
+ ...options?.headers
16781
16781
  }
16782
16782
  });
16783
16783
  }
@@ -17362,12 +17362,12 @@ var FileParserService = class {
17362
17362
  });
17363
17363
  }
17364
17364
  static notify(options) {
17365
- return (options.client ?? client).post({
17365
+ return (options?.client ?? client).post({
17366
17366
  url: "/FileParsers/notify",
17367
17367
  ...options,
17368
17368
  headers: {
17369
17369
  "Content-Type": "application/json",
17370
- ...options.headers
17370
+ ...options?.headers
17371
17371
  }
17372
17372
  });
17373
17373
  }
@@ -17894,12 +17894,12 @@ var WorkflowTypeService = class {
17894
17894
  * Update the time reports for a specific session
17895
17895
  */
17896
17896
  static bulkSave(options) {
17897
- return (options.client ?? client).post({
17897
+ return (options?.client ?? client).post({
17898
17898
  url: "/WorkflowTypes/bulkSave",
17899
17899
  ...options,
17900
17900
  headers: {
17901
17901
  "Content-Type": "application/json",
17902
- ...options.headers
17902
+ ...options?.headers
17903
17903
  }
17904
17904
  });
17905
17905
  }
@@ -17952,12 +17952,12 @@ var WorkorderStatusService = class {
17952
17952
  * Bulk save of workorder statuses
17953
17953
  */
17954
17954
  static bulkSave(options) {
17955
- return (options.client ?? client).post({
17955
+ return (options?.client ?? client).post({
17956
17956
  url: "/WorkorderStatuses/bulkSave",
17957
17957
  ...options,
17958
17958
  headers: {
17959
17959
  "Content-Type": "application/json",
17960
- ...options.headers
17960
+ ...options?.headers
17961
17961
  }
17962
17962
  });
17963
17963
  }
@@ -18153,12 +18153,12 @@ var TimeLogReportService = class {
18153
18153
  * add time log
18154
18154
  */
18155
18155
  static addTimeRecord(options) {
18156
- return (options.client ?? client).post({
18156
+ return (options?.client ?? client).post({
18157
18157
  url: "/TimeLogReports/addTimeRecord",
18158
18158
  ...options,
18159
18159
  headers: {
18160
18160
  "Content-Type": "application/json",
18161
- ...options.headers
18161
+ ...options?.headers
18162
18162
  }
18163
18163
  });
18164
18164
  }
@@ -18227,12 +18227,12 @@ var PriorityService = class {
18227
18227
  });
18228
18228
  }
18229
18229
  static saveSettings(options) {
18230
- return (options.client ?? client).post({
18230
+ return (options?.client ?? client).post({
18231
18231
  url: "/Priority/saveSettings",
18232
18232
  ...options,
18233
18233
  headers: {
18234
18234
  "Content-Type": "application/json",
18235
- ...options.headers
18235
+ ...options?.headers
18236
18236
  }
18237
18237
  });
18238
18238
  }
@@ -19089,12 +19089,12 @@ var ProductionEntityService = class {
19089
19089
  * Get the related mapping of a stock
19090
19090
  */
19091
19091
  static getStockRelatedMapping(options) {
19092
- return (options.client ?? client).post({
19092
+ return (options?.client ?? client).post({
19093
19093
  url: "/ProductionEntities/getStockRelatedMapping",
19094
19094
  ...options,
19095
19095
  headers: {
19096
19096
  "Content-Type": "application/json",
19097
- ...options.headers
19097
+ ...options?.headers
19098
19098
  }
19099
19099
  });
19100
19100
  }
@@ -19825,12 +19825,12 @@ var OpcUaServerService = class {
19825
19825
  * Test connection to OPC UA server
19826
19826
  */
19827
19827
  static testConnection(options) {
19828
- return (options.client ?? client).post({
19828
+ return (options?.client ?? client).post({
19829
19829
  url: "/OpcUaServers/testConnection",
19830
19830
  ...options,
19831
19831
  headers: {
19832
19832
  "Content-Type": "application/json",
19833
- ...options.headers
19833
+ ...options?.headers
19834
19834
  }
19835
19835
  });
19836
19836
  }
@@ -20473,12 +20473,12 @@ var ShiftService = class {
20473
20473
  * Delete many shifts
20474
20474
  */
20475
20475
  static deleteMany(options) {
20476
- return (options.client ?? client).post({
20476
+ return (options?.client ?? client).post({
20477
20477
  url: "/Shifts/deleteMany",
20478
20478
  ...options,
20479
20479
  headers: {
20480
20480
  "Content-Type": "application/json",
20481
- ...options.headers
20481
+ ...options?.headers
20482
20482
  }
20483
20483
  });
20484
20484
  }
@@ -20486,12 +20486,12 @@ var ShiftService = class {
20486
20486
  * Set week as default
20487
20487
  */
20488
20488
  static setWeekAsDefault(options) {
20489
- return (options.client ?? client).post({
20489
+ return (options?.client ?? client).post({
20490
20490
  url: "/Shifts/setWeekAsDefault",
20491
20491
  ...options,
20492
20492
  headers: {
20493
20493
  "Content-Type": "application/json",
20494
- ...options.headers
20494
+ ...options?.headers
20495
20495
  }
20496
20496
  });
20497
20497
  }
@@ -21435,12 +21435,12 @@ var SqlServerService = class {
21435
21435
  * Test connection to SQL server
21436
21436
  */
21437
21437
  static testConnection(options) {
21438
- return (options.client ?? client).post({
21438
+ return (options?.client ?? client).post({
21439
21439
  url: "/SqlServers/testConnection",
21440
21440
  ...options,
21441
21441
  headers: {
21442
21442
  "Content-Type": "application/json",
21443
- ...options.headers
21443
+ ...options?.headers
21444
21444
  }
21445
21445
  });
21446
21446
  }
@@ -21689,12 +21689,12 @@ var ChatThreadService = class {
21689
21689
  });
21690
21690
  }
21691
21691
  static createThread(options) {
21692
- return (options.client ?? client).post({
21692
+ return (options?.client ?? client).post({
21693
21693
  url: "/ChatThreads/createThread",
21694
21694
  ...options,
21695
21695
  headers: {
21696
21696
  "Content-Type": "application/json",
21697
- ...options.headers
21697
+ ...options?.headers
21698
21698
  }
21699
21699
  });
21700
21700
  }