@unified-api/typescript-sdk 1.0.10 → 1.0.12

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 (124) hide show
  1. package/dist/sdk/accounting.d.ts +5 -5
  2. package/dist/sdk/accounting.js +5 -5
  3. package/dist/sdk/applicationstatus.d.ts +1 -1
  4. package/dist/sdk/applicationstatus.js +1 -1
  5. package/dist/sdk/ats.d.ts +6 -6
  6. package/dist/sdk/ats.js +6 -6
  7. package/dist/sdk/crm.d.ts +5 -5
  8. package/dist/sdk/crm.js +5 -5
  9. package/dist/sdk/event.d.ts +5 -5
  10. package/dist/sdk/event.js +5 -5
  11. package/dist/sdk/hris.d.ts +16 -0
  12. package/dist/sdk/hris.js +252 -0
  13. package/dist/sdk/interview.d.ts +5 -5
  14. package/dist/sdk/interview.js +5 -5
  15. package/dist/sdk/invoice.d.ts +5 -5
  16. package/dist/sdk/invoice.js +5 -5
  17. package/dist/sdk/link.d.ts +6 -6
  18. package/dist/sdk/link.js +6 -6
  19. package/dist/sdk/martech.d.ts +1 -1
  20. package/dist/sdk/martech.js +1 -1
  21. package/dist/sdk/member.d.ts +1 -1
  22. package/dist/sdk/member.js +1 -1
  23. package/dist/sdk/models/operations/gethrispayslip.d.ts +35 -0
  24. package/dist/sdk/models/operations/gethrispayslip.js +99 -0
  25. package/dist/sdk/models/operations/gethristimeoff.d.ts +35 -0
  26. package/dist/sdk/models/operations/gethristimeoff.js +99 -0
  27. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +4 -0
  28. package/dist/sdk/models/operations/getunifiedintegrationauth.js +4 -0
  29. package/dist/sdk/models/operations/index.d.ts +4 -0
  30. package/dist/sdk/models/operations/index.js +4 -0
  31. package/dist/sdk/models/operations/listaccountingcontacts.d.ts +0 -3
  32. package/dist/sdk/models/operations/listaccountinginvoices.d.ts +0 -3
  33. package/dist/sdk/models/operations/listatsactivities.d.ts +0 -18
  34. package/dist/sdk/models/operations/listatsapplications.d.ts +0 -6
  35. package/dist/sdk/models/operations/listatsdocuments.d.ts +0 -3
  36. package/dist/sdk/models/operations/listatsinterviews.d.ts +0 -3
  37. package/dist/sdk/models/operations/listatsscorecards.d.ts +0 -12
  38. package/dist/sdk/models/operations/listcommercecollections.d.ts +1 -0
  39. package/dist/sdk/models/operations/listcommercecollections.js +4 -0
  40. package/dist/sdk/models/operations/listcommerceinventories.d.ts +0 -6
  41. package/dist/sdk/models/operations/listcommerceitems.d.ts +1 -0
  42. package/dist/sdk/models/operations/listcommerceitems.js +4 -0
  43. package/dist/sdk/models/operations/listcrmcompanies.d.ts +0 -9
  44. package/dist/sdk/models/operations/listcrmcontacts.d.ts +0 -9
  45. package/dist/sdk/models/operations/listcrmdeals.d.ts +0 -9
  46. package/dist/sdk/models/operations/listcrmevents.d.ts +0 -12
  47. package/dist/sdk/models/operations/listcrmleads.d.ts +0 -9
  48. package/dist/sdk/models/operations/listhrispayslips.d.ts +44 -0
  49. package/dist/sdk/models/operations/listhrispayslips.js +123 -0
  50. package/dist/sdk/models/operations/listhristimeoffs.d.ts +44 -0
  51. package/dist/sdk/models/operations/listhristimeoffs.js +123 -0
  52. package/dist/sdk/models/operations/listmartechmembers.d.ts +0 -3
  53. package/dist/sdk/models/operations/listpaymentlinks.d.ts +0 -6
  54. package/dist/sdk/models/operations/listpaymentpayments.d.ts +0 -6
  55. package/dist/sdk/models/operations/listpaymentrefunds.d.ts +0 -3
  56. package/dist/sdk/models/operations/listticketingnotes.d.ts +0 -3
  57. package/dist/sdk/models/operations/listticketingtickets.d.ts +0 -6
  58. package/dist/sdk/models/shared/commercecollection.d.ts +6 -1
  59. package/dist/sdk/models/shared/commercecollection.js +12 -6
  60. package/dist/sdk/models/shared/hrispayslip.d.ts +22 -0
  61. package/dist/sdk/models/shared/hrispayslip.js +133 -0
  62. package/dist/sdk/models/shared/hrispayslipdetail.d.ts +28 -0
  63. package/dist/sdk/models/shared/hrispayslipdetail.js +90 -0
  64. package/dist/sdk/models/shared/hristimeoff.d.ts +24 -0
  65. package/dist/sdk/models/shared/hristimeoff.js +131 -0
  66. package/dist/sdk/models/shared/index.d.ts +3 -0
  67. package/dist/sdk/models/shared/index.js +3 -0
  68. package/dist/sdk/models/shared/integrationsupport.d.ts +3 -0
  69. package/dist/sdk/models/shared/integrationsupport.js +15 -0
  70. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  71. package/dist/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  72. package/dist/sdk/models/shared/webhook.d.ts +2 -0
  73. package/dist/sdk/models/shared/webhook.js +2 -0
  74. package/dist/sdk/payment.d.ts +6 -6
  75. package/dist/sdk/payment.js +6 -6
  76. package/dist/sdk/payslip.d.ts +15 -0
  77. package/dist/sdk/payslip.js +213 -0
  78. package/dist/sdk/sdk.d.ts +4 -0
  79. package/dist/sdk/sdk.js +7 -3
  80. package/dist/sdk/timeoff.d.ts +15 -0
  81. package/dist/sdk/timeoff.js +213 -0
  82. package/docs/sdk/models/operations/gethrispaysliprequest.md +10 -0
  83. package/docs/sdk/models/operations/gethrispayslipresponse.md +11 -0
  84. package/docs/sdk/models/operations/gethristimeoffrequest.md +10 -0
  85. package/docs/sdk/models/operations/gethristimeoffresponse.md +11 -0
  86. package/docs/sdk/models/operations/listaccountingcontactsrequest.md +1 -1
  87. package/docs/sdk/models/operations/listaccountinginvoicesrequest.md +1 -1
  88. package/docs/sdk/models/operations/listatsactivitiesrequest.md +6 -6
  89. package/docs/sdk/models/operations/listatsapplicationsrequest.md +2 -2
  90. package/docs/sdk/models/operations/listatsdocumentsrequest.md +1 -1
  91. package/docs/sdk/models/operations/listatsinterviewsrequest.md +1 -1
  92. package/docs/sdk/models/operations/listatsscorecardsrequest.md +4 -4
  93. package/docs/sdk/models/operations/listcommercecollectionsrequest.md +1 -0
  94. package/docs/sdk/models/operations/listcommerceinventoriesrequest.md +2 -2
  95. package/docs/sdk/models/operations/listcommerceitemsrequest.md +1 -0
  96. package/docs/sdk/models/operations/listcrmcompaniesrequest.md +3 -3
  97. package/docs/sdk/models/operations/listcrmcontactsrequest.md +3 -3
  98. package/docs/sdk/models/operations/listcrmdealsrequest.md +3 -3
  99. package/docs/sdk/models/operations/listcrmeventsrequest.md +4 -4
  100. package/docs/sdk/models/operations/listcrmleadsrequest.md +3 -3
  101. package/docs/sdk/models/operations/listhrispayslipsrequest.md +16 -0
  102. package/docs/sdk/models/operations/listhrispayslipsresponse.md +11 -0
  103. package/docs/sdk/models/operations/listhristimeoffsrequest.md +16 -0
  104. package/docs/sdk/models/operations/listhristimeoffsresponse.md +11 -0
  105. package/docs/sdk/models/operations/listmartechmembersrequest.md +1 -1
  106. package/docs/sdk/models/operations/listpaymentlinksrequest.md +2 -2
  107. package/docs/sdk/models/operations/listpaymentpaymentsrequest.md +2 -2
  108. package/docs/sdk/models/operations/listpaymentrefundsrequest.md +1 -1
  109. package/docs/sdk/models/operations/listticketingnotesrequest.md +1 -1
  110. package/docs/sdk/models/operations/listticketingticketsrequest.md +2 -2
  111. package/docs/sdk/models/operations/scopes.md +4 -0
  112. package/docs/sdk/models/shared/commercecollection.md +1 -1
  113. package/docs/sdk/models/shared/commercecollectiontype.md +10 -0
  114. package/docs/sdk/models/shared/hrispayslip.md +20 -0
  115. package/docs/sdk/models/shared/hrispayslipdetail.md +13 -0
  116. package/docs/sdk/models/shared/hrispayslipdetailtype.md +24 -0
  117. package/docs/sdk/models/shared/hristimeoff.md +19 -0
  118. package/docs/sdk/models/shared/hristimeoffstatus.md +10 -0
  119. package/docs/sdk/models/shared/hristimeofftype.md +9 -0
  120. package/docs/sdk/models/shared/integrationsupport.md +3 -0
  121. package/docs/sdk/models/shared/objecttype.md +2 -0
  122. package/docs/sdk/models/shared/paymenttype.md +10 -0
  123. package/docs/sdk/models/shared/propertyconnectionpermissions.md +4 -0
  124. package/package.json +1 -1
