@tryfinch/finch-api 6.26.0 → 6.28.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 (153) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +1 -1
  3. package/package.json +1 -1
  4. package/resources/access-tokens.d.ts +8 -0
  5. package/resources/access-tokens.d.ts.map +1 -1
  6. package/resources/access-tokens.js +8 -0
  7. package/resources/access-tokens.js.map +1 -1
  8. package/resources/access-tokens.mjs +8 -0
  9. package/resources/access-tokens.mjs.map +1 -1
  10. package/resources/hris/benefits/benefits.d.ts +73 -0
  11. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  12. package/resources/hris/benefits/benefits.js +23 -0
  13. package/resources/hris/benefits/benefits.js.map +1 -1
  14. package/resources/hris/benefits/benefits.mjs +23 -0
  15. package/resources/hris/benefits/benefits.mjs.map +1 -1
  16. package/resources/hris/benefits/individuals.d.ts +35 -0
  17. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  18. package/resources/hris/benefits/individuals.js +8 -0
  19. package/resources/hris/benefits/individuals.js.map +1 -1
  20. package/resources/hris/benefits/individuals.mjs +8 -0
  21. package/resources/hris/benefits/individuals.mjs.map +1 -1
  22. package/resources/hris/company/company.d.ts +15 -10
  23. package/resources/hris/company/company.d.ts.map +1 -1
  24. package/resources/hris/company/company.js +5 -0
  25. package/resources/hris/company/company.js.map +1 -1
  26. package/resources/hris/company/company.mjs +5 -0
  27. package/resources/hris/company/company.mjs.map +1 -1
  28. package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +9 -1
  29. package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -1
  30. package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -1
  31. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -1
  32. package/resources/hris/company/pay-statement-item/rules.d.ts +30 -0
  33. package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -1
  34. package/resources/hris/company/pay-statement-item/rules.js +16 -0
  35. package/resources/hris/company/pay-statement-item/rules.js.map +1 -1
  36. package/resources/hris/company/pay-statement-item/rules.mjs +16 -0
  37. package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -1
  38. package/resources/hris/directory.d.ts +16 -8
  39. package/resources/hris/directory.d.ts.map +1 -1
  40. package/resources/hris/directory.js.map +1 -1
  41. package/resources/hris/directory.mjs.map +1 -1
  42. package/resources/hris/documents.d.ts +12 -0
  43. package/resources/hris/documents.d.ts.map +1 -1
  44. package/resources/hris/documents.js +7 -0
  45. package/resources/hris/documents.js.map +1 -1
  46. package/resources/hris/documents.mjs +7 -0
  47. package/resources/hris/documents.mjs.map +1 -1
  48. package/resources/hris/employments.d.ts +122 -103
  49. package/resources/hris/employments.d.ts.map +1 -1
  50. package/resources/hris/employments.js +10 -0
  51. package/resources/hris/employments.js.map +1 -1
  52. package/resources/hris/employments.mjs +10 -0
  53. package/resources/hris/employments.mjs.map +1 -1
  54. package/resources/hris/hris.d.ts +12 -12
  55. package/resources/hris/hris.d.ts.map +1 -1
  56. package/resources/hris/individuals.d.ts +73 -56
  57. package/resources/hris/individuals.d.ts.map +1 -1
  58. package/resources/hris/individuals.js.map +1 -1
  59. package/resources/hris/individuals.mjs.map +1 -1
  60. package/resources/hris/pay-statements.d.ts +16 -0
  61. package/resources/hris/pay-statements.d.ts.map +1 -1
  62. package/resources/hris/pay-statements.js +16 -0
  63. package/resources/hris/pay-statements.js.map +1 -1
  64. package/resources/hris/pay-statements.mjs +16 -0
  65. package/resources/hris/pay-statements.mjs.map +1 -1
  66. package/resources/hris/payments.d.ts +11 -0
  67. package/resources/hris/payments.d.ts.map +1 -1
  68. package/resources/hris/payments.js +11 -0
  69. package/resources/hris/payments.js.map +1 -1
  70. package/resources/hris/payments.mjs +11 -0
  71. package/resources/hris/payments.mjs.map +1 -1
  72. package/resources/request-forwarding.d.ts +10 -0
  73. package/resources/request-forwarding.d.ts.map +1 -1
  74. package/resources/request-forwarding.js +10 -0
  75. package/resources/request-forwarding.js.map +1 -1
  76. package/resources/request-forwarding.mjs +10 -0
  77. package/resources/request-forwarding.mjs.map +1 -1
  78. package/resources/sandbox/company.d.ts +23 -0
  79. package/resources/sandbox/company.d.ts.map +1 -1
  80. package/resources/sandbox/company.js +23 -0
  81. package/resources/sandbox/company.js.map +1 -1
  82. package/resources/sandbox/company.mjs +23 -0
  83. package/resources/sandbox/company.mjs.map +1 -1
  84. package/resources/sandbox/connections/accounts.d.ts +17 -0
  85. package/resources/sandbox/connections/accounts.d.ts.map +1 -1
  86. package/resources/sandbox/connections/accounts.js +9 -0
  87. package/resources/sandbox/connections/accounts.js.map +1 -1
  88. package/resources/sandbox/connections/accounts.mjs +9 -0
  89. package/resources/sandbox/connections/accounts.mjs.map +1 -1
  90. package/resources/sandbox/connections/connections.d.ts +7 -0
  91. package/resources/sandbox/connections/connections.d.ts.map +1 -1
  92. package/resources/sandbox/connections/connections.js +7 -0
  93. package/resources/sandbox/connections/connections.js.map +1 -1
  94. package/resources/sandbox/connections/connections.mjs +7 -0
  95. package/resources/sandbox/connections/connections.mjs.map +1 -1
  96. package/resources/sandbox/directory.d.ts +7 -0
  97. package/resources/sandbox/directory.d.ts.map +1 -1
  98. package/resources/sandbox/directory.js.map +1 -1
  99. package/resources/sandbox/directory.mjs.map +1 -1
  100. package/resources/sandbox/employment.d.ts +7 -0
  101. package/resources/sandbox/employment.d.ts.map +1 -1
  102. package/resources/sandbox/employment.js.map +1 -1
  103. package/resources/sandbox/employment.mjs.map +1 -1
  104. package/resources/sandbox/individual.d.ts +7 -0
  105. package/resources/sandbox/individual.d.ts.map +1 -1
  106. package/resources/sandbox/individual.js.map +1 -1
  107. package/resources/sandbox/individual.mjs.map +1 -1
  108. package/resources/sandbox/jobs/configuration.d.ts +15 -0
  109. package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
  110. package/resources/sandbox/jobs/configuration.js +15 -0
  111. package/resources/sandbox/jobs/configuration.js.map +1 -1
  112. package/resources/sandbox/jobs/configuration.mjs +15 -0
  113. package/resources/sandbox/jobs/configuration.mjs.map +1 -1
  114. package/resources/sandbox/jobs/jobs.d.ts +7 -0
  115. package/resources/sandbox/jobs/jobs.d.ts.map +1 -1
  116. package/resources/sandbox/jobs/jobs.js +7 -0
  117. package/resources/sandbox/jobs/jobs.js.map +1 -1
  118. package/resources/sandbox/jobs/jobs.mjs +7 -0
  119. package/resources/sandbox/jobs/jobs.mjs.map +1 -1
  120. package/resources/sandbox/payment.d.ts +19 -0
  121. package/resources/sandbox/payment.d.ts.map +1 -1
  122. package/resources/sandbox/payment.js.map +1 -1
  123. package/resources/sandbox/payment.mjs.map +1 -1
  124. package/resources/shared.d.ts +4 -4
  125. package/resources/shared.d.ts.map +1 -1
  126. package/src/resources/access-tokens.ts +8 -0
  127. package/src/resources/hris/benefits/benefits.ts +83 -0
  128. package/src/resources/hris/benefits/individuals.ts +35 -0
  129. package/src/resources/hris/company/company.ts +15 -10
  130. package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +9 -1
  131. package/src/resources/hris/company/pay-statement-item/rules.ts +30 -0
  132. package/src/resources/hris/directory.ts +16 -8
  133. package/src/resources/hris/documents.ts +12 -0
  134. package/src/resources/hris/employments.ts +139 -115
  135. package/src/resources/hris/hris.ts +14 -14
  136. package/src/resources/hris/individuals.ts +96 -74
  137. package/src/resources/hris/pay-statements.ts +16 -0
  138. package/src/resources/hris/payments.ts +11 -0
  139. package/src/resources/request-forwarding.ts +10 -0
  140. package/src/resources/sandbox/company.ts +23 -0
  141. package/src/resources/sandbox/connections/accounts.ts +17 -0
  142. package/src/resources/sandbox/connections/connections.ts +7 -0
  143. package/src/resources/sandbox/directory.ts +7 -0
  144. package/src/resources/sandbox/employment.ts +7 -0
  145. package/src/resources/sandbox/individual.ts +7 -0
  146. package/src/resources/sandbox/jobs/configuration.ts +15 -0
  147. package/src/resources/sandbox/jobs/jobs.ts +7 -0
  148. package/src/resources/sandbox/payment.ts +19 -0
  149. package/src/resources/shared.ts +4 -4
  150. package/src/version.ts +1 -1
  151. package/version.d.ts +1 -1
  152. package/version.js +1 -1
  153. package/version.mjs +1 -1
