@workbuddy/sdk-js-vnext 1.0.80 → 1.0.82

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.
Files changed (3) hide show
  1. package/index.d.ts +74 -108
  2. package/index.js +51 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2970,6 +2970,13 @@ export interface WorkBuddyCrmCustomersUpdateParams extends WorkBuddyRequestParam
2970
2970
  socialNetwork?: { facebook?: string; twitter?: string; linkedin?: string; instagram?: string };
2971
2971
  }
2972
2972
 
2973
+ export interface WorkBuddyCrmCustomersDeleteParams extends WorkBuddyRequestParams {
2974
+ /**
2975
+ * Customer ID or integration ID
2976
+ */
2977
+ id: string;
2978
+ }
2979
+
2973
2980
  export interface WorkBuddyCrmCustomersStatusUpdateStatusParams extends WorkBuddyRequestParams {
2974
2981
  /**
2975
2982
  * Customer ID or integration ID
@@ -3247,6 +3254,13 @@ export interface WorkBuddyCrmContractorsUpdateParams extends WorkBuddyRequestPar
3247
3254
  pricebook?: Record<string, unknown>;
3248
3255
  }
3249
3256
 
3257
+ export interface WorkBuddyCrmContractorsDeleteParams extends WorkBuddyRequestParams {
3258
+ /**
3259
+ * Contractor ID or integration ID
3260
+ */
3261
+ id: string;
3262
+ }
3263
+
3250
3264
  export interface WorkBuddyCrmContractorsStatusUpdateStatusParams extends WorkBuddyRequestParams {
3251
3265
  /**
3252
3266
  * Contractor ID or integration ID
@@ -3506,6 +3520,13 @@ export interface WorkBuddyCrmSuppliersUpdateParams extends WorkBuddyRequestParam
3506
3520
  billTheme?: Record<string, unknown>;
3507
3521
  }
3508
3522
 
3523
+ export interface WorkBuddyCrmSuppliersDeleteParams extends WorkBuddyRequestParams {
3524
+ /**
3525
+ * Supplier ID or integration ID
3526
+ */
3527
+ id: string;
3528
+ }
3529
+
3509
3530
  export interface WorkBuddyCrmSuppliersStatusUpdateStatusParams extends WorkBuddyRequestParams {
3510
3531
  /**
3511
3532
  * Supplier ID or integration ID
@@ -5563,23 +5584,11 @@ export type WorkBuddyCrmCustomersListResponse = {
5563
5584
  id: string;
5564
5585
  name: string;
5565
5586
  type: string;
5566
- firstName?: string;
5567
- lastName?: string;
5568
- title?: string;
5569
- legalName?: string;
5570
- website?: string;
5571
- integrationId?: string;
5572
- address?: string;
5573
- phone?: string;
5574
- mobile?: string;
5575
- email?: string;
5576
- username?: string;
5577
- login?: boolean;
5578
- invitePending?: boolean;
5579
- autoDispatch?: string;
5580
- status?: string;
5581
- note?: string;
5582
- parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
5587
+ integrationId: string;
5588
+ address: string;
5589
+ phone: string;
5590
+ mobile: string;
5591
+ email: string;
5583
5592
  }[];
5584
5593
  pagination: { limit: number; hasMore: boolean; nextCursor: string };
5585
5594
  };
@@ -5655,6 +5664,7 @@ export type WorkBuddyCrmCustomersUpdateResponse = {
5655
5664
  socialNetwork: string;
5656
5665
  };
5657
5666
  };
5667
+ export type WorkBuddyCrmCustomersDeleteResponse = { id: string; deleted: boolean };
5658
5668
  export type WorkBuddyCrmCustomersStatusUpdateStatusResponse = {
5659
5669
  item: {
5660
5670
  id: string;
@@ -5687,10 +5697,7 @@ export type WorkBuddyCrmCustomersContactsListResponse = {
5687
5697
  firstName?: string;
5688
5698
  lastName?: string;
5689
5699
  title?: string;
5690
- legalName?: string;
5691
- website?: string;
5692
5700
  integrationId?: string;
5693
- address?: string;
5694
5701
  phone?: string;
5695
5702
  mobile?: string;
5696
5703
  email?: string;
@@ -5712,10 +5719,7 @@ export type WorkBuddyCrmCustomersContactsCreateContactResponse = {
5712
5719
  firstName?: string;
5713
5720
  lastName?: string;
5714
5721
  title?: string;
5715
- legalName?: string;
5716
- website?: string;
5717
5722
  integrationId?: string;
5718
- address?: string;
5719
5723
  phone?: string;
5720
5724
  mobile?: string;
5721
5725
  email?: string;
@@ -5737,10 +5741,7 @@ export type WorkBuddyCrmCustomersContactsInviteInviteContactResponse = {
5737
5741
  firstName?: string;
5738
5742
  lastName?: string;
5739
5743
  title?: string;
5740
- legalName?: string;
5741
- website?: string;
5742
5744
  integrationId?: string;
5743
- address?: string;
5744
5745
  phone?: string;
5745
5746
  mobile?: string;
5746
5747
  email?: string;
@@ -5765,10 +5766,7 @@ export type WorkBuddyCrmEmployeesListResponse = {
5765
5766
  firstName?: string;
5766
5767
  lastName?: string;
5767
5768
  title?: string;
5768
- legalName?: string;
5769
- website?: string;
5770
5769
  integrationId?: string;
5771
- address?: string;
5772
5770
  phone?: string;
5773
5771
  mobile?: string;
5774
5772
  email?: string;
@@ -5779,6 +5777,7 @@ export type WorkBuddyCrmEmployeesListResponse = {
5779
5777
  status?: string;
5780
5778
  note?: string;
5781
5779
  parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
5780
+ address?: string;
5782
5781
  }[];
5783
5782
  pagination: { limit: number; hasMore: boolean; nextCursor: string };
5784
5783
  };
@@ -5790,10 +5789,7 @@ export type WorkBuddyCrmEmployeesGetResponse = {
5790
5789
  firstName?: string;
5791
5790
  lastName?: string;
5792
5791
  title?: string;
5793
- legalName?: string;
5794
- website?: string;
5795
5792
  integrationId?: string;
5796
- address?: string;
5797
5793
  phone?: string;
5798
5794
  mobile?: string;
5799
5795
  email?: string;
@@ -5804,6 +5800,7 @@ export type WorkBuddyCrmEmployeesGetResponse = {
5804
5800
  status?: string;
5805
5801
  note?: string;
5806
5802
  parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
5803
+ address?: string;
5807
5804
  };
5808
5805
  };
5809
5806
  export type WorkBuddyCrmContractorsListResponse = {
@@ -5811,23 +5808,11 @@ export type WorkBuddyCrmContractorsListResponse = {
5811
5808
  id: string;
5812
5809
  name: string;
5813
5810
  type: string;
5814
- firstName?: string;
5815
- lastName?: string;
5816
- title?: string;
5817
- legalName?: string;
5818
- website?: string;
5819
- integrationId?: string;
5820
- address?: string;
5821
- phone?: string;
5822
- mobile?: string;
5823
- email?: string;
5824
- username?: string;
5825
- login?: boolean;
5826
- invitePending?: boolean;
5827
- autoDispatch?: string;
5828
- status?: string;
5829
- note?: string;
5830
- parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
5811
+ integrationId: string;
5812
+ address: string;
5813
+ phone: string;
5814
+ mobile: string;
5815
+ email: string;
5831
5816
  }[];
5832
5817
  pagination: { limit: number; hasMore: boolean; nextCursor: string };
5833
5818
  };
@@ -5927,6 +5912,7 @@ export type WorkBuddyCrmContractorsUpdateResponse = {
5927
5912
  pricebook: string;
5928
5913
  };
5929
5914
  };
5915
+ export type WorkBuddyCrmContractorsDeleteResponse = { id: string; deleted: boolean };
5930
5916
  export type WorkBuddyCrmContractorsStatusUpdateStatusResponse = {
5931
5917
  item: {
5932
5918
  id: string;
@@ -5967,10 +5953,7 @@ export type WorkBuddyCrmContractorsContactsListResponse = {
5967
5953
  firstName?: string;
5968
5954
  lastName?: string;
5969
5955
  title?: string;
5970
- legalName?: string;
5971
- website?: string;
5972
5956
  integrationId?: string;
5973
- address?: string;
5974
5957
  phone?: string;
5975
5958
  mobile?: string;
5976
5959
  email?: string;
@@ -5992,10 +5975,7 @@ export type WorkBuddyCrmContractorsContactsCreateContactResponse = {
5992
5975
  firstName?: string;
5993
5976
  lastName?: string;
5994
5977
  title?: string;
5995
- legalName?: string;
5996
- website?: string;
5997
5978
  integrationId?: string;
5998
- address?: string;
5999
5979
  phone?: string;
6000
5980
  mobile?: string;
6001
5981
  email?: string;
@@ -6017,10 +5997,7 @@ export type WorkBuddyCrmContractorsContactsInviteInviteContactResponse = {
6017
5997
  firstName?: string;
6018
5998
  lastName?: string;
6019
5999
  title?: string;
6020
- legalName?: string;
6021
- website?: string;
6022
6000
  integrationId?: string;
6023
- address?: string;
6024
6001
  phone?: string;
6025
6002
  mobile?: string;
6026
6003
  email?: string;
@@ -6038,23 +6015,11 @@ export type WorkBuddyCrmSuppliersListResponse = {
6038
6015
  id: string;
6039
6016
  name: string;
6040
6017
  type: string;
6041
- firstName?: string;
6042
- lastName?: string;
6043
- title?: string;
6044
- legalName?: string;
6045
- website?: string;
6046
- integrationId?: string;
6047
- address?: string;
6048
- phone?: string;
6049
- mobile?: string;
6050
- email?: string;
6051
- username?: string;
6052
- login?: boolean;
6053
- invitePending?: boolean;
6054
- autoDispatch?: string;
6055
- status?: string;
6056
- note?: string;
6057
- parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
6018
+ integrationId: string;
6019
+ address: string;
6020
+ phone: string;
6021
+ mobile: string;
6022
+ email: string;
6058
6023
  }[];
6059
6024
  pagination: { limit: number; hasMore: boolean; nextCursor: string };
6060
6025
  };
@@ -6157,6 +6122,7 @@ export type WorkBuddyCrmSuppliersUpdateResponse = {
6157
6122
  billTheme: string;
6158
6123
  };
6159
6124
  };
6125
+ export type WorkBuddyCrmSuppliersDeleteResponse = { id: string; deleted: boolean };
6160
6126
  export type WorkBuddyCrmSuppliersStatusUpdateStatusResponse = {
6161
6127
  item: {
6162
6128
  id: string;
@@ -6198,10 +6164,7 @@ export type WorkBuddyCrmCompaniesListResponse = {
6198
6164
  firstName?: string;
6199
6165
  lastName?: string;
6200
6166
  title?: string;
6201
- legalName?: string;
6202
- website?: string;
6203
6167
  integrationId?: string;
6204
- address?: string;
6205
6168
  phone?: string;
6206
6169
  email?: string;
6207
6170
  username?: string;
@@ -6211,6 +6174,9 @@ export type WorkBuddyCrmCompaniesListResponse = {
6211
6174
  status?: string;
6212
6175
  note?: string;
6213
6176
  parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
6177
+ legalName?: string;
6178
+ website?: string;
6179
+ address?: string;
6214
6180
  }[];
6215
6181
  pagination: { limit: number; hasMore: boolean; nextCursor: string };
6216
6182
  };
@@ -6222,10 +6188,7 @@ export type WorkBuddyCrmCompaniesGetResponse = {
6222
6188
  firstName?: string;
6223
6189
  lastName?: string;
6224
6190
  title?: string;
6225
- legalName?: string;
6226
- website?: string;
6227
6191
  integrationId?: string;
6228
- address?: string;
6229
6192
  phone?: string;
6230
6193
  email?: string;
6231
6194
  username?: string;
@@ -6235,6 +6198,9 @@ export type WorkBuddyCrmCompaniesGetResponse = {
6235
6198
  status?: string;
6236
6199
  note?: string;
6237
6200
  parents?: { id: string; name: string; type: string; primary?: boolean; role?: string; invitePending?: boolean }[];
6201
+ legalName?: string;
6202
+ website?: string;
6203
+ address?: string;
6238
6204
  };
6239
6205
  };
6240
6206
  export type WorkBuddyCrmExternalUsersListResponse = {
@@ -6245,10 +6211,7 @@ export type WorkBuddyCrmExternalUsersListResponse = {
6245
6211
  firstName?: string;
6246
6212
  lastName?: string;
6247
6213
  title?: string;
6248
- legalName?: string;
6249
- website?: string;
6250
6214
  integrationId?: string;
6251
- address?: string;
6252
6215
  phone?: string;
6253
6216
  mobile?: string;
6254
6217
  email?: string;
@@ -6270,10 +6233,7 @@ export type WorkBuddyCrmExternalUsersGetResponse = {
6270
6233
  firstName?: string;
6271
6234
  lastName?: string;
6272
6235
  title?: string;
6273
- legalName?: string;
6274
- website?: string;
6275
6236
  integrationId?: string;
6276
- address?: string;
6277
6237
  phone?: string;
6278
6238
  mobile?: string;
6279
6239
  email?: string;
@@ -6294,10 +6254,7 @@ export type WorkBuddyCrmContactsListResponse = {
6294
6254
  firstName?: string;
6295
6255
  lastName?: string;
6296
6256
  title?: string;
6297
- legalName?: string;
6298
- website?: string;
6299
6257
  integrationId?: string;
6300
- address?: string;
6301
6258
  phone?: string;
6302
6259
  mobile?: string;
6303
6260
  email?: string;
@@ -6319,10 +6276,7 @@ export type WorkBuddyCrmContactsGetResponse = {
6319
6276
  firstName?: string;
6320
6277
  lastName?: string;
6321
6278
  title?: string;
6322
- legalName?: string;
6323
- website?: string;
6324
6279
  integrationId?: string;
6325
- address?: string;
6326
6280
  phone?: string;
6327
6281
  mobile?: string;
6328
6282
  email?: string;
@@ -6343,10 +6297,7 @@ export type WorkBuddyCrmContactsUpdateResponse = {
6343
6297
  firstName?: string;
6344
6298
  lastName?: string;
6345
6299
  title?: string;
6346
- legalName?: string;
6347
- website?: string;
6348
6300
  integrationId?: string;
6349
- address?: string;
6350
6301
  phone?: string;
6351
6302
  mobile?: string;
6352
6303
  email?: string;
@@ -6367,10 +6318,7 @@ export type WorkBuddyCrmContactsStatusUpdateStatusResponse = {
6367
6318
  firstName?: string;
6368
6319
  lastName?: string;
6369
6320
  title?: string;
6370
- legalName?: string;
6371
- website?: string;
6372
6321
  integrationId?: string;
6373
- address?: string;
6374
6322
  phone?: string;
6375
6323
  mobile?: string;
6376
6324
  email?: string;
@@ -6391,10 +6339,7 @@ export type WorkBuddyCrmInvitesListResponse = {
6391
6339
  firstName?: string;
6392
6340
  lastName?: string;
6393
6341
  title?: string;
6394
- legalName?: string;
6395
- website?: string;
6396
6342
  integrationId?: string;
6397
- address?: string;
6398
6343
  phone?: string;
6399
6344
  mobile?: string;
6400
6345
  email?: string;
@@ -6416,10 +6361,7 @@ export type WorkBuddyCrmInvitesGetResponse = {
6416
6361
  firstName?: string;
6417
6362
  lastName?: string;
6418
6363
  title?: string;
6419
- legalName?: string;
6420
- website?: string;
6421
6364
  integrationId?: string;
6422
- address?: string;
6423
6365
  phone?: string;
6424
6366
  mobile?: string;
6425
6367
  email?: string;
@@ -6447,10 +6389,7 @@ export type WorkBuddyCrmSitesContactsListResponse = {
6447
6389
  firstName?: string;
6448
6390
  lastName?: string;
6449
6391
  title?: string;
6450
- legalName?: string;
6451
- website?: string;
6452
6392
  integrationId?: string;
6453
- address?: string;
6454
6393
  phone?: string;
6455
6394
  mobile?: string;
6456
6395
  email?: string;
@@ -7963,6 +7902,15 @@ export interface WorkBuddyCrmCustomersResource {
7963
7902
  params: WorkBuddyCrmCustomersUpdateParams,
7964
7903
  options?: WorkBuddyRequestOptions
7965
7904
  ): Promise<TResponse>;
7905
+
7906
+ /**
7907
+ * Delete customer
7908
+ * Operation: PublicCrmCustomerController_delete
7909
+ */
7910
+ delete<TResponse = WorkBuddyCrmCustomersDeleteResponse>(
7911
+ params: WorkBuddyCrmCustomersDeleteParams,
7912
+ options?: WorkBuddyRequestOptions
7913
+ ): Promise<TResponse>;
7966
7914
  }