package/dist/sdk/hris.js CHANGED
@@ -364,6 +364,130 @@ var Hris = /** @class */ (function () {
364
364
  });
365
365
  });
366
366
  };
367
+ /**
368
+ * Retrieve a payslip
369
+ */
370
+ Hris.prototype.getHrisPayslip = function (req, config) {
371
+ var _a, _b;
372
+ return __awaiter(this, void 0, void 0, function () {
373
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
374
+ return __generator(this, function (_c) {
375
+ switch (_c.label) {
376
+ case 0:
377
+ if (!(req instanceof utils.SpeakeasyBase)) {
378
+ req = new operations.GetHrisPayslipRequest(req);
379
+ }
380
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
381
+ operationUrl = utils.generateURL(baseURL, "/hris/{connection_id}/payslip/{id}", req);
382
+ client = this.sdkConfiguration.defaultClient;
383
+ globalSecurity = this.sdkConfiguration.security;
384
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
385
+ return [4 /*yield*/, globalSecurity()];
386
+ case 1:
387
+ globalSecurity = _c.sent();
388
+ _c.label = 2;
389
+ case 2:
390
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
391
+ globalSecurity = new shared.Security(globalSecurity);
392
+ }
393
+ properties = utils.parseSecurityProperties(globalSecurity);
394
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
395
+ queryParams = utils.serializeQueryParams(req);
396
+ headers["Accept"] = "application/json";
397
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
398
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
399
+ case 3:
400
+ httpRes = _c.sent();
401
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
402
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
403
+ throw new Error("status code not found in response: ".concat(httpRes));
404
+ }
405
+ res = new operations.GetHrisPayslipResponse({
406
+ statusCode: httpRes.status,
407
+ contentType: responseContentType,
408
+ rawResponse: httpRes,
409
+ });
410
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
411
+ switch (true) {
412
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
413
+ if (utils.matchContentType(responseContentType, "application/json")) {
414
+ res.hrisPayslip = utils.objectToClass(JSON.parse(decodedRes), shared.HrisPayslip);
415
+ }
416
+ else {
417
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
418
+ }
419
+ break;
420
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
421
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
422
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
423
+ }
424
+ return [2 /*return*/, res];
425
+ }
426
+ });
427
+ });
428
+ };
429
+ /**
430
+ * Retrieve a timeoff
431
+ */
432
+ Hris.prototype.getHrisTimeoff = function (req, config) {
433
+ var _a, _b;
434
+ return __awaiter(this, void 0, void 0, function () {
435
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
436
+ return __generator(this, function (_c) {
437
+ switch (_c.label) {
438
+ case 0:
439
+ if (!(req instanceof utils.SpeakeasyBase)) {
440
+ req = new operations.GetHrisTimeoffRequest(req);
441
+ }
442
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
443
+ operationUrl = utils.generateURL(baseURL, "/hris/{connection_id}/timeoff/{id}", req);
444
+ client = this.sdkConfiguration.defaultClient;
445
+ globalSecurity = this.sdkConfiguration.security;
446
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
447
+ return [4 /*yield*/, globalSecurity()];
448
+ case 1:
449
+ globalSecurity = _c.sent();
450
+ _c.label = 2;
451
+ case 2:
452
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
453
+ globalSecurity = new shared.Security(globalSecurity);
454
+ }
455
+ properties = utils.parseSecurityProperties(globalSecurity);
456
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
457
+ queryParams = utils.serializeQueryParams(req);
458
+ headers["Accept"] = "application/json";
459
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
460
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
461
+ case 3:
462
+ httpRes = _c.sent();
463
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
464
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
465
+ throw new Error("status code not found in response: ".concat(httpRes));
466
+ }
467
+ res = new operations.GetHrisTimeoffResponse({
468
+ statusCode: httpRes.status,
469
+ contentType: responseContentType,
470
+ rawResponse: httpRes,
471
+ });
472
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
473
+ switch (true) {
474
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
475
+ if (utils.matchContentType(responseContentType, "application/json")) {
476
+ res.hrisTimeoff = utils.objectToClass(JSON.parse(decodedRes), shared.HrisTimeoff);
477
+ }
478
+ else {
479
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
480
+ }
481
+ break;
482
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
483
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
484
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
485
+ }
486
+ return [2 /*return*/, res];
487
+ }
488
+ });
489
+ });
490
+ };
367
491
  /**
368
492
  * List all employees
369
493
  */
