@codat/lending 3.1.0 → 3.2.0

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 (175) hide show
  1. package/README.md +36 -0
  2. package/dist/sdk/companies.js +2 -2
  3. package/dist/sdk/connections.js +2 -2
  4. package/dist/sdk/fileupload.js +1 -1
  5. package/dist/sdk/loanwriteback.d.ts +19 -0
  6. package/dist/sdk/loanwriteback.js +27 -0
  7. package/dist/sdk/loanwritebackaccounts.d.ts +40 -0
  8. package/dist/sdk/loanwritebackaccounts.js +294 -0
  9. package/dist/sdk/loanwritebackbankaccounts.d.ts +39 -0
  10. package/dist/sdk/loanwritebackbankaccounts.js +293 -0
  11. package/dist/sdk/loanwritebackbanktransactions.d.ts +40 -0
  12. package/dist/sdk/loanwritebackbanktransactions.js +294 -0
  13. package/dist/sdk/loanwritebackcreateoperations.d.ts +22 -0
  14. package/dist/sdk/loanwritebackcreateoperations.js +250 -0
  15. package/dist/sdk/loanwritebackdirectcosts.d.ts +40 -0
  16. package/dist/sdk/loanwritebackdirectcosts.js +294 -0
  17. package/dist/sdk/loanwritebacksuppliers.d.ts +40 -0
  18. package/dist/sdk/loanwritebacksuppliers.js +294 -0
  19. package/dist/sdk/loanwritebacktransfers.d.ts +40 -0
  20. package/dist/sdk/loanwritebacktransfers.js +294 -0
  21. package/dist/sdk/models/operations/createaccount.d.ts +27 -0
  22. package/dist/sdk/models/operations/createaccount.js +115 -0
  23. package/dist/sdk/models/operations/createbankaccount.d.ts +27 -0
  24. package/dist/sdk/models/operations/createbankaccount.js +115 -0
  25. package/dist/sdk/models/operations/createbanktransactions.d.ts +31 -0
  26. package/dist/sdk/models/operations/createbanktransactions.js +119 -0
  27. package/dist/sdk/models/operations/createdirectcost.d.ts +27 -0
  28. package/dist/sdk/models/operations/createdirectcost.js +115 -0
  29. package/dist/sdk/models/operations/createsupplier.d.ts +27 -0
  30. package/dist/sdk/models/operations/createsupplier.js +115 -0
  31. package/dist/sdk/models/operations/createtransfer.d.ts +27 -0
  32. package/dist/sdk/models/operations/createtransfer.js +115 -0
  33. package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +24 -0
  34. package/dist/sdk/models/operations/getcreatebanktransactionsmodel.js +103 -0
  35. package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +20 -0
  36. package/dist/sdk/models/operations/getcreatechartofaccountsmodel.js +99 -0
  37. package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +20 -0
  38. package/dist/sdk/models/operations/getcreatedirectcostsmodel.js +99 -0
  39. package/dist/sdk/models/operations/getcreateoperation.d.ts +23 -0
  40. package/dist/sdk/models/operations/getcreateoperation.js +99 -0
  41. package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +20 -0
  42. package/dist/sdk/models/operations/getcreatetransfersmodel.js +99 -0
  43. package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +20 -0
  44. package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.js +99 -0
  45. package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +20 -0
  46. package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.js +99 -0
  47. package/dist/sdk/models/operations/index.d.ts +14 -0
  48. package/dist/sdk/models/operations/index.js +14 -0
  49. package/dist/sdk/models/operations/listcreateoperations.d.ts +35 -0
  50. package/dist/sdk/models/operations/listcreateoperations.js +111 -0
  51. package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +124 -0
  52. package/dist/sdk/models/shared/accountingcreateaccountresponse.js +118 -0
  53. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +112 -0
  54. package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -0
  55. package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +6 -0
  56. package/dist/sdk/models/shared/accountingcreatebanktransactions.js +52 -0
  57. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +92 -0
  58. package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +118 -0
  59. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +111 -0
  60. package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +118 -0
  61. package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +101 -0
  62. package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +118 -0
  63. package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +99 -0
  64. package/dist/sdk/models/shared/accountingcreatetransferresponse.js +118 -0
  65. package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +31 -0
  66. package/dist/sdk/models/shared/createbankaccounttransaction.js +65 -0
  67. package/dist/sdk/models/shared/index.d.ts +22 -0
  68. package/dist/sdk/models/shared/index.js +22 -0
  69. package/dist/sdk/models/shared/pushchangetype.d.ts +7 -0
  70. package/dist/sdk/models/shared/pushchangetype.js +14 -0
  71. package/dist/sdk/models/shared/pushfieldvalidation.d.ts +6 -0
  72. package/dist/sdk/models/shared/pushfieldvalidation.js +55 -0
  73. package/dist/sdk/models/shared/pushoperation.d.ts +90 -0
  74. package/dist/sdk/models/shared/pushoperation.js +111 -0
  75. package/dist/sdk/models/shared/pushoperationchange.d.ts +8 -0
  76. package/dist/sdk/models/shared/pushoperationchange.js +58 -0
  77. package/dist/sdk/models/shared/pushoperationref.d.ts +9 -0
  78. package/dist/sdk/models/shared/pushoperationref.js +51 -0
  79. package/dist/sdk/models/shared/pushoperations.d.ts +10 -0
  80. package/dist/sdk/models/shared/pushoperations.js +69 -0
  81. package/dist/sdk/models/shared/pushoperationstatus.d.ts +9 -0
  82. package/dist/sdk/models/shared/pushoperationstatus.js +16 -0
  83. package/dist/sdk/models/shared/pushoption.d.ts +14 -0
  84. package/dist/sdk/models/shared/pushoption.js +89 -0
  85. package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
  86. package/dist/sdk/models/shared/pushoptionchoice.js +66 -0
  87. package/dist/sdk/models/shared/pushoptionproperty.d.ts +13 -0
  88. package/dist/sdk/models/shared/pushoptionproperty.js +88 -0
  89. package/dist/sdk/models/shared/pushoptiontype.d.ts +10 -0
  90. package/dist/sdk/models/shared/pushoptiontype.js +17 -0
  91. package/dist/sdk/models/shared/pushvalidationinfo.d.ts +6 -0
  92. package/dist/sdk/models/shared/pushvalidationinfo.js +53 -0
  93. package/dist/sdk/models/shared/validation.d.ts +9 -0
  94. package/dist/sdk/models/shared/validation.js +56 -0
  95. package/dist/sdk/models/shared/validationitem.d.ts +6 -0
  96. package/dist/sdk/models/shared/validationitem.js +55 -0
  97. package/dist/sdk/sdk.d.ts +2 -0
  98. package/dist/sdk/sdk.js +4 -2
  99. package/docs/models/operations/createaccountrequest.md +13 -0
  100. package/docs/models/operations/createaccountresponse.md +12 -0
  101. package/docs/models/operations/createbankaccountrequest.md +13 -0
  102. package/docs/models/operations/createbankaccountresponse.md +12 -0
  103. package/docs/models/operations/createbanktransactionsrequest.md +14 -0
  104. package/docs/models/operations/createbanktransactionsresponse.md +12 -0
  105. package/docs/models/operations/createdirectcostrequest.md +13 -0
  106. package/docs/models/operations/createdirectcostresponse.md +12 -0
  107. package/docs/models/operations/createsupplierrequest.md +13 -0
  108. package/docs/models/operations/createsupplierresponse.md +12 -0
  109. package/docs/models/operations/createtransferrequest.md +13 -0
  110. package/docs/models/operations/createtransferresponse.md +12 -0
  111. package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +10 -0
  112. package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +12 -0
  113. package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +9 -0
  114. package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +12 -0
  115. package/docs/models/operations/getcreatedirectcostsmodelrequest.md +9 -0
  116. package/docs/models/operations/getcreatedirectcostsmodelresponse.md +12 -0
  117. package/docs/models/operations/getcreateoperationrequest.md +9 -0
  118. package/docs/models/operations/getcreateoperationresponse.md +12 -0
  119. package/docs/models/operations/getcreatetransfersmodelrequest.md +9 -0
  120. package/docs/models/operations/getcreatetransfersmodelresponse.md +12 -0
  121. package/docs/models/operations/getcreateupdatebankaccountsmodelrequest.md +9 -0
  122. package/docs/models/operations/getcreateupdatebankaccountsmodelresponse.md +12 -0
  123. package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +9 -0
  124. package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +12 -0
  125. package/docs/models/operations/listcreateoperationsrequest.md +12 -0
  126. package/docs/models/operations/listcreateoperationsresponse.md +12 -0
  127. package/docs/models/shared/accountingcreateaccountresponse.md +21 -0
  128. package/docs/models/shared/accountingcreatebankaccountresponse.md +21 -0
  129. package/docs/models/shared/accountingcreatebanktransactions.md +9 -0
  130. package/docs/models/shared/accountingcreatebanktransactionsresponse.md +21 -0
  131. package/docs/models/shared/accountingcreatedirectcostresponse.md +21 -0
  132. package/docs/models/shared/accountingcreatesupplierresponse.md +21 -0
  133. package/docs/models/shared/accountingcreatetransferresponse.md +21 -0
  134. package/docs/models/shared/createbankaccounttransaction.md +12 -0
  135. package/docs/models/shared/pushchangetype.md +12 -0
  136. package/docs/models/shared/pushfieldvalidation.md +10 -0
  137. package/docs/models/shared/pushoperation.md +20 -0
  138. package/docs/models/shared/pushoperationchange.md +10 -0
  139. package/docs/models/shared/pushoperationref.md +9 -0
  140. package/docs/models/shared/pushoperations.md +12 -0
  141. package/docs/models/shared/pushoperationstatus.md +13 -0
  142. package/docs/models/shared/pushoption.md +14 -0
  143. package/docs/models/shared/pushoptionchoice.md +12 -0
  144. package/docs/models/shared/pushoptionproperty.md +14 -0
  145. package/docs/models/shared/pushoptiontype.md +15 -0
  146. package/docs/models/shared/pushvalidationinfo.md +9 -0
  147. package/docs/models/shared/validation.md +11 -0
  148. package/docs/models/shared/validationitem.md +10 -0
  149. package/docs/sdks/loanwriteback/README.md +4 -0
  150. package/docs/sdks/loanwritebackaccounts/README.md +134 -0
  151. package/docs/sdks/loanwritebackbankaccounts/README.md +126 -0
  152. package/docs/sdks/loanwritebackbanktransactions/README.md +121 -0
  153. package/docs/sdks/loanwritebackcreateoperations/README.md +89 -0
  154. package/docs/sdks/loanwritebackdirectcosts/README.md +200 -0
  155. package/docs/sdks/loanwritebacksuppliers/README.md +142 -0
  156. package/docs/sdks/loanwritebacktransfers/README.md +156 -0
  157. package/docs/sdks/managedatapulloperations/README.md +1 -1
  158. package/docs/sdks/managedatarefresh/README.md +1 -1
  159. package/docs/sdks/salescustomers/README.md +2 -2
  160. package/docs/sdks/salesdisputes/README.md +2 -2
  161. package/docs/sdks/saleslocations/README.md +1 -1
  162. package/docs/sdks/salesmetrics/README.md +9 -9
  163. package/docs/sdks/salesorders/README.md +2 -2
  164. package/docs/sdks/salespaymentmethods/README.md +2 -2
  165. package/docs/sdks/salespayments/README.md +2 -2
  166. package/docs/sdks/salesproductcategories/README.md +2 -2
  167. package/docs/sdks/salesproducts/README.md +2 -2
  168. package/docs/sdks/salesreports/README.md +5 -5
  169. package/docs/sdks/salestransactions/README.md +2 -2
  170. package/docs/sdks/transactionsaccounttransactions/README.md +2 -2
  171. package/docs/sdks/transactionsdirectcosts/README.md +5 -5
  172. package/docs/sdks/transactionsjournalentries/README.md +2 -2
  173. package/docs/sdks/transactionsjournals/README.md +2 -2
  174. package/docs/sdks/transactionstransfers/README.md +2 -2
  175. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { AccountingTransfer } from "./accountingtransfer";