7967
7915
 
7968
7916
  export interface WorkBuddyCrmCustomersStatusResource {
@@ -8126,6 +8074,15 @@ export interface WorkBuddyCrmContractorsResource {
8126
8074
  params: WorkBuddyCrmContractorsUpdateParams,
8127
8075
  options?: WorkBuddyRequestOptions
8128
8076
  ): Promise<TResponse>;
8077
+
8078
+ /**
8079
+ * Delete contractor
8080
+ * Operation: PublicCrmContractorController_delete
8081
+ */
8082
+ delete<TResponse = WorkBuddyCrmContractorsDeleteResponse>(
8083
+ params: WorkBuddyCrmContractorsDeleteParams,
8084
+ options?: WorkBuddyRequestOptions
8085
+ ): Promise<TResponse>;
8129
8086
  }
8130
8087
 
8131
8088
  export interface WorkBuddyCrmContractorsStatusResource {
@@ -8237,6 +8194,15 @@ export interface WorkBuddyCrmSuppliersResource {
8237
8194
  params: WorkBuddyCrmSuppliersUpdateParams,
8238
8195
  options?: WorkBuddyRequestOptions
8239
8196
  ): Promise<TResponse>;
8197
+
8198
+ /**
8199
+ * Delete supplier
8200
+ * Operation: PublicCrmSupplierController_delete
8201
+ */
8202
+ delete<TResponse = WorkBuddyCrmSuppliersDeleteResponse>(
8203
+ params: WorkBuddyCrmSuppliersDeleteParams,
8204
+ options?: WorkBuddyRequestOptions
8205
+ ): Promise<TResponse>;
8240
8206
  }
