@unified-api/typescript-sdk 1.0.37 → 1.0.39

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 (56) hide show
  1. package/dist/sdk/accounting.d.ts +24 -0
  2. package/dist/sdk/accounting.js +402 -0
  3. package/dist/sdk/journal.d.ts +31 -0
  4. package/dist/sdk/journal.js +505 -0
  5. package/dist/sdk/models/operations/createaccountingjournal.d.ts +28 -0
  6. package/dist/sdk/models/operations/createaccountingjournal.js +95 -0
  7. package/dist/sdk/models/operations/getaccountingjournal.d.ts +35 -0
  8. package/dist/sdk/models/operations/getaccountingjournal.js +99 -0
  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 -0
  12. package/dist/sdk/models/operations/index.js +6 -0
  13. package/dist/sdk/models/operations/listaccountingjournals.d.ts +43 -0
  14. package/dist/sdk/models/operations/listaccountingjournals.js +119 -0
  15. package/dist/sdk/models/operations/listaccountingtransactions.d.ts +1 -0
  16. package/dist/sdk/models/operations/listaccountingtransactions.js +4 -0
  17. package/dist/sdk/models/operations/patchaccountingjournal.d.ts +32 -0
  18. package/dist/sdk/models/operations/patchaccountingjournal.js +99 -0
  19. package/dist/sdk/models/operations/removeaccountingjournal.d.ts +30 -0
  20. package/dist/sdk/models/operations/removeaccountingjournal.js +71 -0
  21. package/dist/sdk/models/operations/updateaccountingjournal.d.ts +32 -0
  22. package/dist/sdk/models/operations/updateaccountingjournal.js +99 -0
  23. package/dist/sdk/models/shared/accountingjournal.d.ts +17 -0
  24. package/dist/sdk/models/shared/accountingjournal.js +92 -0
  25. package/dist/sdk/models/shared/{accountingtransactionlineitem.d.ts → accountingjournallineitem.d.ts} +1 -1
  26. package/dist/sdk/models/shared/{accountingtransactionlineitem.js → accountingjournallineitem.js} +14 -14
  27. package/dist/sdk/models/shared/accountingtransaction.d.ts +12 -9
  28. package/dist/sdk/models/shared/accountingtransaction.js +53 -12
  29. package/dist/sdk/models/shared/index.d.ts +2 -1
  30. package/dist/sdk/models/shared/index.js +2 -1
  31. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  32. package/dist/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  33. package/dist/sdk/models/shared/webhook.d.ts +1 -0
  34. package/dist/sdk/models/shared/webhook.js +1 -0
  35. package/dist/sdk/sdk.d.ts +2 -0
  36. package/dist/sdk/sdk.js +5 -3
  37. package/docs/sdk/models/operations/createaccountingjournalrequest.md +9 -0
  38. package/docs/sdk/models/operations/createaccountingjournalresponse.md +11 -0
  39. package/docs/sdk/models/operations/getaccountingjournalrequest.md +10 -0
  40. package/docs/sdk/models/operations/getaccountingjournalresponse.md +11 -0
  41. package/docs/sdk/models/operations/listaccountingjournalsrequest.md +15 -0
  42. package/docs/sdk/models/operations/listaccountingjournalsresponse.md +11 -0
  43. package/docs/sdk/models/operations/listaccountingtransactionsrequest.md +1 -0
  44. package/docs/sdk/models/operations/patchaccountingjournalrequest.md +10 -0
  45. package/docs/sdk/models/operations/patchaccountingjournalresponse.md +11 -0
  46. package/docs/sdk/models/operations/removeaccountingjournalrequest.md +9 -0
  47. package/docs/sdk/models/operations/removeaccountingjournalresponse.md +11 -0
  48. package/docs/sdk/models/operations/scopes.md +2 -0
  49. package/docs/sdk/models/operations/updateaccountingjournalrequest.md +10 -0
  50. package/docs/sdk/models/operations/updateaccountingjournalresponse.md +11 -0
  51. package/docs/sdk/models/shared/accountingjournal.md +17 -0
  52. package/docs/sdk/models/shared/{accountingtransactionlineitem.md → accountingjournallineitem.md} +1 -1
  53. package/docs/sdk/models/shared/accountingtransaction.md +19 -12
  54. package/docs/sdk/models/shared/objecttype.md +1 -0
  55. package/docs/sdk/models/shared/propertyconnectionpermissions.md +2 -0
  56. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../../../sdk/models/shared";