@@ -492,6 +616,134 @@ var Hris = /** @class */ (function () {
492
616
  });
493
617
  });
494
618
  };
619
+ /**
620
+ * List all payslips
621
+ */
622
+ Hris.prototype.listHrisPayslips = function (req, config) {
623
+ var _a, _b;
624
+ return __awaiter(this, void 0, void 0, function () {
625
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
626
+ return __generator(this, function (_c) {
627
+ switch (_c.label) {
628
+ case 0:
629
+ if (!(req instanceof utils.SpeakeasyBase)) {
630
+ req = new operations.ListHrisPayslipsRequest(req);
631
+ }
632
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
633
+ operationUrl = utils.generateURL(baseURL, "/hris/{connection_id}/payslip", req);
634
+ client = this.sdkConfiguration.defaultClient;
635
+ globalSecurity = this.sdkConfiguration.security;
636
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
637
+ return [4 /*yield*/, globalSecurity()];
638
+ case 1:
639
+ globalSecurity = _c.sent();
640
+ _c.label = 2;
641
+ case 2:
642
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
643
+ globalSecurity = new shared.Security(globalSecurity);
644
+ }
645
+ properties = utils.parseSecurityProperties(globalSecurity);
646
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
647
+ queryParams = utils.serializeQueryParams(req);
648
+ headers["Accept"] = "application/json";
649
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
650
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
651
+ case 3:
652
+ httpRes = _c.sent();
653
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
654
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
655
+ throw new Error("status code not found in response: ".concat(httpRes));
656
+ }
657
+ res = new operations.ListHrisPayslipsResponse({
658
+ statusCode: httpRes.status,
659
+ contentType: responseContentType,
660
+ rawResponse: httpRes,
661
+ });
662
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
663
+ switch (true) {
664
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
665
+ if (utils.matchContentType(responseContentType, "application/json")) {
666
+ res.hrisPayslips = [];
667
+ resFieldDepth = utils.getResFieldDepth(res);
668
+ res.hrisPayslips = utils.objectToClass(JSON.parse(decodedRes), shared.HrisPayslip, resFieldDepth);
669
+ }
670
+ else {
671
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
672
+ }
673
+ break;
674
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
675
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
676
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
677
+ }
678
+ return [2 /*return*/, res];
679
+ }
680
+ });
681
+ });
682
+ };
683
+ /**
684
+ * List all timeoffs
685
+ */
686
+ Hris.prototype.listHrisTimeoffs = function (req, config) {
687
+ var _a, _b;
688
+ return __awaiter(this, void 0, void 0, function () {
689
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
690
+ return __generator(this, function (_c) {
691
+ switch (_c.label) {
692
+ case 0:
693
+ if (!(req instanceof utils.SpeakeasyBase)) {
694
+ req = new operations.ListHrisTimeoffsRequest(req);
695
+ }
696
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
697
+ operationUrl = utils.generateURL(baseURL, "/hris/{connection_id}/timeoff", req);
698
+ client = this.sdkConfiguration.defaultClient;
699
+ globalSecurity = this.sdkConfiguration.security;
700
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
701
+ return [4 /*yield*/, globalSecurity()];
702
+ case 1:
703
+ globalSecurity = _c.sent();
704
+ _c.label = 2;
705
+ case 2:
706
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
707
+ globalSecurity = new shared.Security(globalSecurity);
708
+ }
709
+ properties = utils.parseSecurityProperties(globalSecurity);
710
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
711
+ queryParams = utils.serializeQueryParams(req);
712
+ headers["Accept"] = "application/json";
713
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
714
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
715
+ case 3:
716
+ httpRes = _c.sent();
717
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
718
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
719
+ throw new Error("status code not found in response: ".concat(httpRes));
720
+ }
721
+ res = new operations.ListHrisTimeoffsResponse({
722
+ statusCode: httpRes.status,
723
+ contentType: responseContentType,
724
+ rawResponse: httpRes,
725
+ });
726
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
727
+ switch (true) {
728
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
729
+ if (utils.matchContentType(responseContentType, "application/json")) {
730
+ res.hrisTimeoffs = [];
731
+ resFieldDepth = utils.getResFieldDepth(res);
732
+ res.hrisTimeoffs = utils.objectToClass(JSON.parse(decodedRes), shared.HrisTimeoff, resFieldDepth);
733
+ }
734
+ else {
735
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
736
+ }
737
+ break;
738
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
739
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
740
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
741
+ }
742
+ return [2 /*return*/, res];
743
+ }
744
+ });
745
+ });
746
+ };
495
747
  /**
496
748
  * Update an employee
497
749
  */