8241
8207
 
8242
8208
  export interface WorkBuddyCrmSuppliersStatusResource {
package/index.js CHANGED
@@ -918,6 +918,11 @@ Requires scope: settings:read
918
918
  * Operation: PublicCrmCustomerController_update
919
919
  */
920
920
  update: (params = {}, options = {}) => this.request('PublicCrmCustomerController_update', params, options),
921
+ /**
922
+ * Delete customer
923
+ * Operation: PublicCrmCustomerController_delete
924
+ */
925
+ delete: (params = {}, options = {}) => this.request('PublicCrmCustomerController_delete', params, options),
921
926
  },
922
927
  employees: {
923
928
  /**
@@ -1002,6 +1007,11 @@ Requires scope: settings:read
1002
1007
  * Operation: PublicCrmContractorController_update
1003
1008
  */
1004
1009
  update: (params = {}, options = {}) => this.request('PublicCrmContractorController_update', params, options),
1010
+ /**
1011
+ * Delete contractor
1012
+ * Operation: PublicCrmContractorController_delete
1013
+ */
1014
+ delete: (params = {}, options = {}) => this.request('PublicCrmContractorController_delete', params, options),
1005
1015
  },
1006
1016
  suppliers: {
1007
1017
  status: {
@@ -1036,6 +1046,11 @@ Requires scope: settings:read
1036
1046
  * Operation: PublicCrmSupplierController_update
1037
1047
  */
1038
1048
  update: (params = {}, options = {}) => this.request('PublicCrmSupplierController_update', params, options),
1049
+ /**
1050
+ * Delete supplier
1051
+ * Operation: PublicCrmSupplierController_delete
1052
+ */
1053
+ delete: (params = {}, options = {}) => this.request('PublicCrmSupplierController_delete', params, options),
1039
1054
  },
1040
1055
  companies: {
1041
1056
  /**
@@ -2934,6 +2949,18 @@ export const operations = [
2934
2949
  queryParams: [],
2935
2950
  hasRequestBody: true,
2936
2951
  },
2952
+ {
2953
+ operationId: 'PublicCrmCustomerController_delete',
2954
+ resourcePath: ['crm', 'customers'],
2955
+ actionName: 'delete',
2956
+ displayName: 'Delete customer',
2957
+ description: 'Delete customer',
2958
+ method: 'DELETE',
2959
+ path: '/customers/{id}',
2960
+ pathParams: ['id'],
2961
+ queryParams: [],
2962
+ hasRequestBody: false,
2963
+ },
2937
2964
  {
2938
2965
  operationId: 'PublicCrmCustomerController_updateStatus',
2939
2966
  resourcePath: ['crm', 'customers', 'status'],
@@ -3086,6 +3113,18 @@ export const operations = [
3086
3113
  queryParams: [],
3087
3114
  hasRequestBody: true,
3088
3115
  },
3116
+ {
3117
+ operationId: 'PublicCrmContractorController_delete',
3118
+ resourcePath: ['crm', 'contractors'],
3119
+ actionName: 'delete',
3120
+ displayName: 'Delete contractor',
3121
+ description: 'Delete contractor',
3122
+ method: 'DELETE',
3123
+ path: '/contractors/{id}',
3124
+ pathParams: ['id'],
3125
+ queryParams: [],
3126
+ hasRequestBody: false,
3127
+ },
3089
3128
  {
3090
3129
  operationId: 'PublicCrmContractorController_updateStatus',
3091
3130
  resourcePath: ['crm', 'contractors', 'status'],
@@ -3198,6 +3237,18 @@ export const operations = [
3198
3237
  queryParams: [],
3199
3238
  hasRequestBody: true,
3200
3239
  },
3240
+ {
3241
+ operationId: 'PublicCrmSupplierController_delete',
3242
+ resourcePath: ['crm', 'suppliers'],
3243
+ actionName: 'delete',
3244
+ displayName: 'Delete supplier',
3245
+ description: 'Delete supplier',
3246
+ method: 'DELETE',
3247
+ path: '/suppliers/{id}',
3248
+ pathParams: ['id'],
3249
+ queryParams: [],
3250
+ hasRequestBody: false,
3251
+ },
3201
3252
  {
3202
3253
  operationId: 'PublicCrmSupplierController_updateStatus',
3203
3254
  resourcePath: ['crm', 'suppliers', 'status'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/sdk-js-vnext",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "WorkBuddy Public API JavaScript client",
5
5
  "license": "MIT",
6
6
  "type": "module",