3
+ import { DataType } from "./datatype";
4
+ import { PushOperationChange } from "./pushoperationchange";
5
+ import { PushOperationStatus } from "./pushoperationstatus";
6
+ import { Validation } from "./validation";
7
+ export declare class AccountingCreateTransferResponse extends SpeakeasyBase {
8
+ /**
9
+ * Contains a single entry that communicates which record has changed and the manner in which it changed.
10
+ */
11
+ changes?: PushOperationChange[];
12
+ /**
13
+ * Unique identifier for your SMB in Codat.
14
+ */
15
+ companyId: string;
16
+ /**
17
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
18
+ *
19
+ * @remarks
20
+ *
21
+ * ```
22
+ * 2020-10-08T22:40:50Z
23
+ * 2021-01-01T00:00:00
24
+ * ```
25
+ *
26
+ *
27
+ *
28
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
29
+ *
30
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
31
+ * - Unqualified local time: `2021-11-15T01:00:00`
32
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
33
+ *
34
+ * > Time zones
35
+ * >
36
+ * > Not all dates from Codat will contain information about time zones.
37
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
38
+ */
39
+ completedOnUtc?: string;
40
+ /**
41
+ * > View the coverage for transfers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers" target="_blank">Data coverage explorer</a>.
42
+ *
43
+ * @remarks
44
+ *
45
+ * A transfer records the movement of money between two bank accounts, or between a bank account and a nominal account. It is a child data type of [account transactions](https://docs.codat.io/accounting-api#/schemas/AccountTransaction).
46
+ */
47
+ data?: AccountingTransfer;
48
+ /**
49
+ * Unique identifier for a company's data connection.
50
+ */
51
+ dataConnectionKey: string;
52
+ /**
53
+ * Available Data types
54
+ */
55
+ dataType?: DataType;
56
+ errorMessage?: string;
57
+ /**
58
+ * A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted.
59
+ */
60
+ pushOperationKey: string;
61
+ /**
62
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
63
+ *
64
+ * @remarks
65
+ *
66
+ * ```
67
+ * 2020-10-08T22:40:50Z
68
+ * 2021-01-01T00:00:00
69
+ * ```
70
+ *
71
+ *
72
+ *
73
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
74
+ *
75
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
76
+ * - Unqualified local time: `2021-11-15T01:00:00`
77
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
78
+ *
79
+ * > Time zones
80
+ * >
81
+ * > Not all dates from Codat will contain information about time zones.
82
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
83
+ */
84
+ requestedOnUtc: string;
85
+ /**
86
+ * The current status of the push operation.
87
+ */
88
+ status: PushOperationStatus;
89
+ statusCode: number;
90
+ timeoutInMinutes?: number;
91
+ /**
92
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
93
+ */
94
+ timeoutInSeconds?: number;
95
+ /**
96
+ * A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here.
97
+ */
98
+ validation?: Validation;
99
+ }
@@ -0,0 +1,118 @@
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ 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;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.AccountingCreateTransferResponse = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var accountingtransfer_1 = require("./accountingtransfer");
33
+ var datatype_1 = require("./datatype");
34
+ var pushoperationchange_1 = require("./pushoperationchange");
35
+ var pushoperationstatus_1 = require("./pushoperationstatus");
36
+ var validation_1 = require("./validation");
37
+ var class_transformer_1 = require("class-transformer");
38
+ var AccountingCreateTransferResponse = /** @class */ (function (_super) {
39
+ __extends(AccountingCreateTransferResponse, _super);
40
+ function AccountingCreateTransferResponse() {
41
+ return _super !== null && _super.apply(this, arguments) || this;
42
+ }
43
+ __decorate([
44
+ (0, utils_1.SpeakeasyMetadata)({ elemType: pushoperationchange_1.PushOperationChange }),
45
+ (0, class_transformer_1.Expose)({ name: "changes" }),
46
+ (0, class_transformer_1.Type)(function () { return pushoperationchange_1.PushOperationChange; }),
47
+ __metadata("design:type", Array)
48
+ ], AccountingCreateTransferResponse.prototype, "changes", void 0);
49
+ __decorate([
50
+ (0, utils_1.SpeakeasyMetadata)(),
51
+ (0, class_transformer_1.Expose)({ name: "companyId" }),
52
+ __metadata("design:type", String)
53
+ ], AccountingCreateTransferResponse.prototype, "companyId", void 0);
54
+ __decorate([
55
+ (0, utils_1.SpeakeasyMetadata)(),
56
+ (0, class_transformer_1.Expose)({ name: "completedOnUtc" }),
57
+ __metadata("design:type", String)
58
+ ], AccountingCreateTransferResponse.prototype, "completedOnUtc", void 0);
59
+ __decorate([
60
+ (0, utils_1.SpeakeasyMetadata)(),
61
+ (0, class_transformer_1.Expose)({ name: "data" }),
62
+ (0, class_transformer_1.Type)(function () { return accountingtransfer_1.AccountingTransfer; }),
63
+ __metadata("design:type", accountingtransfer_1.AccountingTransfer)
64
+ ], AccountingCreateTransferResponse.prototype, "data", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)(),
67
+ (0, class_transformer_1.Expose)({ name: "dataConnectionKey" }),
68
+ __metadata("design:type", String)
69
+ ], AccountingCreateTransferResponse.prototype, "dataConnectionKey", void 0);
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)(),
72
+ (0, class_transformer_1.Expose)({ name: "dataType" }),
73
+ __metadata("design:type", String)
74
+ ], AccountingCreateTransferResponse.prototype, "dataType", void 0);
75
+ __decorate([
76
+ (0, utils_1.SpeakeasyMetadata)(),
77
+ (0, class_transformer_1.Expose)({ name: "errorMessage" }),
78
+ __metadata("design:type", String)
79
+ ], AccountingCreateTransferResponse.prototype, "errorMessage", void 0);
80
+ __decorate([
81
+ (0, utils_1.SpeakeasyMetadata)(),
82
+ (0, class_transformer_1.Expose)({ name: "pushOperationKey" }),
83
+ __metadata("design:type", String)
84
+ ], AccountingCreateTransferResponse.prototype, "pushOperationKey", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ (0, class_transformer_1.Expose)({ name: "requestedOnUtc" }),
88
+ __metadata("design:type", String)
89
+ ], AccountingCreateTransferResponse.prototype, "requestedOnUtc", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ (0, class_transformer_1.Expose)({ name: "status" }),
93
+ __metadata("design:type", String)
94
+ ], AccountingCreateTransferResponse.prototype, "status", void 0);
95
+ __decorate([
96
+ (0, utils_1.SpeakeasyMetadata)(),
97
+ (0, class_transformer_1.Expose)({ name: "statusCode" }),
98
+ __metadata("design:type", Number)
99
+ ], AccountingCreateTransferResponse.prototype, "statusCode", void 0);
100
+ __decorate([
101
+ (0, utils_1.SpeakeasyMetadata)(),
102
+ (0, class_transformer_1.Expose)({ name: "timeoutInMinutes" }),
103
+ __metadata("design:type", Number)
104
+ ], AccountingCreateTransferResponse.prototype, "timeoutInMinutes", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)(),
107
+ (0, class_transformer_1.Expose)({ name: "timeoutInSeconds" }),
108
+ __metadata("design:type", Number)
109
+ ], AccountingCreateTransferResponse.prototype, "timeoutInSeconds", void 0);
110
+ __decorate([
111
+ (0, utils_1.SpeakeasyMetadata)(),
112
+ (0, class_transformer_1.Expose)({ name: "validation" }),
113
+ (0, class_transformer_1.Type)(function () { return validation_1.Validation; }),
114
+ __metadata("design:type", validation_1.Validation)
115
+ ], AccountingCreateTransferResponse.prototype, "validation", void 0);
116
+ return AccountingCreateTransferResponse;
117
+ }(utils_1.SpeakeasyBase));
118
+ exports.AccountingCreateTransferResponse = AccountingCreateTransferResponse;
@@ -0,0 +1,31 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class CreateBankAccountTransaction extends SpeakeasyBase {
3
+ amount?: number;
4
+ balance?: number;
5
+ /**
6
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
7
+ *
8
+ * @remarks
9
+ *
10
+ * ```
11
+ * 2020-10-08T22:40:50Z
12
+ * 2021-01-01T00:00:00
13
+ * ```
14
+ *
15
+ *
16
+ *
17
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
18
+ *
19
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
20
+ * - Unqualified local time: `2021-11-15T01:00:00`
21
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
22
+ *
23
+ * > Time zones
24
+ * >
25
+ * > Not all dates from Codat will contain information about time zones.
26
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
27
+ */
28
+ date?: string;
29
+ description?: string;
30
+ id?: string;
31
+ }
@@ -0,0 +1,65 @@
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ 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;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.CreateBankAccountTransaction = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var class_transformer_1 = require("class-transformer");
33
+ var CreateBankAccountTransaction = /** @class */ (function (_super) {
34
+ __extends(CreateBankAccountTransaction, _super);
35
+ function CreateBankAccountTransaction() {
36
+ return _super !== null && _super.apply(this, arguments) || this;
37
+ }
38
+ __decorate([
39
+ (0, utils_1.SpeakeasyMetadata)(),
40
+ (0, class_transformer_1.Expose)({ name: "amount" }),
41
+ __metadata("design:type", Number)
42
+ ], CreateBankAccountTransaction.prototype, "amount", void 0);
43
+ __decorate([
44
+ (0, utils_1.SpeakeasyMetadata)(),
45
+ (0, class_transformer_1.Expose)({ name: "balance" }),
46
+ __metadata("design:type", Number)
47
+ ], CreateBankAccountTransaction.prototype, "balance", void 0);
48
+ __decorate([
49
+ (0, utils_1.SpeakeasyMetadata)(),
50
+ (0, class_transformer_1.Expose)({ name: "date" }),
51
+ __metadata("design:type", String)
52
+ ], CreateBankAccountTransaction.prototype, "date", void 0);
53
+ __decorate([
54
+ (0, utils_1.SpeakeasyMetadata)(),
55
+ (0, class_transformer_1.Expose)({ name: "description" }),
56
+ __metadata("design:type", String)
57
+ ], CreateBankAccountTransaction.prototype, "description", void 0);
58
+ __decorate([
59
+ (0, utils_1.SpeakeasyMetadata)(),
60
+ (0, class_transformer_1.Expose)({ name: "id" }),
61
+ __metadata("design:type", String)
62
+ ], CreateBankAccountTransaction.prototype, "id", void 0);
63
+ return CreateBankAccountTransaction;
64
+ }(utils_1.SpeakeasyBase));
65
+ exports.CreateBankAccountTransaction = CreateBankAccountTransaction;
@@ -28,6 +28,13 @@ export * from "./accountingbillpayments";
28
28
  export * from "./accountingbills";
