@workbuddy/sdk-js-vnext 1.0.81 → 1.0.83
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/index.d.ts +1040 -19
- package/index.js +311 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1285,6 +1285,110 @@ Requires scope: settings:read
|
|
|
1285
1285
|
create: (params = {}, options = {}) => this.request('PublicApiFlagController_create', params, options),
|
|
1286
1286
|
};
|
|
1287
1287
|
|
|
1288
|
+
this.servicePlans = {
|
|
1289
|
+
activate: {
|
|
1290
|
+
/**
|
|
1291
|
+
* Validates and publishes a fully assembled Service Plan.
|
|
1292
|
+
* Operation: PublicServicePlanController_activate
|
|
1293
|
+
*/
|
|
1294
|
+
activate: (params = {}, options = {}) => this.request('PublicServicePlanController_activate', params, options),
|
|
1295
|
+
},
|
|
1296
|
+
suspend: {
|
|
1297
|
+
/**
|
|
1298
|
+
* Stops future scheduled work while preserving history.
|
|
1299
|
+
* Operation: PublicServicePlanController_suspend
|
|
1300
|
+
*/
|
|
1301
|
+
suspend: (params = {}, options = {}) => this.request('PublicServicePlanController_suspend', params, options),
|
|
1302
|
+
},
|
|
1303
|
+
archive: {
|
|
1304
|
+
/**
|
|
1305
|
+
* Archives a suspended Service Plan and reconciles future scheduled work.
|
|
1306
|
+
* Operation: PublicServicePlanController_archive
|
|
1307
|
+
*/
|
|
1308
|
+
archive: (params = {}, options = {}) => this.request('PublicServicePlanController_archive', params, options),
|
|
1309
|
+
},
|
|
1310
|
+
lines: {
|
|
1311
|
+
tasks: {
|
|
1312
|
+
subtasks: {
|
|
1313
|
+
/**
|
|
1314
|
+
* List Subtasks
|
|
1315
|
+
* Operation: PublicServiceLineSubtaskController_list
|
|
1316
|
+
*/
|
|
1317
|
+
list: (params = {}, options = {}) =>
|
|
1318
|
+
this.request('PublicServiceLineSubtaskController_list', params, options),
|
|
1319
|
+
/**
|
|
1320
|
+
* Pass one Subtask, or `{ items }` with 1–100 Subtasks. Bounded domain ingest — not N public creates. Schedule and start-date fields are rejected.
|
|
1321
|
+
* Operation: PublicServiceLineSubtaskController_create
|
|
1322
|
+
*/
|
|
1323
|
+
create: (params = {}, options = {}) =>
|
|
1324
|
+
this.request('PublicServiceLineSubtaskController_create', params, options),
|
|
1325
|
+
/**
|
|
1326
|
+
* Get a Subtask
|
|
1327
|
+
* Operation: PublicServiceLineSubtaskController_get
|
|
1328
|
+
*/
|
|
1329
|
+
get: (params = {}, options = {}) => this.request('PublicServiceLineSubtaskController_get', params, options),
|
|
1330
|
+
/**
|
|
1331
|
+
* Update a Subtask
|
|
1332
|
+
* Operation: PublicServiceLineSubtaskController_patch
|
|
1333
|
+
*/
|
|
1334
|
+
patch: (params = {}, options = {}) =>
|
|
1335
|
+
this.request('PublicServiceLineSubtaskController_patch', params, options),
|
|
1336
|
+
},
|
|
1337
|
+
/**
|
|
1338
|
+
* List root Service Line Tasks
|
|
1339
|
+
* Operation: PublicServiceLineTaskController_list
|
|
1340
|
+
*/
|
|
1341
|
+
list: (params = {}, options = {}) => this.request('PublicServiceLineTaskController_list', params, options),
|
|
1342
|
+
/**
|
|
1343
|
+
* Pass one Task, or `{ items }` with 1–100 Tasks. Bulk ingest is a bounded domain command — not N public creates — and returns per-item created, existing, conflict, and invalid outcomes.
|
|
1344
|
+
* Operation: PublicServiceLineTaskController_create
|
|
1345
|
+
*/
|
|
1346
|
+
create: (params = {}, options = {}) =>
|
|
1347
|
+
this.request('PublicServiceLineTaskController_create', params, options),
|
|
1348
|
+
/**
|
|
1349
|
+
* Get a root Service Line Task
|
|
1350
|
+
* Operation: PublicServiceLineTaskController_get
|
|
1351
|
+
*/
|
|
1352
|
+
get: (params = {}, options = {}) => this.request('PublicServiceLineTaskController_get', params, options),
|
|
1353
|
+
/**
|
|
1354
|
+
* Update a root Service Line Task
|
|
1355
|
+
* Operation: PublicServiceLineTaskController_patch
|
|
1356
|
+
*/
|
|
1357
|
+
patch: (params = {}, options = {}) => this.request('PublicServiceLineTaskController_patch', params, options),
|
|
1358
|
+
},
|
|
1359
|
+
/**
|
|
1360
|
+
* List Service Lines
|
|
1361
|
+
* Operation: PublicServiceLineController_list
|
|
1362
|
+
*/
|
|
1363
|
+
list: (params = {}, options = {}) => this.request('PublicServiceLineController_list', params, options),
|
|
1364
|
+
/**
|
|
1365
|
+
* Create a Service Line
|
|
1366
|
+
* Operation: PublicServiceLineController_create
|
|
1367
|
+
*/
|
|
1368
|
+
create: (params = {}, options = {}) => this.request('PublicServiceLineController_create', params, options),
|
|
1369
|
+
/**
|
|
1370
|
+
* Get a Service Line
|
|
1371
|
+
* Operation: PublicServiceLineController_get
|
|
1372
|
+
*/
|
|
1373
|
+
get: (params = {}, options = {}) => this.request('PublicServiceLineController_get', params, options),
|
|
1374
|
+
/**
|
|
1375
|
+
* Update a Service Line
|
|
1376
|
+
* Operation: PublicServiceLineController_patch
|
|
1377
|
+
*/
|
|
1378
|
+
patch: (params = {}, options = {}) => this.request('PublicServiceLineController_patch', params, options),
|
|
1379
|
+
},
|
|
1380
|
+
/**
|
|
1381
|
+
* Creates only the Service Plan contract header. Lines and Tasks are added through their nested endpoints.
|
|
1382
|
+
* Operation: PublicServicePlanController_create
|
|
1383
|
+
*/
|
|
1384
|
+
create: (params = {}, options = {}) => this.request('PublicServicePlanController_create', params, options),
|
|
1385
|
+
/**
|
|
1386
|
+
* Resolves a WorkBuddy ID first, then the authenticated caller's integrationId.
|
|
1387
|
+
* Operation: PublicServicePlanController_get
|
|
1388
|
+
*/
|
|
1389
|
+
get: (params = {}, options = {}) => this.request('PublicServicePlanController_get', params, options),
|
|
1390
|
+
};
|
|
1391
|
+
|
|
1288
1392
|
this.mcp = {
|
|
1289
1393
|
/**
|
|
1290
1394
|
* Returns 405 — server-initiated SSE is not supported.
|
|
@@ -3641,6 +3745,213 @@ export const operations = [
|
|
|
3641
3745
|
queryParams: ['status'],
|
|
3642
3746
|
hasRequestBody: false,
|
|
3643
3747
|
},
|
|
3748
|
+
{
|
|
3749
|
+
operationId: 'PublicServicePlanController_create',
|
|
3750
|
+
resourcePath: ['servicePlans'],
|
|
3751
|
+
actionName: 'create',
|
|
3752
|
+
displayName: 'Create a Service Plan',
|
|
3753
|
+
description:
|
|
3754
|
+
'Creates only the Service Plan contract header. Lines and Tasks are added through their nested endpoints.',
|
|
3755
|
+
method: 'POST',
|
|
3756
|
+
path: '/service-plans',
|
|
3757
|
+
pathParams: [],
|
|
3758
|
+
queryParams: [],
|
|
3759
|
+
hasRequestBody: true,
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
operationId: 'PublicServicePlanController_get',
|
|
3763
|
+
resourcePath: ['servicePlans'],
|
|
3764
|
+
actionName: 'get',
|
|
3765
|
+
displayName: 'Get a Service Plan',
|
|
3766
|
+
description: "Resolves a WorkBuddy ID first, then the authenticated caller's integrationId.",
|
|
3767
|
+
method: 'GET',
|
|
3768
|
+
path: '/service-plans/{identifier}',
|
|
3769
|
+
pathParams: ['identifier'],
|
|
3770
|
+
queryParams: [],
|
|
3771
|
+
hasRequestBody: false,
|
|
3772
|
+
},
|
|
3773
|
+
{
|
|
3774
|
+
operationId: 'PublicServicePlanController_activate',
|
|
3775
|
+
resourcePath: ['servicePlans', 'activate'],
|
|
3776
|
+
actionName: 'activate',
|
|
3777
|
+
displayName: 'Activate a Service Plan',
|
|
3778
|
+
description: 'Validates and publishes a fully assembled Service Plan.',
|
|
3779
|
+
method: 'POST',
|
|
3780
|
+
path: '/service-plans/{identifier}/activate',
|
|
3781
|
+
pathParams: ['identifier'],
|
|
3782
|
+
queryParams: [],
|
|
3783
|
+
hasRequestBody: true,
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
operationId: 'PublicServicePlanController_suspend',
|
|
3787
|
+
resourcePath: ['servicePlans', 'suspend'],
|
|
3788
|
+
actionName: 'suspend',
|
|
3789
|
+
displayName: 'Suspend a Service Plan',
|
|
3790
|
+
description: 'Stops future scheduled work while preserving history.',
|
|
3791
|
+
method: 'POST',
|
|
3792
|
+
path: '/service-plans/{identifier}/suspend',
|
|
3793
|
+
pathParams: ['identifier'],
|
|
3794
|
+
queryParams: [],
|
|
3795
|
+
hasRequestBody: true,
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
operationId: 'PublicServicePlanController_archive',
|
|
3799
|
+
resourcePath: ['servicePlans', 'archive'],
|
|
3800
|
+
actionName: 'archive',
|
|
3801
|
+
displayName: 'Archive a Service Plan',
|
|
3802
|
+
description: 'Archives a suspended Service Plan and reconciles future scheduled work.',
|
|
3803
|
+
method: 'POST',
|
|
3804
|
+
path: '/service-plans/{identifier}/archive',
|
|
3805
|
+
pathParams: ['identifier'],
|
|
3806
|
+
queryParams: [],
|
|
3807
|
+
hasRequestBody: true,
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
operationId: 'PublicServiceLineController_list',
|
|
3811
|
+
resourcePath: ['servicePlans', 'lines'],
|
|
3812
|
+
actionName: 'list',
|
|
3813
|
+
displayName: 'List Service Lines',
|
|
3814
|
+
description: 'List Service Lines',
|
|
3815
|
+
method: 'GET',
|
|
3816
|
+
path: '/service-plans/{planId}/lines',
|
|
3817
|
+
pathParams: ['planId'],
|
|
3818
|
+
queryParams: [],
|
|
3819
|
+
hasRequestBody: false,
|
|
3820
|
+
},
|
|
3821
|
+
{
|
|
3822
|
+
operationId: 'PublicServiceLineController_create',
|
|
3823
|
+
resourcePath: ['servicePlans', 'lines'],
|
|
3824
|
+
actionName: 'create',
|
|
3825
|
+
displayName: 'Create a Service Line',
|
|
3826
|
+
description: 'Create a Service Line',
|
|
3827
|
+
method: 'POST',
|
|
3828
|
+
path: '/service-plans/{planId}/lines',
|
|
3829
|
+
pathParams: ['planId'],
|
|
3830
|
+
queryParams: [],
|
|
3831
|
+
hasRequestBody: true,
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
operationId: 'PublicServiceLineController_get',
|
|
3835
|
+
resourcePath: ['servicePlans', 'lines'],
|
|
3836
|
+
actionName: 'get',
|
|
3837
|
+
displayName: 'Get a Service Line',
|
|
3838
|
+
description: 'Get a Service Line',
|
|
3839
|
+
method: 'GET',
|
|
3840
|
+
path: '/service-plans/{planId}/lines/{identifier}',
|
|
3841
|
+
pathParams: ['planId', 'identifier'],
|
|
3842
|
+
queryParams: [],
|
|
3843
|
+
hasRequestBody: false,
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
operationId: 'PublicServiceLineController_patch',
|
|
3847
|
+
resourcePath: ['servicePlans', 'lines'],
|
|
3848
|
+
actionName: 'patch',
|
|
3849
|
+
displayName: 'Update a Service Line',
|
|
3850
|
+
description: 'Update a Service Line',
|
|
3851
|
+
method: 'PATCH',
|
|
3852
|
+
path: '/service-plans/{planId}/lines/{identifier}',
|
|
3853
|
+
pathParams: ['planId', 'identifier'],
|
|
3854
|
+
queryParams: [],
|
|
3855
|
+
hasRequestBody: true,
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
operationId: 'PublicServiceLineTaskController_list',
|
|
3859
|
+
resourcePath: ['servicePlans', 'lines', 'tasks'],
|
|
3860
|
+
actionName: 'list',
|
|
3861
|
+
displayName: 'List root Service Line Tasks',
|
|
3862
|
+
description: 'List root Service Line Tasks',
|
|
3863
|
+
method: 'GET',
|
|
3864
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks',
|
|
3865
|
+
pathParams: ['planId', 'lineId'],
|
|
3866
|
+
queryParams: [],
|
|
3867
|
+
hasRequestBody: false,
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
operationId: 'PublicServiceLineTaskController_create',
|
|
3871
|
+
resourcePath: ['servicePlans', 'lines', 'tasks'],
|
|
3872
|
+
actionName: 'create',
|
|
3873
|
+
displayName: 'Create root Service Line Tasks',
|
|
3874
|
+
description:
|
|
3875
|
+
'Pass one Task, or `{ items }` with 1–100 Tasks. Bulk ingest is a bounded domain command — not N public creates — and returns per-item created, existing, conflict, and invalid outcomes.',
|
|
3876
|
+
method: 'POST',
|
|
3877
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks',
|
|
3878
|
+
pathParams: ['planId', 'lineId'],
|
|
3879
|
+
queryParams: [],
|
|
3880
|
+
hasRequestBody: true,
|
|
3881
|
+
},
|
|
3882
|
+
{
|
|
3883
|
+
operationId: 'PublicServiceLineTaskController_get',
|
|
3884
|
+
resourcePath: ['servicePlans', 'lines', 'tasks'],
|
|
3885
|
+
actionName: 'get',
|
|
3886
|
+
displayName: 'Get a root Service Line Task',
|
|
3887
|
+
description: 'Get a root Service Line Task',
|
|
3888
|
+
method: 'GET',
|
|
3889
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks/{identifier}',
|
|
3890
|
+
pathParams: ['planId', 'lineId', 'identifier'],
|
|
3891
|
+
queryParams: [],
|
|
3892
|
+
hasRequestBody: false,
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
operationId: 'PublicServiceLineTaskController_patch',
|
|
3896
|
+
resourcePath: ['servicePlans', 'lines', 'tasks'],
|
|
3897
|
+
actionName: 'patch',
|
|
3898
|
+
displayName: 'Update a root Service Line Task',
|
|
3899
|
+
description: 'Update a root Service Line Task',
|
|
3900
|
+
method: 'PATCH',
|
|
3901
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks/{identifier}',
|
|
3902
|
+
pathParams: ['planId', 'lineId', 'identifier'],
|
|
3903
|
+
queryParams: [],
|
|
3904
|
+
hasRequestBody: true,
|
|
3905
|
+
},
|
|
3906
|
+
{
|
|
3907
|
+
operationId: 'PublicServiceLineSubtaskController_list',
|
|
3908
|
+
resourcePath: ['servicePlans', 'lines', 'tasks', 'subtasks'],
|
|
3909
|
+
actionName: 'list',
|
|
3910
|
+
displayName: 'List Subtasks',
|
|
3911
|
+
description: 'List Subtasks',
|
|
3912
|
+
method: 'GET',
|
|
3913
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks/{taskId}/subtasks',
|
|
3914
|
+
pathParams: ['planId', 'lineId', 'taskId'],
|
|
3915
|
+
queryParams: [],
|
|
3916
|
+
hasRequestBody: false,
|
|
3917
|
+
},
|
|
3918
|
+
{
|
|
3919
|
+
operationId: 'PublicServiceLineSubtaskController_create',
|
|
3920
|
+
resourcePath: ['servicePlans', 'lines', 'tasks', 'subtasks'],
|
|
3921
|
+
actionName: 'create',
|
|
3922
|
+
displayName: 'Create Subtasks',
|
|
3923
|
+
description:
|
|
3924
|
+
'Pass one Subtask, or `{ items }` with 1–100 Subtasks. Bounded domain ingest — not N public creates. Schedule and start-date fields are rejected.',
|
|
3925
|
+
method: 'POST',
|
|
3926
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks/{taskId}/subtasks',
|
|
3927
|
+
pathParams: ['planId', 'lineId', 'taskId'],
|
|
3928
|
+
queryParams: [],
|
|
3929
|
+
hasRequestBody: true,
|
|
3930
|
+
},
|
|
3931
|
+
{
|
|
3932
|
+
operationId: 'PublicServiceLineSubtaskController_get',
|
|
3933
|
+
resourcePath: ['servicePlans', 'lines', 'tasks', 'subtasks'],
|
|
3934
|
+
actionName: 'get',
|
|
3935
|
+
displayName: 'Get a Subtask',
|
|
3936
|
+
description: 'Get a Subtask',
|
|
3937
|
+
method: 'GET',
|
|
3938
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks/{taskId}/subtasks/{identifier}',
|
|
3939
|
+
pathParams: ['planId', 'lineId', 'taskId', 'identifier'],
|
|
3940
|
+
queryParams: [],
|
|
3941
|
+
hasRequestBody: false,
|
|
3942
|
+
},
|
|
3943
|
+
{
|
|
3944
|
+
operationId: 'PublicServiceLineSubtaskController_patch',
|
|
3945
|
+
resourcePath: ['servicePlans', 'lines', 'tasks', 'subtasks'],
|
|
3946
|
+
actionName: 'patch',
|
|
3947
|
+
displayName: 'Update a Subtask',
|
|
3948
|
+
description: 'Update a Subtask',
|
|
3949
|
+
method: 'PATCH',
|
|
3950
|
+
path: '/service-plans/{planId}/lines/{lineId}/tasks/{taskId}/subtasks/{identifier}',
|
|
3951
|
+
pathParams: ['planId', 'lineId', 'taskId', 'identifier'],
|
|
3952
|
+
queryParams: [],
|
|
3953
|
+
hasRequestBody: true,
|
|
3954
|
+
},
|
|
3644
3955
|
{
|
|
3645
3956
|
operationId: 'McpV3StreamableController_handleGet',
|
|
3646
3957
|
resourcePath: ['mcp'],
|