@@ -5,11 +5,11 @@ export declare class Interview {
5
5
  private sdkConfiguration;
6
6
  constructor(sdkConfig: SDKConfiguration);
7
7
  /**
8
- * Create a interview
8
+ * Create an interview
9
9
  */
10
10
  createAtsInterview(req: operations.CreateAtsInterviewRequest, config?: AxiosRequestConfig): Promise<operations.CreateAtsInterviewResponse>;
11
11
  /**
12
- * Retrieve a interview
12
+ * Retrieve an interview
13
13
  */
14
14
  getAtsInterview(req: operations.GetAtsInterviewRequest, config?: AxiosRequestConfig): Promise<operations.GetAtsInterviewResponse>;
15
15
  /**
@@ -17,15 +17,15 @@ export declare class Interview {
17
17
  */
18
18
  listAtsInterviews(req: operations.ListAtsInterviewsRequest, config?: AxiosRequestConfig): Promise<operations.ListAtsInterviewsResponse>;
19
19
  /**
20
- * Update a interview
20
+ * Update an interview
21
21
  */
22
22
  patchAtsInterview(req: operations.PatchAtsInterviewRequest, config?: AxiosRequestConfig): Promise<operations.PatchAtsInterviewResponse>;
23
23
  /**
24
- * Remove a interview
24
+ * Remove an interview
25
25
  */
26
26
  removeAtsInterview(req: operations.RemoveAtsInterviewRequest, config?: AxiosRequestConfig): Promise<operations.RemoveAtsInterviewResponse>;
27
27
  /**
28
- * Update a interview
28
+ * Update an interview
29
29
  */
30
30
  updateAtsInterview(req: operations.UpdateAtsInterviewRequest, config?: AxiosRequestConfig): Promise<operations.UpdateAtsInterviewResponse>;
31
31
  }
