@workbuddy/sdk-js-vnext 1.0.122 → 1.0.124
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 +427 -41
- package/index.js +15 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3473,6 +3473,18 @@ export interface WorkBuddyJobsActivitiesListParams extends WorkBuddyRequestParam
|
|
|
3473
3473
|
* Job ID or job number (e.g. J12345)
|
|
3474
3474
|
*/
|
|
3475
3475
|
jobId: string;
|
|
3476
|
+
/**
|
|
3477
|
+
* Filter by kind (repeat for multiple kinds)
|
|
3478
|
+
*/
|
|
3479
|
+
kind?: unknown[];
|
|
3480
|
+
/**
|
|
3481
|
+
* Pagination cursor from previous response
|
|
3482
|
+
*/
|
|
3483
|
+
cursor?: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* Maximum results to return (1-200)
|
|
3486
|
+
*/
|
|
3487
|
+
limit?: number;
|
|
3476
3488
|
}
|
|
3477
3489
|
|
|
3478
3490
|
export interface WorkBuddyJobsActivitiesGetParams extends WorkBuddyRequestParams {
|
|
@@ -3600,7 +3612,7 @@ export interface WorkBuddyJobsActivitiesPhoneCreatePhoneParams extends WorkBuddy
|
|
|
3600
3612
|
|
|
3601
3613
|
direction: 'inbound' | 'outbound';
|
|
3602
3614
|
|
|
3603
|
-
outcome
|
|
3615
|
+
outcome: 'connected' | 'left_message' | 'left_voicemail' | 'busy' | 'no_answer' | 'wrong_number' | 'invalid_number';
|
|
3604
3616
|
|
|
3605
3617
|
duration?: number;
|
|
3606
3618
|
/**
|
|
@@ -3662,6 +3674,18 @@ export interface WorkBuddyJobsStagesActivitiesListParams extends WorkBuddyReques
|
|
|
3662
3674
|
stageId: string;
|
|
3663
3675
|
|
|
3664
3676
|
jobId: string;
|
|
3677
|
+
/**
|
|
3678
|
+
* Filter by kind (repeat for multiple kinds)
|
|
3679
|
+
*/
|
|
3680
|
+
kind?: unknown[];
|
|
3681
|
+
/**
|
|
3682
|
+
* Pagination cursor from previous response
|
|
3683
|
+
*/
|
|
3684
|
+
cursor?: string;
|
|
3685
|
+
/**
|
|
3686
|
+
* Maximum results to return (1-200)
|
|
3687
|
+
*/
|
|
3688
|
+
limit?: number;
|
|
3665
3689
|
}
|
|
3666
3690
|
|
|
3667
3691
|
export interface WorkBuddyJobsStagesActivitiesGetParams extends WorkBuddyRequestParams {
|
|
@@ -3805,7 +3829,7 @@ export interface WorkBuddyJobsStagesActivitiesPhoneCreatePhoneParams extends Wor
|
|
|
3805
3829
|
|
|
3806
3830
|
direction: 'inbound' | 'outbound';
|
|
3807
3831
|
|
|
3808
|
-
outcome
|
|
3832
|
+
outcome: 'connected' | 'left_message' | 'left_voicemail' | 'busy' | 'no_answer' | 'wrong_number' | 'invalid_number';
|
|
3809
3833
|
|
|
3810
3834
|
duration?: number;
|
|
3811
3835
|
/**
|
|
@@ -4415,6 +4439,16 @@ export interface WorkBuddyCrmCustomersCreateParams extends WorkBuddyRequestParam
|
|
|
4415
4439
|
type: 'Service Provider' | 'Business' | 'Residential';
|
|
4416
4440
|
|
|
4417
4441
|
socialNetwork?: { facebook?: string; twitter?: string; linkedin?: string; instagram?: string };
|
|
4442
|
+
|
|
4443
|
+
billTo?: {
|
|
4444
|
+
company?: { id: string; name?: string; type?: string };
|
|
4445
|
+
site?: { id: string; name?: string; type?: string };
|
|
4446
|
+
contact?: { id: string; name?: string; type?: string };
|
|
4447
|
+
};
|
|
4448
|
+
/**
|
|
4449
|
+
* Tax settings. Optional. Omitted leaves the stored sales tax rate unchanged.
|
|
4450
|
+
*/
|
|
4451
|
+
accounting?: { salesTaxRate?: { id: string; name?: string; type?: string } };
|
|
4418
4452
|
}
|
|
4419
4453
|
|
|
4420
4454
|
export interface WorkBuddyCrmCustomersGetParams extends WorkBuddyRequestParams {
|
|
@@ -4467,6 +4501,16 @@ export interface WorkBuddyCrmCustomersUpdateParams extends WorkBuddyRequestParam
|
|
|
4467
4501
|
customFields?: Record<string, unknown>;
|
|
4468
4502
|
|
|
4469
4503
|
socialNetwork?: { facebook?: string; twitter?: string; linkedin?: string; instagram?: string };
|
|
4504
|
+
|
|
4505
|
+
billTo?: {
|
|
4506
|
+
company?: { id: string; name?: string; type?: string };
|
|
4507
|
+
site?: { id: string; name?: string; type?: string };
|
|
4508
|
+
contact?: { id: string; name?: string; type?: string };
|
|
4509
|
+
};
|
|
4510
|
+
/**
|
|
4511
|
+
* Tax settings. Optional. Omitted leaves the stored sales tax rate unchanged.
|
|
4512
|
+
*/
|
|
4513
|
+
accounting?: { salesTaxRate?: { id: string; name?: string; type?: string } };
|
|
4470
4514
|
}
|
|
4471
4515
|
|
|
4472
4516
|
export interface WorkBuddyCrmCustomersDeleteParams extends WorkBuddyRequestParams {
|
|
@@ -4677,7 +4721,7 @@ export interface WorkBuddyCrmContractorsCreateParams extends WorkBuddyRequestPar
|
|
|
4677
4721
|
*/
|
|
4678
4722
|
hidePrices?: boolean;
|
|
4679
4723
|
/**
|
|
4680
|
-
* Tax identifier (ABN)
|
|
4724
|
+
* Tax identifier (ABN). Null clears the stored value.
|
|
4681
4725
|
*/
|
|
4682
4726
|
taxId?: string;
|
|
4683
4727
|
/**
|
|
@@ -4794,7 +4838,7 @@ export interface WorkBuddyCrmContractorsUpdateParams extends WorkBuddyRequestPar
|
|
|
4794
4838
|
|
|
4795
4839
|
pricebook?: Record<string, unknown>;
|
|
4796
4840
|
/**
|
|
4797
|
-
* Tax identifier (ABN)
|
|
4841
|
+
* Tax identifier (ABN). Null clears the stored value.
|
|
4798
4842
|
*/
|
|
4799
4843
|
taxId?: string;
|
|
4800
4844
|
/**
|
|
@@ -5025,6 +5069,16 @@ export interface WorkBuddyCrmSuppliersCreateParams extends WorkBuddyRequestParam
|
|
|
5025
5069
|
* tax ID
|
|
5026
5070
|
*/
|
|
5027
5071
|
taxId?: string;
|
|
5072
|
+
|
|
5073
|
+
billTo?: {
|
|
5074
|
+
company?: { id: string; name?: string; type?: string };
|
|
5075
|
+
site?: { id: string; name?: string; type?: string };
|
|
5076
|
+
contact?: { id: string; name?: string; type?: string };
|
|
5077
|
+
};
|
|
5078
|
+
/**
|
|
5079
|
+
* Tax settings. Optional. Omitted leaves the stored purchase tax rate and markup unchanged.
|
|
5080
|
+
*/
|
|
5081
|
+
accounting?: { purchaseTaxRate?: { id: string; name?: string; type?: string }; markupPercent?: number };
|
|
5028
5082
|
}
|
|
5029
5083
|
|
|
5030
5084
|
export interface WorkBuddyCrmSuppliersGetParams extends WorkBuddyRequestParams {
|
|
@@ -5085,14 +5139,20 @@ export interface WorkBuddyCrmSuppliersUpdateParams extends WorkBuddyRequestParam
|
|
|
5085
5139
|
* tax ID
|
|
5086
5140
|
*/
|
|
5087
5141
|
taxId?: string;
|
|
5088
|
-
|
|
5089
|
-
|
|
5142
|
+
/**
|
|
5143
|
+
* Tax settings. Optional. Omitted leaves the stored purchase tax rate and markup unchanged.
|
|
5144
|
+
*/
|
|
5145
|
+
accounting?: { purchaseTaxRate?: { id: string; name?: string; type?: string }; markupPercent?: number };
|
|
5090
5146
|
|
|
5091
5147
|
financeTags?: Record<string, unknown>[];
|
|
5092
5148
|
|
|
5093
5149
|
invoices?: Record<string, unknown>;
|
|
5094
5150
|
|
|
5095
|
-
billTo?:
|
|
5151
|
+
billTo?: {
|
|
5152
|
+
company?: { id: string; name?: string; type?: string };
|
|
5153
|
+
site?: { id: string; name?: string; type?: string };
|
|
5154
|
+
contact?: { id: string; name?: string; type?: string };
|
|
5155
|
+
};
|
|
5096
5156
|
|
|
5097
5157
|
credit?: Record<string, unknown>;
|
|
5098
5158
|
|
|
@@ -11949,24 +12009,324 @@ export type WorkBuddyAttachmentsCreateUploadSessionResponse = {
|
|
|
11949
12009
|
};
|
|
11950
12010
|
};
|
|
11951
12011
|
export type WorkBuddyAttachmentsDownloadResponse = unknown;
|
|
11952
|
-
export type WorkBuddyJobsActivitiesListResponse =
|
|
11953
|
-
|
|
12012
|
+
export type WorkBuddyJobsActivitiesListResponse = {
|
|
12013
|
+
items: Record<string, unknown>[];
|
|
12014
|
+
pagination: { limit: number; hasMore: boolean; nextCursor: string };
|
|
12015
|
+
};
|
|
12016
|
+
export type WorkBuddyJobsActivitiesGetResponse = {
|
|
12017
|
+
id: string;
|
|
12018
|
+
kind:
|
|
12019
|
+
| 'email'
|
|
12020
|
+
| 'sms'
|
|
12021
|
+
| 'note'
|
|
12022
|
+
| 'phone'
|
|
12023
|
+
| 'integration'
|
|
12024
|
+
| 'appointment'
|
|
12025
|
+
| 'form'
|
|
12026
|
+
| 'view'
|
|
12027
|
+
| 'agent'
|
|
12028
|
+
| 'system'
|
|
12029
|
+
| 'thread';
|
|
12030
|
+
body?: string;
|
|
12031
|
+
attachments?: string;
|
|
12032
|
+
createdAt?: string;
|
|
12033
|
+
updatedAt?: string;
|
|
12034
|
+
createdBy?: string;
|
|
12035
|
+
labels?: string;
|
|
12036
|
+
sharing?: string;
|
|
12037
|
+
};
|
|
11954
12038
|
export type WorkBuddyJobsActivitiesDeleteResponse = unknown;
|
|
11955
|
-
export type WorkBuddyJobsActivitiesNoteCreateNoteResponse =
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
12039
|
+
export type WorkBuddyJobsActivitiesNoteCreateNoteResponse = {
|
|
12040
|
+
id: string;
|
|
12041
|
+
kind:
|
|
12042
|
+
| 'email'
|
|
12043
|
+
| 'sms'
|
|
12044
|
+
| 'note'
|
|
12045
|
+
| 'phone'
|
|
12046
|
+
| 'integration'
|
|
12047
|
+
| 'appointment'
|
|
12048
|
+
| 'form'
|
|
12049
|
+
| 'view'
|
|
12050
|
+
| 'agent'
|
|
12051
|
+
| 'system'
|
|
12052
|
+
| 'thread';
|
|
12053
|
+
body?: string;
|
|
12054
|
+
attachments?: string;
|
|
12055
|
+
createdAt?: string;
|
|
12056
|
+
updatedAt?: string;
|
|
12057
|
+
createdBy?: string;
|
|
12058
|
+
labels?: string;
|
|
12059
|
+
sharing?: string;
|
|
12060
|
+
};
|
|
12061
|
+
export type WorkBuddyJobsActivitiesEmailCreateEmailResponse = {
|
|
12062
|
+
id: string;
|
|
12063
|
+
kind:
|
|
12064
|
+
| 'email'
|
|
12065
|
+
| 'sms'
|
|
12066
|
+
| 'note'
|
|
12067
|
+
| 'phone'
|
|
12068
|
+
| 'integration'
|
|
12069
|
+
| 'appointment'
|
|
12070
|
+
| 'form'
|
|
12071
|
+
| 'view'
|
|
12072
|
+
| 'agent'
|
|
12073
|
+
| 'system'
|
|
12074
|
+
| 'thread';
|
|
12075
|
+
body?: string;
|
|
12076
|
+
attachments?: string;
|
|
12077
|
+
createdAt?: string;
|
|
12078
|
+
updatedAt?: string;
|
|
12079
|
+
createdBy?: string;
|
|
12080
|
+
labels?: string;
|
|
12081
|
+
sharing?: string;
|
|
12082
|
+
};
|
|
12083
|
+
export type WorkBuddyJobsActivitiesSmsCreateSmsResponse = {
|
|
12084
|
+
id: string;
|
|
12085
|
+
kind:
|
|
12086
|
+
| 'email'
|
|
12087
|
+
| 'sms'
|
|
12088
|
+
| 'note'
|
|
12089
|
+
| 'phone'
|
|
12090
|
+
| 'integration'
|
|
12091
|
+
| 'appointment'
|
|
12092
|
+
| 'form'
|
|
12093
|
+
| 'view'
|
|
12094
|
+
| 'agent'
|
|
12095
|
+
| 'system'
|
|
12096
|
+
| 'thread';
|
|
12097
|
+
body?: string;
|
|
12098
|
+
attachments?: string;
|
|
12099
|
+
createdAt?: string;
|
|
12100
|
+
updatedAt?: string;
|
|
12101
|
+
createdBy?: string;
|
|
12102
|
+
labels?: string;
|
|
12103
|
+
sharing?: string;
|
|
12104
|
+
};
|
|
12105
|
+
export type WorkBuddyJobsActivitiesPhoneCreatePhoneResponse = {
|
|
12106
|
+
id: string;
|
|
12107
|
+
kind:
|
|
12108
|
+
| 'email'
|
|
12109
|
+
| 'sms'
|
|
12110
|
+
| 'note'
|
|
12111
|
+
| 'phone'
|
|
12112
|
+
| 'integration'
|
|
12113
|
+
| 'appointment'
|
|
12114
|
+
| 'form'
|
|
12115
|
+
| 'view'
|
|
12116
|
+
| 'agent'
|
|
12117
|
+
| 'system'
|
|
12118
|
+
| 'thread';
|
|
12119
|
+
body?: string;
|
|
12120
|
+
attachments?: string;
|
|
12121
|
+
createdAt?: string;
|
|
12122
|
+
updatedAt?: string;
|
|
12123
|
+
createdBy?: string;
|
|
12124
|
+
labels?: string;
|
|
12125
|
+
sharing?: string;
|
|
12126
|
+
};
|
|
12127
|
+
export type WorkBuddyJobsActivitiesIntegrationCreateIntegrationResponse = {
|
|
12128
|
+
id: string;
|
|
12129
|
+
kind:
|
|
12130
|
+
| 'email'
|
|
12131
|
+
| 'sms'
|
|
12132
|
+
| 'note'
|
|
12133
|
+
| 'phone'
|
|
12134
|
+
| 'integration'
|
|
12135
|
+
| 'appointment'
|
|
12136
|
+
| 'form'
|
|
12137
|
+
| 'view'
|
|
12138
|
+
| 'agent'
|
|
12139
|
+
| 'system'
|
|
12140
|
+
| 'thread';
|
|
12141
|
+
body?: string;
|
|
12142
|
+
attachments?: string;
|
|
12143
|
+
createdAt?: string;
|
|
12144
|
+
updatedAt?: string;
|
|
12145
|
+
createdBy?: string;
|
|
12146
|
+
labels?: string;
|
|
12147
|
+
sharing?: string;
|
|
12148
|
+
};
|
|
12149
|
+
export type WorkBuddyJobsActivitiesThreadCreateThreadResponse = {
|
|
12150
|
+
id: string;
|
|
12151
|
+
kind:
|
|
12152
|
+
| 'email'
|
|
12153
|
+
| 'sms'
|
|
12154
|
+
| 'note'
|
|
12155
|
+
| 'phone'
|
|
12156
|
+
| 'integration'
|
|
12157
|
+
| 'appointment'
|
|
12158
|
+
| 'form'
|
|
12159
|
+
| 'view'
|
|
12160
|
+
| 'agent'
|
|
12161
|
+
| 'system'
|
|
12162
|
+
| 'thread';
|
|
12163
|
+
body?: string;
|
|
12164
|
+
attachments?: string;
|
|
12165
|
+
createdAt?: string;
|
|
12166
|
+
updatedAt?: string;
|
|
12167
|
+
createdBy?: string;
|
|
12168
|
+
labels?: string;
|
|
12169
|
+
sharing?: string;
|
|
12170
|
+
};
|
|
12171
|
+
export type WorkBuddyJobsStagesActivitiesListResponse = {
|
|
12172
|
+
items: Record<string, unknown>[];
|
|
12173
|
+
pagination: { limit: number; hasMore: boolean; nextCursor: string };
|
|
12174
|
+
};
|
|
12175
|
+
export type WorkBuddyJobsStagesActivitiesGetResponse = {
|
|
12176
|
+
id: string;
|
|
12177
|
+
kind:
|
|
12178
|
+
| 'email'
|
|
12179
|
+
| 'sms'
|
|
12180
|
+
| 'note'
|
|
12181
|
+
| 'phone'
|
|
12182
|
+
| 'integration'
|
|
12183
|
+
| 'appointment'
|
|
12184
|
+
| 'form'
|
|
12185
|
+
| 'view'
|
|
12186
|
+
| 'agent'
|
|
12187
|
+
| 'system'
|
|
12188
|
+
| 'thread';
|
|
12189
|
+
body?: string;
|
|
12190
|
+
attachments?: string;
|
|
12191
|
+
createdAt?: string;
|
|
12192
|
+
updatedAt?: string;
|
|
12193
|
+
createdBy?: string;
|
|
12194
|
+
labels?: string;
|
|
12195
|
+
sharing?: string;
|
|
12196
|
+
};
|
|
11963
12197
|
export type WorkBuddyJobsStagesActivitiesDeleteResponse = unknown;
|
|
11964
|
-
export type WorkBuddyJobsStagesActivitiesNoteCreateNoteResponse =
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
12198
|
+
export type WorkBuddyJobsStagesActivitiesNoteCreateNoteResponse = {
|
|
12199
|
+
id: string;
|
|
12200
|
+
kind:
|
|
12201
|
+
| 'email'
|
|
12202
|
+
| 'sms'
|
|
12203
|
+
| 'note'
|
|
12204
|
+
| 'phone'
|
|
12205
|
+
| 'integration'
|
|
12206
|
+
| 'appointment'
|
|
12207
|
+
| 'form'
|
|
12208
|
+
| 'view'
|
|
12209
|
+
| 'agent'
|
|
12210
|
+
| 'system'
|
|
12211
|
+
| 'thread';
|
|
12212
|
+
body?: string;
|
|
12213
|
+
attachments?: string;
|
|
12214
|
+
createdAt?: string;
|
|
12215
|
+
updatedAt?: string;
|
|
12216
|
+
createdBy?: string;
|
|
12217
|
+
labels?: string;
|
|
12218
|
+
sharing?: string;
|
|
12219
|
+
};
|
|
12220
|
+
export type WorkBuddyJobsStagesActivitiesEmailCreateEmailResponse = {
|
|
12221
|
+
id: string;
|
|
12222
|
+
kind:
|
|
12223
|
+
| 'email'
|
|
12224
|
+
| 'sms'
|
|
12225
|
+
| 'note'
|
|
12226
|
+
| 'phone'
|
|
12227
|
+
| 'integration'
|
|
12228
|
+
| 'appointment'
|
|
12229
|
+
| 'form'
|
|
12230
|
+
| 'view'
|
|
12231
|
+
| 'agent'
|
|
12232
|
+
| 'system'
|
|
12233
|
+
| 'thread';
|
|
12234
|
+
body?: string;
|
|
12235
|
+
attachments?: string;
|
|
12236
|
+
createdAt?: string;
|
|
12237
|
+
updatedAt?: string;
|
|
12238
|
+
createdBy?: string;
|
|
12239
|
+
labels?: string;
|
|
12240
|
+
sharing?: string;
|
|
12241
|
+
};
|
|
12242
|
+
export type WorkBuddyJobsStagesActivitiesSmsCreateSmsResponse = {
|
|
12243
|
+
id: string;
|
|
12244
|
+
kind:
|
|
12245
|
+
| 'email'
|
|
12246
|
+
| 'sms'
|
|
12247
|
+
| 'note'
|
|
12248
|
+
| 'phone'
|
|
12249
|
+
| 'integration'
|
|
12250
|
+
| 'appointment'
|
|
12251
|
+
| 'form'
|
|
12252
|
+
| 'view'
|
|
12253
|
+
| 'agent'
|
|
12254
|
+
| 'system'
|
|
12255
|
+
| 'thread';
|
|
12256
|
+
body?: string;
|
|
12257
|
+
attachments?: string;
|
|
12258
|
+
createdAt?: string;
|
|
12259
|
+
updatedAt?: string;
|
|
12260
|
+
createdBy?: string;
|
|
12261
|
+
labels?: string;
|
|
12262
|
+
sharing?: string;
|
|
12263
|
+
};
|
|
12264
|
+
export type WorkBuddyJobsStagesActivitiesPhoneCreatePhoneResponse = {
|
|
12265
|
+
id: string;
|
|
12266
|
+
kind:
|
|
12267
|
+
| 'email'
|
|
12268
|
+
| 'sms'
|
|
12269
|
+
| 'note'
|
|
12270
|
+
| 'phone'
|
|
12271
|
+
| 'integration'
|
|
12272
|
+
| 'appointment'
|
|
12273
|
+
| 'form'
|
|
12274
|
+
| 'view'
|
|
12275
|
+
| 'agent'
|
|
12276
|
+
| 'system'
|
|
12277
|
+
| 'thread';
|
|
12278
|
+
body?: string;
|
|
12279
|
+
attachments?: string;
|
|
12280
|
+
createdAt?: string;
|
|
12281
|
+
updatedAt?: string;
|
|
12282
|
+
createdBy?: string;
|
|
12283
|
+
labels?: string;
|
|
12284
|
+
sharing?: string;
|
|
12285
|
+
};
|
|
12286
|
+
export type WorkBuddyJobsStagesActivitiesIntegrationCreateIntegrationResponse = {
|
|
12287
|
+
id: string;
|
|
12288
|
+
kind:
|
|
12289
|
+
| 'email'
|
|
12290
|
+
| 'sms'
|
|
12291
|
+
| 'note'
|
|
12292
|
+
| 'phone'
|
|
12293
|
+
| 'integration'
|
|
12294
|
+
| 'appointment'
|
|
12295
|
+
| 'form'
|
|
12296
|
+
| 'view'
|
|
12297
|
+
| 'agent'
|
|
12298
|
+
| 'system'
|
|
12299
|
+
| 'thread';
|
|
12300
|
+
body?: string;
|
|
12301
|
+
attachments?: string;
|
|
12302
|
+
createdAt?: string;
|
|
12303
|
+
updatedAt?: string;
|
|
12304
|
+
createdBy?: string;
|
|
12305
|
+
labels?: string;
|
|
12306
|
+
sharing?: string;
|
|
12307
|
+
};
|
|
12308
|
+
export type WorkBuddyJobsStagesActivitiesThreadCreateThreadResponse = {
|
|
12309
|
+
id: string;
|
|
12310
|
+
kind:
|
|
12311
|
+
| 'email'
|
|
12312
|
+
| 'sms'
|
|
12313
|
+
| 'note'
|
|
12314
|
+
| 'phone'
|
|
12315
|
+
| 'integration'
|
|
12316
|
+
| 'appointment'
|
|
12317
|
+
| 'form'
|
|
12318
|
+
| 'view'
|
|
12319
|
+
| 'agent'
|
|
12320
|
+
| 'system'
|
|
12321
|
+
| 'thread';
|
|
12322
|
+
body?: string;
|
|
12323
|
+
attachments?: string;
|
|
12324
|
+
createdAt?: string;
|
|
12325
|
+
updatedAt?: string;
|
|
12326
|
+
createdBy?: string;
|
|
12327
|
+
labels?: string;
|
|
12328
|
+
sharing?: string;
|
|
12329
|
+
};
|
|
11970
12330
|
export type WorkBuddyJobsFilesListResponse = unknown;
|
|
11971
12331
|
export type WorkBuddyJobsFilesCreateResponse = unknown;
|
|
11972
12332
|
export type WorkBuddyJobsFilesGetResponse = unknown;
|
|
@@ -12071,6 +12431,8 @@ export type WorkBuddyCrmCustomersCreateResponse = {
|
|
|
12071
12431
|
createdAt: string;
|
|
12072
12432
|
updatedAt: string;
|
|
12073
12433
|
socialNetwork: string;
|
|
12434
|
+
billTo: { company: string; site: string; contact: string };
|
|
12435
|
+
accounting: { salesTaxRate: string };
|
|
12074
12436
|
};
|
|
12075
12437
|
};
|
|
12076
12438
|
export type WorkBuddyCrmCustomersGetResponse = {
|
|
@@ -12095,6 +12457,8 @@ export type WorkBuddyCrmCustomersGetResponse = {
|
|
|
12095
12457
|
createdAt: string;
|
|
12096
12458
|
updatedAt: string;
|
|
12097
12459
|
socialNetwork: string;
|
|
12460
|
+
billTo: { company: string; site: string; contact: string };
|
|
12461
|
+
accounting: { salesTaxRate: string };
|
|
12098
12462
|
};
|
|
12099
12463
|
};
|
|
12100
12464
|
export type WorkBuddyCrmCustomersUpdateResponse = {
|
|
@@ -12119,6 +12483,8 @@ export type WorkBuddyCrmCustomersUpdateResponse = {
|
|
|
12119
12483
|
createdAt: string;
|
|
12120
12484
|
updatedAt: string;
|
|
12121
12485
|
socialNetwork: string;
|
|
12486
|
+
billTo: { company: string; site: string; contact: string };
|
|
12487
|
+
accounting: { salesTaxRate: string };
|
|
12122
12488
|
};
|
|
12123
12489
|
};
|
|
12124
12490
|
export type WorkBuddyCrmCustomersDeleteResponse = { id: string; deleted: boolean };
|
|
@@ -12144,6 +12510,8 @@ export type WorkBuddyCrmCustomersStatusUpdateStatusResponse = {
|
|
|
12144
12510
|
createdAt: string;
|
|
12145
12511
|
updatedAt: string;
|
|
12146
12512
|
socialNetwork: string;
|
|
12513
|
+
billTo: { company: string; site: string; contact: string };
|
|
12514
|
+
accounting: { salesTaxRate: string };
|
|
12147
12515
|
};
|
|
12148
12516
|
};
|
|
12149
12517
|
export type WorkBuddyCrmCustomersContactsListResponse = {
|
|
@@ -12569,11 +12937,11 @@ export type WorkBuddyCrmSuppliersCreateResponse = {
|
|
|
12569
12937
|
zones: { id: string; name: string; type?: string }[];
|
|
12570
12938
|
workCategories: { id: string; name: string; type?: string }[];
|
|
12571
12939
|
taxId: string;
|
|
12572
|
-
accounting: string;
|
|
12940
|
+
accounting: { purchaseTaxRate: string; markupPercent: string };
|
|
12573
12941
|
financeTags: { id: string; name: string; type?: string }[];
|
|
12574
|
-
invoices: string;
|
|
12575
|
-
billTo: string;
|
|
12576
|
-
credit: string;
|
|
12942
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
12943
|
+
billTo: { company: string; site: string; contact: string };
|
|
12944
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12577
12945
|
billTheme: string;
|
|
12578
12946
|
};
|
|
12579
12947
|
};
|
|
@@ -12602,11 +12970,11 @@ export type WorkBuddyCrmSuppliersGetResponse = {
|
|
|
12602
12970
|
zones: { id: string; name: string; type?: string }[];
|
|
12603
12971
|
workCategories: { id: string; name: string; type?: string }[];
|
|
12604
12972
|
taxId: string;
|
|
12605
|
-
accounting: string;
|
|
12973
|
+
accounting: { purchaseTaxRate: string; markupPercent: string };
|
|
12606
12974
|
financeTags: { id: string; name: string; type?: string }[];
|
|
12607
|
-
invoices: string;
|
|
12608
|
-
billTo: string;
|
|
12609
|
-
credit: string;
|
|
12975
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
12976
|
+
billTo: { company: string; site: string; contact: string };
|
|
12977
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12610
12978
|
billTheme: string;
|
|
12611
12979
|
};
|
|
12612
12980
|
};
|
|
@@ -12635,11 +13003,11 @@ export type WorkBuddyCrmSuppliersUpdateResponse = {
|
|
|
12635
13003
|
zones: { id: string; name: string; type?: string }[];
|
|
12636
13004
|
workCategories: { id: string; name: string; type?: string }[];
|
|
12637
13005
|
taxId: string;
|
|
12638
|
-
accounting: string;
|
|
13006
|
+
accounting: { purchaseTaxRate: string; markupPercent: string };
|
|
12639
13007
|
financeTags: { id: string; name: string; type?: string }[];
|
|
12640
|
-
invoices: string;
|
|
12641
|
-
billTo: string;
|
|
12642
|
-
credit: string;
|
|
13008
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
13009
|
+
billTo: { company: string; site: string; contact: string };
|
|
13010
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12643
13011
|
billTheme: string;
|
|
12644
13012
|
};
|
|
12645
13013
|
};
|
|
@@ -12669,11 +13037,11 @@ export type WorkBuddyCrmSuppliersStatusUpdateStatusResponse = {
|
|
|
12669
13037
|
zones: { id: string; name: string; type?: string }[];
|
|
12670
13038
|
workCategories: { id: string; name: string; type?: string }[];
|
|
12671
13039
|
taxId: string;
|
|
12672
|
-
accounting: string;
|
|
13040
|
+
accounting: { purchaseTaxRate: string; markupPercent: string };
|
|
12673
13041
|
financeTags: { id: string; name: string; type?: string }[];
|
|
12674
|
-
invoices: string;
|
|
12675
|
-
billTo: string;
|
|
12676
|
-
credit: string;
|
|
13042
|
+
invoices: { enabled: boolean; emailCC: string[] };
|
|
13043
|
+
billTo: { company: string; site: string; contact: string };
|
|
13044
|
+
credit: { type: string; limitAmount: string; limitBlock: string; dueDate: string };
|
|
12677
13045
|
billTheme: string;
|
|
12678
13046
|
};
|
|
12679
13047
|
};
|
|
@@ -13894,7 +14262,16 @@ export interface WorkBuddyJobsStagesActivitiesResource {
|
|
|
13894
14262
|
params: WorkBuddyJobsStagesActivitiesListParams,
|
|
13895
14263
|
options?: WorkBuddyRequestOptions
|
|
13896
14264
|
): Promise<TResponse>;
|
|
13897
|
-
|
|
14265
|
+
/** Iterate all items by following cursor pagination for list(). */
|
|
14266
|
+
all<TItem = WorkBuddyPageItem<WorkBuddyJobsStagesActivitiesListResponse>>(
|
|
14267
|
+
params: WorkBuddyJobsStagesActivitiesListParams,
|
|
14268
|
+
options?: WorkBuddyRequestOptions
|
|
14269
|
+
): AsyncIterable<TItem>;
|
|
14270
|
+
/** Iterate raw pages by following cursor pagination for list(). */
|
|
14271
|
+
pages<TPage = WorkBuddyJobsStagesActivitiesListResponse>(
|
|
14272
|
+
params: WorkBuddyJobsStagesActivitiesListParams,
|
|
14273
|
+
options?: WorkBuddyRequestOptions
|
|
14274
|
+
): AsyncIterable<TPage>;
|
|
13898
14275
|
/**
|
|
13899
14276
|
* Get activity by ID (Stages)
|
|
13900
14277
|
* Operation: PublicStageActivitiesController_getById
|
|
@@ -14099,7 +14476,16 @@ export interface WorkBuddyJobsActivitiesResource {
|
|
|
14099
14476
|
params: WorkBuddyJobsActivitiesListParams,
|
|
14100
14477
|
options?: WorkBuddyRequestOptions
|
|
14101
14478
|
): Promise<TResponse>;
|
|
14102
|
-
|
|
14479
|
+
/** Iterate all items by following cursor pagination for list(). */
|
|
14480
|
+
all<TItem = WorkBuddyPageItem<WorkBuddyJobsActivitiesListResponse>>(
|
|
14481
|
+
params: WorkBuddyJobsActivitiesListParams,
|
|
14482
|
+
options?: WorkBuddyRequestOptions
|
|
14483
|
+
): AsyncIterable<TItem>;
|
|
14484
|
+
/** Iterate raw pages by following cursor pagination for list(). */
|
|
14485
|
+
pages<TPage = WorkBuddyJobsActivitiesListResponse>(
|
|
14486
|
+
params: WorkBuddyJobsActivitiesListParams,
|
|
14487
|
+
options?: WorkBuddyRequestOptions
|
|
14488
|
+
): AsyncIterable<TPage>;
|
|
14103
14489
|
/**
|
|
14104
14490
|
* Get activity by ID (Jobs)
|
|
14105
14491
|
* Operation: PublicJobActivitiesController_getById
|
package/index.js
CHANGED
|
@@ -247,6 +247,11 @@ export class WorkBuddyClient {
|
|
|
247
247
|
* Operation: PublicStageActivitiesController_list
|
|
248
248
|
*/
|
|
249
249
|
list: (params = {}, options = {}) => this.request('PublicStageActivitiesController_list', params, options),
|
|
250
|
+
/** Iterate all items by following cursor pagination for list(). */
|
|
251
|
+
all: (params = {}, options = {}) => this.paginate('PublicStageActivitiesController_list', params, options),
|
|
252
|
+
/** Iterate raw pages by following cursor pagination for list(). */
|
|
253
|
+
pages: (params = {}, options = {}) =>
|
|
254
|
+
this.paginatePages('PublicStageActivitiesController_list', params, options),
|
|
250
255
|
/**
|
|
251
256
|
* Get activity by ID (Stages)
|
|
252
257
|
* Operation: PublicStageActivitiesController_getById
|
|
@@ -386,6 +391,10 @@ export class WorkBuddyClient {
|
|
|
386
391
|
* Operation: PublicJobActivitiesController_list
|
|
387
392
|
*/
|
|
388
393
|
list: (params = {}, options = {}) => this.request('PublicJobActivitiesController_list', params, options),
|
|
394
|
+
/** Iterate all items by following cursor pagination for list(). */
|
|
395
|
+
all: (params = {}, options = {}) => this.paginate('PublicJobActivitiesController_list', params, options),
|
|
396
|
+
/** Iterate raw pages by following cursor pagination for list(). */
|
|
397
|
+
pages: (params = {}, options = {}) => this.paginatePages('PublicJobActivitiesController_list', params, options),
|
|
389
398
|
/**
|
|
390
399
|
* Get activity by ID (Jobs)
|
|
391
400
|
* Operation: PublicJobActivitiesController_getById
|
|
@@ -2568,12 +2577,14 @@ export const operations = [
|
|
|
2568
2577
|
operationId: 'PublicJobActivitiesController_list',
|
|
2569
2578
|
resourcePath: ['jobs', 'activities'],
|
|
2570
2579
|
actionName: 'list',
|
|
2580
|
+
paginatedItemsActionName: 'all',
|
|
2581
|
+
paginatedPagesActionName: 'pages',
|
|
2571
2582
|
displayName: 'List activities (Jobs)',
|
|
2572
2583
|
description: 'List activities (Jobs)',
|
|
2573
2584
|
method: 'GET',
|
|
2574
2585
|
path: '/jobs/{jobId}/activities',
|
|
2575
2586
|
pathParams: ['jobId'],
|
|
2576
|
-
queryParams: [],
|
|
2587
|
+
queryParams: ['kind', 'cursor', 'limit'],
|
|
2577
2588
|
hasRequestBody: false,
|
|
2578
2589
|
},
|
|
2579
2590
|
{
|
|
@@ -2676,12 +2687,14 @@ export const operations = [
|
|
|
2676
2687
|
operationId: 'PublicStageActivitiesController_list',
|
|
2677
2688
|
resourcePath: ['jobs', 'stages', 'activities'],
|
|
2678
2689
|
actionName: 'list',
|
|
2690
|
+
paginatedItemsActionName: 'all',
|
|
2691
|
+
paginatedPagesActionName: 'pages',
|
|
2679
2692
|
displayName: 'List activities (Stages)',
|
|
2680
2693
|
description: 'List activities (Stages)',
|
|
2681
2694
|
method: 'GET',
|
|
2682
2695
|
path: '/jobs/{jobId}/stages/{stageId}/activities',
|
|
2683
2696
|
pathParams: ['stageId', 'jobId'],
|
|
2684
|
-
queryParams: [],
|
|
2697
|
+
queryParams: ['kind', 'cursor', 'limit'],
|
|
2685
2698
|
hasRequestBody: false,
|
|
2686
2699
|
},
|
|
2687
2700
|
{
|