@@ -3,10 +3,25 @@ import * as Core from "../../../core.js";
3
3
  export declare class Configuration extends APIResource {
4
4
  /**
5
5
  * Get configurations for sandbox jobs
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const sandboxJobConfigurations =
10
+ * await client.sandbox.jobs.configuration.retrieve();
11
+ * ```
6
12
  */
7
13
  retrieve(options?: Core.RequestOptions): Core.APIPromise<ConfigurationRetrieveResponse>;
8
14
  /**
9
15
  * Update configurations for sandbox jobs
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const sandboxJobConfiguration =
20
+ * await client.sandbox.jobs.configuration.update({
21
+ * completion_status: 'complete',
22
+ * type: 'data_sync_all',
23
+ * });
24
+ * ```
10
25
  */
11
26
  update(body: ConfigurationUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SandboxJobConfiguration>;
12
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,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;CAC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W,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -6,12 +6,27 @@ const resource_1 = require("../../../resource.js");
6
6
  class Configuration extends resource_1.APIResource {
7
7
  /**
8
8
  * Get configurations for sandbox jobs
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const sandboxJobConfigurations =
13
+ * await client.sandbox.jobs.configuration.retrieve();
14
+ * ```
9
15
  */
10
16
  retrieve(options) {
11
17
  return this._client.get('/sandbox/jobs/configuration', options);
12
18
  }
13
19
  /**
14
20
  * Update configurations for sandbox jobs
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const sandboxJobConfiguration =
25
+ * await client.sandbox.jobs.configuration.update({
26
+ * completion_status: 'complete',
27
+ * type: 'data_sync_all',
28
+ * });
29
+ * ```
15
30
  */
16
31
  update(body, options) {
17
32
  return this._client.put('/sandbox/jobs/configuration', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,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"}
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;OAWG;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;AAhCD,sCAgCC"}
@@ -3,12 +3,27 @@ import { APIResource } from "../../../resource.mjs";
3
3
  export class Configuration extends APIResource {
4
4
  /**
5
5
  * Get configurations for sandbox jobs
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const sandboxJobConfigurations =
10
+ * await client.sandbox.jobs.configuration.retrieve();
11
+ * ```
6
12
  */
7
13
  retrieve(options) {
8
14
  return this._client.get('/sandbox/jobs/configuration', options);
9
15
  }
10
16
  /**
11
17
  * Update configurations for sandbox jobs
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const sandboxJobConfiguration =
22
+ * await client.sandbox.jobs.configuration.update({
23
+ * completion_status: 'complete',
24
+ * type: 'data_sync_all',
25
+ * });
26
+ * ```
12
27
  */
13
28
  update(body, options) {
14
29
  return this._client.put('/sandbox/jobs/configuration', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,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"}
1
+ {"version":3,"file":"configuration.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/configuration.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;OAWG;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"}
@@ -6,6 +6,13 @@ export declare class Jobs extends APIResource {
6
6
  configuration: ConfigurationAPI.Configuration;
7
7
  /**
8
8
  * Enqueue a new sandbox job
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const job = await client.sandbox.jobs.create({
13
+ * type: 'data_sync_all',
14
+ * });
15
+ * ```
9
16
  */
10
17
  create(body: JobCreateParams, options?: Core.RequestOptions): Core.APIPromise<JobCreateResponse>;
11
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,gBAAgB,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,aAAa,EACb,6BAA6B,EAC7B,yBAAyB,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oD;IAEjG;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;CAGjG;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEhG,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -35,6 +35,13 @@ class Jobs extends resource_1.APIResource {
35
35
  }
36
36
  /**
37
37
  * Enqueue a new sandbox job
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const job = await client.sandbox.jobs.create({
42
+ * type: 'data_sync_all',
43
+ * });
44
+ * ```
38
45
  */
39
46
  create(body, options) {
40
47
  return this._client.post('/sandbox/jobs', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,qEAAoD;AACpD,sDAKyB;AAEzB,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAQnG,CAAC;IANC;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AATD,oBASC;AA+BD,IAAI,CAAC,aAAa,GAAG,6BAAa,CAAC"}
1
+ {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,qEAAoD;AACpD,sDAKyB;AAEzB,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAenG,CAAC;IAbC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AAhBD,oBAgBC;AA+BD,IAAI,CAAC,aAAa,GAAG,6BAAa,CAAC"}
@@ -9,6 +9,13 @@ export class Jobs extends APIResource {
9
9
  }
10
10
  /**
11
11
  * Enqueue a new sandbox job
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const job = await client.sandbox.jobs.create({
16
+ * type: 'data_sync_all',
17
+ * });
18
+ * ```
12
19
  */
13
20
  create(body, options) {
14
21
  return this._client.post('/sandbox/jobs', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,gBAAgB;OACrB,EACL,aAAa,GAId;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAQnG,CAAC;IANC;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AA+BD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../../src/resources/sandbox/jobs/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,gBAAgB;OACrB,EACL,aAAa,GAId;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAenG,CAAC;IAbC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AA+BD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC"}
@@ -5,6 +5,25 @@ import * as BenefitsAPI from "../hris/benefits/benefits.js";
5
5
  export declare class Payment extends APIResource {
6
6
  /**
7
7
  * Add a new sandbox payment
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const payment = await client.sandbox.payment.create({
12
+ * pay_statements: [
13
+ * {
14
+ * individual_id: 'b2338cfb-472f-4f72-9faa-e028c083144a',
15
+ * employee_deductions: [
16
+ * {
17
+ * name: '401k test',
18
+ * type: '401k',
19
+ * amount: 2000,
20
+ * currency: 'usd',
21
+ * },
22
+ * ],
23
+ * },
24
+ * ],
25
+ * });
26
+ * ```
8
27
  */
9
28
  create(body?: PaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
10
29
  create(options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AAEzD,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;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAEzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,YAAY;QAC3B;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;QAErD;;WAEG;QACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,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C;IACrE,CAAC;CACF;AAfD,0BAeC"}
1
+ {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAK9C,MAAa,OAAQ,SAAQ,sBAAW;IAyBtC,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;AAlCD,0BAkCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"payment.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAK3B,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"}
1
+ {"version":3,"file":"payment.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAK3B,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAyBtC,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"}
@@ -53,12 +53,12 @@ export interface OperationSupportMatrix {
53
53
  }
54
54
  export interface Paging {
55
55
  /**
56
- * The total number of elements for the entire query (not just the given page)
56
+ * The current start index of the returned list of elements
57
57
  */
58
- count?: number;
58
+ offset: number;
59
59
  /**
60
- * The current start index of the returned list of elements
60
+ * The total number of elements for the entire query (not just the given page)
61
61
  */
62
- offset?: number;
62
+ count?: number;
63
63
  }
64
64
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,YAAY,GACZ,WAAW,GACX,wBAAwB,GACxB,mBAAmB,GACnB,QAAQ,CAAC;AAEb;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;OAQG;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,oBAAoB,GAC5B,SAAS,GACT,YAAY,GACZ,WAAW,GACX,wBAAwB,GACxB,mBAAmB,GACnB,QAAQ,CAAC;AAEb;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -6,6 +6,14 @@ import * as Core from '../core';
6
6
  export class AccessTokens extends APIResource {
7
7
  /**
8
8
  * Exchange the authorization code for an access token
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const createAccessTokenResponse =
13
+ * await client.accessTokens.create({
14
+ * code: '<your_authorization_code>',
15
+ * });
16
+ * ```
9
17
  */
10
18
  create(
11
19
  body: AccessTokenCreateParams,
@@ -25,6 +25,12 @@ export class Benefits extends APIResource {
25
25
  /**
26
26
  * Creates a new company-wide deduction or contribution. Please use the
27
27
  * `/providers` endpoint to view available types for each provider.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const createCompanyBenefitsResponse =
32
+ * await client.hris.benefits.create();
33
+ * ```
28
34
  */
29
35
  create(
30
36
  body?: BenefitCreateParams,
@@ -43,6 +49,13 @@ export class Benefits extends APIResource {
43
49
 
44
50
  /**
45
51
  * Lists deductions and contributions information for a given item
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const companyBenefit = await client.hris.benefits.retrieve(
56
+ * 'benefit_id',
57
+ * );
58
+ * ```
46
59
  */
47
60
  retrieve(benefitId: string, options?: Core.RequestOptions): Core.APIPromise<CompanyBenefit> {
48
61
  return this._client.get(`/employer/benefits/${benefitId}`, options);
@@ -50,6 +63,12 @@ export class Benefits extends APIResource {
50
63
 
51
64
  /**
52
65
  * Updates an existing company-wide deduction or contribution
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const updateCompanyBenefitResponse =
70
+ * await client.hris.benefits.update('benefit_id');
71
+ * ```
53
72
  */
54
73
  update(
55
74
  benefitId: string,
@@ -70,6 +89,14 @@ export class Benefits extends APIResource {
70
89
 
71
90
  /**
72
91
  * List all company-wide deductions and contributions.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * // Automatically fetches more pages as needed.
96
+ * for await (const companyBenefit of client.hris.benefits.list()) {
97
+ * // ...
98
+ * }
99
+ * ```
73
100
  */
74
101
  list(options?: Core.RequestOptions): Core.PagePromise<CompanyBenefitsSinglePage, CompanyBenefit> {
75
102
  return this._client.getAPIList('/employer/benefits', CompanyBenefitsSinglePage, options);
@@ -77,6 +104,14 @@ export class Benefits extends APIResource {
77
104
 
78
105
  /**
79
106
  * Get deductions metadata
107
+ *
108
+ * @example
109
+ * ```ts
110
+ * // Automatically fetches more pages as needed.
111
+ * for await (const benefitListSupportedBenefitsResponse of client.hris.benefits.listSupportedBenefits()) {
112
+ * // ...
113
+ * }
114
+ * ```
80
115
  */
81
116
  listSupportedBenefits(
82
117
  options?: Core.RequestOptions,
@@ -219,6 +254,11 @@ export interface CompanyBenefit {
219
254
  */
220
255
  benefit_id: string;
221
256
 
257
+ /**
258
+ * The company match for this benefit.
259
+ */
260
+ company_contribution: CompanyBenefit.CompanyContribution | null;
261
+
222
262
  description: string | null;
223
263
 
224
264
  /**
@@ -232,6 +272,25 @@ export interface CompanyBenefit {
232
272
  type: BenefitType | null;
233
273
  }
234
274
 
275
+ export namespace CompanyBenefit {
276
+ /**
277
+ * The company match for this benefit.
278
+ */
279
+ export interface CompanyContribution {
280
+ tiers?: Array<CompanyContribution.Tier>;
281
+
282
+ type?: 'match';
283
+ }
284
+
285
+ export namespace CompanyContribution {
286
+ export interface Tier {
287
+ match?: number;
288
+
289
+ threshold?: number;
290
+ }
291
+ }
292
+ }
293
+
235
294
  export interface CreateCompanyBenefitsResponse {
236
295
  /**
237
296
  * The id of the benefit.
@@ -338,6 +397,11 @@ export interface BenefitListSupportedBenefitsResponse {
338
397
  export type BenfitContribution = BenefitContribution | null;
339
398
 
340
399
  export interface BenefitCreateParams {
400
+ /**
401
+ * The company match for this benefit.
402
+ */
403
+ company_contribution?: BenefitCreateParams.CompanyContribution | null;
404
+
341
405
  /**
342
406
  * Name of the benefit as it appears in the provider and pay statements. Recommend
343
407
  * limiting this to <30 characters due to limitations in specific providers (e.g.
@@ -356,6 +420,25 @@ export interface BenefitCreateParams {
356
420
  type?: BenefitType | null;
357
421
  }
358
422
 
423
+ export namespace BenefitCreateParams {
424
+ /**
425
+ * The company match for this benefit.
426
+ */
427
+ export interface CompanyContribution {
428
+ tiers?: Array<CompanyContribution.Tier>;
429
+
430
+ type?: 'match';
431
+ }
432
+
433
+ export namespace CompanyContribution {
434
+ export interface Tier {
435
+ match?: number;
436
+
437
+ threshold?: number;
438
+ }
439
+ }
440
+ }
441
+
359
442
  export interface BenefitUpdateParams {
360
443
  /**
361
444
  * Updated name or description.
@@ -12,6 +12,15 @@ export class Individuals extends APIResource {
12
12
  * operation. If the employee is already enrolled, the enrollment amounts will be
13
13
  * adjusted. Making the same request multiple times will not create new
14
14
  * enrollments, but will continue to set the state of the existing enrollment.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const enrolledIndividualBenefitResponse =
19
+ * await client.hris.benefits.individuals.enrollMany(
20
+ * 'benefit_id',
21
+ * [{}],
22
+ * );
23
+ * ```
15
24
  */
16
25
  enrollMany(
17
26
  benefitId: string,
@@ -35,6 +44,14 @@ export class Individuals extends APIResource {
35
44
 
36
45
  /**
37
46
  * Lists individuals currently enrolled in a given deduction.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response =
51
+ * await client.hris.benefits.individuals.enrolledIds(
52
+ * 'benefit_id',
53
+ * );
54
+ * ```
38
55
  */
39
56
  enrolledIds(
40
57
  benefitId: string,
@@ -45,6 +62,16 @@ export class Individuals extends APIResource {
45
62
 
46
63
  /**
47
64
  * Get enrollment information for the given individuals.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * // Automatically fetches more pages as needed.
69
+ * for await (const individualBenefit of client.hris.benefits.individuals.retrieveManyBenefits(
70
+ * 'benefit_id',
71
+ * )) {
72
+ * // ...
73
+ * }
74
+ * ```
48
75
  */
49
76
  retrieveManyBenefits(
50
77
  benefitId: string,
@@ -72,6 +99,14 @@ export class Individuals extends APIResource {
72
99
 
73
100
  /**
74
101
  * Unenroll individuals from a deduction or contribution
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const unenrolledIndividualBenefitResponse =
106
+ * await client.hris.benefits.individuals.unenrollMany(
107
+ * 'benefit_id',
108
+ * );
109
+ * ```
75
110
  */
76
111
  unenrollMany(
77
112
  benefitId: string,
@@ -18,6 +18,11 @@ export class CompanyResource extends APIResource {
18
18
 
19
19
  /**
20
20
  * Read basic company data
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const company = await client.hris.company.retrieve();
25
+ * ```
21
26
  */
22
27
  retrieve(options?: Core.RequestOptions): Core.APIPromise<Company> {
23
28
  return this._client.get('/employer/company', options);
@@ -74,40 +79,40 @@ export namespace Company {
74
79
  /**
75
80
  * The name of the bank associated in the payroll/HRIS system.
76
81
  */
77
- account_name?: string | null;
82
+ account_name: string | null;
78
83
 
79
84
  /**
80
85
  * 10-12 digit number to specify the bank account
81
86
  */
82
- account_number?: string | null;
87
+ account_number: string | null;
83
88
 
84
89
  /**
85
90
  * The type of bank account.
86
91
  */
87
- account_type?: 'checking' | 'savings' | null;
92
+ account_type: 'checking' | 'savings' | null;
88
93
 
89
94
  /**
90
95
  * Name of the banking institution.
91
96
  */
92
- institution_name?: string | null;
97
+ institution_name: string | null;
93
98
 
94
99
  /**
95
100
  * A nine-digit code that's based on the U.S. Bank location where your account was
96
101
  * opened.
97
102
  */
98
- routing_number?: string | null;
103
+ routing_number: string | null;
99
104
  }
100
105
 
101
106
  export interface Department {
102
107
  /**
103
108
  * The department name.
104
109
  */
105
- name?: string | null;
110
+ name: string | null;
106
111
 
107
112
  /**
108
113
  * The parent department, if present.
109
114
  */
110
- parent?: Department.Parent | null;
115
+ parent: Department.Parent | null;
111
116
  }
112
117
 
113
118
  export namespace Department {
@@ -118,7 +123,7 @@ export namespace Company {
118
123
  /**
119
124
  * The parent department's name.
120
125
  */
121
- name?: string | null;
126
+ name: string | null;
122
127
  }
123
128
  }
124
129
 
@@ -129,12 +134,12 @@ export namespace Company {
129
134
  /**
130
135
  * The tax payer subtype of the company.
131
136
  */
132
- subtype?: 's_corporation' | 'c_corporation' | 'b_corporation' | null;
137
+ subtype: 's_corporation' | 'c_corporation' | 'b_corporation' | null;
133
138
 
134
139
  /**
135
140
  * The tax payer type of the company.
136
141
  */
137
- type?:
142
+ type:
138
143
  | 'llc'
139
144
  | 'lp'
140
145
  | 'corporation'
@@ -23,6 +23,14 @@ export class PayStatementItem extends APIResource {
23
23
  * **Beta:** this endpoint currently serves employers onboarded after March 4th and
24
24
  * historical support will be added soon Retrieve a list of detailed pay statement
25
25
  * items for the access token's connection account.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * // Automatically fetches more pages as needed.
30
+ * for await (const payStatementItemListResponse of client.hris.company.payStatementItem.list()) {
31
+ * // ...
32
+ * }
33
+ * ```
26
34
  */
27
35
  list(
28
36
  query?: PayStatementItemListParams,
@@ -79,7 +87,7 @@ export namespace PayStatementItemListResponse {
79
87
  * The metadata of the pay statement item derived by the rules engine if available.
80
88
  * Each attribute will be a key-value pair defined by a rule.
81
89
  */
82
- metadata?: unknown | null;
90
+ metadata?: Record<string, unknown> | null;
83
91
 
84
92
  /**
85
93
  * `true` if the pay statement item is pre-tax. This field is only available for
@@ -13,6 +13,12 @@ export class Rules extends APIResource {
13
13
  * example, pay statement items that meet certain conditions can be labeled as a
14
14
  * pre-tax 401k. This metadata can be retrieved where pay statement item
15
15
  * information is available.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const rule =
20
+ * await client.hris.company.payStatementItem.rules.create();
21
+ * ```
16
22
  */
17
23
  create(body?: RuleCreateParams, options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
18
24
  create(options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
@@ -29,6 +35,14 @@ export class Rules extends APIResource {
29
35
  /**
30
36
  * **Beta:** this endpoint currently serves employers onboarded after March 4th and
31
37
  * historical support will be added soon Update a rule for a pay statement item.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const rule =
42
+ * await client.hris.company.payStatementItem.rules.update(
43
+ * 'rule_id',
44
+ * );
45
+ * ```
32
46
  */
33
47
  update(
34
48
  ruleId: string,
@@ -50,6 +64,14 @@ export class Rules extends APIResource {
50
64
  /**
51
65
  * **Beta:** this endpoint currently serves employers onboarded after March 4th and
52
66
  * historical support will be added soon List all rules of a connection account.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * // Automatically fetches more pages as needed.
71
+ * for await (const ruleListResponse of client.hris.company.payStatementItem.rules.list()) {
72
+ * // ...
73
+ * }
74
+ * ```
53
75
  */
54
76
  list(options?: Core.RequestOptions): Core.PagePromise<RuleListResponsesPage, RuleListResponse> {
55
77
  return this._client.getAPIList('/employer/pay-statement-item/rule', RuleListResponsesPage, options);
@@ -58,6 +80,14 @@ export class Rules extends APIResource {
58
80
  /**
59
81
  * **Beta:** this endpoint currently serves employers onboarded after March 4th and
60
82
  * historical support will be added soon Delete a rule for a pay statement item.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const rule =
87
+ * await client.hris.company.payStatementItem.rules.delete(
88
+ * 'rule_id',
89
+ * );
90
+ * ```
61
91
  */
62
92
  delete(ruleId: string, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse> {
63
93
  return this._client.delete(`/employer/pay-statement-item/rule/${ruleId}`, options);