3
+ import { AxiosResponse } from "axios";
4
+ export declare class GetAccountingJournalRequest extends SpeakeasyBase {
5
+ /**
6
+ * ID of the connection
7
+ */
8
+ connectionId: string;
9
+ /**
10
+ * Comma-delimited fields to return
11
+ */
12
+ fields?: string[];
13
+ /**
14
+ * ID of the Journal
15
+ */
16
+ id: string;
17
+ }
18
+ export declare class GetAccountingJournalResponse extends SpeakeasyBase {
19
+ /**
20
+ * Successful
21
+ */
22
+ accountingJournal?: shared.AccountingJournal;
23
+ /**
24
+ * HTTP response content type for this operation
25
+ */
26
+ contentType: string;
27
+ /**
28
+ * HTTP response status code for this operation
29
+ */
30
+ statusCode: number;
31
+ /**
32
+ * Raw HTTP response; suitable for custom response parsing
33
+ */
34
+ rawResponse: AxiosResponse;
35
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
37
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
41
+ };
42
+ var __importStar = (this && this.__importStar) || function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ var __metadata = (this && this.__metadata) || function (k, v) {
50
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.GetAccountingJournalResponse = exports.GetAccountingJournalRequest = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../../../sdk/models/shared"));
56
+ var GetAccountingJournalRequest = /** @class */ (function (_super) {
57
+ __extends(GetAccountingJournalRequest, _super);
58
+ function GetAccountingJournalRequest() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ __decorate([
62
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
63
+ __metadata("design:type", String)
64
+ ], GetAccountingJournalRequest.prototype, "connectionId", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=fields" }),
67
+ __metadata("design:type", Array)
68
+ ], GetAccountingJournalRequest.prototype, "fields", void 0);
69
+ __decorate([
70
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
71
+ __metadata("design:type", String)
72
+ ], GetAccountingJournalRequest.prototype, "id", void 0);
73
+ return GetAccountingJournalRequest;
74
+ }(utils_1.SpeakeasyBase));
75
+ exports.GetAccountingJournalRequest = GetAccountingJournalRequest;
76
+ var GetAccountingJournalResponse = /** @class */ (function (_super) {
77
+ __extends(GetAccountingJournalResponse, _super);
78
+ function GetAccountingJournalResponse() {
79
+ return _super !== null && _super.apply(this, arguments) || this;
80
+ }
81
+ __decorate([
82
+ (0, utils_1.SpeakeasyMetadata)(),
83
+ __metadata("design:type", shared.AccountingJournal)
84
+ ], GetAccountingJournalResponse.prototype, "accountingJournal", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ __metadata("design:type", String)
88
+ ], GetAccountingJournalResponse.prototype, "contentType", void 0);
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)(),
91
+ __metadata("design:type", Number)
92
+ ], GetAccountingJournalResponse.prototype, "statusCode", void 0);
93
+ __decorate([
94
+ (0, utils_1.SpeakeasyMetadata)(),
95
+ __metadata("design:type", Object)
96
+ ], GetAccountingJournalResponse.prototype, "rawResponse", void 0);
97
+ return GetAccountingJournalResponse;
98
+ }(utils_1.SpeakeasyBase));
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,6 +1,7 @@
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
6
  export * from "./createaccountingtransaction";
6
7
  export * from "./createatsactivity";
@@ -44,6 +45,7 @@ export * from "./createunifiedwebhook";
44
45
  export * from "./getaccountingaccount";
45
46
  export * from "./getaccountingcontact";
46
47
  export * from "./getaccountinginvoice";
48
+ export * from "./getaccountingjournal";
47
49
  export * from "./getaccountingorganization";
48
50
  export * from "./getaccountingtaxrate";
49
51
  export * from "./getaccountingtransaction";
@@ -95,6 +97,7 @@ export * from "./getunifiedwebhook";
95
97
  export * from "./listaccountingaccounts";
96
98
  export * from "./listaccountingcontacts";
97
99
  export * from "./listaccountinginvoices";
100
+ export * from "./listaccountingjournals";
98
101
  export * from "./listaccountingorganizations";
99
102
  export * from "./listaccountingtaxrates";
100
103
  export * from "./listaccountingtransactions";
@@ -154,6 +157,7 @@ export * from "./listunifiedwebhooks";
154
157
  export * from "./patchaccountingaccount";
155
158
  export * from "./patchaccountingcontact";
156
159
  export * from "./patchaccountinginvoice";
160
+ export * from "./patchaccountingjournal";
157
161
  export * from "./patchaccountingtaxrate";
158
162
  export * from "./patchaccountingtransaction";
159
163
  export * from "./patchatsactivity";
