@workbuddy/sdk-js-vnext 1.0.86 → 1.0.88
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 +84 -4
- package/index.js +26 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1703,6 +1703,41 @@ export interface WorkBuddySettingsStageStatusesListParams extends WorkBuddyReque
|
|
|
1703
1703
|
|
|
1704
1704
|
export interface WorkBuddySettingsTagsListParams extends WorkBuddyRequestParams {}
|
|
1705
1705
|
|
|
1706
|
+
export interface WorkBuddySettingsTagsUpsertParams extends WorkBuddyRequestParams {
|
|
1707
|
+
type: 'service-type' | 'service-scope' | 'work-categories';
|
|
1708
|
+
/**
|
|
1709
|
+
* Display name
|
|
1710
|
+
*/
|
|
1711
|
+
name: string;
|
|
1712
|
+
|
|
1713
|
+
color?:
|
|
1714
|
+
| '#1abc9c'
|
|
1715
|
+
| '#16a085'
|
|
1716
|
+
| '#f1c40f'
|
|
1717
|
+
| '#f39c12'
|
|
1718
|
+
| '#2ecc71'
|
|
1719
|
+
| '#27ae60'
|
|
1720
|
+
| '#e67e22'
|
|
1721
|
+
| '#d35400'
|
|
1722
|
+
| '#3498db'
|
|
1723
|
+
| '#2980b9'
|
|
1724
|
+
| '#e74c3c'
|
|
1725
|
+
| '#c0392b'
|
|
1726
|
+
| '#9b59b6'
|
|
1727
|
+
| '#8e44ad'
|
|
1728
|
+
| '#bdc3c7'
|
|
1729
|
+
| '#34495e'
|
|
1730
|
+
| '#2c3e50'
|
|
1731
|
+
| '#95a5a6'
|
|
1732
|
+
| '#7f8c8d'
|
|
1733
|
+
| '#ec87bf'
|
|
1734
|
+
| '#d870ad'
|
|
1735
|
+
| '#f69785'
|
|
1736
|
+
| '#9ba37e'
|
|
1737
|
+
| '#b49255'
|
|
1738
|
+
| '#a94136';
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1706
1741
|
export interface WorkBuddySettingsZonesListParams extends WorkBuddyRequestParams {}
|
|
1707
1742
|
|
|
1708
1743
|
export interface WorkBuddySettingsWorkTypesListParams extends WorkBuddyRequestParams {}
|
|
@@ -4097,6 +4132,8 @@ export interface WorkBuddyServicePlansLinesTasksPatchParams extends WorkBuddyReq
|
|
|
4097
4132
|
|
|
4098
4133
|
startsOn?: string;
|
|
4099
4134
|
|
|
4135
|
+
lastServiced?: string;
|
|
4136
|
+
|
|
4100
4137
|
schedule?: string;
|
|
4101
4138
|
|
|
4102
4139
|
exceptions?: {
|
|
@@ -5622,7 +5659,37 @@ export type WorkBuddySettingsStageStatusesListResponse = {
|
|
|
5622
5659
|
displayOptions: { showInContractorPortal: boolean; showInFieldApp: boolean };
|
|
5623
5660
|
}[];
|
|
5624
5661
|
};
|
|
5625
|
-
export type WorkBuddySettingsTagsListResponse = {
|
|
5662
|
+
export type WorkBuddySettingsTagsListResponse = {
|
|
5663
|
+
items: { id: string; name: string; color?: string; type?: string }[];
|
|
5664
|
+
colors: (
|
|
5665
|
+
| '#1abc9c'
|
|
5666
|
+
| '#16a085'
|
|
5667
|
+
| '#f1c40f'
|
|
5668
|
+
| '#f39c12'
|
|
5669
|
+
| '#2ecc71'
|
|
5670
|
+
| '#27ae60'
|
|
5671
|
+
| '#e67e22'
|
|
5672
|
+
| '#d35400'
|
|
5673
|
+
| '#3498db'
|
|
5674
|
+
| '#2980b9'
|
|
5675
|
+
| '#e74c3c'
|
|
5676
|
+
| '#c0392b'
|
|
5677
|
+
| '#9b59b6'
|
|
5678
|
+
| '#8e44ad'
|
|
5679
|
+
| '#bdc3c7'
|
|
5680
|
+
| '#34495e'
|
|
5681
|
+
| '#2c3e50'
|
|
5682
|
+
| '#95a5a6'
|
|
5683
|
+
| '#7f8c8d'
|
|
5684
|
+
| '#ec87bf'
|
|
5685
|
+
| '#d870ad'
|
|
5686
|
+
| '#f69785'
|
|
5687
|
+
| '#9ba37e'
|
|
5688
|
+
| '#b49255'
|
|
5689
|
+
| '#a94136'
|
|
5690
|
+
)[];
|
|
5691
|
+
};
|
|
5692
|
+
export type WorkBuddySettingsTagsUpsertResponse = { item: { id: string; name: string; color?: string; type?: string } };
|
|
5626
5693
|
export type WorkBuddySettingsZonesListResponse = { items: { id: string; name: string }[] };
|
|
5627
5694
|
export type WorkBuddySettingsWorkTypesListResponse = { items: { id: string; name: string }[] };
|
|
5628
5695
|
export type WorkBuddySettingsTemplatesEmailListEmailTemplatesResponse = {
|
|
@@ -7103,6 +7170,7 @@ export type WorkBuddyServicePlansLinesTasksListResponse = {
|
|
|
7103
7170
|
name: string;
|
|
7104
7171
|
description: string;
|
|
7105
7172
|
startsOn: string;
|
|
7173
|
+
lastServiced: string;
|
|
7106
7174
|
schedule: string;
|
|
7107
7175
|
exceptions: string;
|
|
7108
7176
|
mandatory: boolean;
|
|
@@ -7134,6 +7202,7 @@ export type WorkBuddyServicePlansLinesTasksCreateResponse = {
|
|
|
7134
7202
|
name: string;
|
|
7135
7203
|
description: string;
|
|
7136
7204
|
startsOn: string;
|
|
7205
|
+
lastServiced: string;
|
|
7137
7206
|
schedule: string;
|
|
7138
7207
|
exceptions: string;
|
|
7139
7208
|
mandatory: boolean;
|
|
@@ -7165,6 +7234,7 @@ export type WorkBuddyServicePlansLinesTasksGetResponse = {
|
|
|
7165
7234
|
name: string;
|
|
7166
7235
|
description: string;
|
|
7167
7236
|
startsOn: string;
|
|
7237
|
+
lastServiced: string;
|
|
7168
7238
|
schedule: string;
|
|
7169
7239
|
exceptions: string;
|
|
7170
7240
|
mandatory: boolean;
|
|
@@ -7191,6 +7261,7 @@ export type WorkBuddyServicePlansLinesTasksPatchResponse = {
|
|
|
7191
7261
|
name: string;
|
|
7192
7262
|
description: string;
|
|
7193
7263
|
startsOn: string;
|
|
7264
|
+
lastServiced: string;
|
|
7194
7265
|
schedule: string;
|
|
7195
7266
|
exceptions: string;
|
|
7196
7267
|
mandatory: boolean;
|
|
@@ -8403,13 +8474,22 @@ Requires scope: settings:read
|
|
|
8403
8474
|
|
|
8404
8475
|
export interface WorkBuddySettingsTagsResource {
|
|
8405
8476
|
/**
|
|
8406
|
-
* Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, subscriptions, agreement, work, integration-types, flag-category.
|
|
8477
|
+
* Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. `colors` is the Settings label-picker palette used by PUT /settings/tags. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, service-scope, subscriptions, agreement, work, integration-types, flag-category.
|
|
8407
8478
|
* Operation: PublicApiTagController_list
|
|
8408
8479
|
*/
|
|
8409
8480
|
list<TResponse = WorkBuddySettingsTagsListResponse>(
|
|
8410
8481
|
params?: WorkBuddySettingsTagsListParams,
|
|
8411
8482
|
options?: WorkBuddyRequestOptions
|
|
8412
8483
|
): Promise<TResponse>;
|
|
8484
|
+
|
|
8485
|
+
/**
|
|
8486
|
+
* Create a tag, or return the existing active tag with the same type and name (case-insensitive). Limited to service-type, service-scope, and work-categories. Optional color must be a Settings label-picker hex; omitted color is chosen from that palette. Does not change color on an existing tag. Requires settings:tags:write — not settings:write.
|
|
8487
|
+
* Operation: PublicApiTagController_upsert
|
|
8488
|
+
*/
|
|
8489
|
+
upsert<TResponse = WorkBuddySettingsTagsUpsertResponse>(
|
|
8490
|
+
params: WorkBuddySettingsTagsUpsertParams,
|
|
8491
|
+
options?: WorkBuddyRequestOptions
|
|
8492
|
+
): Promise<TResponse>;
|
|
8413
8493
|
}
|
|
8414
8494
|
|
|
8415
8495
|
export interface WorkBuddySettingsZonesResource {
|
|
@@ -9485,7 +9565,7 @@ export interface WorkBuddyServicePlansResource {
|
|
|
9485
9565
|
|
|
9486
9566
|
export interface WorkBuddyServicePlansActivateResource {
|
|
9487
9567
|
/**
|
|
9488
|
-
* Validates and
|
|
9568
|
+
* Validates and starts a fully assembled Service Plan.
|
|
9489
9569
|
* Operation: PublicServicePlanController_activate
|
|
9490
9570
|
*/
|
|
9491
9571
|
activate<TResponse = WorkBuddyServicePlansActivateActivateResponse>(
|
|
@@ -9507,7 +9587,7 @@ export interface WorkBuddyServicePlansSuspendResource {
|
|
|
9507
9587
|
|
|
9508
9588
|
export interface WorkBuddyServicePlansArchiveResource {
|
|
9509
9589
|
/**
|
|
9510
|
-
* Archives a
|
|
9590
|
+
* Archives a paused Service Plan and reconciles future scheduled work.
|
|
9511
9591
|
* Operation: PublicServicePlanController_archive
|
|
9512
9592
|
*/
|
|
9513
9593
|
archive<TResponse = WorkBuddyServicePlansArchiveArchiveResponse>(
|
package/index.js
CHANGED
|
@@ -664,10 +664,15 @@ Requires scope: settings:read
|
|
|
664
664
|
},
|
|
665
665
|
tags: {
|
|
666
666
|
/**
|
|
667
|
-
* Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, subscriptions, agreement, work, integration-types, flag-category.
|
|
667
|
+
* Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. `colors` is the Settings label-picker palette used by PUT /settings/tags. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, service-scope, subscriptions, agreement, work, integration-types, flag-category.
|
|
668
668
|
* Operation: PublicApiTagController_list
|
|
669
669
|
*/
|
|
670
670
|
list: (params = {}, options = {}) => this.request('PublicApiTagController_list', params, options),
|
|
671
|
+
/**
|
|
672
|
+
* Create a tag, or return the existing active tag with the same type and name (case-insensitive). Limited to service-type, service-scope, and work-categories. Optional color must be a Settings label-picker hex; omitted color is chosen from that palette. Does not change color on an existing tag. Requires settings:tags:write — not settings:write.
|
|
673
|
+
* Operation: PublicApiTagController_upsert
|
|
674
|
+
*/
|
|
675
|
+
upsert: (params = {}, options = {}) => this.request('PublicApiTagController_upsert', params, options),
|
|
671
676
|
},
|
|
672
677
|
zones: {
|
|
673
678
|
/**
|
|
@@ -1288,7 +1293,7 @@ Requires scope: settings:read
|
|
|
1288
1293
|
this.servicePlans = {
|
|
1289
1294
|
activate: {
|
|
1290
1295
|
/**
|
|
1291
|
-
* Validates and
|
|
1296
|
+
* Validates and starts a fully assembled Service Plan.
|
|
1292
1297
|
* Operation: PublicServicePlanController_activate
|
|
1293
1298
|
*/
|
|
1294
1299
|
activate: (params = {}, options = {}) => this.request('PublicServicePlanController_activate', params, options),
|
|
@@ -1302,7 +1307,7 @@ Requires scope: settings:read
|
|
|
1302
1307
|
},
|
|
1303
1308
|
archive: {
|
|
1304
1309
|
/**
|
|
1305
|
-
* Archives a
|
|
1310
|
+
* Archives a paused Service Plan and reconciles future scheduled work.
|
|
1306
1311
|
* Operation: PublicServicePlanController_archive
|
|
1307
1312
|
*/
|
|
1308
1313
|
archive: (params = {}, options = {}) => this.request('PublicServicePlanController_archive', params, options),
|
|
@@ -2232,13 +2237,26 @@ export const operations = [
|
|
|
2232
2237
|
actionName: 'list',
|
|
2233
2238
|
displayName: 'List tags',
|
|
2234
2239
|
description:
|
|
2235
|
-
'Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, subscriptions, agreement, work, integration-types, flag-category.',
|
|
2240
|
+
'Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. `colors` is the Settings label-picker palette used by PUT /settings/tags. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, service-scope, subscriptions, agreement, work, integration-types, flag-category.',
|
|
2236
2241
|
method: 'GET',
|
|
2237
2242
|
path: '/settings/tags',
|
|
2238
2243
|
pathParams: [],
|
|
2239
2244
|
queryParams: [],
|
|
2240
2245
|
hasRequestBody: false,
|
|
2241
2246
|
},
|
|
2247
|
+
{
|
|
2248
|
+
operationId: 'PublicApiTagController_upsert',
|
|
2249
|
+
resourcePath: ['settings', 'tags'],
|
|
2250
|
+
actionName: 'upsert',
|
|
2251
|
+
displayName: 'Upsert a tag',
|
|
2252
|
+
description:
|
|
2253
|
+
'Create a tag, or return the existing active tag with the same type and name (case-insensitive). Limited to service-type, service-scope, and work-categories. Optional color must be a Settings label-picker hex; omitted color is chosen from that palette. Does not change color on an existing tag. Requires settings:tags:write — not settings:write.',
|
|
2254
|
+
method: 'PUT',
|
|
2255
|
+
path: '/settings/tags',
|
|
2256
|
+
pathParams: [],
|
|
2257
|
+
queryParams: [],
|
|
2258
|
+
hasRequestBody: true,
|
|
2259
|
+
},
|
|
2242
2260
|
{
|
|
2243
2261
|
operationId: 'PublicApiZoneController_list',
|
|
2244
2262
|
resourcePath: ['settings', 'zones'],
|
|
@@ -3774,8 +3792,8 @@ export const operations = [
|
|
|
3774
3792
|
operationId: 'PublicServicePlanController_activate',
|
|
3775
3793
|
resourcePath: ['servicePlans', 'activate'],
|
|
3776
3794
|
actionName: 'activate',
|
|
3777
|
-
displayName: '
|
|
3778
|
-
description: 'Validates and
|
|
3795
|
+
displayName: 'Start a Service Plan',
|
|
3796
|
+
description: 'Validates and starts a fully assembled Service Plan.',
|
|
3779
3797
|
method: 'POST',
|
|
3780
3798
|
path: '/service-plans/{identifier}/activate',
|
|
3781
3799
|
pathParams: ['identifier'],
|
|
@@ -3786,7 +3804,7 @@ export const operations = [
|
|
|
3786
3804
|
operationId: 'PublicServicePlanController_suspend',
|
|
3787
3805
|
resourcePath: ['servicePlans', 'suspend'],
|
|
3788
3806
|
actionName: 'suspend',
|
|
3789
|
-
displayName: '
|
|
3807
|
+
displayName: 'Pause a Service Plan',
|
|
3790
3808
|
description: 'Stops future scheduled work while preserving history.',
|
|
3791
3809
|
method: 'POST',
|
|
3792
3810
|
path: '/service-plans/{identifier}/suspend',
|
|
@@ -3799,7 +3817,7 @@ export const operations = [
|
|
|
3799
3817
|
resourcePath: ['servicePlans', 'archive'],
|
|
3800
3818
|
actionName: 'archive',
|
|
3801
3819
|
displayName: 'Archive a Service Plan',
|
|
3802
|
-
description: 'Archives a
|
|
3820
|
+
description: 'Archives a paused Service Plan and reconciles future scheduled work.',
|
|
3803
3821
|
method: 'POST',
|
|
3804
3822
|
path: '/service-plans/{identifier}/archive',
|
|
3805
3823
|
pathParams: ['identifier'],
|