@nextplus/js-sdk 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TU3VOZVD.js → chunk-GMJM2AK6.js} +9 -1
- package/dist/{chunk-VAV5HKXV.js → chunk-O65NPNYE.js} +1000 -73
- package/dist/{index-DESgEWKO.d.ts → index-DP-keAMv.d.ts} +211 -9
- package/dist/{index-KyIl4y18.d.cts → index-Dwy0Oyyf.d.cts} +211 -9
- package/dist/index.cjs +999 -72
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/sdk/index.cjs +1003 -72
- package/dist/sdk/index.d.cts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/sdk.gen.cjs +1003 -72
- package/dist/sdk/sdk.gen.d.cts +1 -1
- package/dist/sdk/sdk.gen.d.ts +1 -1
- package/dist/sdk/sdk.gen.js +9 -1
- package/dist/{sdk.gen-D4UJVxtf.d.cts → sdk.gen-BntcMIIs.d.cts} +1616 -57
- package/dist/{sdk.gen-aOku7-zB.d.ts → sdk.gen-k17BtAsz.d.ts} +1616 -57
- package/package.json +1 -1
- package/src/sdk/schemas.gen.ts +265 -42
- package/src/sdk/sdk.gen.ts +1430 -36
- package/src/sdk/transformers.gen.ts +325 -0
- package/src/sdk/types.gen.ts +1628 -49
package/package.json
CHANGED
package/src/sdk/schemas.gen.ts
CHANGED
|
@@ -997,6 +997,13 @@ export const ResourceSchema = {
|
|
|
997
997
|
type: 'string',
|
|
998
998
|
format: 'date-time',
|
|
999
999
|
},
|
|
1000
|
+
deletedAt: {
|
|
1001
|
+
type: 'string',
|
|
1002
|
+
format: 'date-time',
|
|
1003
|
+
},
|
|
1004
|
+
deletedBy: {
|
|
1005
|
+
type: 'string',
|
|
1006
|
+
},
|
|
1000
1007
|
_meta: {
|
|
1001
1008
|
type: 'array',
|
|
1002
1009
|
items: {
|
|
@@ -2704,6 +2711,10 @@ export const WorkorderSchema = {
|
|
|
2704
2711
|
$ref: '#/definitions/x-any',
|
|
2705
2712
|
},
|
|
2706
2713
|
},
|
|
2714
|
+
hasReadOnlyToNonReadOnlyTransition: {
|
|
2715
|
+
default: false,
|
|
2716
|
+
type: 'boolean',
|
|
2717
|
+
},
|
|
2707
2718
|
workorderTypeId: {
|
|
2708
2719
|
type: 'string',
|
|
2709
2720
|
},
|
|
@@ -2753,6 +2764,11 @@ export const WorkorderSchema = {
|
|
|
2753
2764
|
externalId: {
|
|
2754
2765
|
type: 'string',
|
|
2755
2766
|
},
|
|
2767
|
+
netTimeSpent: {
|
|
2768
|
+
default: 0,
|
|
2769
|
+
type: 'number',
|
|
2770
|
+
format: 'double',
|
|
2771
|
+
},
|
|
2756
2772
|
partIds: {
|
|
2757
2773
|
type: 'array',
|
|
2758
2774
|
items: {
|
|
@@ -2857,13 +2873,6 @@ export const StockSchema = {
|
|
|
2857
2873
|
default: false,
|
|
2858
2874
|
type: 'boolean',
|
|
2859
2875
|
},
|
|
2860
|
-
tags: {
|
|
2861
|
-
default: [],
|
|
2862
|
-
type: 'array',
|
|
2863
|
-
items: {
|
|
2864
|
-
$ref: '#/definitions/x-any',
|
|
2865
|
-
},
|
|
2866
|
-
},
|
|
2867
2876
|
serviceCalls: {
|
|
2868
2877
|
default: [],
|
|
2869
2878
|
type: 'array',
|
|
@@ -2876,10 +2885,6 @@ export const StockSchema = {
|
|
|
2876
2885
|
type: 'number',
|
|
2877
2886
|
format: 'double',
|
|
2878
2887
|
},
|
|
2879
|
-
needTimeLogCheck: {
|
|
2880
|
-
default: false,
|
|
2881
|
-
type: 'boolean',
|
|
2882
|
-
},
|
|
2883
2888
|
status: {
|
|
2884
2889
|
type: 'string',
|
|
2885
2890
|
},
|
|
@@ -2930,18 +2935,6 @@ export const StockSchema = {
|
|
|
2930
2935
|
type: 'string',
|
|
2931
2936
|
format: 'date-time',
|
|
2932
2937
|
},
|
|
2933
|
-
progress: {
|
|
2934
|
-
default: 0,
|
|
2935
|
-
type: 'number',
|
|
2936
|
-
format: 'double',
|
|
2937
|
-
},
|
|
2938
|
-
usedTools: {
|
|
2939
|
-
default: [],
|
|
2940
|
-
type: 'array',
|
|
2941
|
-
items: {
|
|
2942
|
-
$ref: '#/definitions/x-any',
|
|
2943
|
-
},
|
|
2944
|
-
},
|
|
2945
2938
|
stockStatus: {
|
|
2946
2939
|
default: 'FREE',
|
|
2947
2940
|
type: 'string',
|
|
@@ -3954,6 +3947,9 @@ export const FormSchema = {
|
|
|
3954
3947
|
C_test: {
|
|
3955
3948
|
type: 'string',
|
|
3956
3949
|
},
|
|
3950
|
+
C_formVariable: {
|
|
3951
|
+
type: 'string',
|
|
3952
|
+
},
|
|
3957
3953
|
},
|
|
3958
3954
|
required: ['id', 'name', 'fields'],
|
|
3959
3955
|
additionalProperties: false,
|
|
@@ -4410,6 +4406,9 @@ export const WorkflowSessionItemSchema = {
|
|
|
4410
4406
|
workorderId: {
|
|
4411
4407
|
type: 'string',
|
|
4412
4408
|
},
|
|
4409
|
+
workorderNumber: {
|
|
4410
|
+
type: 'string',
|
|
4411
|
+
},
|
|
4413
4412
|
indicator: {
|
|
4414
4413
|
type: 'number',
|
|
4415
4414
|
format: 'double',
|
|
@@ -5488,40 +5487,86 @@ export const WorkorderStatusSchema = {
|
|
|
5488
5487
|
default: false,
|
|
5489
5488
|
type: 'boolean',
|
|
5490
5489
|
},
|
|
5490
|
+
readOnly: {
|
|
5491
|
+
default: false,
|
|
5492
|
+
type: 'boolean',
|
|
5493
|
+
},
|
|
5491
5494
|
statusType: {
|
|
5492
5495
|
default: 'WO.STATUSES.NEW',
|
|
5493
5496
|
type: 'string',
|
|
5494
5497
|
},
|
|
5495
|
-
|
|
5496
|
-
default:
|
|
5497
|
-
type: '
|
|
5498
|
+
_v: {
|
|
5499
|
+
default: 1,
|
|
5500
|
+
type: 'number',
|
|
5501
|
+
format: 'double',
|
|
5498
5502
|
},
|
|
5499
|
-
|
|
5503
|
+
created: {
|
|
5504
|
+
default: '$now',
|
|
5505
|
+
type: 'string',
|
|
5506
|
+
format: 'date-time',
|
|
5507
|
+
},
|
|
5508
|
+
modified: {
|
|
5509
|
+
default: '$now',
|
|
5510
|
+
type: 'string',
|
|
5511
|
+
format: 'date-time',
|
|
5512
|
+
},
|
|
5513
|
+
serverModified: {
|
|
5514
|
+
default: '$now',
|
|
5515
|
+
type: 'string',
|
|
5516
|
+
format: 'date-time',
|
|
5517
|
+
},
|
|
5518
|
+
deletedAt: {
|
|
5519
|
+
type: 'string',
|
|
5520
|
+
format: 'date-time',
|
|
5521
|
+
},
|
|
5522
|
+
deletedBy: {
|
|
5523
|
+
type: 'string',
|
|
5524
|
+
},
|
|
5525
|
+
UserId: {
|
|
5526
|
+
type: 'string',
|
|
5527
|
+
},
|
|
5528
|
+
},
|
|
5529
|
+
required: ['id', 'name', 'color', 'statusType'],
|
|
5530
|
+
additionalProperties: false,
|
|
5531
|
+
type: 'object',
|
|
5532
|
+
} as const;
|
|
5533
|
+
|
|
5534
|
+
export const WorkorderStatusTransitionSchema = {
|
|
5535
|
+
properties: {
|
|
5536
|
+
id: {
|
|
5537
|
+
type: 'string',
|
|
5538
|
+
},
|
|
5539
|
+
sourceStatusId: {
|
|
5540
|
+
type: 'string',
|
|
5541
|
+
},
|
|
5542
|
+
targetStatusId: {
|
|
5543
|
+
type: 'string',
|
|
5544
|
+
},
|
|
5545
|
+
requiredRoleIds: {
|
|
5500
5546
|
default: [],
|
|
5501
5547
|
type: 'array',
|
|
5502
5548
|
items: {
|
|
5503
5549
|
$ref: '#/definitions/x-any',
|
|
5504
5550
|
},
|
|
5505
5551
|
},
|
|
5506
|
-
|
|
5552
|
+
requiredCertificateIds: {
|
|
5507
5553
|
default: [],
|
|
5508
5554
|
type: 'array',
|
|
5509
5555
|
items: {
|
|
5510
5556
|
$ref: '#/definitions/x-any',
|
|
5511
5557
|
},
|
|
5512
5558
|
},
|
|
5513
|
-
|
|
5559
|
+
isChangeReasonRequired: {
|
|
5560
|
+
default: false,
|
|
5561
|
+
type: 'boolean',
|
|
5562
|
+
},
|
|
5563
|
+
changeReasonFields: {
|
|
5514
5564
|
default: [],
|
|
5515
5565
|
type: 'array',
|
|
5516
5566
|
items: {
|
|
5517
5567
|
$ref: '#/definitions/x-any',
|
|
5518
5568
|
},
|
|
5519
5569
|
},
|
|
5520
|
-
_v: {
|
|
5521
|
-
default: 1,
|
|
5522
|
-
type: 'number',
|
|
5523
|
-
format: 'double',
|
|
5524
|
-
},
|
|
5525
5570
|
created: {
|
|
5526
5571
|
default: '$now',
|
|
5527
5572
|
type: 'string',
|
|
@@ -5537,18 +5582,11 @@ export const WorkorderStatusSchema = {
|
|
|
5537
5582
|
type: 'string',
|
|
5538
5583
|
format: 'date-time',
|
|
5539
5584
|
},
|
|
5540
|
-
deletedAt: {
|
|
5541
|
-
type: 'string',
|
|
5542
|
-
format: 'date-time',
|
|
5543
|
-
},
|
|
5544
|
-
deletedBy: {
|
|
5545
|
-
type: 'string',
|
|
5546
|
-
},
|
|
5547
5585
|
UserId: {
|
|
5548
5586
|
type: 'string',
|
|
5549
5587
|
},
|
|
5550
5588
|
},
|
|
5551
|
-
required: ['id', '
|
|
5589
|
+
required: ['id', 'sourceStatusId', 'targetStatusId'],
|
|
5552
5590
|
additionalProperties: false,
|
|
5553
5591
|
type: 'object',
|
|
5554
5592
|
} as const;
|
|
@@ -6575,6 +6613,9 @@ export const AddonSchema = {
|
|
|
6575
6613
|
$ref: '#/definitions/x-any',
|
|
6576
6614
|
},
|
|
6577
6615
|
},
|
|
6616
|
+
icon: {
|
|
6617
|
+
type: 'string',
|
|
6618
|
+
},
|
|
6578
6619
|
created: {
|
|
6579
6620
|
default: '$now',
|
|
6580
6621
|
type: 'string',
|
|
@@ -6609,6 +6650,188 @@ export const AddonSchema = {
|
|
|
6609
6650
|
type: 'object',
|
|
6610
6651
|
} as const;
|
|
6611
6652
|
|
|
6653
|
+
export const SqlServerSchema = {
|
|
6654
|
+
properties: {
|
|
6655
|
+
id: {
|
|
6656
|
+
type: 'string',
|
|
6657
|
+
},
|
|
6658
|
+
name: {
|
|
6659
|
+
type: 'string',
|
|
6660
|
+
},
|
|
6661
|
+
host: {
|
|
6662
|
+
type: 'string',
|
|
6663
|
+
},
|
|
6664
|
+
port: {
|
|
6665
|
+
default: 3306,
|
|
6666
|
+
type: 'number',
|
|
6667
|
+
format: 'double',
|
|
6668
|
+
},
|
|
6669
|
+
database: {
|
|
6670
|
+
type: 'string',
|
|
6671
|
+
},
|
|
6672
|
+
username: {
|
|
6673
|
+
type: 'string',
|
|
6674
|
+
},
|
|
6675
|
+
additionalConnectionOptions: {
|
|
6676
|
+
type: 'string',
|
|
6677
|
+
},
|
|
6678
|
+
active: {
|
|
6679
|
+
default: true,
|
|
6680
|
+
type: 'boolean',
|
|
6681
|
+
},
|
|
6682
|
+
engine: {
|
|
6683
|
+
type: 'string',
|
|
6684
|
+
},
|
|
6685
|
+
parameters: {
|
|
6686
|
+
default: [],
|
|
6687
|
+
type: 'array',
|
|
6688
|
+
items: {
|
|
6689
|
+
$ref: '#/definitions/x-any',
|
|
6690
|
+
},
|
|
6691
|
+
},
|
|
6692
|
+
created: {
|
|
6693
|
+
default: '$now',
|
|
6694
|
+
type: 'string',
|
|
6695
|
+
format: 'date-time',
|
|
6696
|
+
},
|
|
6697
|
+
modified: {
|
|
6698
|
+
default: '$now',
|
|
6699
|
+
type: 'string',
|
|
6700
|
+
format: 'date-time',
|
|
6701
|
+
},
|
|
6702
|
+
serverModified: {
|
|
6703
|
+
default: '$now',
|
|
6704
|
+
type: 'string',
|
|
6705
|
+
format: 'date-time',
|
|
6706
|
+
},
|
|
6707
|
+
deletedAt: {
|
|
6708
|
+
type: 'string',
|
|
6709
|
+
format: 'date-time',
|
|
6710
|
+
},
|
|
6711
|
+
deletedBy: {
|
|
6712
|
+
type: 'string',
|
|
6713
|
+
},
|
|
6714
|
+
UserId: {
|
|
6715
|
+
type: 'string',
|
|
6716
|
+
},
|
|
6717
|
+
},
|
|
6718
|
+
required: ['id', 'name', 'host', 'database', 'active'],
|
|
6719
|
+
additionalProperties: false,
|
|
6720
|
+
type: 'object',
|
|
6721
|
+
} as const;
|
|
6722
|
+
|
|
6723
|
+
export const ChatThreadSchema = {
|
|
6724
|
+
properties: {
|
|
6725
|
+
id: {
|
|
6726
|
+
type: 'string',
|
|
6727
|
+
},
|
|
6728
|
+
title: {
|
|
6729
|
+
default: 'New Chat',
|
|
6730
|
+
type: 'string',
|
|
6731
|
+
},
|
|
6732
|
+
systemPrompt: {
|
|
6733
|
+
default: 'You are a helpful assistant.',
|
|
6734
|
+
type: 'string',
|
|
6735
|
+
},
|
|
6736
|
+
messages: {
|
|
6737
|
+
default: [],
|
|
6738
|
+
type: 'array',
|
|
6739
|
+
items: {
|
|
6740
|
+
$ref: '#/definitions/x-any',
|
|
6741
|
+
},
|
|
6742
|
+
},
|
|
6743
|
+
systemFiles: {
|
|
6744
|
+
default: [],
|
|
6745
|
+
type: 'array',
|
|
6746
|
+
items: {
|
|
6747
|
+
$ref: '#/definitions/x-any',
|
|
6748
|
+
},
|
|
6749
|
+
},
|
|
6750
|
+
state: {
|
|
6751
|
+
description:
|
|
6752
|
+
"The state/context where the chat was initiated (e.g., 'workorder', 'form', etc.)",
|
|
6753
|
+
type: 'string',
|
|
6754
|
+
},
|
|
6755
|
+
created: {
|
|
6756
|
+
default: '$now',
|
|
6757
|
+
type: 'string',
|
|
6758
|
+
format: 'date-time',
|
|
6759
|
+
},
|
|
6760
|
+
modified: {
|
|
6761
|
+
default: '$now',
|
|
6762
|
+
type: 'string',
|
|
6763
|
+
format: 'date-time',
|
|
6764
|
+
},
|
|
6765
|
+
serverModified: {
|
|
6766
|
+
default: '$now',
|
|
6767
|
+
type: 'string',
|
|
6768
|
+
format: 'date-time',
|
|
6769
|
+
},
|
|
6770
|
+
UserId: {
|
|
6771
|
+
type: 'string',
|
|
6772
|
+
},
|
|
6773
|
+
},
|
|
6774
|
+
required: ['id', 'title'],
|
|
6775
|
+
additionalProperties: false,
|
|
6776
|
+
type: 'object',
|
|
6777
|
+
} as const;
|
|
6778
|
+
|
|
6779
|
+
export const CommandPaletteHistorySchema = {
|
|
6780
|
+
properties: {
|
|
6781
|
+
state: {
|
|
6782
|
+
description: "Navigation state name (e.g., 'app.workflow.list')",
|
|
6783
|
+
type: 'string',
|
|
6784
|
+
},
|
|
6785
|
+
stateParams: {
|
|
6786
|
+
description: 'State parameters as JSON string',
|
|
6787
|
+
type: 'string',
|
|
6788
|
+
},
|
|
6789
|
+
title: {
|
|
6790
|
+
description: 'Translated title of the navigation item',
|
|
6791
|
+
type: 'string',
|
|
6792
|
+
},
|
|
6793
|
+
count: {
|
|
6794
|
+
default: 1,
|
|
6795
|
+
description: 'Number of times this page was visited',
|
|
6796
|
+
type: 'number',
|
|
6797
|
+
format: 'double',
|
|
6798
|
+
},
|
|
6799
|
+
lastVisited: {
|
|
6800
|
+
description: 'Last time this page was visited',
|
|
6801
|
+
type: 'string',
|
|
6802
|
+
format: 'date-time',
|
|
6803
|
+
},
|
|
6804
|
+
id: {
|
|
6805
|
+
type: 'string',
|
|
6806
|
+
},
|
|
6807
|
+
created: {
|
|
6808
|
+
default: '$now',
|
|
6809
|
+
type: 'string',
|
|
6810
|
+
format: 'date-time',
|
|
6811
|
+
},
|
|
6812
|
+
modified: {
|
|
6813
|
+
default: '$now',
|
|
6814
|
+
type: 'string',
|
|
6815
|
+
format: 'date-time',
|
|
6816
|
+
},
|
|
6817
|
+
serverModified: {
|
|
6818
|
+
default: '$now',
|
|
6819
|
+
type: 'string',
|
|
6820
|
+
format: 'date-time',
|
|
6821
|
+
},
|
|
6822
|
+
deletedAt: {
|
|
6823
|
+
type: 'string',
|
|
6824
|
+
format: 'date-time',
|
|
6825
|
+
},
|
|
6826
|
+
deletedBy: {
|
|
6827
|
+
type: 'string',
|
|
6828
|
+
},
|
|
6829
|
+
},
|
|
6830
|
+
required: ['state', 'title', 'count', 'lastVisited', 'id'],
|
|
6831
|
+
additionalProperties: false,
|
|
6832
|
+
type: 'object',
|
|
6833
|
+
} as const;
|
|
6834
|
+
|
|
6612
6835
|
export const DeviceSchema = {
|
|
6613
6836
|
properties: {
|
|
6614
6837
|
id: {
|