@@ -196,6 +200,7 @@ export * from "./patchunifiedwebhooktrigger";
196
200
  export * from "./removeaccountingaccount";
197
201
  export * from "./removeaccountingcontact";
198
202
  export * from "./removeaccountinginvoice";
203
+ export * from "./removeaccountingjournal";
199
204
  export * from "./removeaccountingtaxrate";
200
205
  export * from "./removeaccountingtransaction";
201
206
  export * from "./removeatsactivity";
@@ -238,6 +243,7 @@ export * from "./removeunifiedwebhook";
238
243
  export * from "./updateaccountingaccount";
239
244
  export * from "./updateaccountingcontact";
240
245
  export * from "./updateaccountinginvoice";
246
+ export * from "./updateaccountingjournal";
241
247
  export * from "./updateaccountingtaxrate";
242
248
  export * from "./updateaccountingtransaction";
243
249
  export * from "./updateatsactivity";
@@ -20,6 +20,7 @@ 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
25
  __exportStar(require("./createaccountingtransaction"), exports);
25
26
  __exportStar(require("./createatsactivity"), exports);
@@ -63,6 +64,7 @@ __exportStar(require("./createunifiedwebhook"), exports);
63
64
  __exportStar(require("./getaccountingaccount"), exports);
64
65
  __exportStar(require("./getaccountingcontact"), exports);
65
66
  __exportStar(require("./getaccountinginvoice"), exports);
67
+ __exportStar(require("./getaccountingjournal"), exports);
66
68
  __exportStar(require("./getaccountingorganization"), exports);
67
69
  __exportStar(require("./getaccountingtaxrate"), exports);
68
70
  __exportStar(require("./getaccountingtransaction"), exports);
@@ -114,6 +116,7 @@ __exportStar(require("./getunifiedwebhook"), exports);
114
116
  __exportStar(require("./listaccountingaccounts"), exports);
115
117
  __exportStar(require("./listaccountingcontacts"), exports);
116
118
  __exportStar(require("./listaccountinginvoices"), exports);
119
+ __exportStar(require("./listaccountingjournals"), exports);
117
120
  __exportStar(require("./listaccountingorganizations"), exports);
118
121
  __exportStar(require("./listaccountingtaxrates"), exports);
119
122
  __exportStar(require("./listaccountingtransactions"), exports);
@@ -173,6 +176,7 @@ __exportStar(require("./listunifiedwebhooks"), exports);
173
176
  __exportStar(require("./patchaccountingaccount"), exports);
174
177
  __exportStar(require("./patchaccountingcontact"), exports);
175
178
  __exportStar(require("./patchaccountinginvoice"), exports);
179
+ __exportStar(require("./patchaccountingjournal"), exports);
176
180
  __exportStar(require("./patchaccountingtaxrate"), exports);
177
181
  __exportStar(require("./patchaccountingtransaction"), exports);
178
182
  __exportStar(require("./patchatsactivity"), exports);
@@ -215,6 +219,7 @@ __exportStar(require("./patchunifiedwebhooktrigger"), exports);
215
219
  __exportStar(require("./removeaccountingaccount"), exports);
216
220
  __exportStar(require("./removeaccountingcontact"), exports);
217
221
  __exportStar(require("./removeaccountinginvoice"), exports);
222
+ __exportStar(require("./removeaccountingjournal"), exports);
218
223
  __exportStar(require("./removeaccountingtaxrate"), exports);
219
224
  __exportStar(require("./removeaccountingtransaction"), exports);
220
225
  __exportStar(require("./removeatsactivity"), exports);
@@ -257,6 +262,7 @@ __exportStar(require("./removeunifiedwebhook"), exports);
257
262
  __exportStar(require("./updateaccountingaccount"), exports);
258
263
  __exportStar(require("./updateaccountingcontact"), exports);
259
264
  __exportStar(require("./updateaccountinginvoice"), exports);
265
+ __exportStar(require("./updateaccountingjournal"), exports);
260
266
  __exportStar(require("./updateaccountingtaxrate"), exports);
261
267
  __exportStar(require("./updateaccountingtransaction"), exports);
262
268
  __exportStar(require("./updateatsactivity"), exports);
