@thera-hr/api-sdk 0.0.1-prerelease2625-dev-2 → 0.0.1-prerelease2625-staging
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.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/client/Client.d.ts +0 -6
- package/api/resources/api/resources/thera/client/Client.js +20 -30
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +31 -31
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/index.js +1 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/client/Client.js +20 -30
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +31 -31
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/index.js +1 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -3
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/index.js +1 -3
- package/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.d.ts +0 -22
- package/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.js +0 -17
- package/api/resources/api/resources/thera/resources/customtheradocuments/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/customtheradocuments/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -18
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.d.ts +0 -90
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.js +0 -373
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.js +0 -17
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.d.ts +0 -15
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.js +0 -2
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -18
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -18
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -11
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -13
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -3
- package/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -32
- package/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.d.ts +0 -22
- package/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.js +0 -17
- package/api/resources/api/resources/thera/resources/customtheratemplates/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/customtheratemplates/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -18
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.d.ts +0 -83
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.js +0 -360
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.js +0 -17
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.d.ts +0 -12
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.js +0 -2
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -18
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -12
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -14
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -14
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -3
- package/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -32
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.d.ts +0 -22
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.d.ts +0 -90
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.js +0 -373
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.d.ts +0 -15
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -18
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -11
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -13
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -32
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.d.ts +0 -22
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.d.ts +0 -83
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.js +0 -360
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.d.ts +0 -12
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -12
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -14
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -14
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -32
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -15
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -36
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -24
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -45
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -34
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -10
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -31
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -34
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -31
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -15
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -36
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -34
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -34
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -10
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -31
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -20
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -41
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -34
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -31
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -15
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -36
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -24
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -45
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -34
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -10
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -31
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -34
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -31
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -15
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -36
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -34
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -34
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -10
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -31
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -20
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -41
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -34
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -31
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.CustomtheradocumentsApi = void 0;
|
|
42
|
-
const core = __importStar(require("../../../../../../../../../../core"));
|
|
43
|
-
const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
|
|
44
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
-
const errors = __importStar(require("../../../../../../../../../../errors/index"));
|
|
46
|
-
class CustomtheradocumentsApi {
|
|
47
|
-
constructor(_options) {
|
|
48
|
-
this._options = _options;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Create a new document from a template
|
|
52
|
-
*
|
|
53
|
-
* @param {string} companyId
|
|
54
|
-
* @param {TheraApi.api.thera.customtheradocuments.CreateDocumentRequest} request
|
|
55
|
-
* @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* await client.api.thera.customtheradocuments.customtheradocumentsApi.createDocument("string", {
|
|
59
|
-
* name: "string",
|
|
60
|
-
* templateId: "string",
|
|
61
|
-
* recipients: ["string"],
|
|
62
|
-
* file: "string"
|
|
63
|
-
* })
|
|
64
|
-
*/
|
|
65
|
-
createDocument(companyId, request, requestOptions) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
const _response = yield core.fetcher({
|
|
68
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/`),
|
|
69
|
-
method: "POST",
|
|
70
|
-
headers: {
|
|
71
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
72
|
-
"X-Fern-Language": "JavaScript",
|
|
73
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
74
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2625-dev-2",
|
|
75
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
76
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
77
|
-
},
|
|
78
|
-
contentType: "application/json",
|
|
79
|
-
body: yield serializers.api.thera.customtheradocuments.CreateDocumentRequest.jsonOrThrow(request, {
|
|
80
|
-
unrecognizedObjectKeys: "strip",
|
|
81
|
-
}),
|
|
82
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
-
});
|
|
86
|
-
if (_response.ok) {
|
|
87
|
-
return yield serializers.api.thera.customtheradocuments.CustomTheraDocument.parseOrThrow(_response.body, {
|
|
88
|
-
unrecognizedObjectKeys: "passthrough",
|
|
89
|
-
allowUnrecognizedUnionMembers: true,
|
|
90
|
-
allowUnrecognizedEnumValues: true,
|
|
91
|
-
skipValidation: true,
|
|
92
|
-
breadcrumbsPrefix: ["response"],
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
if (_response.error.reason === "status-code") {
|
|
96
|
-
throw new errors.TheraApiError({
|
|
97
|
-
statusCode: _response.error.statusCode,
|
|
98
|
-
body: _response.error.body,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
switch (_response.error.reason) {
|
|
102
|
-
case "non-json":
|
|
103
|
-
throw new errors.TheraApiError({
|
|
104
|
-
statusCode: _response.error.statusCode,
|
|
105
|
-
body: _response.error.rawBody,
|
|
106
|
-
});
|
|
107
|
-
case "timeout":
|
|
108
|
-
throw new errors.TheraApiTimeoutError();
|
|
109
|
-
case "unknown":
|
|
110
|
-
throw new errors.TheraApiError({
|
|
111
|
-
message: _response.error.errorMessage,
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Get a specific document details
|
|
118
|
-
*
|
|
119
|
-
* @param {string} companyId
|
|
120
|
-
* @param {string} documentId
|
|
121
|
-
* @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* await client.api.thera.customtheradocuments.customtheradocumentsApi.getDocument("string", "string")
|
|
125
|
-
*/
|
|
126
|
-
getDocument(companyId, documentId, requestOptions) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
const _response = yield core.fetcher({
|
|
129
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/${encodeURIComponent(documentId)}`),
|
|
130
|
-
method: "GET",
|
|
131
|
-
headers: {
|
|
132
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
133
|
-
"X-Fern-Language": "JavaScript",
|
|
134
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
135
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2625-dev-2",
|
|
136
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
|
-
},
|
|
139
|
-
contentType: "application/json",
|
|
140
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
141
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
142
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
|
-
});
|
|
144
|
-
if (_response.ok) {
|
|
145
|
-
return yield serializers.api.thera.customtheradocuments.CustomTheraDocument.parseOrThrow(_response.body, {
|
|
146
|
-
unrecognizedObjectKeys: "passthrough",
|
|
147
|
-
allowUnrecognizedUnionMembers: true,
|
|
148
|
-
allowUnrecognizedEnumValues: true,
|
|
149
|
-
skipValidation: true,
|
|
150
|
-
breadcrumbsPrefix: ["response"],
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
if (_response.error.reason === "status-code") {
|
|
154
|
-
throw new errors.TheraApiError({
|
|
155
|
-
statusCode: _response.error.statusCode,
|
|
156
|
-
body: _response.error.body,
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
switch (_response.error.reason) {
|
|
160
|
-
case "non-json":
|
|
161
|
-
throw new errors.TheraApiError({
|
|
162
|
-
statusCode: _response.error.statusCode,
|
|
163
|
-
body: _response.error.rawBody,
|
|
164
|
-
});
|
|
165
|
-
case "timeout":
|
|
166
|
-
throw new errors.TheraApiTimeoutError();
|
|
167
|
-
case "unknown":
|
|
168
|
-
throw new errors.TheraApiError({
|
|
169
|
-
message: _response.error.errorMessage,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Update document details
|
|
176
|
-
*
|
|
177
|
-
* @param {string} companyId
|
|
178
|
-
* @param {string} documentId
|
|
179
|
-
* @param {TheraApi.api.thera.customtheradocuments.UpdateDocumentRequest} request
|
|
180
|
-
* @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* await client.api.thera.customtheradocuments.customtheradocumentsApi.updateDocument("string", "string", {
|
|
184
|
-
* name: "string",
|
|
185
|
-
* fields: {
|
|
186
|
-
* "string": "string"
|
|
187
|
-
* }
|
|
188
|
-
* })
|
|
189
|
-
*/
|
|
190
|
-
updateDocument(companyId, documentId, request, requestOptions) {
|
|
191
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
-
const _response = yield core.fetcher({
|
|
193
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/${encodeURIComponent(documentId)}`),
|
|
194
|
-
method: "PUT",
|
|
195
|
-
headers: {
|
|
196
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
197
|
-
"X-Fern-Language": "JavaScript",
|
|
198
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
199
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2625-dev-2",
|
|
200
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
201
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
202
|
-
},
|
|
203
|
-
contentType: "application/json",
|
|
204
|
-
body: yield serializers.api.thera.customtheradocuments.UpdateDocumentRequest.jsonOrThrow(request, {
|
|
205
|
-
unrecognizedObjectKeys: "strip",
|
|
206
|
-
}),
|
|
207
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
208
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
209
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
210
|
-
});
|
|
211
|
-
if (_response.ok) {
|
|
212
|
-
return yield serializers.api.thera.customtheradocuments.CustomTheraDocument.parseOrThrow(_response.body, {
|
|
213
|
-
unrecognizedObjectKeys: "passthrough",
|
|
214
|
-
allowUnrecognizedUnionMembers: true,
|
|
215
|
-
allowUnrecognizedEnumValues: true,
|
|
216
|
-
skipValidation: true,
|
|
217
|
-
breadcrumbsPrefix: ["response"],
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
if (_response.error.reason === "status-code") {
|
|
221
|
-
throw new errors.TheraApiError({
|
|
222
|
-
statusCode: _response.error.statusCode,
|
|
223
|
-
body: _response.error.body,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
switch (_response.error.reason) {
|
|
227
|
-
case "non-json":
|
|
228
|
-
throw new errors.TheraApiError({
|
|
229
|
-
statusCode: _response.error.statusCode,
|
|
230
|
-
body: _response.error.rawBody,
|
|
231
|
-
});
|
|
232
|
-
case "timeout":
|
|
233
|
-
throw new errors.TheraApiTimeoutError();
|
|
234
|
-
case "unknown":
|
|
235
|
-
throw new errors.TheraApiError({
|
|
236
|
-
message: _response.error.errorMessage,
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* List all documents for a company
|
|
243
|
-
*
|
|
244
|
-
* @param {string} companyId
|
|
245
|
-
* @param {TheraApi.api.thera.customtheradocuments.ListDocumentsRequest} request
|
|
246
|
-
* @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
|
-
*
|
|
248
|
-
* @example
|
|
249
|
-
* await client.api.thera.customtheradocuments.customtheradocumentsApi.listDocuments("string", {
|
|
250
|
-
* status: TheraApi.api.thera.customtheradocuments.DocumentStatus.Draft,
|
|
251
|
-
* templateId: "string"
|
|
252
|
-
* })
|
|
253
|
-
*/
|
|
254
|
-
listDocuments(companyId, request = {}, requestOptions) {
|
|
255
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
-
const { status, templateId } = request;
|
|
257
|
-
const _queryParams = {};
|
|
258
|
-
if (status != null) {
|
|
259
|
-
_queryParams["status"] = status;
|
|
260
|
-
}
|
|
261
|
-
if (templateId != null) {
|
|
262
|
-
_queryParams["templateId"] = templateId;
|
|
263
|
-
}
|
|
264
|
-
const _response = yield core.fetcher({
|
|
265
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/`),
|
|
266
|
-
method: "GET",
|
|
267
|
-
headers: {
|
|
268
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
269
|
-
"X-Fern-Language": "JavaScript",
|
|
270
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
271
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2625-dev-2",
|
|
272
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
273
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
274
|
-
},
|
|
275
|
-
contentType: "application/json",
|
|
276
|
-
queryParameters: _queryParams,
|
|
277
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
278
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
279
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
280
|
-
});
|
|
281
|
-
if (_response.ok) {
|
|
282
|
-
return yield serializers.api.thera.customtheradocuments.DocumentListResponse.parseOrThrow(_response.body, {
|
|
283
|
-
unrecognizedObjectKeys: "passthrough",
|
|
284
|
-
allowUnrecognizedUnionMembers: true,
|
|
285
|
-
allowUnrecognizedEnumValues: true,
|
|
286
|
-
skipValidation: true,
|
|
287
|
-
breadcrumbsPrefix: ["response"],
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
if (_response.error.reason === "status-code") {
|
|
291
|
-
throw new errors.TheraApiError({
|
|
292
|
-
statusCode: _response.error.statusCode,
|
|
293
|
-
body: _response.error.body,
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
switch (_response.error.reason) {
|
|
297
|
-
case "non-json":
|
|
298
|
-
throw new errors.TheraApiError({
|
|
299
|
-
statusCode: _response.error.statusCode,
|
|
300
|
-
body: _response.error.rawBody,
|
|
301
|
-
});
|
|
302
|
-
case "timeout":
|
|
303
|
-
throw new errors.TheraApiTimeoutError();
|
|
304
|
-
case "unknown":
|
|
305
|
-
throw new errors.TheraApiError({
|
|
306
|
-
message: _response.error.errorMessage,
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* Delete a document
|
|
313
|
-
*
|
|
314
|
-
* @param {string} companyId
|
|
315
|
-
* @param {string} documentId
|
|
316
|
-
* @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
317
|
-
*
|
|
318
|
-
* @example
|
|
319
|
-
* await client.api.thera.customtheradocuments.customtheradocumentsApi.deleteDocument("string", "string")
|
|
320
|
-
*/
|
|
321
|
-
deleteDocument(companyId, documentId, requestOptions) {
|
|
322
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
-
const _response = yield core.fetcher({
|
|
324
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/${encodeURIComponent(documentId)}`),
|
|
325
|
-
method: "DELETE",
|
|
326
|
-
headers: {
|
|
327
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
328
|
-
"X-Fern-Language": "JavaScript",
|
|
329
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
330
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2625-dev-2",
|
|
331
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
332
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
333
|
-
},
|
|
334
|
-
contentType: "application/json",
|
|
335
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
336
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
337
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
338
|
-
});
|
|
339
|
-
if (_response.ok) {
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
if (_response.error.reason === "status-code") {
|
|
343
|
-
throw new errors.TheraApiError({
|
|
344
|
-
statusCode: _response.error.statusCode,
|
|
345
|
-
body: _response.error.body,
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
switch (_response.error.reason) {
|
|
349
|
-
case "non-json":
|
|
350
|
-
throw new errors.TheraApiError({
|
|
351
|
-
statusCode: _response.error.statusCode,
|
|
352
|
-
body: _response.error.rawBody,
|
|
353
|
-
});
|
|
354
|
-
case "timeout":
|
|
355
|
-
throw new errors.TheraApiTimeoutError();
|
|
356
|
-
case "unknown":
|
|
357
|
-
throw new errors.TheraApiError({
|
|
358
|
-
message: _response.error.errorMessage,
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
_getAuthorizationHeader() {
|
|
364
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
366
|
-
if (bearer != null) {
|
|
367
|
-
return `Bearer ${bearer}`;
|
|
368
|
-
}
|
|
369
|
-
return undefined;
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
exports.CustomtheradocumentsApi = CustomtheradocumentsApi;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as TheraApi from "../../../../../../../../../../index";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* status: TheraApi.api.thera.customtheradocuments.DocumentStatus.Draft,
|
|
9
|
-
* templateId: "string"
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
export interface ListDocumentsRequest {
|
|
13
|
-
status?: TheraApi.api.thera.customtheradocuments.DocumentStatus;
|
|
14
|
-
templateId?: string;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type ListDocumentsRequest } from "./ListDocumentsRequest";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as TheraApi from "../../../../../../../../../index";
|
|
5
|
-
export interface CustomTheraDocument {
|
|
6
|
-
id: string;
|
|
7
|
-
companyId: string;
|
|
8
|
-
templateId?: string;
|
|
9
|
-
name: string;
|
|
10
|
-
status: TheraApi.api.thera.customtheradocuments.DocumentStatus;
|
|
11
|
-
createdBy: string;
|
|
12
|
-
createdAt: number;
|
|
13
|
-
lastModified: number;
|
|
14
|
-
pandaDocId: string;
|
|
15
|
-
recipients: string[];
|
|
16
|
-
signedUrl?: string;
|
|
17
|
-
signedUrlExpiry?: number;
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export declare type DocumentStatus = "DRAFT" | "PENDING" | "COMPLETED" | "REJECTED" | "EXPIRED";
|
|
5
|
-
export declare const DocumentStatus: {
|
|
6
|
-
readonly Draft: "DRAFT";
|
|
7
|
-
readonly Pending: "PENDING";
|
|
8
|
-
readonly Completed: "COMPLETED";
|
|
9
|
-
readonly Rejected: "REJECTED";
|
|
10
|
-
readonly Expired: "EXPIRED";
|
|
11
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DocumentStatus = void 0;
|
|
7
|
-
exports.DocumentStatus = {
|
|
8
|
-
Draft: "DRAFT",
|
|
9
|
-
Pending: "PENDING",
|
|
10
|
-
Completed: "COMPLETED",
|
|
11
|
-
Rejected: "REJECTED",
|
|
12
|
-
Expired: "EXPIRED",
|
|
13
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./CustomTheraDocument"), exports);
|
|
18
|
-
__exportStar(require("./DocumentStatus"), exports);
|
|
19
|
-
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
20
|
-
__exportStar(require("./DocumentListResponse"), exports);
|
|
21
|
-
__exportStar(require("./UpdateDocumentRequest"), exports);
|
package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.customtheradocumentsApi = void 0;
|
|
30
|
-
exports.customtheradocumentsApi = __importStar(require("./customtheradocumentsApi"));
|
|
31
|
-
__exportStar(require("./customtheradocumentsApi/types"), exports);
|
|
32
|
-
__exportStar(require("./customtheradocumentsApi/client/requests"), exports);
|
package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as core from "../../../../../../../../core";
|
|
5
|
-
import { CustomtheratemplatesApi } from "../resources/customtheratemplatesApi/client/Client";
|
|
6
|
-
export declare namespace Customtheratemplates {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
-
}
|
|
11
|
-
interface RequestOptions {
|
|
12
|
-
timeoutInSeconds?: number;
|
|
13
|
-
maxRetries?: number;
|
|
14
|
-
abortSignal?: AbortSignal;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare class Customtheratemplates {
|
|
18
|
-
protected readonly _options: Customtheratemplates.Options;
|
|
19
|
-
constructor(_options: Customtheratemplates.Options);
|
|
20
|
-
protected _customtheratemplatesApi: CustomtheratemplatesApi | undefined;
|
|
21
|
-
get customtheratemplatesApi(): CustomtheratemplatesApi;
|
|
22
|
-
}
|