@unified-api/typescript-sdk 1.0.36 → 1.0.38

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 (65) hide show
  1. package/dist/sdk/accounting.d.ts +24 -24
  2. package/dist/sdk/accounting.js +91 -91
  3. package/dist/sdk/journal.d.ts +31 -0
  4. package/dist/sdk/{transaction.js → journal.js} +44 -44
  5. package/dist/sdk/models/operations/{createaccountingtransaction.d.ts → createaccountingjournal.d.ts} +4 -4
  6. package/dist/sdk/models/operations/{createaccountingtransaction.js → createaccountingjournal.js} +19 -19
  7. package/dist/sdk/models/operations/{getaccountingtransaction.d.ts → getaccountingjournal.d.ts} +4 -4
  8. package/dist/sdk/models/operations/{getaccountingtransaction.js → getaccountingjournal.js} +19 -19
  9. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +2 -0
  10. package/dist/sdk/models/operations/getunifiedintegrationauth.js +2 -0
  11. package/dist/sdk/models/operations/index.d.ts +6 -6
  12. package/dist/sdk/models/operations/index.js +6 -6
  13. package/dist/sdk/models/operations/{listaccountingtransactions.d.ts → listaccountingjournals.d.ts} +3 -3
  14. package/dist/sdk/models/operations/{listaccountingtransactions.js → listaccountingjournals.js} +24 -24
  15. package/dist/sdk/models/operations/{patchaccountingtransaction.d.ts → patchaccountingjournal.d.ts} +5 -5
  16. package/dist/sdk/models/operations/{patchaccountingtransaction.js → patchaccountingjournal.js} +20 -20
  17. package/dist/sdk/models/operations/{removeaccountingtransaction.d.ts → removeaccountingjournal.d.ts} +3 -3
  18. package/dist/sdk/models/operations/{removeaccountingtransaction.js → removeaccountingjournal.js} +17 -17
  19. package/dist/sdk/models/operations/{updateaccountingtransaction.d.ts → updateaccountingjournal.d.ts} +5 -5
  20. package/dist/sdk/models/operations/{updateaccountingtransaction.js → updateaccountingjournal.js} +20 -20
  21. package/dist/sdk/models/shared/{accountingtransaction.d.ts → accountingjournal.d.ts} +3 -3
  22. package/dist/sdk/models/shared/{accountingtransaction.js → accountingjournal.js} +19 -19
  23. package/dist/sdk/models/shared/{accountingtransactionlineitem.d.ts → accountingjournallineitem.d.ts} +1 -1
  24. package/dist/sdk/models/shared/{accountingtransactionlineitem.js → accountingjournallineitem.js} +14 -14
  25. package/dist/sdk/models/shared/index.d.ts +2 -2
  26. package/dist/sdk/models/shared/index.js +2 -2
  27. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  28. package/dist/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  29. package/dist/sdk/models/shared/propertycrmeventtask.d.ts +6 -0
  30. package/dist/sdk/models/shared/propertycrmeventtask.js +12 -1
  31. package/dist/sdk/models/shared/webhook.d.ts +1 -0
  32. package/dist/sdk/models/shared/webhook.js +1 -0
  33. package/dist/sdk/sdk.d.ts +2 -2
  34. package/dist/sdk/sdk.js +5 -5
  35. package/docs/sdk/models/operations/createaccountingjournalrequest.md +9 -0
  36. package/docs/sdk/models/operations/createaccountingjournalresponse.md +11 -0
  37. package/docs/sdk/models/operations/{getaccountingtransactionrequest.md → getaccountingjournalrequest.md} +2 -2
  38. package/docs/sdk/models/operations/getaccountingjournalresponse.md +11 -0
  39. package/docs/sdk/models/operations/{listaccountingtransactionsrequest.md → listaccountingjournalsrequest.md} +1 -1
  40. package/docs/sdk/models/operations/listaccountingjournalsresponse.md +11 -0
  41. package/docs/sdk/models/operations/patchaccountingjournalrequest.md +10 -0
  42. package/docs/sdk/models/operations/patchaccountingjournalresponse.md +11 -0
  43. package/docs/sdk/models/operations/removeaccountingjournalrequest.md +9 -0
  44. package/docs/sdk/models/operations/{removeaccountingtransactionresponse.md → removeaccountingjournalresponse.md} +1 -1
  45. package/docs/sdk/models/operations/scopes.md +2 -0
  46. package/docs/sdk/models/operations/updateaccountingjournalrequest.md +10 -0
  47. package/docs/sdk/models/operations/updateaccountingjournalresponse.md +11 -0
  48. package/docs/sdk/models/shared/accountingjournal.md +17 -0
  49. package/docs/sdk/models/shared/{accountingtransactionlineitem.md → accountingjournallineitem.md} +1 -1
  50. package/docs/sdk/models/shared/objecttype.md +1 -0
  51. package/docs/sdk/models/shared/priority.md +10 -0
  52. package/docs/sdk/models/shared/propertyconnectionpermissions.md +2 -0
  53. package/docs/sdk/models/shared/propertycrmeventtask.md +1 -0
  54. package/package.json +1 -1
  55. package/dist/sdk/transaction.d.ts +0 -31
  56. package/docs/sdk/models/operations/createaccountingtransactionrequest.md +0 -9
  57. package/docs/sdk/models/operations/createaccountingtransactionresponse.md +0 -11
  58. package/docs/sdk/models/operations/getaccountingtransactionresponse.md +0 -11
  59. package/docs/sdk/models/operations/listaccountingtransactionsresponse.md +0 -11
  60. package/docs/sdk/models/operations/patchaccountingtransactionrequest.md +0 -10
  61. package/docs/sdk/models/operations/patchaccountingtransactionresponse.md +0 -11
  62. package/docs/sdk/models/operations/removeaccountingtransactionrequest.md +0 -9
  63. package/docs/sdk/models/operations/updateaccountingtransactionrequest.md +0 -10
  64. package/docs/sdk/models/operations/updateaccountingtransactionresponse.md +0 -11
  65. package/docs/sdk/models/shared/accountingtransaction.md +0 -17