29
29
  export * from "./accountingcashflowstatement";
30
30
  export * from "./accountingcompanyinfo";
31
+ export * from "./accountingcreateaccountresponse";
32
+ export * from "./accountingcreatebankaccountresponse";
33
+ export * from "./accountingcreatebanktransactions";
34
+ export * from "./accountingcreatebanktransactionsresponse";
35
+ export * from "./accountingcreatedirectcostresponse";
36
+ export * from "./accountingcreatesupplierresponse";
37
+ export * from "./accountingcreatetransferresponse";
31
38
  export * from "./accountingcreditnote";
32
39
  export * from "./accountingcreditnotes";
33
40
  export * from "./accountingcustomer";
@@ -126,6 +133,7 @@ export * from "./connection";
126
133
  export * from "./connections";
127
134
  export * from "./contact";
128
135
  export * from "./contactref";
136
+ export * from "./createbankaccounttransaction";
129
137
  export * from "./creditnotelineitem";
130
138
  export * from "./creditnotestatus";
131
139
  export * from "./customerstatus";
@@ -211,6 +219,18 @@ export * from "./profitandlossreport";
211
219
  export * from "./projectref";
212
220
  export * from "./pulloperation";
213
221
  export * from "./pulloperations";
222
+ export * from "./pushchangetype";
223
+ export * from "./pushfieldvalidation";
224
+ export * from "./pushoperation";
225
+ export * from "./pushoperationchange";
226
+ export * from "./pushoperationref";
227
+ export * from "./pushoperations";
228
+ export * from "./pushoperationstatus";
229
+ export * from "./pushoption";
230
+ export * from "./pushoptionchoice";
231
+ export * from "./pushoptionproperty";
232
+ export * from "./pushoptiontype";
233
+ export * from "./pushvalidationinfo";
214
234
  export * from "./recordref";