@@ -0,0 +1,43 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../../../sdk/models/shared";
3
+ import { AxiosResponse } from "axios";
4
+ export declare class ListAccountingJournalsRequest extends SpeakeasyBase {
5
+ /**
6
+ * ID of the connection
7
+ */
8
+ connectionId: string;
9
+ /**
10
+ * Comma-delimited fields to return
11
+ */
12
+ fields?: string[];
13
+ limit?: number;
14
+ offset?: number;
15
+ order?: string;
16
+ /**
17
+ * Query string to search. eg. email address or name
18
+ */
19
+ query?: string;
20
+ sort?: string;
21
+ /**
22
+ * Return only results whose updated date is equal or greater to this value
23
+ */
24
+ updatedGte?: Date;
25
+ }
26
+ export declare class ListAccountingJournalsResponse extends SpeakeasyBase {
27
+ /**
28
+ * Successful
29
+ */
30
+ accountingJournals?: shared.AccountingJournal[];
31
+ /**
32
+ * HTTP response content type for this operation
33
+ */
34
+ contentType: string;
35
+ /**
36
+ * HTTP response status code for this operation
37
+ */
38
+ statusCode: number;
39
+ /**
40
+ * Raw HTTP response; suitable for custom response parsing
41
+ */
42
+ rawResponse: AxiosResponse;
43
+ }
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
37
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
41
+ };
42
+ var __importStar = (this && this.__importStar) || function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ var __metadata = (this && this.__metadata) || function (k, v) {
50
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.ListAccountingJournalsResponse = exports.ListAccountingJournalsRequest = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../../../sdk/models/shared"));
56
+ var ListAccountingJournalsRequest = /** @class */ (function (_super) {
57
+ __extends(ListAccountingJournalsRequest, _super);
58
+ function ListAccountingJournalsRequest() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ __decorate([
62
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
63
+ __metadata("design:type", String)
64
+ ], ListAccountingJournalsRequest.prototype, "connectionId", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=fields" }),
67
+ __metadata("design:type", Array)
68
+ ], ListAccountingJournalsRequest.prototype, "fields", void 0);
69
+ __decorate([
70
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=limit" }),
71
+ __metadata("design:type", Number)
72
+ ], ListAccountingJournalsRequest.prototype, "limit", void 0);
73
+ __decorate([
74
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=offset" }),
75
+ __metadata("design:type", Number)
76
+ ], ListAccountingJournalsRequest.prototype, "offset", void 0);
77
+ __decorate([
78
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=order" }),
79
+ __metadata("design:type", String)
80
+ ], ListAccountingJournalsRequest.prototype, "order", void 0);
81
+ __decorate([
82
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=query" }),
83
+ __metadata("design:type", String)
84
+ ], ListAccountingJournalsRequest.prototype, "query", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=sort" }),
87
+ __metadata("design:type", String)
88
+ ], ListAccountingJournalsRequest.prototype, "sort", void 0);
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=updated_gte" }),
91
+ __metadata("design:type", Date)
92
+ ], ListAccountingJournalsRequest.prototype, "updatedGte", void 0);
93
+ return ListAccountingJournalsRequest;
94
+ }(utils_1.SpeakeasyBase));
95
+ exports.ListAccountingJournalsRequest = ListAccountingJournalsRequest;
96
+ var ListAccountingJournalsResponse = /** @class */ (function (_super) {
97
+ __extends(ListAccountingJournalsResponse, _super);
98
+ function ListAccountingJournalsResponse() {
99
+ return _super !== null && _super.apply(this, arguments) || this;
100
+ }
101
+ __decorate([
102
+ (0, utils_1.SpeakeasyMetadata)({ elemType: shared.AccountingJournal }),
103
+ __metadata("design:type", Array)
104
+ ], ListAccountingJournalsResponse.prototype, "accountingJournals", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)(),
107
+ __metadata("design:type", String)
108
+ ], ListAccountingJournalsResponse.prototype, "contentType", void 0);
109
+ __decorate([
110
+ (0, utils_1.SpeakeasyMetadata)(),
111
+ __metadata("design:type", Number)
112
+ ], ListAccountingJournalsResponse.prototype, "statusCode", void 0);
113
+ __decorate([
114
+ (0, utils_1.SpeakeasyMetadata)(),
115
+ __metadata("design:type", Object)
116
+ ], ListAccountingJournalsResponse.prototype, "rawResponse", void 0);
117
+ return ListAccountingJournalsResponse;
118
+ }(utils_1.SpeakeasyBase));
119
+ exports.ListAccountingJournalsResponse = ListAccountingJournalsResponse;
@@ -6,6 +6,7 @@ export declare class ListAccountingTransactionsRequest extends SpeakeasyBase {
6
6
  * ID of the connection
7
7
  */
8
8
  connectionId: string;
9
+ contactId?: string;
9
10
  /**
10
11
  * Comma-delimited fields to return
11
12
  */
@@ -62,6 +62,10 @@ var ListAccountingTransactionsRequest = /** @class */ (function (_super) {
62
62
  (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
63
63
  __metadata("design:type", String)
64
64
  ], ListAccountingTransactionsRequest.prototype, "connectionId", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=contact_id" }),
67
+ __metadata("design:type", String)
68
+ ], ListAccountingTransactionsRequest.prototype, "contactId", void 0);
65
69
  __decorate([
66
70
  (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=fields" }),
67
71
  __metadata("design:type", Array)
@@ -0,0 +1,32 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../../../sdk/models/shared";
3
+ import { AxiosResponse } from "axios";
4
+ export declare class PatchAccountingJournalRequest extends SpeakeasyBase {
5
+ accountingJournal?: shared.AccountingJournal;
6
+ /**
7
+ * ID of the connection
8
+ */
9
+ connectionId: string;
10
+ /**
11
+ * ID of the Journal
12
+ */
13
+ id: string;
14
+ }
15
+ export declare class PatchAccountingJournalResponse extends SpeakeasyBase {
16
+ /**
17
+ * Successful
18
+ */
19
+ accountingJournal?: shared.AccountingJournal;
20
+ /**
21
+ * HTTP response content type for this operation
22
+ */
23
+ contentType: string;
24
+ /**
25
+ * HTTP response status code for this operation
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ * Raw HTTP response; suitable for custom response parsing
30
+ */
31
+ rawResponse: AxiosResponse;
32
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
37
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
41
+ };
42
+ var __importStar = (this && this.__importStar) || function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ var __metadata = (this && this.__metadata) || function (k, v) {
50
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.PatchAccountingJournalResponse = exports.PatchAccountingJournalRequest = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../../../sdk/models/shared"));
56
+ var PatchAccountingJournalRequest = /** @class */ (function (_super) {
57
+ __extends(PatchAccountingJournalRequest, _super);
58
+ function PatchAccountingJournalRequest() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ __decorate([
62
+ (0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
63
+ __metadata("design:type", shared.AccountingJournal)
64
+ ], PatchAccountingJournalRequest.prototype, "accountingJournal", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
67
+ __metadata("design:type", String)
68
+ ], PatchAccountingJournalRequest.prototype, "connectionId", void 0);
69
+ __decorate([
70
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
71
+ __metadata("design:type", String)
72
+ ], PatchAccountingJournalRequest.prototype, "id", void 0);
73
+ return PatchAccountingJournalRequest;
74
+ }(utils_1.SpeakeasyBase));
75
+ exports.PatchAccountingJournalRequest = PatchAccountingJournalRequest;
76
+ var PatchAccountingJournalResponse = /** @class */ (function (_super) {
77
+ __extends(PatchAccountingJournalResponse, _super);
78
+ function PatchAccountingJournalResponse() {
79
+ return _super !== null && _super.apply(this, arguments) || this;
80
+ }
81
+ __decorate([
82
+ (0, utils_1.SpeakeasyMetadata)(),
83
+ __metadata("design:type", shared.AccountingJournal)
84
+ ], PatchAccountingJournalResponse.prototype, "accountingJournal", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ __metadata("design:type", String)
88
+ ], PatchAccountingJournalResponse.prototype, "contentType", void 0);
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)(),
91
+ __metadata("design:type", Number)
92
+ ], PatchAccountingJournalResponse.prototype, "statusCode", void 0);
93
+ __decorate([
94
+ (0, utils_1.SpeakeasyMetadata)(),
95
+ __metadata("design:type", Object)
96
+ ], PatchAccountingJournalResponse.prototype, "rawResponse", void 0);
97
+ return PatchAccountingJournalResponse;
98
+ }(utils_1.SpeakeasyBase));
99
+ exports.PatchAccountingJournalResponse = PatchAccountingJournalResponse;
@@ -0,0 +1,30 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { AxiosResponse } from "axios";
3
+ export declare class RemoveAccountingJournalRequest extends SpeakeasyBase {
4
+ /**
5
+ * ID of the connection
6
+ */
7
+ connectionId: string;
8
+ /**
9
+ * ID of the Journal
10
+ */
11
+ id: string;
12
+ }
13
+ export declare class RemoveAccountingJournalResponse extends SpeakeasyBase {
14
+ /**
15
+ * HTTP response content type for this operation
16
+ */
17
+ contentType: string;
18
+ /**
19
+ * HTTP response status code for this operation
20
+ */
21
+ statusCode: number;
22
+ /**
23
+ * Raw HTTP response; suitable for custom response parsing
24
+ */
25
+ rawResponse: AxiosResponse;
26
+ /**
27
+ * Successful
28
+ */
29
+ string?: string;
30
+ }