@@ -99,7 +99,7 @@ var Interview = /** @class */ (function () {
99
99
  this.sdkConfiguration = sdkConfig;
100
100
  }
101
101
  /**
102
- * Create a interview
102
+ * Create an interview
103
103
  */
104
104
  Interview.prototype.createAtsInterview = function (req, config) {
105
105
  var _a, _b;
@@ -170,7 +170,7 @@ var Interview = /** @class */ (function () {
170
170
  });
171
171
  };
172
172
  /**
173
- * Retrieve a interview
173
+ * Retrieve an interview
174
174
  */
175
175
  Interview.prototype.getAtsInterview = function (req, config) {
176
176
  var _a, _b;
@@ -296,7 +296,7 @@ var Interview = /** @class */ (function () {
296
296
  });
297
297
  };
298
298
  /**
299
- * Update a interview
299
+ * Update an interview
300
300
  */
301
301
  Interview.prototype.patchAtsInterview = function (req, config) {
302
302
  var _a, _b;
@@ -367,7 +367,7 @@ var Interview = /** @class */ (function () {
367
367
  });
368
368
  };
369
369
  /**
370
- * Remove a interview
370
+ * Remove an interview
371
371
  */
372
372
  Interview.prototype.removeAtsInterview = function (req, config) {
373
373
  var _a, _b;
@@ -430,7 +430,7 @@ var Interview = /** @class */ (function () {
430
430
  });
431
431
  };
432
432
  /**
433
- * Update a interview
433
+ * Update an interview
434
434
  */
435
435
  Interview.prototype.updateAtsInterview = function (req, config) {
436
436
  var _a, _b;
@@ -5,11 +5,11 @@ export declare class Invoice {
5
5
  private sdkConfiguration;
6
6
  constructor(sdkConfig: SDKConfiguration);
7
7
  /**
8
- * Create a invoice
8
+ * Create an invoice
9
9
  */
10
10
  createAccountingInvoice(req: operations.CreateAccountingInvoiceRequest, config?: AxiosRequestConfig): Promise<operations.CreateAccountingInvoiceResponse>;
11
11
  /**
12
- * Retrieve a invoice
12
+ * Retrieve an invoice
13
13
  */
14
14
  getAccountingInvoice(req: operations.GetAccountingInvoiceRequest, config?: AxiosRequestConfig): Promise<operations.GetAccountingInvoiceResponse>;
15
15
  /**
@@ -17,15 +17,15 @@ export declare class Invoice {
17
17
  */
18
18
  listAccountingInvoices(req: operations.ListAccountingInvoicesRequest, config?: AxiosRequestConfig): Promise<operations.ListAccountingInvoicesResponse>;
19
19
  /**
20
- * Update a invoice
20
+ * Update an invoice
21
21
  */
22
22
  patchAccountingInvoice(req: operations.PatchAccountingInvoiceRequest, config?: AxiosRequestConfig): Promise<operations.PatchAccountingInvoiceResponse>;
23
23
  /**
24
- * Remove a invoice
24
+ * Remove an invoice
25
25
  */
26
26
  removeAccountingInvoice(req: operations.RemoveAccountingInvoiceRequest, config?: AxiosRequestConfig): Promise<operations.RemoveAccountingInvoiceResponse>;
27
27
  /**
28
- * Update a invoice
28
+ * Update an invoice
29
29
  */
30
30
  updateAccountingInvoice(req: operations.UpdateAccountingInvoiceRequest, config?: AxiosRequestConfig): Promise<operations.UpdateAccountingInvoiceResponse>;
31
31
  }
@@ -99,7 +99,7 @@ var Invoice = /** @class */ (function () {
99
99
  this.sdkConfiguration = sdkConfig;
100
100
  }
101
101
  /**
102
- * Create a invoice
102
+ * Create an invoice
103
103
  */
104
104
  Invoice.prototype.createAccountingInvoice = function (req, config) {
105
105
  var _a, _b;
@@ -170,7 +170,7 @@ var Invoice = /** @class */ (function () {
170
170
  });
171
171
  };
172
172
  /**
173
- * Retrieve a invoice
173
+ * Retrieve an invoice
174
174
  */
175
175
  Invoice.prototype.getAccountingInvoice = function (req, config) {
176
176
  var _a, _b;
@@ -296,7 +296,7 @@ var Invoice = /** @class */ (function () {
296
296
  });
297
297
  };
298
298
  /**
299
- * Update a invoice
299
+ * Update an invoice
300
300
  */
301
301
  Invoice.prototype.patchAccountingInvoice = function (req, config) {
302
302
  var _a, _b;
@@ -367,7 +367,7 @@ var Invoice = /** @class */ (function () {
367
367
  });
368
368
  };
369
369
  /**
370
- * Remove a invoice
370
+ * Remove an invoice
371
371
  */
372
372
  Invoice.prototype.removeAccountingInvoice = function (req, config) {
373
373
  var _a, _b;
@@ -430,7 +430,7 @@ var Invoice = /** @class */ (function () {
430
430
  });
431
431
  };
432
432
  /**
433
- * Update a invoice
433
+ * Update an invoice
434
434
  */
435
435
  Invoice.prototype.updateAccountingInvoice = function (req, config) {
436
436
  var _a, _b;
@@ -5,27 +5,27 @@ export declare class Link {
5
5
  private sdkConfiguration;
6
6
  constructor(sdkConfig: SDKConfiguration);
7
7
  /**
8
- * Create a payment link
8
+ * Create a link
9
9
  */
10
10
  createPaymentLink(req: operations.CreatePaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.CreatePaymentLinkResponse>;
11
11
  /**
12
- * Retrieve a payment link
12
+ * Retrieve a link
13
13
  */
14
14
  getPaymentLink(req: operations.GetPaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.GetPaymentLinkResponse>;
15
15
  /**
16
- * List all payment links
16
+ * List all links
17
17
  */
18
18
  listPaymentLinks(req: operations.ListPaymentLinksRequest, config?: AxiosRequestConfig): Promise<operations.ListPaymentLinksResponse>;
19
19
  /**
20
- * Update a payment link
20
+ * Update a link
21
21
  */
22
22
  patchPaymentLink(req: operations.PatchPaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.PatchPaymentLinkResponse>;
23
23
  /**
24
- * Remove a payment link
24
+ * Remove a link
25
25
  */
26
26
  removePaymentLink(req: operations.RemovePaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.RemovePaymentLinkResponse>;
27
27
  /**
28
- * Update a payment link
28
+ * Update a link
29
29
  */
30
30
  updatePaymentLink(req: operations.UpdatePaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.UpdatePaymentLinkResponse>;
31
31
  }
package/dist/sdk/link.js CHANGED
@@ -99,7 +99,7 @@ var Link = /** @class */ (function () {
99
99
  this.sdkConfiguration = sdkConfig;
100
100
  }
101
101
  /**
102
- * Create a payment link
102
+ * Create a link
103
103
  */
104
104
  Link.prototype.createPaymentLink = function (req, config) {
105
105
  var _a, _b;
@@ -170,7 +170,7 @@ var Link = /** @class */ (function () {
170
170
  });
171
171
  };
172
172
  /**
173
- * Retrieve a payment link
173
+ * Retrieve a link
174
174
  */
175
175
  Link.prototype.getPaymentLink = function (req, config) {
176
176
  var _a, _b;
@@ -232,7 +232,7 @@ var Link = /** @class */ (function () {
232
232
  });
233
233
  };
234
234
  /**
235
- * List all payment links
235
+ * List all links
236
236
  */
237
237
  Link.prototype.listPaymentLinks = function (req, config) {
238
238
  var _a, _b;
@@ -296,7 +296,7 @@ var Link = /** @class */ (function () {
296
296
  });
297
297
  };
298
298
  /**
299
- * Update a payment link
299
+ * Update a link
300
300
  */
301
301
  Link.prototype.patchPaymentLink = function (req, config) {
302
302
  var _a, _b;
@@ -367,7 +367,7 @@ var Link = /** @class */ (function () {
367
367
  });
368
368
  };
369
369
  /**
370
- * Remove a payment link
370
+ * Remove a link
371
371
  */
372
372
  Link.prototype.removePaymentLink = function (req, config) {
373
373
  var _a, _b;
@@ -430,7 +430,7 @@ var Link = /** @class */ (function () {
430
430
  });
431
431
  };
432
432
  /**
433
- * Update a payment link
433
+ * Update a link
434
434
  */
435
435
  Link.prototype.updatePaymentLink = function (req, config) {
436
436
  var _a, _b;
@@ -41,7 +41,7 @@ export declare class Martech {
41
41
  */
42
42
  removeMartechList(req: operations.RemoveMartechListRequest, config?: AxiosRequestConfig): Promise<operations.RemoveMartechListResponse>;
43
43
  /**
44
- * Remove member
44
+ * Remove a member
45
45
  */
46
46
  removeMartechMember(req: operations.RemoveMartechMemberRequest, config?: AxiosRequestConfig): Promise<operations.RemoveMartechMemberResponse>;
47
47
  /**
@@ -698,7 +698,7 @@ var Martech = /** @class */ (function () {
698
698
  });
699
699
  };
700
700
  /**
701
- * Remove member
701
+ * Remove a member
702
702
  */
703
703
  Martech.prototype.removeMartechMember = function (req, config) {
704
704
  var _a, _b;
@@ -21,7 +21,7 @@ export declare class Member {
21
21
  */
22
22
  patchMartechMember(req: operations.PatchMartechMemberRequest, config?: AxiosRequestConfig): Promise<operations.PatchMartechMemberResponse>;
23
23
  /**
24
- * Remove member
24
+ * Remove a member
25
25
  */
26
26
  removeMartechMember(req: operations.RemoveMartechMemberRequest, config?: AxiosRequestConfig): Promise<operations.RemoveMartechMemberResponse>;
27
27
  /**
@@ -367,7 +367,7 @@ var Member = /** @class */ (function () {
367
367
  });
368
368
  };
369
369
  /**
370
- * Remove member
370
+ * Remove a member
371
371
  */
372
372
  Member.prototype.removeMartechMember = function (req, config) {
373
373
  var _a, _b;
@@ -0,0 +1,35 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../../../sdk/models/shared";
3
+ import { AxiosResponse } from "axios";
4
+ export declare class GetHrisPayslipRequest extends SpeakeasyBase {
5
+ /**
6
+ * ID of the connection
7
+ */
8
+ connectionId: string;
9
+ /**
10
+ * Comma-delimited fields to return
11
+ */
12
+ fields?: string[];
13
+ /**
14
+ * ID of the Payslip
15
+ */
16
+ id: string;
17
+ }
18
+ export declare class GetHrisPayslipResponse extends SpeakeasyBase {
19
+ /**
20
+ * HTTP response content type for this operation
21
+ */
22
+ contentType: string;
23
+ /**
24
+ * Successful
25
+ */
26
+ hrisPayslip?: shared.HrisPayslip;
27
+ /**
28
+ * HTTP response status code for this operation
29
+ */
30
+ statusCode: number;
31
+ /**
32
+ * Raw HTTP response; suitable for custom response parsing
33
+ */
34
+ rawResponse: AxiosResponse;
35
+ }