215
235
  export * from "./reportbasis";
216
236
  export * from "./reportcomponentmeasure";
@@ -238,4 +258,6 @@ export * from "./transactionsourceref";
238
258
  export * from "./transactionsourcetype";
239
259
  export * from "./transactiontype";
240
260
  export * from "./transferaccount";
261
+ export * from "./validation";
262
+ export * from "./validationitem";
241
263
  export * from "./weblink";
@@ -47,6 +47,13 @@ __exportStar(require("./accountingbillpayments"), exports);
47
47
  __exportStar(require("./accountingbills"), exports);
48
48
  __exportStar(require("./accountingcashflowstatement"), exports);
49
49
  __exportStar(require("./accountingcompanyinfo"), exports);
50
+ __exportStar(require("./accountingcreateaccountresponse"), exports);
51
+ __exportStar(require("./accountingcreatebankaccountresponse"), exports);
52
+ __exportStar(require("./accountingcreatebanktransactions"), exports);
53
+ __exportStar(require("./accountingcreatebanktransactionsresponse"), exports);
54
+ __exportStar(require("./accountingcreatedirectcostresponse"), exports);
55
+ __exportStar(require("./accountingcreatesupplierresponse"), exports);
56
+ __exportStar(require("./accountingcreatetransferresponse"), exports);
50
57
  __exportStar(require("./accountingcreditnote"), exports);