@@ -89,19 +89,19 @@ var __read = (this && this.__read) || function (o, n) {
89
89
  return ar;
90
90
  };
91
91
  Object.defineProperty(exports, "__esModule", { value: true });
92
- exports.Transaction = void 0;
92
+ exports.Journal = void 0;
93
93
  var utils = __importStar(require("../internal/utils"));
94
94
  var errors = __importStar(require("../sdk/models/errors"));
95
95
  var operations = __importStar(require("../sdk/models/operations"));
96
96
  var shared = __importStar(require("../sdk/models/shared"));
97
- var Transaction = /** @class */ (function () {
98
- function Transaction(sdkConfig) {
97
+ var Journal = /** @class */ (function () {
98
+ function Journal(sdkConfig) {
99
99
  this.sdkConfiguration = sdkConfig;
100
100
  }
101
101
  /**
102
- * Create a transaction
102
+ * Create a journal
103
103
  */
104
- Transaction.prototype.createAccountingTransaction = function (req, config) {
104
+ Journal.prototype.createAccountingJournal = function (req, config) {
105
105
  var _a, _b;
106
106
  return __awaiter(this, void 0, void 0, function () {
107
107
  var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
@@ -110,13 +110,13 @@ var Transaction = /** @class */ (function () {
110
110
  switch (_e.label) {
111
111
  case 0:
112
112
  if (!(req instanceof utils.SpeakeasyBase)) {
113
- req = new operations.CreateAccountingTransactionRequest(req);
113
+ req = new operations.CreateAccountingJournalRequest(req);
114
114
  }
115
115
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
116
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction", req);
116
+ operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/journal", req);
117
117
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
118
118
  try {
119
- _d = __read(utils.serializeRequestBody(req, "accountingTransaction", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
119
+ _d = __read(utils.serializeRequestBody(req, "accountingJournal", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
120
120
  }
121
121
  catch (e) {
122
122
  if (e instanceof Error) {
@@ -145,7 +145,7 @@ var Transaction = /** @class */ (function () {
145
145
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
146
146
  throw new Error("status code not found in response: ".concat(httpRes));
147
147
  }
148
- res = new operations.CreateAccountingTransactionResponse({
148
+ res = new operations.CreateAccountingJournalResponse({
149
149
  statusCode: httpRes.status,
150
150
  contentType: responseContentType,
151
151
  rawResponse: httpRes,
@@ -154,7 +154,7 @@ var Transaction = /** @class */ (function () {
154
154
  switch (true) {
155
155
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
156
156
  if (utils.matchContentType(responseContentType, "application/json")) {
157
- res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
157
+ res.accountingJournal = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingJournal);
158
158
  }
159
159
  else {
160
160
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -170,9 +170,9 @@ var Transaction = /** @class */ (function () {
170
170
  });
171
171
  };
172
172
  /**
173
- * Retrieve a transaction
173
+ * Retrieve a journal
174
174
  */
175
- Transaction.prototype.getAccountingTransaction = function (req, config) {
175
+ Journal.prototype.getAccountingJournal = function (req, config) {
176
176
  var _a, _b;
177
177
  return __awaiter(this, void 0, void 0, function () {
178
178
  var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
@@ -180,10 +180,10 @@ var Transaction = /** @class */ (function () {
180
180
  switch (_c.label) {
181
181
  case 0:
182
182
  if (!(req instanceof utils.SpeakeasyBase)) {
183
- req = new operations.GetAccountingTransactionRequest(req);
183
+ req = new operations.GetAccountingJournalRequest(req);
184
184
  }
185
185
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
186
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
186
+ operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/journal/{id}", req);
187
187
  client = this.sdkConfiguration.defaultClient;
188
188
  globalSecurity = this.sdkConfiguration.security;
189
189
  if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
@@ -207,7 +207,7 @@ var Transaction = /** @class */ (function () {
207
207
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
208
208
  throw new Error("status code not found in response: ".concat(httpRes));
209
209
  }
210
- res = new operations.GetAccountingTransactionResponse({
210
+ res = new operations.GetAccountingJournalResponse({
211
211
  statusCode: httpRes.status,
212
212
  contentType: responseContentType,
213
213
  rawResponse: httpRes,
@@ -216,7 +216,7 @@ var Transaction = /** @class */ (function () {
216
216
  switch (true) {
217
217
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
218
218
  if (utils.matchContentType(responseContentType, "application/json")) {
219
- res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
219
+ res.accountingJournal = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingJournal);
220
220
  }
221
221
  else {
222
222
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -232,9 +232,9 @@ var Transaction = /** @class */ (function () {
232
232
  });
233
233
  };
234
234
  /**
235
- * List all transactions
235
+ * List all journals
236
236
  */
237
- Transaction.prototype.listAccountingTransactions = function (req, config) {
237
+ Journal.prototype.listAccountingJournals = function (req, config) {
238
238
  var _a, _b;
239
239
  return __awaiter(this, void 0, void 0, function () {
240
240
  var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
@@ -242,10 +242,10 @@ var Transaction = /** @class */ (function () {
242
242
  switch (_c.label) {
243
243
  case 0:
244
244
  if (!(req instanceof utils.SpeakeasyBase)) {
245
- req = new operations.ListAccountingTransactionsRequest(req);
245
+ req = new operations.ListAccountingJournalsRequest(req);
246
246
  }
247
247
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
248
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction", req);
248
+ operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/journal", req);
249
249
  client = this.sdkConfiguration.defaultClient;
250
250
  globalSecurity = this.sdkConfiguration.security;
251
251
  if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
@@ -269,7 +269,7 @@ var Transaction = /** @class */ (function () {
269
269
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
270
270
  throw new Error("status code not found in response: ".concat(httpRes));
271
271
  }
272
- res = new operations.ListAccountingTransactionsResponse({
272
+ res = new operations.ListAccountingJournalsResponse({
273
273
  statusCode: httpRes.status,
274
274
  contentType: responseContentType,
275
275
  rawResponse: httpRes,
@@ -278,9 +278,9 @@ var Transaction = /** @class */ (function () {
278
278
  switch (true) {
279
279
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
280
280
  if (utils.matchContentType(responseContentType, "application/json")) {
281
- res.accountingTransactions = [];
281
+ res.accountingJournals = [];
282
282
  resFieldDepth = utils.getResFieldDepth(res);
283
- res.accountingTransactions = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction, resFieldDepth);
283
+ res.accountingJournals = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingJournal, resFieldDepth);
284
284
  }
285
285
  else {
286
286
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -296,9 +296,9 @@ var Transaction = /** @class */ (function () {
296
296
  });
297
297
  };
298
298
  /**
299
- * Update a transaction
299
+ * Update a journal
300
300
  */
301
- Transaction.prototype.patchAccountingTransaction = function (req, config) {
301
+ Journal.prototype.patchAccountingJournal = function (req, config) {
302
302
  var _a, _b;
303
303
  return __awaiter(this, void 0, void 0, function () {
304
304
  var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
@@ -307,13 +307,13 @@ var Transaction = /** @class */ (function () {
307
307
  switch (_e.label) {
308
308
  case 0:
309
309
  if (!(req instanceof utils.SpeakeasyBase)) {
310
- req = new operations.PatchAccountingTransactionRequest(req);
310
+ req = new operations.PatchAccountingJournalRequest(req);
311
311
  }
312
312
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
313
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
313
+ operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/journal/{id}", req);
314
314
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
315
315
  try {
316
- _d = __read(utils.serializeRequestBody(req, "accountingTransaction", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
316
+ _d = __read(utils.serializeRequestBody(req, "accountingJournal", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
317
317
  }
318
318
  catch (e) {
319
319
  if (e instanceof Error) {
@@ -342,7 +342,7 @@ var Transaction = /** @class */ (function () {
342
342
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
343
343
  throw new Error("status code not found in response: ".concat(httpRes));
344
344
  }
345
- res = new operations.PatchAccountingTransactionResponse({
345
+ res = new operations.PatchAccountingJournalResponse({
346
346
  statusCode: httpRes.status,
347
347
  contentType: responseContentType,
348
348
  rawResponse: httpRes,
@@ -351,7 +351,7 @@ var Transaction = /** @class */ (function () {
351
351
  switch (true) {
352
352
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
353
353
  if (utils.matchContentType(responseContentType, "application/json")) {
354
- res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
354
+ res.accountingJournal = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingJournal);
355
355
  }
356
356
  else {
357
357
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -367,9 +367,9 @@ var Transaction = /** @class */ (function () {
367
367
  });
368
368
  };
369
369
  /**
370
- * Remove a transaction
370
+ * Remove a journal
371
371
  */
372
- Transaction.prototype.removeAccountingTransaction = function (req, config) {
372
+ Journal.prototype.removeAccountingJournal = function (req, config) {
373
373
  var _a, _b;
374
374
  return __awaiter(this, void 0, void 0, function () {
375
375
  var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
@@ -377,10 +377,10 @@ var Transaction = /** @class */ (function () {
377
377
  switch (_c.label) {
378
378
  case 0:
379
379
  if (!(req instanceof utils.SpeakeasyBase)) {
380
- req = new operations.RemoveAccountingTransactionRequest(req);
380
+ req = new operations.RemoveAccountingJournalRequest(req);
381
381
  }
382
382
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
383
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
383
+ operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/journal/{id}", req);
384
384
  client = this.sdkConfiguration.defaultClient;
385
385
  globalSecurity = this.sdkConfiguration.security;
386
386
  if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
@@ -403,7 +403,7 @@ var Transaction = /** @class */ (function () {
403
403
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
404
404
  throw new Error("status code not found in response: ".concat(httpRes));
405
405
  }
406
- res = new operations.RemoveAccountingTransactionResponse({
406
+ res = new operations.RemoveAccountingJournalResponse({
407
407
  statusCode: httpRes.status,
408
408
  contentType: responseContentType,
409
409
  rawResponse: httpRes,
@@ -430,9 +430,9 @@ var Transaction = /** @class */ (function () {
430
430
  });
431
431
  };
432
432
  /**
433
- * Update a transaction
433
+ * Update a journal
434
434
  */
435
- Transaction.prototype.updateAccountingTransaction = function (req, config) {
435
+ Journal.prototype.updateAccountingJournal = function (req, config) {
436
436
  var _a, _b;
437
437
  return __awaiter(this, void 0, void 0, function () {
438
438
  var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
@@ -441,13 +441,13 @@ var Transaction = /** @class */ (function () {
441
441
  switch (_e.label) {
442
442
  case 0:
443
443
  if (!(req instanceof utils.SpeakeasyBase)) {
444
- req = new operations.UpdateAccountingTransactionRequest(req);
444
+ req = new operations.UpdateAccountingJournalRequest(req);
445
445
  }
446
446
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
447
- operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/transaction/{id}", req);
447
+ operationUrl = utils.generateURL(baseURL, "/accounting/{connection_id}/journal/{id}", req);
448
448
  _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
449
449
  try {
450
- _d = __read(utils.serializeRequestBody(req, "accountingTransaction", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
450
+ _d = __read(utils.serializeRequestBody(req, "accountingJournal", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
451
451
  }
452
452
  catch (e) {
453
453
  if (e instanceof Error) {
@@ -476,7 +476,7 @@ var Transaction = /** @class */ (function () {
476
476
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
477
477
  throw new Error("status code not found in response: ".concat(httpRes));
478
478
  }
479
- res = new operations.UpdateAccountingTransactionResponse({
479
+ res = new operations.UpdateAccountingJournalResponse({
480
480
  statusCode: httpRes.status,
481
481
  contentType: responseContentType,
482
482
  rawResponse: httpRes,
@@ -485,7 +485,7 @@ var Transaction = /** @class */ (function () {
485
485
  switch (true) {
486
486
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
487
487
  if (utils.matchContentType(responseContentType, "application/json")) {
488
- res.accountingTransaction = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingTransaction);
488
+ res.accountingJournal = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingJournal);
489
489
  }
490
490
  else {
491
491
  throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
@@ -500,6 +500,6 @@ var Transaction = /** @class */ (function () {
500
500
  });
501
501
  });
502
502
  };
503
- return Transaction;
503
+ return Journal;
504
504
  }());
505
- exports.Transaction = Transaction;
505
+ exports.Journal = Journal;
@@ -1,18 +1,18 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import * as shared from "../../../sdk/models/shared";
3
3
  import { AxiosResponse } from "axios";
4
- export declare class CreateAccountingTransactionRequest extends SpeakeasyBase {
5
- accountingTransaction?: shared.AccountingTransaction;
4
+ export declare class CreateAccountingJournalRequest extends SpeakeasyBase {
5
+ accountingJournal?: shared.AccountingJournal;
6
6
  /**
7
7
  * ID of the connection
8
8
  */
9
9
  connectionId: string;
10
10
  }
11
- export declare class CreateAccountingTransactionResponse extends SpeakeasyBase {
11
+ export declare class CreateAccountingJournalResponse extends SpeakeasyBase {
12
12
  /**
13
13
  * Successful
14
14
  */
15
- accountingTransaction?: shared.AccountingTransaction;
15
+ accountingJournal?: shared.AccountingJournal;
16
16
  /**
17
17
  * HTTP response content type for this operation
18
18
  */
@@ -50,46 +50,46 @@ var __metadata = (this && this.__metadata) || function (k, v) {
50
50
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.CreateAccountingTransactionResponse = exports.CreateAccountingTransactionRequest = void 0;
53
+ exports.CreateAccountingJournalResponse = exports.CreateAccountingJournalRequest = void 0;
54
54
  var utils_1 = require("../../../internal/utils");
55
55
  var shared = __importStar(require("../../../sdk/models/shared"));
56
- var CreateAccountingTransactionRequest = /** @class */ (function (_super) {
57
- __extends(CreateAccountingTransactionRequest, _super);
58
- function CreateAccountingTransactionRequest() {
56
+ var CreateAccountingJournalRequest = /** @class */ (function (_super) {
57
+ __extends(CreateAccountingJournalRequest, _super);
58
+ function CreateAccountingJournalRequest() {
59
59
  return _super !== null && _super.apply(this, arguments) || this;
60
60
  }
61
61
  __decorate([
62
62
  (0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
63
- __metadata("design:type", shared.AccountingTransaction)
64
- ], CreateAccountingTransactionRequest.prototype, "accountingTransaction", void 0);
63
+ __metadata("design:type", shared.AccountingJournal)
64
+ ], CreateAccountingJournalRequest.prototype, "accountingJournal", void 0);
65
65
  __decorate([
66
66
  (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
67
67
  __metadata("design:type", String)
68
- ], CreateAccountingTransactionRequest.prototype, "connectionId", void 0);
69
- return CreateAccountingTransactionRequest;
68
+ ], CreateAccountingJournalRequest.prototype, "connectionId", void 0);
69
+ return CreateAccountingJournalRequest;
70
70
  }(utils_1.SpeakeasyBase));
71
- exports.CreateAccountingTransactionRequest = CreateAccountingTransactionRequest;
72
- var CreateAccountingTransactionResponse = /** @class */ (function (_super) {
73
- __extends(CreateAccountingTransactionResponse, _super);
74
- function CreateAccountingTransactionResponse() {
71
+ exports.CreateAccountingJournalRequest = CreateAccountingJournalRequest;
72
+ var CreateAccountingJournalResponse = /** @class */ (function (_super) {
73
+ __extends(CreateAccountingJournalResponse, _super);
74
+ function CreateAccountingJournalResponse() {
75
75
  return _super !== null && _super.apply(this, arguments) || this;
76
76
  }
77
77
  __decorate([
78
78
  (0, utils_1.SpeakeasyMetadata)(),
79
- __metadata("design:type", shared.AccountingTransaction)
80
- ], CreateAccountingTransactionResponse.prototype, "accountingTransaction", void 0);
79
+ __metadata("design:type", shared.AccountingJournal)
80
+ ], CreateAccountingJournalResponse.prototype, "accountingJournal", void 0);
81
81
  __decorate([
82
82
  (0, utils_1.SpeakeasyMetadata)(),
83
83
  __metadata("design:type", String)
84
- ], CreateAccountingTransactionResponse.prototype, "contentType", void 0);
84
+ ], CreateAccountingJournalResponse.prototype, "contentType", void 0);
85
85
  __decorate([
86
86
  (0, utils_1.SpeakeasyMetadata)(),
87
87
  __metadata("design:type", Number)
88
- ], CreateAccountingTransactionResponse.prototype, "statusCode", void 0);
88
+ ], CreateAccountingJournalResponse.prototype, "statusCode", void 0);
89
89
  __decorate([
90
90
  (0, utils_1.SpeakeasyMetadata)(),
91
91
  __metadata("design:type", Object)
92
- ], CreateAccountingTransactionResponse.prototype, "rawResponse", void 0);
93
- return CreateAccountingTransactionResponse;
92
+ ], CreateAccountingJournalResponse.prototype, "rawResponse", void 0);
93
+ return CreateAccountingJournalResponse;
94
94
  }(utils_1.SpeakeasyBase));
95
- exports.CreateAccountingTransactionResponse = CreateAccountingTransactionResponse;
95
+ exports.CreateAccountingJournalResponse = CreateAccountingJournalResponse;
@@ -1,7 +1,7 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import * as shared from "../../../sdk/models/shared";
3
3
  import { AxiosResponse } from "axios";
4
- export declare class GetAccountingTransactionRequest extends SpeakeasyBase {
4
+ export declare class GetAccountingJournalRequest extends SpeakeasyBase {
5
5
  /**
6
6
  * ID of the connection
7
7
  */
@@ -11,15 +11,15 @@ export declare class GetAccountingTransactionRequest extends SpeakeasyBase {
11
11
  */
12
12
  fields?: string[];
13
13
  /**
14
- * ID of the Transaction
14
+ * ID of the Journal
15
15
  */
16
16
  id: string;
17
17
  }
18
- export declare class GetAccountingTransactionResponse extends SpeakeasyBase {
18
+ export declare class GetAccountingJournalResponse extends SpeakeasyBase {
19
19
  /**
20
20
  * Successful
21
21
  */
22
- accountingTransaction?: shared.AccountingTransaction;
22
+ accountingJournal?: shared.AccountingJournal;
23
23
  /**
24
24
  * HTTP response content type for this operation
25
25
  */
@@ -50,50 +50,50 @@ var __metadata = (this && this.__metadata) || function (k, v) {
50
50
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.GetAccountingTransactionResponse = exports.GetAccountingTransactionRequest = void 0;
53
+ exports.GetAccountingJournalResponse = exports.GetAccountingJournalRequest = void 0;
54
54
  var utils_1 = require("../../../internal/utils");
55
55
  var shared = __importStar(require("../../../sdk/models/shared"));
56
- var GetAccountingTransactionRequest = /** @class */ (function (_super) {
57
- __extends(GetAccountingTransactionRequest, _super);
58
- function GetAccountingTransactionRequest() {
56
+ var GetAccountingJournalRequest = /** @class */ (function (_super) {
57
+ __extends(GetAccountingJournalRequest, _super);
58
+ function GetAccountingJournalRequest() {
59
59
  return _super !== null && _super.apply(this, arguments) || this;
60
60
  }
61
61
  __decorate([
62
62
  (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
63
63
  __metadata("design:type", String)
64
- ], GetAccountingTransactionRequest.prototype, "connectionId", void 0);
64
+ ], GetAccountingJournalRequest.prototype, "connectionId", void 0);
65
65
  __decorate([
66
66
  (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=fields" }),
67
67
  __metadata("design:type", Array)
68
- ], GetAccountingTransactionRequest.prototype, "fields", void 0);
68
+ ], GetAccountingJournalRequest.prototype, "fields", void 0);
69
69
  __decorate([
70
70
  (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
71
71
  __metadata("design:type", String)
72
- ], GetAccountingTransactionRequest.prototype, "id", void 0);
73
- return GetAccountingTransactionRequest;
72
+ ], GetAccountingJournalRequest.prototype, "id", void 0);
73
+ return GetAccountingJournalRequest;
74
74
  }(utils_1.SpeakeasyBase));
75
- exports.GetAccountingTransactionRequest = GetAccountingTransactionRequest;
76
- var GetAccountingTransactionResponse = /** @class */ (function (_super) {
77
- __extends(GetAccountingTransactionResponse, _super);
78
- function GetAccountingTransactionResponse() {
75
+ exports.GetAccountingJournalRequest = GetAccountingJournalRequest;
76
+ var GetAccountingJournalResponse = /** @class */ (function (_super) {
77
+ __extends(GetAccountingJournalResponse, _super);
78
+ function GetAccountingJournalResponse() {
79
79
  return _super !== null && _super.apply(this, arguments) || this;
80
80
  }
81
81
  __decorate([
82
82
  (0, utils_1.SpeakeasyMetadata)(),
83
- __metadata("design:type", shared.AccountingTransaction)
84
- ], GetAccountingTransactionResponse.prototype, "accountingTransaction", void 0);
83
+ __metadata("design:type", shared.AccountingJournal)
84
+ ], GetAccountingJournalResponse.prototype, "accountingJournal", void 0);
85
85
  __decorate([
86
86
  (0, utils_1.SpeakeasyMetadata)(),
87
87
  __metadata("design:type", String)
88
- ], GetAccountingTransactionResponse.prototype, "contentType", void 0);
88
+ ], GetAccountingJournalResponse.prototype, "contentType", void 0);
89
89
  __decorate([
90
90
  (0, utils_1.SpeakeasyMetadata)(),
91
91
  __metadata("design:type", Number)
92
- ], GetAccountingTransactionResponse.prototype, "statusCode", void 0);
92
+ ], GetAccountingJournalResponse.prototype, "statusCode", void 0);
93
93
  __decorate([
94
94
  (0, utils_1.SpeakeasyMetadata)(),
95
95
  __metadata("design:type", Object)
96
- ], GetAccountingTransactionResponse.prototype, "rawResponse", void 0);
97
- return GetAccountingTransactionResponse;
96
+ ], GetAccountingJournalResponse.prototype, "rawResponse", void 0);
97
+ return GetAccountingJournalResponse;
98
98
  }(utils_1.SpeakeasyBase));
99
- exports.GetAccountingTransactionResponse = GetAccountingTransactionResponse;
99
+ exports.GetAccountingJournalResponse = GetAccountingJournalResponse;
@@ -6,6 +6,8 @@ export declare enum Scopes {
6
6
  AccountingAccountWrite = "accounting_account_write",
7
7
  AccountingTransactionRead = "accounting_transaction_read",
8
8
  AccountingTransactionWrite = "accounting_transaction_write",
9
+ AccountingJournalRead = "accounting_journal_read",
10
+ AccountingJournalWrite = "accounting_journal_write",
9
11
  AccountingInvoiceRead = "accounting_invoice_read",
10
12
  AccountingInvoiceWrite = "accounting_invoice_write",
11
13
  AccountingContactRead = "accounting_contact_read",
@@ -36,6 +36,8 @@ var Scopes;
36
36
  Scopes["AccountingAccountWrite"] = "accounting_account_write";
37
37
  Scopes["AccountingTransactionRead"] = "accounting_transaction_read";
38
38
  Scopes["AccountingTransactionWrite"] = "accounting_transaction_write";
39
+ Scopes["AccountingJournalRead"] = "accounting_journal_read";
40
+ Scopes["AccountingJournalWrite"] = "accounting_journal_write";
39
41
  Scopes["AccountingInvoiceRead"] = "accounting_invoice_read";
40
42
  Scopes["AccountingInvoiceWrite"] = "accounting_invoice_write";
41
43
  Scopes["AccountingContactRead"] = "accounting_contact_read";
@@ -1,8 +1,8 @@
1
1
  export * from "./createaccountingaccount";
2
2
  export * from "./createaccountingcontact";
3
3
  export * from "./createaccountinginvoice";
4
+ export * from "./createaccountingjournal";
4
5
  export * from "./createaccountingtaxrate";
5
- export * from "./createaccountingtransaction";
6
6
  export * from "./createatsactivity";
7
7
  export * from "./createatsapplication";
8
8
  export * from "./createatscandidate";
@@ -44,9 +44,9 @@ export * from "./createunifiedwebhook";
44
44
  export * from "./getaccountingaccount";
45
45
  export * from "./getaccountingcontact";
46
46
  export * from "./getaccountinginvoice";
47
+ export * from "./getaccountingjournal";
47
48
  export * from "./getaccountingorganization";
48
49
  export * from "./getaccountingtaxrate";
49
- export * from "./getaccountingtransaction";
50
50
  export * from "./getatsactivity";
51
51
  export * from "./getatsapplication";
52
52
  export * from "./getatscandidate";
@@ -95,9 +95,9 @@ export * from "./getunifiedwebhook";
95
95
  export * from "./listaccountingaccounts";
96
96
  export * from "./listaccountingcontacts";
97
97
  export * from "./listaccountinginvoices";
98
+ export * from "./listaccountingjournals";
98
99
  export * from "./listaccountingorganizations";
99
100
  export * from "./listaccountingtaxrates";
100
- export * from "./listaccountingtransactions";
101
101
  export * from "./listatsactivities";
102
102
  export * from "./listatsapplications";
103
103
  export * from "./listatsapplicationstatuses";
@@ -154,8 +154,8 @@ export * from "./listunifiedwebhooks";
154
154
  export * from "./patchaccountingaccount";
155
155
  export * from "./patchaccountingcontact";
156
156
  export * from "./patchaccountinginvoice";
157
+ export * from "./patchaccountingjournal";
157
158
  export * from "./patchaccountingtaxrate";
158
- export * from "./patchaccountingtransaction";
159
159
  export * from "./patchatsactivity";
160
160
  export * from "./patchatsapplication";
161
161
  export * from "./patchatscandidate";
@@ -196,8 +196,8 @@ export * from "./patchunifiedwebhooktrigger";
196
196
  export * from "./removeaccountingaccount";
197
197
  export * from "./removeaccountingcontact";
198
198
  export * from "./removeaccountinginvoice";
199
+ export * from "./removeaccountingjournal";
199
200
  export * from "./removeaccountingtaxrate";
200
- export * from "./removeaccountingtransaction";
201
201
  export * from "./removeatsactivity";
202
202
  export * from "./removeatsapplication";
203
203
  export * from "./removeatscandidate";
@@ -238,8 +238,8 @@ export * from "./removeunifiedwebhook";
238
238
  export * from "./updateaccountingaccount";
239
239
  export * from "./updateaccountingcontact";
240
240
  export * from "./updateaccountinginvoice";
241
+ export * from "./updateaccountingjournal";
241
242
  export * from "./updateaccountingtaxrate";
242
- export * from "./updateaccountingtransaction";
243
243
  export * from "./updateatsactivity";
244
244
  export * from "./updateatsapplication";
245
245
  export * from "./updateatscandidate";
@@ -20,8 +20,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
20
20
  __exportStar(require("./createaccountingaccount"), exports);
21
21
  __exportStar(require("./createaccountingcontact"), exports);
22
22
  __exportStar(require("./createaccountinginvoice"), exports);
23
+ __exportStar(require("./createaccountingjournal"), exports);
23
24
  __exportStar(require("./createaccountingtaxrate"), exports);
24
- __exportStar(require("./createaccountingtransaction"), exports);
25
25
  __exportStar(require("./createatsactivity"), exports);
26
26
  __exportStar(require("./createatsapplication"), exports);
27
27
  __exportStar(require("./createatscandidate"), exports);
@@ -63,9 +63,9 @@ __exportStar(require("./createunifiedwebhook"), exports);
63
63
  __exportStar(require("./getaccountingaccount"), exports);
64
64
  __exportStar(require("./getaccountingcontact"), exports);
65
65
  __exportStar(require("./getaccountinginvoice"), exports);
66
+ __exportStar(require("./getaccountingjournal"), exports);
66
67
  __exportStar(require("./getaccountingorganization"), exports);
67
68
  __exportStar(require("./getaccountingtaxrate"), exports);
68
- __exportStar(require("./getaccountingtransaction"), exports);
69
69
  __exportStar(require("./getatsactivity"), exports);
70
70
  __exportStar(require("./getatsapplication"), exports);
71
71
  __exportStar(require("./getatscandidate"), exports);
@@ -114,9 +114,9 @@ __exportStar(require("./getunifiedwebhook"), exports);
114
114
  __exportStar(require("./listaccountingaccounts"), exports);
115
115
  __exportStar(require("./listaccountingcontacts"), exports);
116
116
  __exportStar(require("./listaccountinginvoices"), exports);
117
+ __exportStar(require("./listaccountingjournals"), exports);
117
118
  __exportStar(require("./listaccountingorganizations"), exports);
118
119
  __exportStar(require("./listaccountingtaxrates"), exports);
119
- __exportStar(require("./listaccountingtransactions"), exports);
120
120
  __exportStar(require("./listatsactivities"), exports);
121
121
  __exportStar(require("./listatsapplications"), exports);
122
122
  __exportStar(require("./listatsapplicationstatuses"), exports);
@@ -173,8 +173,8 @@ __exportStar(require("./listunifiedwebhooks"), exports);
173
173
  __exportStar(require("./patchaccountingaccount"), exports);
174
174
  __exportStar(require("./patchaccountingcontact"), exports);
175
175
  __exportStar(require("./patchaccountinginvoice"), exports);
176
+ __exportStar(require("./patchaccountingjournal"), exports);
176
177
  __exportStar(require("./patchaccountingtaxrate"), exports);
177
- __exportStar(require("./patchaccountingtransaction"), exports);
178
178
  __exportStar(require("./patchatsactivity"), exports);
179
179
  __exportStar(require("./patchatsapplication"), exports);
180
180
  __exportStar(require("./patchatscandidate"), exports);
@@ -215,8 +215,8 @@ __exportStar(require("./patchunifiedwebhooktrigger"), exports);
215
215
  __exportStar(require("./removeaccountingaccount"), exports);
216
216
  __exportStar(require("./removeaccountingcontact"), exports);
217
217
  __exportStar(require("./removeaccountinginvoice"), exports);
218
+ __exportStar(require("./removeaccountingjournal"), exports);
218
219
  __exportStar(require("./removeaccountingtaxrate"), exports);
219
- __exportStar(require("./removeaccountingtransaction"), exports);
220
220
  __exportStar(require("./removeatsactivity"), exports);
221
221
  __exportStar(require("./removeatsapplication"), exports);
222
222
  __exportStar(require("./removeatscandidate"), exports);
@@ -257,8 +257,8 @@ __exportStar(require("./removeunifiedwebhook"), exports);
257
257
  __exportStar(require("./updateaccountingaccount"), exports);
258
258
  __exportStar(require("./updateaccountingcontact"), exports);
259
259
  __exportStar(require("./updateaccountinginvoice"), exports);
260
+ __exportStar(require("./updateaccountingjournal"), exports);
260
261
  __exportStar(require("./updateaccountingtaxrate"), exports);
261
- __exportStar(require("./updateaccountingtransaction"), exports);
262
262
  __exportStar(require("./updateatsactivity"), exports);
263
263
  __exportStar(require("./updateatsapplication"), exports);
264
264
  __exportStar(require("./updateatscandidate"), exports);
@@ -1,7 +1,7 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import * as shared from "../../../sdk/models/shared";
3
3
  import { AxiosResponse } from "axios";
4
- export declare class ListAccountingTransactionsRequest extends SpeakeasyBase {
4
+ export declare class ListAccountingJournalsRequest extends SpeakeasyBase {
5
5
  /**
6
6
  * ID of the connection
7
7
  */
@@ -23,11 +23,11 @@ export declare class ListAccountingTransactionsRequest extends SpeakeasyBase {
23
23
  */
24
24
  updatedGte?: Date;
25
25
  }
26
- export declare class ListAccountingTransactionsResponse extends SpeakeasyBase {
26
+ export declare class ListAccountingJournalsResponse extends SpeakeasyBase {
27
27
  /**
28
28
  * Successful
29
29
  */
30
- accountingTransactions?: shared.AccountingTransaction[];
30
+ accountingJournals?: shared.AccountingJournal[];
31
31
  /**
32
32
  * HTTP response content type for this operation
33
33
  */