@workbuddy/sdk-js-vnext 1.0.109 → 1.0.111
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 +136 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4641,10 +4641,63 @@ export interface WorkBuddyCrmContractorsCreateParams extends WorkBuddyRequestPar
|
|
|
4641
4641
|
* Custom fields as key-value pairs — validated against tenant field definitions
|
|
4642
4642
|
*/
|
|
4643
4643
|
customFields?: Record<string, unknown>;
|
|
4644
|
-
|
|
4644
|
+
/**
|
|
4645
|
+
* Social network values
|
|
4646
|
+
*/
|
|
4645
4647
|
socialNetwork?: { facebook?: string; twitter?: string; linkedin?: string; instagram?: string };
|
|
4646
|
-
|
|
4648
|
+
/**
|
|
4649
|
+
* Hide prices from contractor
|
|
4650
|
+
*/
|
|
4647
4651
|
hidePrices?: boolean;
|
|
4652
|
+
/**
|
|
4653
|
+
* Tax identifier (ABN)
|
|
4654
|
+
*/
|
|
4655
|
+
taxId?: string;
|
|
4656
|
+
/**
|
|
4657
|
+
* Tax settings
|
|
4658
|
+
*/
|
|
4659
|
+
accounting?: { purchaseTaxRate?: { id: string; name?: string; type?: string } };
|
|
4660
|
+
/**
|
|
4661
|
+
* Finance tags. Replaces the current list. List via GET /settings/tags?type=finance
|
|
4662
|
+
*/
|
|
4663
|
+
financeTags?: { id: string; name?: string; type?: string }[];
|
|
4664
|
+
/**
|
|
4665
|
+
* Invoice delivery options
|
|
4666
|
+
*/
|
|
4667
|
+
invoices?: { enabled?: boolean; emailCC?: string[] };
|
|
4668
|
+
/**
|
|
4669
|
+
* Bill generation (RCTI)
|
|
4670
|
+
*/
|
|
4671
|
+
bills?: { enabled: boolean };
|
|
4672
|
+
/**
|
|
4673
|
+
* Bill-to account, site and contact. Site and contact must belong to the bill-to account.
|
|
4674
|
+
*/
|
|
4675
|
+
billTo?: {
|
|
4676
|
+
company?: { id: string; name?: string; type?: string };
|
|
4677
|
+
site?: { id: string; name?: string; type?: string };
|
|
4678
|
+
contact?: { id: string; name?: string; type?: string };
|
|
4679
|
+
};
|
|
4680
|
+
/**
|
|
4681
|
+
* Payment terms. They apply while the contractor is its own bill-to account (billTo.company is the contractor), which is the only case the Finance tab shows them. They are stored regardless, but while another account is billed that account's payment terms apply.
|
|
4682
|
+
*/
|
|
4683
|
+
credit?: {
|
|
4684
|
+
type?: 'Prepaid' | 'Credit';
|
|
4685
|
+
limitAmount?: number;
|
|
4686
|
+
limitBlock?: 'Warning' | 'Block';
|
|
4687
|
+
dueDate?: {
|
|
4688
|
+
type:
|
|
4689
|
+
| 'Due on Receipt'
|
|
4690
|
+
| 'X day(s) after the bill/invoice date'
|
|
4691
|
+
| 'X day(s) after end of bill/invoice month'
|
|
4692
|
+
| 'Xth day of the current month'
|
|
4693
|
+
| 'Xth day of the following month';
|
|
4694
|
+
value?: number;
|
|
4695
|
+
};
|
|
4696
|
+
};
|
|
4697
|
+
/**
|
|
4698
|
+
* Document theme for this contractor's bills
|
|
4699
|
+
*/
|
|
4700
|
+
billTheme?: { id: string; name?: string; type?: string };
|
|
4648
4701
|
}
|
|
4649
4702
|
|
|
4650
4703
|
export interface WorkBuddyCrmContractorsGetParams extends WorkBuddyRequestParams {
|
|
@@ -4713,6 +4766,55 @@ export interface WorkBuddyCrmContractorsUpdateParams extends WorkBuddyRequestPar
|
|
|
4713
4766
|
hidePrices?: boolean;
|
|
4714
4767
|
|
|
4715
4768
|
pricebook?: Record<string, unknown>;
|
|
4769
|
+
/**
|
|
4770
|
+
* Tax identifier (ABN)
|
|
4771
|
+
*/
|
|
4772
|
+
taxId?: string;
|
|
4773
|
+
/**
|
|
4774
|
+
* Tax settings
|
|
4775
|
+
*/
|
|
4776
|
+
accounting?: { purchaseTaxRate?: { id: string; name?: string; type?: string } };
|
|
4777
|
+
/**
|
|
4778
|
+
* Finance tags. Replaces the current list. List via GET /settings/tags?type=finance
|
|
4779
|
+
*/
|
|
4780
|
+
financeTags?: { id: string; name?: string; type?: string }[];
|
|
4781
|
+
/**
|
|
4782
|
+
* Invoice delivery options
|
|
4783
|
+
*/
|
|
4784
|
+
invoices?: { enabled?: boolean; emailCC?: string[] };
|
|
4785
|
+
/**
|
|
4786
|
+
* Bill generation (RCTI)
|
|
4787
|
+
*/
|
|
4788
|
+
bills?: { enabled: boolean };
|
|
4789
|
+
/**
|
|
4790
|
+
* Bill-to account, site and contact. Site and contact must belong to the bill-to account.
|
|
4791
|
+
*/
|
|
4792
|
+
billTo?: {
|
|
4793
|
+
company?: { id: string; name?: string; type?: string };
|
|
4794
|
+
site?: { id: string; name?: string; type?: string };
|
|
4795
|
+
contact?: { id: string; name?: string; type?: string };
|
|
4796
|
+
};
|
|
4797
|
+
/**
|
|
4798
|
+
* Payment terms. They apply while the contractor is its own bill-to account (billTo.company is the contractor), which is the only case the Finance tab shows them. They are stored regardless, but while another account is billed that account's payment terms apply.
|
|
4799
|
+
*/
|
|
4800
|
+
credit?: {
|
|
4801
|
+
type?: 'Prepaid' | 'Credit';
|
|
4802
|
+
limitAmount?: number;
|
|
4803
|
+
limitBlock?: 'Warning' | 'Block';
|
|
4804
|
+
dueDate?: {
|
|
4805
|
+
type:
|
|
4806
|
+
| 'Due on Receipt'
|
|
4807
|
+
| 'X day(s) after the bill/invoice date'
|
|
4808
|
+
| 'X day(s) after end of bill/invoice month'
|
|
4809
|
+
| 'Xth day of the current month'
|
|
4810
|
+
| 'Xth day of the following month';
|
|
4811
|
+
value?: number;
|
|
4812
|
+
};
|
|
4813
|
+
};
|
|
4814
|
+
/**
|
|
4815
|
+
* Document theme for this contractor's bills
|
|
4816
|
+
*/
|
|
4817
|
+
billTheme?: { id: string; name?: string; type?: string };
|
|
4716
4818
|
}
|
|
4717
4819
|
|
|
4718
4820
|
export interface WorkBuddyCrmContractorsDeleteParams extends WorkBuddyRequestParams {
|
|
@@ -12149,6 +12251,14 @@ export type WorkBuddyCrmContractorsCreateResponse = {
|
|
|
12149
12251
|
timesheet: string;
|
|
12150
12252
|
hidePrices: string;
|
|
12151
12253
|
pricebook: string;
|
|
12254
|
+
taxId: string;
|
|
12255
|
+
accounting: { purchaseTaxRate: string };
|
|
12256
|
+
financeTags: { id: string; name: string; type?: string; color?: string }[];
|
|
12257
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
12258
|
+
bills: { enabled: boolean };
|
|
12259
|
+
billTo: { company: string; site: string; contact: string };
|
|
12260
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12261
|
+
billTheme: string;
|
|
12152
12262
|
};
|
|
12153
12263
|
};
|
|
12154
12264
|
export type WorkBuddyCrmContractorsGetResponse = {
|
|
@@ -12181,6 +12291,14 @@ export type WorkBuddyCrmContractorsGetResponse = {
|
|
|
12181
12291
|
timesheet: string;
|
|
12182
12292
|
hidePrices: string;
|
|
12183
12293
|
pricebook: string;
|
|
12294
|
+
taxId: string;
|
|
12295
|
+
accounting: { purchaseTaxRate: string };
|
|
12296
|
+
financeTags: { id: string; name: string; type?: string; color?: string }[];
|
|
12297
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
12298
|
+
bills: { enabled: boolean };
|
|
12299
|
+
billTo: { company: string; site: string; contact: string };
|
|
12300
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12301
|
+
billTheme: string;
|
|
12184
12302
|
};
|
|
12185
12303
|
};
|
|
12186
12304
|
export type WorkBuddyCrmContractorsUpdateResponse = {
|
|
@@ -12213,6 +12331,14 @@ export type WorkBuddyCrmContractorsUpdateResponse = {
|
|
|
12213
12331
|
timesheet: string;
|
|
12214
12332
|
hidePrices: string;
|
|
12215
12333
|
pricebook: string;
|
|
12334
|
+
taxId: string;
|
|
12335
|
+
accounting: { purchaseTaxRate: string };
|
|
12336
|
+
financeTags: { id: string; name: string; type?: string; color?: string }[];
|
|
12337
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
12338
|
+
bills: { enabled: boolean };
|
|
12339
|
+
billTo: { company: string; site: string; contact: string };
|
|
12340
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12341
|
+
billTheme: string;
|
|
12216
12342
|
};
|
|
12217
12343
|
};
|
|
12218
12344
|
export type WorkBuddyCrmContractorsDeleteResponse = { id: string; deleted: boolean };
|
|
@@ -12246,6 +12372,14 @@ export type WorkBuddyCrmContractorsStatusUpdateStatusResponse = {
|
|
|
12246
12372
|
timesheet: string;
|
|
12247
12373
|
hidePrices: string;
|
|
12248
12374
|
pricebook: string;
|
|
12375
|
+
taxId: string;
|
|
12376
|
+
accounting: { purchaseTaxRate: string };
|
|
12377
|
+
financeTags: { id: string; name: string; type?: string; color?: string }[];
|
|
12378
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
12379
|
+
bills: { enabled: boolean };
|
|
12380
|
+
billTo: { company: string; site: string; contact: string };
|
|
12381
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12382
|
+
billTheme: string;
|
|
12249
12383
|
};
|
|
12250
12384
|
};
|
|
12251
12385
|
export type WorkBuddyCrmContractorsContactsListResponse = {
|