51
58
  __exportStar(require("./accountingcreditnotes"), exports);
52
59
  __exportStar(require("./accountingcustomer"), exports);
@@ -145,6 +152,7 @@ __exportStar(require("./connection"), exports);
145
152
  __exportStar(require("./connections"), exports);
146
153
  __exportStar(require("./contact"), exports);
147
154
  __exportStar(require("./contactref"), exports);
155
+ __exportStar(require("./createbankaccounttransaction"), exports);
148
156
  __exportStar(require("./creditnotelineitem"), exports);
149
157
  __exportStar(require("./creditnotestatus"), exports);
150
158
  __exportStar(require("./customerstatus"), exports);
@@ -230,6 +238,18 @@ __exportStar(require("./profitandlossreport"), exports);
230
238
  __exportStar(require("./projectref"), exports);
231
239
  __exportStar(require("./pulloperation"), exports);
232
240
  __exportStar(require("./pulloperations"), exports);
241
+ __exportStar(require("./pushchangetype"), exports);
242
+ __exportStar(require("./pushfieldvalidation"), exports);
243
+ __exportStar(require("./pushoperation"), exports);
244
+ __exportStar(require("./pushoperationchange"), exports);
245
+ __exportStar(require("./pushoperationref"), exports);
246
+ __exportStar(require("./pushoperations"), exports);
247
+ __exportStar(require("./pushoperationstatus"), exports);
248
+ __exportStar(require("./pushoption"), exports);
249
+ __exportStar(require("./pushoptionchoice"), exports);
250
+ __exportStar(require("./pushoptionproperty"), exports);
251
+ __exportStar(require("./pushoptiontype"), exports);
252
+ __exportStar(require("./pushvalidationinfo"), exports);
233
253
  __exportStar(require("./recordref"), exports);
