@tryfinch/finch-api 5.14.2 → 5.15.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 (154) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +1 -1
  3. package/README.md +6 -3
  4. package/_shims/index.d.ts +1 -1
  5. package/_shims/registry.d.ts +1 -1
  6. package/_shims/registry.d.ts.map +1 -1
  7. package/core.d.ts +12 -12
  8. package/core.d.ts.map +1 -1
  9. package/core.js +39 -13
  10. package/core.js.map +1 -1
  11. package/core.mjs +39 -13
  12. package/core.mjs.map +1 -1
  13. package/index.d.mts +15 -0
  14. package/index.d.ts +15 -0
  15. package/index.d.ts.map +1 -1
  16. package/index.js +15 -2
  17. package/index.js.map +1 -1
  18. package/index.mjs +15 -2
  19. package/index.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/resources/access-tokens.d.ts +23 -0
  22. package/resources/access-tokens.d.ts.map +1 -0
  23. package/resources/access-tokens.js +17 -0
  24. package/resources/access-tokens.js.map +1 -0
  25. package/resources/access-tokens.mjs +13 -0
  26. package/resources/access-tokens.mjs.map +1 -0
  27. package/resources/account.d.ts +14 -0
  28. package/resources/account.d.ts.map +1 -1
  29. package/resources/account.js.map +1 -1
  30. package/resources/account.mjs.map +1 -1
  31. package/resources/auth.d.ts +20 -0
  32. package/resources/auth.d.ts.map +1 -0
  33. package/resources/auth.js +17 -0
  34. package/resources/auth.js.map +1 -0
  35. package/resources/auth.mjs +13 -0
  36. package/resources/auth.mjs.map +1 -0
  37. package/resources/index.d.ts +3 -0
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +7 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +3 -0
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/sandbox/company.d.ts +195 -0
  44. package/resources/sandbox/company.d.ts.map +1 -0
  45. package/resources/sandbox/company.js +17 -0
  46. package/resources/sandbox/company.js.map +1 -0
  47. package/resources/sandbox/company.mjs +13 -0
  48. package/resources/sandbox/company.mjs.map +1 -0
  49. package/resources/sandbox/connections/accounts.d.ts +51 -0
  50. package/resources/sandbox/connections/accounts.d.ts.map +1 -0
  51. package/resources/sandbox/connections/accounts.js +24 -0
  52. package/resources/sandbox/connections/accounts.js.map +1 -0
  53. package/resources/sandbox/connections/accounts.mjs +20 -0
  54. package/resources/sandbox/connections/accounts.mjs.map +1 -0
  55. package/resources/sandbox/connections/connections.d.ts +39 -0
  56. package/resources/sandbox/connections/connections.d.ts.map +1 -0
  57. package/resources/sandbox/connections/connections.js +46 -0
  58. package/resources/sandbox/connections/connections.js.map +1 -0
  59. package/resources/sandbox/connections/connections.mjs +19 -0
  60. package/resources/sandbox/connections/connections.mjs.map +1 -0
  61. package/resources/sandbox/connections/index.d.ts +3 -0
  62. package/resources/sandbox/connections/index.d.ts.map +1 -0
  63. package/resources/sandbox/connections/index.js +9 -0
  64. package/resources/sandbox/connections/index.js.map +1 -0
  65. package/resources/sandbox/connections/index.mjs +4 -0
  66. package/resources/sandbox/connections/index.mjs.map +1 -0
  67. package/resources/sandbox/directory.d.ts +156 -0
  68. package/resources/sandbox/directory.d.ts.map +1 -0
  69. package/resources/sandbox/directory.js +17 -0
  70. package/resources/sandbox/directory.js.map +1 -0
  71. package/resources/sandbox/directory.mjs +13 -0
  72. package/resources/sandbox/directory.mjs.map +1 -0
  73. package/resources/sandbox/employment.d.ts +216 -0
  74. package/resources/sandbox/employment.d.ts.map +1 -0
  75. package/resources/sandbox/employment.js +18 -0
  76. package/resources/sandbox/employment.js.map +1 -0
  77. package/resources/sandbox/employment.mjs +14 -0
  78. package/resources/sandbox/employment.mjs.map +1 -0
  79. package/resources/sandbox/index.d.ts +9 -0
  80. package/resources/sandbox/index.d.ts.map +1 -0
  81. package/resources/sandbox/index.js +21 -0
  82. package/resources/sandbox/index.js.map +1 -0
  83. package/resources/sandbox/index.mjs +10 -0
  84. package/resources/sandbox/index.mjs.map +1 -0
  85. package/resources/sandbox/individual.d.ts +124 -0
  86. package/resources/sandbox/individual.d.ts.map +1 -0
  87. package/resources/sandbox/individual.js +18 -0
  88. package/resources/sandbox/individual.js.map +1 -0
  89. package/resources/sandbox/individual.mjs +14 -0
  90. package/resources/sandbox/individual.mjs.map +1 -0
  91. package/resources/sandbox/jobs/configuration.d.ts +28 -0
  92. package/resources/sandbox/jobs/configuration.d.ts.map +1 -0
  93. package/resources/sandbox/jobs/configuration.js +23 -0
  94. package/resources/sandbox/jobs/configuration.js.map +1 -0
  95. package/resources/sandbox/jobs/configuration.mjs +19 -0
  96. package/resources/sandbox/jobs/configuration.mjs.map +1 -0
  97. package/resources/sandbox/jobs/index.d.ts +3 -0
  98. package/resources/sandbox/jobs/index.d.ts.map +1 -0
  99. package/resources/sandbox/jobs/index.js +9 -0
  100. package/resources/sandbox/jobs/index.js.map +1 -0
  101. package/resources/sandbox/jobs/index.mjs +4 -0
  102. package/resources/sandbox/jobs/index.mjs.map +1 -0
  103. package/resources/sandbox/jobs/jobs.d.ts +12 -0
  104. package/resources/sandbox/jobs/jobs.d.ts.map +1 -0
  105. package/resources/sandbox/jobs/jobs.js +40 -0
  106. package/resources/sandbox/jobs/jobs.js.map +1 -0
  107. package/resources/sandbox/jobs/jobs.mjs +13 -0
  108. package/resources/sandbox/jobs/jobs.mjs.map +1 -0
  109. package/resources/sandbox/payment.d.ts +154 -0
  110. package/resources/sandbox/payment.d.ts.map +1 -0
  111. package/resources/sandbox/payment.js +18 -0
  112. package/resources/sandbox/payment.js.map +1 -0
  113. package/resources/sandbox/payment.mjs +14 -0
  114. package/resources/sandbox/payment.mjs.map +1 -0
  115. package/resources/sandbox/sandbox.d.ts +39 -0
  116. package/resources/sandbox/sandbox.d.ts.map +1 -0
  117. package/resources/sandbox/sandbox.js +58 -0
  118. package/resources/sandbox/sandbox.js.map +1 -0
  119. package/resources/sandbox/sandbox.mjs +31 -0
  120. package/resources/sandbox/sandbox.mjs.map +1 -0
  121. package/resources/shared.d.ts +1 -0
  122. package/resources/shared.d.ts.map +1 -1
  123. package/src/_shims/index.d.ts +1 -1
  124. package/src/_shims/node-runtime.ts +1 -1
  125. package/src/_shims/registry.ts +1 -1
  126. package/src/_shims/web-runtime.ts +1 -1
  127. package/src/core.ts +65 -30
  128. package/src/index.ts +23 -2
  129. package/src/lib/.keep +4 -0
  130. package/src/resources/access-tokens.ts +36 -0
  131. package/src/resources/account.ts +19 -0
  132. package/src/resources/auth.ts +32 -0
  133. package/src/resources/index.ts +3 -0
  134. package/src/resources/sandbox/company.ts +252 -0
  135. package/src/resources/sandbox/connections/accounts.ts +83 -0
  136. package/src/resources/sandbox/connections/connections.ts +58 -0
  137. package/src/resources/sandbox/connections/index.ts +10 -0
  138. package/src/resources/sandbox/directory.ts +210 -0
  139. package/src/resources/sandbox/employment.ts +279 -0
  140. package/src/resources/sandbox/index.ts +10 -0
  141. package/src/resources/sandbox/individual.ts +193 -0
  142. package/src/resources/sandbox/jobs/configuration.ts +44 -0
  143. package/src/resources/sandbox/jobs/index.ts +9 -0
  144. package/src/resources/sandbox/jobs/jobs.ts +15 -0
  145. package/src/resources/sandbox/payment.ts +215 -0
  146. package/src/resources/sandbox/sandbox.ts +42 -0
  147. package/src/resources/shared.ts +8 -0
  148. package/src/uploads.ts +2 -2
  149. package/src/version.ts +1 -1
  150. package/uploads.d.ts +2 -2
  151. package/uploads.d.ts.map +1 -1
  152. package/version.d.ts +1 -1
  153. package/version.js +1 -1
  154. package/version.mjs +1 -1
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Individual = void 0;
5
+ const resource_1 = require("@tryfinch/finch-api/resource");
6
+ const core_1 = require("@tryfinch/finch-api/core");
7
+ class Individual extends resource_1.APIResource {
8
+ update(individualId, body = {}, options) {
9
+ if ((0, core_1.isRequestOptions)(body)) {
10
+ return this.update(individualId, {}, body);
11
+ }
12
+ return this._client.put(`/sandbox/individual/${individualId}`, { body, ...options });
13
+ }
14
+ }
15
+ exports.Individual = Individual;
16
+ (function (Individual) {
17
+ })(Individual = exports.Individual || (exports.Individual = {}));
18
+ //# sourceMappingURL=individual.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual.js","sourceRoot":"","sources":["../../src/resources/sandbox/individual.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAI5D,MAAa,UAAW,SAAQ,sBAAW;IAUzC,MAAM,CACJ,YAAoB,EACpB,OAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AApBD,gCAoBC;AAiKD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAG1B"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ import { isRequestOptions } from '@tryfinch/finch-api/core';
4
+ export class Individual extends APIResource {
5
+ update(individualId, body = {}, options) {
6
+ if (isRequestOptions(body)) {
7
+ return this.update(individualId, {}, body);
8
+ }
9
+ return this._client.put(`/sandbox/individual/${individualId}`, { body, ...options });
10
+ }
11
+ }
12
+ (function (Individual) {
13
+ })(Individual || (Individual = {}));
14
+ //# sourceMappingURL=individual.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/individual.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;AAI3D,MAAM,OAAO,UAAW,SAAQ,WAAW;IAUzC,MAAM,CACJ,YAAoB,EACpB,OAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAiKD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,KAAV,UAAU,QAG1B"}
@@ -0,0 +1,28 @@
1
+ import * as Core from '@tryfinch/finch-api/core';
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ import * as ConfigurationAPI from '@tryfinch/finch-api/resources/sandbox/jobs/configuration';
4
+ export declare class Configuration extends APIResource {
5
+ /**
6
+ * Get configurations for sandbox jobs
7
+ */
8
+ retrieve(options?: Core.RequestOptions): Core.APIPromise<ConfigurationRetrieveResponse>;
9
+ /**
10
+ * Update configurations for sandbox jobs
11
+ */
12
+ update(body: ConfigurationUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SandboxJobConfiguration>;
13
+ }
14
+ export interface SandboxJobConfiguration {
15
+ completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
16
+ type: 'data_sync_all';
17
+ }
18
+ export type ConfigurationRetrieveResponse = Array<SandboxJobConfiguration>;
19
+ export interface ConfigurationUpdateParams {
20
+ completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
21
+ type: 'data_sync_all';
22
+ }
23
+ export declare namespace Configuration {
24
+ export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
25
+ export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
26
+ export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
27
+ }
28
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0DAA0D,CAAC;AAE7F,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAIvF;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG5C;AAED,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,GAAG,OAAO,CAAC;IAE/E,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,MAAM,6BAA6B,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,GAAG,OAAO,CAAC;IAE/E,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,yBAAiB,aAAa,CAAC;IAC7B,MAAM,QAAQ,uBAAuB,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;IACjF,MAAM,QAAQ,6BAA6B,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;IAC7F,MAAM,QAAQ,yBAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;CACtF"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Configuration = void 0;
5
+ const resource_1 = require("@tryfinch/finch-api/resource");
6
+ class Configuration extends resource_1.APIResource {
7
+ /**
8
+ * Get configurations for sandbox jobs
9
+ */
10
+ retrieve(options) {
11
+ return this._client.get('/sandbox/jobs/configuration', options);
12
+ }
13
+ /**
14
+ * Update configurations for sandbox jobs
15
+ */
16
+ update(body, options) {
17
+ return this._client.put('/sandbox/jobs/configuration', { body, ...options });
18
+ }
19
+ }
20
+ exports.Configuration = Configuration;
21
+ (function (Configuration) {
22
+ })(Configuration = exports.Configuration || (exports.Configuration = {}));
23
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAG3D,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAjBD,sCAiBC;AAgBD,WAAiB,aAAa;AAI9B,CAAC,EAJgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAI7B"}
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ export class Configuration extends APIResource {
4
+ /**
5
+ * Get configurations for sandbox jobs
6
+ */
7
+ retrieve(options) {
8
+ return this._client.get('/sandbox/jobs/configuration', options);
9
+ }
10
+ /**
11
+ * Update configurations for sandbox jobs
12
+ */
13
+ update(body, options) {
14
+ return this._client.put('/sandbox/jobs/configuration', { body, ...options });
15
+ }
16
+ }
17
+ (function (Configuration) {
18
+ })(Configuration || (Configuration = {}));
19
+ //# sourceMappingURL=configuration.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;AAG1D,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAgBD,WAAiB,aAAa;AAI9B,CAAC,EAJgB,aAAa,KAAb,aAAa,QAI7B"}
@@ -0,0 +1,3 @@
1
+ export { Jobs } from "./jobs.js";
2
+ export { SandboxJobConfiguration, ConfigurationRetrieveResponse, ConfigurationUpdateParams, Configuration, } from "./configuration.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,aAAa,GACd,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Configuration = exports.Jobs = void 0;
5
+ var jobs_1 = require("./jobs.js");
6
+ Object.defineProperty(exports, "Jobs", { enumerable: true, get: function () { return jobs_1.Jobs; } });
7
+ var configuration_1 = require("./configuration.js");
8
+ Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.Configuration; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,oDAKyB;AADvB,8GAAA,aAAa,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ export { Jobs } from "./jobs.mjs";
3
+ export { Configuration, } from "./configuration.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,IAAI,EAAE;OACR,EAIL,aAAa,GACd"}
@@ -0,0 +1,12 @@
1
+ import { APIResource } from '@tryfinch/finch-api/resource';
2
+ import * as ConfigurationAPI from '@tryfinch/finch-api/resources/sandbox/jobs/configuration';
3
+ export declare class Jobs extends APIResource {
4
+ configuration: ConfigurationAPI.Configuration;
5
+ }
6
+ export declare namespace Jobs {
7
+ export import Configuration = ConfigurationAPI.Configuration;
8
+ export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
9
+ export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
10
+ export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
11
+ }
12
+ //# sourceMappingURL=jobs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0DAA0D,CAAC;AAE7F,qBAAa,IAAK,SAAQ,WAAW;IACnC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAED,yBAAiB,IAAI,CAAC;IACpB,MAAM,QAAQ,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAC7D,MAAM,QAAQ,uBAAuB,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;IACjF,MAAM,QAAQ,6BAA6B,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;IAC7F,MAAM,QAAQ,yBAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;CACtF"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Jobs = void 0;
28
+ const resource_1 = require("@tryfinch/finch-api/resource");
29
+ const ConfigurationAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/jobs/configuration"));
30
+ class Jobs extends resource_1.APIResource {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.configuration = new ConfigurationAPI.Configuration(this._client);
34
+ }
35
+ }
36
+ exports.Jobs = Jobs;
37
+ (function (Jobs) {
38
+ Jobs.Configuration = ConfigurationAPI.Configuration;
39
+ })(Jobs = exports.Jobs || (exports.Jobs = {}));
40
+ //# sourceMappingURL=jobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,2DAA2D;AAC3D,2GAA6F;AAE7F,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAFD,oBAEC;AAED,WAAiB,IAAI;IACL,kBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAI/D,CAAC,EALgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAKpB"}
@@ -0,0 +1,13 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ import * as ConfigurationAPI from '@tryfinch/finch-api/resources/sandbox/jobs/configuration';
4
+ export class Jobs extends APIResource {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.configuration = new ConfigurationAPI.Configuration(this._client);
8
+ }
9
+ }
10
+ (function (Jobs) {
11
+ Jobs.Configuration = ConfigurationAPI.Configuration;
12
+ })(Jobs || (Jobs = {}));
13
+ //# sourceMappingURL=jobs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,KAAK,gBAAgB,MAAM,0DAA0D;AAE5F,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,WAAiB,IAAI;IACL,kBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAI/D,CAAC,EALgB,IAAI,KAAJ,IAAI,QAKpB"}
@@ -0,0 +1,154 @@
1
+ import * as Core from '@tryfinch/finch-api/core';
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ import * as PaymentAPI from '@tryfinch/finch-api/resources/sandbox/payment';
4
+ import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
5
+ import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
6
+ export declare class Payment extends APIResource {
7
+ /**
8
+ * Add a new sandbox payment
9
+ */
10
+ create(body?: PaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
11
+ create(options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
12
+ }
13
+ export interface PaymentCreateResponse {
14
+ /**
15
+ * The date of the payment.
16
+ */
17
+ pay_date: string;
18
+ /**
19
+ * The ID of the payment.
20
+ */
21
+ payment_id: string;
22
+ }
23
+ export interface PaymentCreateParams {
24
+ end_date?: string;
25
+ pay_statements?: Array<PaymentCreateParams.PayStatement>;
26
+ start_date?: string;
27
+ }
28
+ export declare namespace PaymentCreateParams {
29
+ interface PayStatement {
30
+ /**
31
+ * The array of earnings objects associated with this pay statement
32
+ */
33
+ earnings?: Array<PayStatement.Earning | null> | null;
34
+ /**
35
+ * The array of deductions objects associated with this pay statement.
36
+ */
37
+ employee_deductions?: Array<PayStatement.EmployeeDeduction | null> | null;
38
+ employer_contributions?: Array<PayStatement.EmployerContribution | null> | null;
39
+ gross_pay?: HRISAPI.Money | null;
40
+ /**
41
+ * A stable Finch `id` (UUID v4) for an individual in the company
42
+ */
43
+ individual_id?: string;
44
+ net_pay?: HRISAPI.Money | null;
45
+ /**
46
+ * The payment method.
47
+ */
48
+ payment_method?: 'check' | 'direct_deposit' | null;
49
+ /**
50
+ * The array of taxes objects associated with this pay statement.
51
+ */
52
+ taxes?: Array<PayStatement.Tax | null> | null;
53
+ /**
54
+ * The number of hours worked for this pay period
55
+ */
56
+ total_hours?: number | null;
57
+ /**
58
+ * The type of the payment associated with the pay statement.
59
+ */
60
+ type?: 'regular_payroll' | 'off_cycle_payroll' | 'one_time_payment' | null;
61
+ }
62
+ namespace PayStatement {
63
+ interface Earning {
64
+ /**
65
+ * The earnings amount in cents.
66
+ */
67
+ amount?: number | null;
68
+ /**
69
+ * The earnings currency code.
70
+ */
71
+ currency?: string | null;
72
+ /**
73
+ * The number of hours associated with this earning. (For salaried employees, this
74
+ * could be hours per pay period, `0` or `null`, depending on the provider).
75
+ */
76
+ hours?: number | null;
77
+ /**
78
+ * The exact name of the deduction from the pay statement.
79
+ */
80
+ name?: string | null;
81
+ /**
82
+ * The type of earning.
83
+ */
84
+ type?: 'salary' | 'wage' | 'reimbursement' | 'overtime' | 'severance' | 'double_overtime' | 'pto' | 'sick' | 'bonus' | 'commission' | 'tips' | '1099' | 'other' | null;
85
+ }
86
+ interface EmployeeDeduction {
87
+ /**
88
+ * The deduction amount in cents.
89
+ */
90
+ amount?: number | null;
91
+ /**
92
+ * The deduction currency.
93
+ */
94
+ currency?: string | null;
95
+ /**
96
+ * The deduction name from the pay statement.
97
+ */
98
+ name?: string | null;
99
+ /**
100
+ * Boolean indicating if the deduction is pre-tax.
101
+ */
102
+ pre_tax?: boolean | null;
103
+ /**
104
+ * Type of benefit.
105
+ */
106
+ type?: BenefitsAPI.BenefitType | null;
107
+ }
108
+ interface EmployerContribution {
109
+ /**
110
+ * The contribution amount in cents.
111
+ */
112
+ amount?: number | null;
113
+ /**
114
+ * The contribution currency.
115
+ */
116
+ currency?: string | null;
117
+ /**
118
+ * The contribution name from the pay statement.
119
+ */
120
+ name?: string | null;
121
+ /**
122
+ * Type of benefit.
123
+ */
124
+ type?: BenefitsAPI.BenefitType | null;
125
+ }
126
+ interface Tax {
127
+ /**
128
+ * The tax amount in cents.
129
+ */
130
+ amount?: number | null;
131
+ /**
132
+ * The currency code.
133
+ */
134
+ currency?: string | null;
135
+ /**
136
+ * `true` if the amount is paid by the employers.
137
+ */
138
+ employer?: boolean | null;
139
+ /**
140
+ * The exact name of tax from the pay statement.
141
+ */
142
+ name?: string | null;
143
+ /**
144
+ * The type of taxes.
145
+ */
146
+ type?: 'state' | 'federal' | 'local' | 'fica' | null;
147
+ }
148
+ }
149
+ }
150
+ export declare namespace Payment {
151
+ export import PaymentCreateResponse = PaymentAPI.PaymentCreateResponse;
152
+ export import PaymentCreateParams = PaymentAPI.PaymentCreateParams;
153
+ }
154
+ //# sourceMappingURL=payment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,UAAU,MAAM,+CAA+C,CAAC;AAC5E,OAAO,KAAK,OAAO,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,WAAW,MAAM,sDAAsD,CAAC;AAEpF,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IACzG,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAU9E;AAED,MAAM,WAAW,qBAAqB;IACpC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YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;SACtD;KACF;CACF;AAED,yBAAiB,OAAO,CAAC;IACvB,MAAM,QAAQ,qBAAqB,GAAG,UAAU,CAAC,qBAAqB,CAAC;IACvE,MAAM,QAAQ,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;CACpE"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Payment = void 0;
5
+ const resource_1 = require("@tryfinch/finch-api/resource");
6
+ const core_1 = require("@tryfinch/finch-api/core");
7
+ class Payment extends resource_1.APIResource {
8
+ create(body = {}, options) {
9
+ if ((0, core_1.isRequestOptions)(body)) {
10
+ return this.create({}, body);
11
+ }
12
+ return this._client.post('/sandbox/payment', { body, ...options });
13
+ }
14
+ }
15
+ exports.Payment = Payment;
16
+ (function (Payment) {
17
+ })(Payment = exports.Payment || (exports.Payment = {}));
18
+ //# sourceMappingURL=payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAK5D,MAAa,OAAQ,SAAQ,sBAAW;IAMtC,MAAM,CACJ,OAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAfD,0BAeC;AA2LD,WAAiB,OAAO;AAGxB,CAAC,EAHgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAGvB"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ import { isRequestOptions } from '@tryfinch/finch-api/core';
4
+ export class Payment extends APIResource {
5
+ create(body = {}, options) {
6
+ if (isRequestOptions(body)) {
7
+ return this.create({}, body);
8
+ }
9
+ return this._client.post('/sandbox/payment', { body, ...options });
10
+ }
11
+ }
12
+ (function (Payment) {
13
+ })(Payment || (Payment = {}));
14
+ //# sourceMappingURL=payment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;AAK3D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAMtC,MAAM,CACJ,OAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AA2LD,WAAiB,OAAO;AAGxB,CAAC,EAHgB,OAAO,KAAP,OAAO,QAGvB"}
@@ -0,0 +1,39 @@
1
+ import { APIResource } from '@tryfinch/finch-api/resource';
2
+ import * as CompanyAPI from '@tryfinch/finch-api/resources/sandbox/company';
3
+ import * as DirectoryAPI from '@tryfinch/finch-api/resources/sandbox/directory';
4
+ import * as EmploymentAPI from '@tryfinch/finch-api/resources/sandbox/employment';
5
+ import * as IndividualAPI from '@tryfinch/finch-api/resources/sandbox/individual';
6
+ import * as PaymentAPI from '@tryfinch/finch-api/resources/sandbox/payment';
7
+ import * as ConnectionsAPI from '@tryfinch/finch-api/resources/sandbox/connections/connections';
8
+ import * as JobsAPI from '@tryfinch/finch-api/resources/sandbox/jobs/jobs';
9
+ export declare class Sandbox extends APIResource {
10
+ connections: ConnectionsAPI.Connections;
11
+ company: CompanyAPI.Company;
12
+ directory: DirectoryAPI.Directory;
13
+ individual: IndividualAPI.Individual;
14
+ employment: EmploymentAPI.Employment;
15
+ payment: PaymentAPI.Payment;
16
+ jobs: JobsAPI.Jobs;
17
+ }
18
+ export declare namespace Sandbox {
19
+ export import Connections = ConnectionsAPI.Connections;
20
+ export import ConnectionCreateResponse = ConnectionsAPI.ConnectionCreateResponse;
21
+ export import ConnectionCreateParams = ConnectionsAPI.ConnectionCreateParams;
22
+ export import Company = CompanyAPI.Company;
23
+ export import CompanyUpdateResponse = CompanyAPI.CompanyUpdateResponse;
24
+ export import CompanyUpdateParams = CompanyAPI.CompanyUpdateParams;
25
+ export import Directory = DirectoryAPI.Directory;
26
+ export import DirectoryCreateResponse = DirectoryAPI.DirectoryCreateResponse;
27
+ export import DirectoryCreateParams = DirectoryAPI.DirectoryCreateParams;
28
+ export import Individual = IndividualAPI.Individual;
29
+ export import IndividualUpdateResponse = IndividualAPI.IndividualUpdateResponse;
30
+ export import IndividualUpdateParams = IndividualAPI.IndividualUpdateParams;
31
+ export import Employment = EmploymentAPI.Employment;
32
+ export import EmploymentUpdateResponse = EmploymentAPI.EmploymentUpdateResponse;
33
+ export import EmploymentUpdateParams = EmploymentAPI.EmploymentUpdateParams;
34
+ export import Payment = PaymentAPI.Payment;
35
+ export import PaymentCreateResponse = PaymentAPI.PaymentCreateResponse;
36
+ export import PaymentCreateParams = PaymentAPI.PaymentCreateParams;
37
+ export import Jobs = JobsAPI.Jobs;
38
+ }
39
+ //# sourceMappingURL=sandbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox.d.ts","sourceRoot":"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AC,uBAAuB,CAAC;IAC7E,MAAM,QAAQ,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;IACzE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IACpD,MAAM,QAAQ,wBAAwB,GAAG,aAAa,CAAC,wBAAwB,CAAC;IAChF,MAAM,QAAQ,sBAAsB,GAAG,aAAa,CAAC,sBAAsB,CAAC;IAC5E,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IACpD,MAAM,QAAQ,wBAAwB,GAAG,aAAa,CAAC,wBAAwB,CAAC;IAChF,MAAM,QAAQ,sBAAsB,GAAG,aAAa,CAAC,sBAAsB,CAAC;IAC5E,MAAM,QAAQ,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAC3C,MAAM,QAAQ,qBAAqB,GAAG,UAAU,CAAC,qBAAqB,CAAC;IACvE,MAAM,QAAQ,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;IACnE,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CACnC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Sandbox = void 0;
28
+ const resource_1 = require("@tryfinch/finch-api/resource");
29
+ const CompanyAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/company"));
30
+ const DirectoryAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/directory"));
31
+ const EmploymentAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/employment"));
32
+ const IndividualAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/individual"));
33
+ const PaymentAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/payment"));
34
+ const ConnectionsAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/connections/connections"));
35
+ const JobsAPI = __importStar(require("@tryfinch/finch-api/resources/sandbox/jobs/jobs"));
36
+ class Sandbox extends resource_1.APIResource {
37
+ constructor() {
38
+ super(...arguments);
39
+ this.connections = new ConnectionsAPI.Connections(this._client);
40
+ this.company = new CompanyAPI.Company(this._client);
41
+ this.directory = new DirectoryAPI.Directory(this._client);
42
+ this.individual = new IndividualAPI.Individual(this._client);
43
+ this.employment = new EmploymentAPI.Employment(this._client);
44
+ this.payment = new PaymentAPI.Payment(this._client);
45
+ this.jobs = new JobsAPI.Jobs(this._client);
46
+ }
47
+ }
48
+ exports.Sandbox = Sandbox;
49
+ (function (Sandbox) {
50
+ Sandbox.Connections = ConnectionsAPI.Connections;
51
+ Sandbox.Company = CompanyAPI.Company;
52
+ Sandbox.Directory = DirectoryAPI.Directory;
53
+ Sandbox.Individual = IndividualAPI.Individual;
54
+ Sandbox.Employment = EmploymentAPI.Employment;
55
+ Sandbox.Payment = PaymentAPI.Payment;
56
+ Sandbox.Jobs = JobsAPI.Jobs;
57
+ })(Sandbox = exports.Sandbox || (exports.Sandbox = {}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,IAAI,CAAC;AACpC,CAAC,EApBgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAoBvB"}
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from '@tryfinch/finch-api/resource';
3
+ import * as CompanyAPI from '@tryfinch/finch-api/resources/sandbox/company';
4
+ import * as DirectoryAPI from '@tryfinch/finch-api/resources/sandbox/directory';
5
+ import * as EmploymentAPI from '@tryfinch/finch-api/resources/sandbox/employment';
6
+ import * as IndividualAPI from '@tryfinch/finch-api/resources/sandbox/individual';
7
+ import * as PaymentAPI from '@tryfinch/finch-api/resources/sandbox/payment';
8
+ import * as ConnectionsAPI from '@tryfinch/finch-api/resources/sandbox/connections/connections';
9
+ import * as JobsAPI from '@tryfinch/finch-api/resources/sandbox/jobs/jobs';
10
+ export class Sandbox extends APIResource {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.connections = new ConnectionsAPI.Connections(this._client);
14
+ this.company = new CompanyAPI.Company(this._client);
15
+ this.directory = new DirectoryAPI.Directory(this._client);
16
+ this.individual = new IndividualAPI.Individual(this._client);
17
+ this.employment = new EmploymentAPI.Employment(this._client);
18
+ this.payment = new PaymentAPI.Payment(this._client);
19
+ this.jobs = new JobsAPI.Jobs(this._client);
20
+ }
21
+ }
22
+ (function (Sandbox) {
23
+ Sandbox.Connections = ConnectionsAPI.Connections;
24
+ Sandbox.Company = CompanyAPI.Company;
25
+ Sandbox.Directory = DirectoryAPI.Directory;
26
+ Sandbox.Individual = IndividualAPI.Individual;
27
+ Sandbox.Employment = EmploymentAPI.Employment;
28
+ Sandbox.Payment = PaymentAPI.Payment;
29
+ Sandbox.Jobs = JobsAPI.Jobs;
30
+ })(Sandbox || (Sandbox = {}));
31
+ //# sourceMappingURL=sandbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/sandbox.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EA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KAAP,OAAO,QAoBvB"}
@@ -1,3 +1,4 @@
1
+ export type IntrospectResponseConnectionStatus = 'pending' | 'processing' | 'connected' | 'error_no_account_setup' | 'error_permissions' | 'reauth';
1
2
  /**
2
3
  * - `supported`: This operation is supported by both the provider and Finch
3
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kCAAkC,GAC1C,SAAS,GACT,YAAY,GACZ,WAAW,GACX,wBAAwB,GACxB,mBAAmB,GACnB,QAAQ,CAAC;AAEb;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -65,7 +65,7 @@ export type ReadableStream = SelectType<manual.ReadableStream, auto.ReadableStre
65
65
  // @ts-ignore
66
66
  export const ReadableStream: SelectType<typeof manual.ReadableStream, typeof auto.ReadableStream>;
67
67
 
68
- export function getMultipartRequestOptions<T extends {} = Record<string, unknown>>(
68
+ export function getMultipartRequestOptions<T = Record<string, unknown>>(
69
69
  form: FormData,
70
70
  opts: RequestOptions<T>,
71
71
  ): Promise<RequestOptions<T>>;
@@ -43,7 +43,7 @@ async function fileFromPath(path: string, ...args: any[]): Promise<File> {
43
43
  const defaultHttpAgent: Agent = new KeepAliveAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
44
44
  const defaultHttpsAgent: Agent = new KeepAliveAgent.HttpsAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
45
45
 
46
- async function getMultipartRequestOptions<T extends {} = Record<string, unknown>>(
46
+ async function getMultipartRequestOptions<T = Record<string, unknown>>(
47
47
  form: fd.FormData,
48
48
  opts: RequestOptions<T>,
49
49
  ): Promise<RequestOptions<T>> {