@workbuddy/sdk-js-vnext 1.0.5 → 1.0.7
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 +165 -0
- package/index.js +60 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2679,6 +2679,19 @@ export interface WorkBuddyCrmCustomersUpdateParams extends WorkBuddyRequestParam
|
|
|
2679
2679
|
socialNetwork?: Record<string, unknown>;
|
|
2680
2680
|
}
|
|
2681
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
|
+
|
|
2682
2695
|
export interface WorkBuddyCrmCustomersContactsListParams extends WorkBuddyRequestParams {
|
|
2683
2696
|
/**
|
|
2684
2697
|
* Customer ID
|
|
@@ -2845,6 +2858,19 @@ export interface WorkBuddyCrmContractorsUpdateParams extends WorkBuddyRequestPar
|
|
|
2845
2858
|
pricebook?: Record<string, unknown>;
|
|
2846
2859
|
}
|
|
2847
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
|
+
|
|
2848
2874
|
export interface WorkBuddyCrmSuppliersListParams extends WorkBuddyRequestParams {
|
|
2849
2875
|
cursor?: string;
|
|
2850
2876
|
|
|
@@ -2982,6 +3008,19 @@ export interface WorkBuddyCrmSuppliersUpdateParams extends WorkBuddyRequestParam
|
|
|
2982
3008
|
billTheme?: Record<string, unknown>;
|
|
2983
3009
|
}
|
|
2984
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
|
+
|
|
2985
3024
|
export interface WorkBuddyCrmCompaniesListParams extends WorkBuddyRequestParams {
|
|
2986
3025
|
cursor?: string;
|
|
2987
3026
|
|
|
@@ -4698,6 +4737,30 @@ export type WorkBuddyCrmCustomersUpdateResponse = {
|
|
|
4698
4737
|
socialNetwork: string;
|
|
4699
4738
|
};
|
|
4700
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
|
+
};
|
|
4701
4764
|
export type WorkBuddyCrmCustomersContactsListResponse = {
|
|
4702
4765
|
items: {
|
|
4703
4766
|
id: string;
|
|
@@ -4846,6 +4909,37 @@ export type WorkBuddyCrmContractorsUpdateResponse = {
|
|
|
4846
4909
|
pricebook: string;
|
|
4847
4910
|
};
|
|
4848
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
|
+
};
|
|
4849
4943
|
export type WorkBuddyCrmSuppliersListResponse = {
|
|
4850
4944
|
items: {
|
|
4851
4945
|
id: string;
|
|
@@ -4955,6 +5049,38 @@ export type WorkBuddyCrmSuppliersUpdateResponse = {
|
|
|
4955
5049
|
billTheme: string;
|
|
4956
5050
|
};
|
|
4957
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
|
+
};
|
|
4958
5084
|
export type WorkBuddyCrmCompaniesListResponse = {
|
|
4959
5085
|
items: {
|
|
4960
5086
|
id: string;
|
|
@@ -6295,6 +6421,8 @@ export interface WorkBuddyCrmResource {
|
|
|
6295
6421
|
}
|
|
6296
6422
|
|
|
6297
6423
|
export interface WorkBuddyCrmCustomersResource {
|
|
6424
|
+
/** Status API operations. */
|
|
6425
|
+
status: WorkBuddyCrmCustomersStatusResource;
|
|
6298
6426
|
/** Contacts API operations. */
|
|
6299
6427
|
contacts: WorkBuddyCrmCustomersContactsResource;
|
|
6300
6428
|
/** Sites API operations. */
|
|
@@ -6345,6 +6473,17 @@ export interface WorkBuddyCrmCustomersResource {
|
|
|
6345
6473
|
): Promise<TResponse>;
|
|
6346
6474
|
}
|
|
6347
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
|
+
|
|
6348
6487
|
export interface WorkBuddyCrmCustomersContactsResource {
|
|
6349
6488
|
/**
|
|
6350
6489
|
* List contacts for customer
|
|
@@ -6417,6 +6556,8 @@ export interface WorkBuddyCrmEmployeesResource {
|
|
|
6417
6556
|
}
|
|
6418
6557
|
|
|
6419
6558
|
export interface WorkBuddyCrmContractorsResource {
|
|
6559
|
+
/** Status API operations. */
|
|
6560
|
+
status: WorkBuddyCrmContractorsStatusResource;
|
|
6420
6561
|
/**
|
|
6421
6562
|
* List contractors
|
|
6422
6563
|
* Operation: PublicCrmContractorController_list
|
|
@@ -6463,7 +6604,20 @@ export interface WorkBuddyCrmContractorsResource {
|
|
|
6463
6604
|
): Promise<TResponse>;
|
|
6464
6605
|
}
|
|
6465
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
|
+
|
|
6466
6618
|
export interface WorkBuddyCrmSuppliersResource {
|
|
6619
|
+
/** Status API operations. */
|
|
6620
|
+
status: WorkBuddyCrmSuppliersStatusResource;
|
|
6467
6621
|
/**
|
|
6468
6622
|
* List suppliers
|
|
6469
6623
|
* Operation: PublicCrmSupplierController_list
|
|
@@ -6510,6 +6664,17 @@ export interface WorkBuddyCrmSuppliersResource {
|
|
|
6510
6664
|
): Promise<TResponse>;
|
|
6511
6665
|
}
|
|
6512
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
|
+
|
|
6513
6678
|
export interface WorkBuddyCrmCompaniesResource {
|
|
6514
6679
|
/**
|
|
6515
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'],
|