234
254
  __exportStar(require("./reportbasis"), exports);
235
255
  __exportStar(require("./reportcomponentmeasure"), exports);
@@ -257,4 +277,6 @@ __exportStar(require("./transactionsourceref"), exports);
257
277
  __exportStar(require("./transactionsourcetype"), exports);
258
278
  __exportStar(require("./transactiontype"), exports);
259
279
  __exportStar(require("./transferaccount"), exports);
280
+ __exportStar(require("./validation"), exports);
281
+ __exportStar(require("./validationitem"), exports);
260
282
  __exportStar(require("./weblink"), exports);
@@ -0,0 +1,7 @@
1
+ export declare enum PushChangeType {
2
+ Unknown = "Unknown",
3
+ Created = "Created",
4
+ Modified = "Modified",
5
+ Deleted = "Deleted",
6
+ AttachmentUploaded = "AttachmentUploaded"
7
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PushChangeType = void 0;
7
+ var PushChangeType;
8
+ (function (PushChangeType) {
9
+ PushChangeType["Unknown"] = "Unknown";
10
+ PushChangeType["Created"] = "Created";
11
+ PushChangeType["Modified"] = "Modified";
12
+ PushChangeType["Deleted"] = "Deleted";
13
+ PushChangeType["AttachmentUploaded"] = "AttachmentUploaded";
14
+ })(PushChangeType = exports.PushChangeType || (exports.PushChangeType = {}));
@@ -0,0 +1,6 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class PushFieldValidation extends SpeakeasyBase {
3
+ details: string;
4
+ field?: string;
5
+ ref?: string;
6
+ }
@@ -0,0 +1,55 @@
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ 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;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.PushFieldValidation = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var class_transformer_1 = require("class-transformer");
33
+ var PushFieldValidation = /** @class */ (function (_super) {
34
+ __extends(PushFieldValidation, _super);
35
+ function PushFieldValidation() {
36
+ return _super !== null && _super.apply(this, arguments) || this;
37
+ }
38
+ __decorate([
39
+ (0, utils_1.SpeakeasyMetadata)(),
40
+ (0, class_transformer_1.Expose)({ name: "details" }),
41
+ __metadata("design:type", String)
42
+ ], PushFieldValidation.prototype, "details", void 0);
43
+ __decorate([
44
+ (0, utils_1.SpeakeasyMetadata)(),
45
+ (0, class_transformer_1.Expose)({ name: "field" }),
46
+ __metadata("design:type", String)
47
+ ], PushFieldValidation.prototype, "field", void 0);
48
+ __decorate([
49
+ (0, utils_1.SpeakeasyMetadata)(),
50
+ (0, class_transformer_1.Expose)({ name: "ref" }),
51
+ __metadata("design:type", String)
52
+ ], PushFieldValidation.prototype, "ref", void 0);
53
+ return PushFieldValidation;
54
+ }(utils_1.SpeakeasyBase));
55
+ exports.PushFieldValidation = PushFieldValidation;
@@ -0,0 +1,90 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { DataType } from "./datatype";
3
+ import { PushOperationChange } from "./pushoperationchange";
4
+ import { PushOperationStatus } from "./pushoperationstatus";
5
+ import { Validation } from "./validation";
6
+ export declare class PushOperation extends SpeakeasyBase {
7
+ /**
8
+ * Contains a single entry that communicates which record has changed and the manner in which it changed.
9
+ */
10
+ changes?: PushOperationChange[];
11
+ /**
12
+ * Unique identifier for your SMB in Codat.
13
+ */
14
+ companyId: string;
15
+ /**
16
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
17
+ *
18
+ * @remarks
19
+ *
20
+ * ```
21
+ * 2020-10-08T22:40:50Z
22
+ * 2021-01-01T00:00:00
23
+ * ```
24
+ *
25
+ *
26
+ *
27
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
28
+ *
29
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
30
+ * - Unqualified local time: `2021-11-15T01:00:00`
31
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
32
+ *
33
+ * > Time zones
34
+ * >
35
+ * > Not all dates from Codat will contain information about time zones.
36
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
37
+ */
38
+ completedOnUtc?: string;
39
+ /**
40
+ * Unique identifier for a company's data connection.
41
+ */
42
+ dataConnectionKey: string;
43
+ /**
44
+ * Available Data types
45
+ */
46
+ dataType?: DataType;
47
+ errorMessage?: string;
48
+ /**
49
+ * A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted.
50
+ */
51
+ pushOperationKey: string;
52
+ /**
53
+ * In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
54
+ *
55
+ * @remarks
56
+ *
57
+ * ```
58
+ * 2020-10-08T22:40:50Z
59
+ * 2021-01-01T00:00:00
60
+ * ```
61
+ *
62
+ *
63
+ *
64
+ * When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
65
+ *
66
+ * - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
67
+ * - Unqualified local time: `2021-11-15T01:00:00`
68
+ * - UTC time offsets: `2021-11-15T01:00:00-05:00`
69
+ *
70
+ * > Time zones
71
+ * >
72
+ * > Not all dates from Codat will contain information about time zones.
73
+ * > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
74
+ */
75
+ requestedOnUtc: string;
76
+ /**
77
+ * The current status of the push operation.
78
+ */
79
+ status: PushOperationStatus;
80
+ statusCode: number;
81
+ timeoutInMinutes?: number;
82
+ /**
83
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
84
+ */
85
+ timeoutInSeconds?: number;
86
+ /**
87
+ * A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here.
88
+ */
89
+ validation?: Validation;
90
+ }