@workbuddy/sdk-js-vnext 1.0.4 → 1.0.6
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 +169 -0
- package/index.js +60 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1737,6 +1737,8 @@ export interface WorkBuddyJobsActivitiesNoteCreateNoteParams extends WorkBuddyRe
|
|
|
1737
1737
|
* Message body content (HTML supported for email)
|
|
1738
1738
|
*/
|
|
1739
1739
|
body: string;
|
|
1740
|
+
|
|
1741
|
+
title?: string;
|
|
1740
1742
|
/**
|
|
1741
1743
|
* Array of label/tag IDs to attach (comma-separated, e.g. "id1,id2")
|
|
1742
1744
|
*/
|
|
@@ -1930,6 +1932,8 @@ export interface WorkBuddyJobsStagesActivitiesNoteCreateNoteParams extends WorkB
|
|
|
1930
1932
|
* Message body content (HTML supported for email)
|
|
1931
1933
|
*/
|
|
1932
1934
|
body: string;
|
|
1935
|
+
|
|
1936
|
+
title?: string;
|
|
1933
1937
|
/**
|
|
1934
1938
|
* Array of label/tag IDs to attach (comma-separated, e.g. "id1,id2")
|
|
1935
1939
|
*/
|
|
@@ -2675,6 +2679,19 @@ export interface WorkBuddyCrmCustomersUpdateParams extends WorkBuddyRequestParam
|
|
|
2675
2679
|
socialNetwork?: Record<string, unknown>;
|
|
2676
2680
|
}
|
|
2677
2681
|
|
|
2682
|
+
export interface WorkBuddyCrmCustomersStatusUpdateStatusParams extends WorkBuddyRequestParams {
|
|
2683
|
+
/**
|
|
2684
|
+
* Customer ID or integration ID
|
|
2685
|
+
*/
|
|
2686
|
+
id: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* status ID
|
|
2689
|
+
*/
|
|
2690
|
+
statusId: string;
|
|
2691
|
+
|
|
2692
|
+
note?: string;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2678
2695
|
export interface WorkBuddyCrmCustomersContactsListParams extends WorkBuddyRequestParams {
|
|
2679
2696
|
/**
|
|
2680
2697
|
* Customer ID
|
|
@@ -2841,6 +2858,19 @@ export interface WorkBuddyCrmContractorsUpdateParams extends WorkBuddyRequestPar
|
|
|
2841
2858
|
pricebook?: Record<string, unknown>;
|
|
2842
2859
|
}
|
|
2843
2860
|
|
|
2861
|
+
export interface WorkBuddyCrmContractorsStatusUpdateStatusParams extends WorkBuddyRequestParams {
|
|
2862
|
+
/**
|
|
2863
|
+
* Contractor ID or integration ID
|
|
2864
|
+
*/
|
|
2865
|
+
id: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* status ID
|
|
2868
|
+
*/
|
|
2869
|
+
statusId: string;
|
|
2870
|
+
|
|
2871
|
+
note?: string;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2844
2874
|
export interface WorkBuddyCrmSuppliersListParams extends WorkBuddyRequestParams {
|
|
2845
2875
|
cursor?: string;
|
|
2846
2876
|
|
|
@@ -2978,6 +3008,19 @@ export interface WorkBuddyCrmSuppliersUpdateParams extends WorkBuddyRequestParam
|
|
|
2978
3008
|
billTheme?: Record<string, unknown>;
|
|
2979
3009
|
}
|
|
2980
3010
|
|
|
3011
|
+
export interface WorkBuddyCrmSuppliersStatusUpdateStatusParams extends WorkBuddyRequestParams {
|
|
3012
|
+
/**
|
|
3013
|
+
* Supplier ID or integration ID
|
|
3014
|
+
*/
|
|
3015
|
+
id: string;
|
|
3016
|
+
/**
|
|
3017
|
+
* status ID
|
|
3018
|
+
*/
|
|
3019
|
+
statusId: string;
|
|
3020
|
+
|
|
3021
|
+
note?: string;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
2981
3024
|
export interface WorkBuddyCrmCompaniesListParams extends WorkBuddyRequestParams {
|
|
2982
3025
|
cursor?: string;
|
|
2983
3026
|
|
|
@@ -4694,6 +4737,30 @@ export type WorkBuddyCrmCustomersUpdateResponse = {
|
|
|
4694
4737
|
socialNetwork: string;
|
|
4695
4738
|
};
|
|
4696
4739
|
};
|
|
4740
|
+
export type WorkBuddyCrmCustomersStatusUpdateStatusResponse = {
|
|
4741
|
+
item: {
|
|
4742
|
+
id: string;
|
|
4743
|
+
name: string;
|
|
4744
|
+
type: string;
|
|
4745
|
+
legalName: string;
|
|
4746
|
+
phone: string;
|
|
4747
|
+
mobile: string;
|
|
4748
|
+
email: string;
|
|
4749
|
+
website: string;
|
|
4750
|
+
integrationId: string;
|
|
4751
|
+
address: string;
|
|
4752
|
+
primaryContact: string;
|
|
4753
|
+
primarySite: string;
|
|
4754
|
+
owner: string;
|
|
4755
|
+
labels: { id: string; name: string; type?: string; color?: string }[];
|
|
4756
|
+
description: string;
|
|
4757
|
+
customFields: Record<string, unknown>;
|
|
4758
|
+
status: string;
|
|
4759
|
+
createdAt: string;
|
|
4760
|
+
updatedAt: string;
|
|
4761
|
+
socialNetwork: string;
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4697
4764
|
export type WorkBuddyCrmCustomersContactsListResponse = {
|
|
4698
4765
|
items: {
|
|
4699
4766
|
id: string;
|
|
@@ -4842,6 +4909,37 @@ export type WorkBuddyCrmContractorsUpdateResponse = {
|
|
|
4842
4909
|
pricebook: string;
|
|
4843
4910
|
};
|
|
4844
4911
|
};
|
|
4912
|
+
export type WorkBuddyCrmContractorsStatusUpdateStatusResponse = {
|
|
4913
|
+
item: {
|
|
4914
|
+
id: string;
|
|
4915
|
+
name: string;
|
|
4916
|
+
type: string;
|
|
4917
|
+
legalName: string;
|
|
4918
|
+
phone: string;
|
|
4919
|
+
mobile: string;
|
|
4920
|
+
email: string;
|
|
4921
|
+
website: string;
|
|
4922
|
+
integrationId: string;
|
|
4923
|
+
address: string;
|
|
4924
|
+
primaryContact: string;
|
|
4925
|
+
primarySite: string;
|
|
4926
|
+
owner: string;
|
|
4927
|
+
labels: { id: string; name: string; type?: string; color?: string }[];
|
|
4928
|
+
description: string;
|
|
4929
|
+
customFields: Record<string, unknown>;
|
|
4930
|
+
status: string;
|
|
4931
|
+
createdAt: string;
|
|
4932
|
+
updatedAt: string;
|
|
4933
|
+
zones: { id: string; name: string; type?: string }[];
|
|
4934
|
+
companies: { id: string; name: string; type?: string }[];
|
|
4935
|
+
workCategories: { id: string; name: string; type?: string }[];
|
|
4936
|
+
scheduling: string;
|
|
4937
|
+
dispatching: string;
|
|
4938
|
+
timesheet: string;
|
|
4939
|
+
hidePrices: string;
|
|
4940
|
+
pricebook: string;
|
|
4941
|
+
};
|
|
4942
|
+
};
|
|
4845
4943
|
export type WorkBuddyCrmSuppliersListResponse = {
|
|
4846
4944
|
items: {
|
|
4847
4945
|
id: string;
|
|
@@ -4951,6 +5049,38 @@ export type WorkBuddyCrmSuppliersUpdateResponse = {
|
|
|
4951
5049
|
billTheme: string;
|
|
4952
5050
|
};
|
|
4953
5051
|
};
|
|
5052
|
+
export type WorkBuddyCrmSuppliersStatusUpdateStatusResponse = {
|
|
5053
|
+
item: {
|
|
5054
|
+
id: string;
|
|
5055
|
+
name: string;
|
|
5056
|
+
type: string;
|
|
5057
|
+
legalName: string;
|
|
5058
|
+
phone: string;
|
|
5059
|
+
mobile: string;
|
|
5060
|
+
email: string;
|
|
5061
|
+
website: string;
|
|
5062
|
+
integrationId: string;
|
|
5063
|
+
address: string;
|
|
5064
|
+
primaryContact: string;
|
|
5065
|
+
primarySite: string;
|
|
5066
|
+
owner: string;
|
|
5067
|
+
labels: { id: string; name: string; type?: string; color?: string }[];
|
|
5068
|
+
description: string;
|
|
5069
|
+
customFields: Record<string, unknown>;
|
|
5070
|
+
status: string;
|
|
5071
|
+
createdAt: string;
|
|
5072
|
+
updatedAt: string;
|
|
5073
|
+
zones: { id: string; name: string; type?: string }[];
|
|
5074
|
+
workCategories: { id: string; name: string; type?: string }[];
|
|
5075
|
+
taxId: string;
|
|
5076
|
+
accounting: string;
|
|
5077
|
+
financeTags: { id: string; name: string; type?: string }[];
|
|
5078
|
+
invoices: string;
|
|
5079
|
+
billTo: string;
|
|
5080
|
+
credit: string;
|
|
5081
|
+
billTheme: string;
|
|
5082
|
+
};
|
|
5083
|
+
};
|
|
4954
5084
|
export type WorkBuddyCrmCompaniesListResponse = {
|
|
4955
5085
|
items: {
|
|
4956
5086
|
id: string;
|
|
@@ -6291,6 +6421,8 @@ export interface WorkBuddyCrmResource {
|
|
|
6291
6421
|
}
|
|
6292
6422
|
|
|
6293
6423
|
export interface WorkBuddyCrmCustomersResource {
|
|
6424
|
+
/** Status API operations. */
|
|
6425
|
+
status: WorkBuddyCrmCustomersStatusResource;
|
|
6294
6426
|
/** Contacts API operations. */
|
|
6295
6427
|
contacts: WorkBuddyCrmCustomersContactsResource;
|
|
6296
6428
|
/** Sites API operations. */
|
|
@@ -6341,6 +6473,17 @@ export interface WorkBuddyCrmCustomersResource {
|
|
|
6341
6473
|
): Promise<TResponse>;
|
|
6342
6474
|
}
|
|
6343
6475
|
|
|
6476
|
+
export interface WorkBuddyCrmCustomersStatusResource {
|
|
6477
|
+
/**
|
|
6478
|
+
* Update customer status
|
|
6479
|
+
* Operation: PublicCrmCustomerController_updateStatus
|
|
6480
|
+
*/
|
|
6481
|
+
updateStatus<TResponse = WorkBuddyCrmCustomersStatusUpdateStatusResponse>(
|
|
6482
|
+
params: WorkBuddyCrmCustomersStatusUpdateStatusParams,
|
|
6483
|
+
options?: WorkBuddyRequestOptions
|
|
6484
|
+
): Promise<TResponse>;
|
|
6485
|
+
}
|
|
6486
|
+
|
|
6344
6487
|
export interface WorkBuddyCrmCustomersContactsResource {
|
|
6345
6488
|
/**
|
|
6346
6489
|
* List contacts for customer
|
|
@@ -6413,6 +6556,8 @@ export interface WorkBuddyCrmEmployeesResource {
|
|
|
6413
6556
|
}
|
|
6414
6557
|
|
|
6415
6558
|
export interface WorkBuddyCrmContractorsResource {
|
|
6559
|
+
/** Status API operations. */
|
|
6560
|
+
status: WorkBuddyCrmContractorsStatusResource;
|
|
6416
6561
|
/**
|
|
6417
6562
|
* List contractors
|
|
6418
6563
|
* Operation: PublicCrmContractorController_list
|
|
@@ -6459,7 +6604,20 @@ export interface WorkBuddyCrmContractorsResource {
|
|
|
6459
6604
|
): Promise<TResponse>;
|
|
6460
6605
|
}
|
|
6461
6606
|
|
|
6607
|
+
export interface WorkBuddyCrmContractorsStatusResource {
|
|
6608
|
+
/**
|
|
6609
|
+
* Update contractor status
|
|
6610
|
+
* Operation: PublicCrmContractorController_updateStatus
|
|
6611
|
+
*/
|
|
6612
|
+
updateStatus<TResponse = WorkBuddyCrmContractorsStatusUpdateStatusResponse>(
|
|
6613
|
+
params: WorkBuddyCrmContractorsStatusUpdateStatusParams,
|
|
6614
|
+
options?: WorkBuddyRequestOptions
|
|
6615
|
+
): Promise<TResponse>;
|
|
6616
|
+
}
|
|
6617
|
+
|
|
6462
6618
|
export interface WorkBuddyCrmSuppliersResource {
|
|
6619
|
+
/** Status API operations. */
|
|
6620
|
+
status: WorkBuddyCrmSuppliersStatusResource;
|
|
6463
6621
|
/**
|
|
6464
6622
|
* List suppliers
|
|
6465
6623
|
* Operation: PublicCrmSupplierController_list
|
|
@@ -6506,6 +6664,17 @@ export interface WorkBuddyCrmSuppliersResource {
|
|
|
6506
6664
|
): Promise<TResponse>;
|
|
6507
6665
|
}
|
|
6508
6666
|
|
|
6667
|
+
export interface WorkBuddyCrmSuppliersStatusResource {
|
|
6668
|
+
/**
|
|
6669
|
+
* Update supplier status
|
|
6670
|
+
* Operation: PublicCrmSupplierController_updateStatus
|
|
6671
|
+
*/
|
|
6672
|
+
updateStatus<TResponse = WorkBuddyCrmSuppliersStatusUpdateStatusResponse>(
|
|
6673
|
+
params: WorkBuddyCrmSuppliersStatusUpdateStatusParams,
|
|
6674
|
+
options?: WorkBuddyRequestOptions
|
|
6675
|
+
): Promise<TResponse>;
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6509
6678
|
export interface WorkBuddyCrmCompaniesResource {
|
|
6510
6679
|
/**
|
|
6511
6680
|
* List companies
|
package/index.js
CHANGED
|
@@ -705,6 +705,14 @@ export class WorkBuddyClient {
|
|
|
705
705
|
|
|
706
706
|
this.crm = {
|
|
707
707
|
customers: {
|
|
708
|
+
status: {
|
|
709
|
+
/**
|
|
710
|
+
* Update customer status
|
|
711
|
+
* Operation: PublicCrmCustomerController_updateStatus
|
|
712
|
+
*/
|
|
713
|
+
updateStatus: (params = {}, options = {}) =>
|
|
714
|
+
this.request('PublicCrmCustomerController_updateStatus', params, options),
|
|
715
|
+
},
|
|
708
716
|
contacts: {
|
|
709
717
|
/**
|
|
710
718
|
* List contacts for customer
|
|
@@ -773,6 +781,14 @@ export class WorkBuddyClient {
|
|
|
773
781
|
get: (params = {}, options = {}) => this.request('PublicCrmEmployeeController_getById', params, options),
|
|
774
782
|
},
|
|
775
783
|
contractors: {
|
|
784
|
+
status: {
|
|
785
|
+
/**
|
|
786
|
+
* Update contractor status
|
|
787
|
+
* Operation: PublicCrmContractorController_updateStatus
|
|
788
|
+
*/
|
|
789
|
+
updateStatus: (params = {}, options = {}) =>
|
|
790
|
+
this.request('PublicCrmContractorController_updateStatus', params, options),
|
|
791
|
+
},
|
|
776
792
|
/**
|
|
777
793
|
* List contractors
|
|
778
794
|
* Operation: PublicCrmContractorController_list
|
|
@@ -799,6 +815,14 @@ export class WorkBuddyClient {
|
|
|
799
815
|
update: (params = {}, options = {}) => this.request('PublicCrmContractorController_update', params, options),
|
|
800
816
|
},
|
|
801
817
|
suppliers: {
|
|
818
|
+
status: {
|
|
819
|
+
/**
|
|
820
|
+
* Update supplier status
|
|
821
|
+
* Operation: PublicCrmSupplierController_updateStatus
|
|
822
|
+
*/
|
|
823
|
+
updateStatus: (params = {}, options = {}) =>
|
|
824
|
+
this.request('PublicCrmSupplierController_updateStatus', params, options),
|
|
825
|
+
},
|
|
802
826
|
/**
|
|
803
827
|
* List suppliers
|
|
804
828
|
* Operation: PublicCrmSupplierController_list
|
|
@@ -2488,6 +2512,18 @@ export const operations = [
|
|
|
2488
2512
|
queryParams: [],
|
|
2489
2513
|
hasRequestBody: true,
|
|
2490
2514
|
},
|
|
2515
|
+
{
|
|
2516
|
+
operationId: 'PublicCrmCustomerController_updateStatus',
|
|
2517
|
+
resourcePath: ['crm', 'customers', 'status'],
|
|
2518
|
+
actionName: 'updateStatus',
|
|
2519
|
+
displayName: 'Update customer status',
|
|
2520
|
+
description: 'Update customer status',
|
|
2521
|
+
method: 'PATCH',
|
|
2522
|
+
path: '/customers/{id}/status',
|
|
2523
|
+
pathParams: ['id'],
|
|
2524
|
+
queryParams: [],
|
|
2525
|
+
hasRequestBody: true,
|
|
2526
|
+
},
|
|
2491
2527
|
{
|
|
2492
2528
|
operationId: 'PublicCrmCustomerController_listContacts',
|
|
2493
2529
|
resourcePath: ['crm', 'customers', 'contacts'],
|
|
@@ -2592,6 +2628,18 @@ export const operations = [
|
|
|
2592
2628
|
queryParams: [],
|
|
2593
2629
|
hasRequestBody: true,
|
|
2594
2630
|
},
|
|
2631
|
+
{
|
|
2632
|
+
operationId: 'PublicCrmContractorController_updateStatus',
|
|
2633
|
+
resourcePath: ['crm', 'contractors', 'status'],
|
|
2634
|
+
actionName: 'updateStatus',
|
|
2635
|
+
displayName: 'Update contractor status',
|
|
2636
|
+
description: 'Update contractor status',
|
|
2637
|
+
method: 'PATCH',
|
|
2638
|
+
path: '/contractors/{id}/status',
|
|
2639
|
+
pathParams: ['id'],
|
|
2640
|
+
queryParams: [],
|
|
2641
|
+
hasRequestBody: true,
|
|
2642
|
+
},
|
|
2595
2643
|
{
|
|
2596
2644
|
operationId: 'PublicCrmSupplierController_list',
|
|
2597
2645
|
resourcePath: ['crm', 'suppliers'],
|
|
@@ -2642,6 +2690,18 @@ export const operations = [
|
|
|
2642
2690
|
queryParams: [],
|
|
2643
2691
|
hasRequestBody: true,
|
|
2644
2692
|
},
|
|
2693
|
+
{
|
|
2694
|
+
operationId: 'PublicCrmSupplierController_updateStatus',
|
|
2695
|
+
resourcePath: ['crm', 'suppliers', 'status'],
|
|
2696
|
+
actionName: 'updateStatus',
|
|
2697
|
+
displayName: 'Update supplier status',
|
|
2698
|
+
description: 'Update supplier status',
|
|
2699
|
+
method: 'PATCH',
|
|
2700
|
+
path: '/suppliers/{id}/status',
|
|
2701
|
+
pathParams: ['id'],
|
|
2702
|
+
queryParams: [],
|
|
2703
|
+
hasRequestBody: true,
|
|
2704
|
+
},
|
|
2645
2705
|
{
|
|
2646
2706
|
operationId: 'PublicCrmCompanyController_list',
|
|
2647
2707
|
resourcePath: ['crm', 'companies'],
|