rcs-js 1.0.8 → 1.0.10
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/Client.d.ts +10 -126
- package/Client.js +15 -443
- package/README.md +30 -7
- package/api/client/requests/GetRcsFunctionalityRequest.d.ts +13 -0
- package/api/client/requests/index.d.ts +1 -5
- package/api/errors/ForbiddenError.d.ts +7 -0
- package/api/errors/{NotFoundError.js → ForbiddenError.js} +6 -6
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/index.d.ts +1 -0
- package/api/index.js +1 -0
- package/api/resources/company/client/Client.d.ts +96 -0
- package/api/resources/company/client/Client.js +289 -0
- package/api/resources/company/client/index.d.ts +1 -0
- package/api/resources/company/client/index.js +17 -0
- package/{dist/api/client/requests/GetCompanyRequest.d.ts → api/resources/company/client/requests/CompanyGetRequest.d.ts} +1 -1
- package/api/{client/requests/RegisterCompanyRequest.d.ts → resources/company/client/requests/CompanyRegisterRequest.d.ts} +2 -2
- package/{dist/api/client/requests/UpdateCompanyRequest.d.ts → api/resources/company/client/requests/CompanyUpdateRequest.d.ts} +2 -2
- package/api/resources/company/client/requests/index.d.ts +3 -0
- package/api/resources/company/client/requests/index.js +2 -0
- package/api/resources/company/index.d.ts +2 -0
- package/api/resources/company/index.js +18 -0
- package/api/resources/company/types/CompanyRegisterResponse.d.ts +7 -0
- package/api/resources/company/types/CompanyRegisterResponseBrand.d.ts +7 -0
- package/api/resources/company/types/CompanyUpdateResponse.d.ts +7 -0
- package/api/resources/company/types/CompanyUpdateResponseBrand.d.ts +7 -0
- package/api/resources/company/types/index.d.ts +4 -0
- package/api/resources/company/types/index.js +20 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +35 -0
- package/api/resources/send/client/Client.d.ts +86 -0
- package/api/resources/send/client/Client.js +277 -0
- package/api/resources/send/client/index.d.ts +1 -0
- package/api/resources/send/client/index.js +17 -0
- package/api/resources/send/client/requests/Rcs.d.ts +43 -0
- package/api/resources/send/client/requests/SendMmsRequest.d.ts +22 -0
- package/api/resources/send/client/requests/SendSmsRequest.d.ts +19 -0
- package/api/resources/send/client/requests/index.d.ts +3 -0
- package/api/resources/send/client/requests/index.js +2 -0
- package/api/resources/send/index.d.ts +2 -0
- package/api/resources/send/index.js +18 -0
- package/api/resources/send/types/SendMmsResponse.d.ts +9 -0
- package/api/resources/send/types/SendRcsResponse.d.ts +9 -0
- package/api/resources/send/types/SendSmsResponse.d.ts +9 -0
- package/api/resources/send/types/index.d.ts +3 -0
- package/api/resources/send/types/index.js +19 -0
- package/api/types/Action.d.ts +20 -1
- package/api/types/ActionLatLong.d.ts +12 -0
- package/api/types/ActionType.d.ts +15 -0
- package/api/types/ActionType.js +14 -0
- package/api/types/BadRequestErrorBody.d.ts +1 -3
- package/api/types/Card.d.ts +5 -7
- package/api/types/{NotFoundErrorBody.d.ts → ForbiddenErrorBody.d.ts} +2 -2
- package/api/types/InternalServerErrorBody.d.ts +1 -2
- package/api/types/RcsFunctionalities.d.ts +21 -0
- package/api/types/UnauthorizedErrorBody.d.ts +1 -1
- package/api/types/index.d.ts +6 -37
- package/api/types/index.js +6 -37
- package/dist/Client.d.ts +10 -126
- package/dist/Client.js +15 -443
- package/dist/api/client/requests/GetRcsFunctionalityRequest.d.ts +13 -0
- package/dist/api/client/requests/index.d.ts +1 -5
- package/dist/api/errors/ForbiddenError.d.ts +7 -0
- package/dist/api/errors/{NotFoundError.js → ForbiddenError.js} +6 -6
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/resources/company/client/Client.d.ts +96 -0
- package/dist/api/resources/company/client/Client.js +289 -0
- package/dist/api/resources/company/client/index.d.ts +1 -0
- package/dist/api/resources/company/client/index.js +17 -0
- package/{api/client/requests/GetCompanyRequest.d.ts → dist/api/resources/company/client/requests/CompanyGetRequest.d.ts} +1 -1
- package/dist/api/{client/requests/RegisterCompanyRequest.d.ts → resources/company/client/requests/CompanyRegisterRequest.d.ts} +2 -2
- package/{api/client/requests/UpdateCompanyRequest.d.ts → dist/api/resources/company/client/requests/CompanyUpdateRequest.d.ts} +2 -2
- package/dist/api/resources/company/client/requests/index.d.ts +3 -0
- package/dist/api/resources/company/client/requests/index.js +2 -0
- package/dist/api/resources/company/index.d.ts +2 -0
- package/dist/api/resources/company/index.js +18 -0
- package/dist/api/resources/company/types/CompanyRegisterResponse.d.ts +7 -0
- package/dist/api/resources/company/types/CompanyRegisterResponseBrand.d.ts +7 -0
- package/dist/api/resources/company/types/CompanyUpdateResponse.d.ts +7 -0
- package/dist/api/resources/company/types/CompanyUpdateResponseBrand.d.ts +7 -0
- package/dist/api/resources/company/types/index.d.ts +4 -0
- package/dist/api/resources/company/types/index.js +20 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +35 -0
- package/dist/api/resources/send/client/Client.d.ts +86 -0
- package/dist/api/resources/send/client/Client.js +277 -0
- package/dist/api/resources/send/client/index.d.ts +1 -0
- package/dist/api/resources/send/client/index.js +17 -0
- package/dist/api/resources/send/client/requests/Rcs.d.ts +43 -0
- package/dist/api/resources/send/client/requests/SendMmsRequest.d.ts +22 -0
- package/dist/api/resources/send/client/requests/SendSmsRequest.d.ts +19 -0
- package/dist/api/resources/send/client/requests/index.d.ts +3 -0
- package/dist/api/resources/send/client/requests/index.js +2 -0
- package/dist/api/resources/send/index.d.ts +2 -0
- package/dist/api/resources/send/index.js +18 -0
- package/dist/api/resources/send/types/SendMmsResponse.d.ts +9 -0
- package/dist/api/resources/send/types/SendRcsResponse.d.ts +9 -0
- package/dist/api/resources/send/types/SendSmsResponse.d.ts +9 -0
- package/dist/api/resources/send/types/index.d.ts +3 -0
- package/dist/api/resources/send/types/index.js +19 -0
- package/dist/api/types/Action.d.ts +20 -1
- package/dist/api/types/ActionLatLong.d.ts +12 -0
- package/dist/api/types/ActionType.d.ts +15 -0
- package/dist/api/types/ActionType.js +14 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +1 -3
- package/dist/api/types/Card.d.ts +5 -7
- package/dist/api/types/{NotFoundErrorBody.d.ts → ForbiddenErrorBody.d.ts} +2 -2
- package/dist/api/types/InternalServerErrorBody.d.ts +1 -2
- package/dist/api/types/RcsFunctionalities.d.ts +21 -0
- package/dist/api/types/UnauthorizedErrorBody.d.ts +1 -1
- package/dist/api/types/index.d.ts +6 -37
- package/dist/api/types/index.js +6 -37
- package/dist/serialization/index.d.ts +1 -1
- package/dist/serialization/index.js +1 -1
- package/dist/serialization/resources/company/client/get.d.ts +11 -0
- package/dist/serialization/{client/getCompany.js → resources/company/client/get.js} +2 -2
- package/dist/serialization/resources/company/client/index.d.ts +2 -0
- package/{serialization → dist/serialization/resources/company}/client/index.js +2 -2
- package/dist/serialization/resources/company/client/requests/CompanyRegisterRequest.d.ts +19 -0
- package/{serialization/client/requests/RegisterCompanyRequest.js → dist/serialization/resources/company/client/requests/CompanyRegisterRequest.js} +7 -7
- package/dist/serialization/resources/company/client/requests/CompanyUpdateRequest.d.ts +20 -0
- package/dist/serialization/{client/requests/UpdateCompanyRequest.js → resources/company/client/requests/CompanyUpdateRequest.js} +7 -7
- package/dist/serialization/resources/company/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/company/client/requests/index.js +7 -0
- package/dist/serialization/resources/company/index.d.ts +2 -0
- package/dist/serialization/resources/company/index.js +18 -0
- package/dist/serialization/resources/company/types/CompanyRegisterResponse.d.ts +13 -0
- package/dist/serialization/resources/company/types/CompanyRegisterResponse.js +34 -0
- package/dist/serialization/resources/company/types/CompanyRegisterResponseBrand.d.ts +13 -0
- package/dist/serialization/resources/company/types/CompanyRegisterResponseBrand.js +34 -0
- package/dist/serialization/resources/company/types/CompanyUpdateResponse.d.ts +13 -0
- package/dist/serialization/{types/CheckRcsCapabilityResponse.js → resources/company/types/CompanyUpdateResponse.js} +5 -5
- package/dist/serialization/resources/company/types/CompanyUpdateResponseBrand.d.ts +13 -0
- package/dist/serialization/{client/requests/UpdateSettingsRequest.js → resources/company/types/CompanyUpdateResponseBrand.js} +5 -4
- package/dist/serialization/resources/company/types/index.d.ts +4 -0
- package/dist/serialization/resources/company/types/index.js +20 -0
- package/dist/serialization/resources/index.d.ts +6 -0
- package/dist/serialization/resources/index.js +35 -0
- package/dist/serialization/resources/send/client/index.d.ts +1 -0
- package/dist/serialization/resources/send/client/index.js +17 -0
- package/dist/serialization/resources/send/client/requests/Rcs.d.ts +19 -0
- package/dist/serialization/{types/SmsMessage.js → resources/send/client/requests/Rcs.js} +10 -4
- package/dist/serialization/resources/send/client/requests/SendMmsRequest.d.ts +15 -0
- package/dist/serialization/resources/send/client/requests/SendMmsRequest.js +36 -0
- package/dist/serialization/resources/send/client/requests/SendSmsRequest.d.ts +14 -0
- package/{serialization/types/BasicRcsMessage.js → dist/serialization/resources/send/client/requests/SendSmsRequest.js} +5 -3
- package/dist/serialization/resources/send/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/send/client/requests/index.js +9 -0
- package/dist/serialization/resources/send/index.d.ts +2 -0
- package/dist/serialization/resources/send/index.js +18 -0
- package/dist/serialization/resources/send/types/SendMmsResponse.d.ts +13 -0
- package/dist/serialization/resources/send/types/SendMmsResponse.js +34 -0
- package/dist/serialization/resources/send/types/SendRcsResponse.d.ts +13 -0
- package/dist/serialization/resources/send/types/SendRcsResponse.js +34 -0
- package/dist/serialization/resources/send/types/SendSmsResponse.d.ts +13 -0
- package/dist/serialization/resources/send/types/SendSmsResponse.js +34 -0
- package/dist/serialization/resources/send/types/index.d.ts +3 -0
- package/dist/serialization/resources/send/types/index.js +19 -0
- package/dist/serialization/types/Action.d.ts +14 -7
- package/dist/serialization/types/Action.js +13 -6
- package/dist/serialization/types/{LatLng.d.ts → ActionLatLong.d.ts} +4 -4
- package/dist/serialization/types/{NotFoundErrorBody.js → ActionLatLong.js} +4 -3
- package/dist/serialization/types/ActionType.d.ts +10 -0
- package/dist/serialization/types/{CardStyleImageAlignment.js → ActionType.js} +2 -2
- package/dist/serialization/types/BadRequestErrorBody.d.ts +1 -3
- package/dist/serialization/types/BadRequestErrorBody.js +1 -3
- package/dist/serialization/types/Card.d.ts +1 -3
- package/dist/serialization/types/Card.js +1 -3
- package/dist/serialization/types/{NotFoundErrorBody.d.ts → ForbiddenErrorBody.d.ts} +3 -3
- package/dist/serialization/types/{GetAccountNumberResponse.js → ForbiddenErrorBody.js} +3 -3
- package/dist/serialization/types/InternalServerErrorBody.d.ts +1 -2
- package/dist/serialization/types/InternalServerErrorBody.js +1 -2
- package/dist/serialization/types/RcsFunctionalities.d.ts +19 -0
- package/dist/serialization/types/{BadRequestErrorBodyError.js → RcsFunctionalities.js} +10 -7
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +1 -1
- package/dist/serialization/types/UnauthorizedErrorBody.js +1 -1
- package/dist/serialization/types/index.d.ts +6 -37
- package/dist/serialization/types/index.js +6 -37
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +426 -5
- package/serialization/index.d.ts +1 -1
- package/serialization/index.js +1 -1
- package/serialization/resources/company/client/get.d.ts +11 -0
- package/serialization/{client/getCompany.js → resources/company/client/get.js} +2 -2
- package/serialization/resources/company/client/index.d.ts +2 -0
- package/{dist/serialization → serialization/resources/company}/client/index.js +2 -2
- package/serialization/resources/company/client/requests/CompanyRegisterRequest.d.ts +19 -0
- package/{dist/serialization/client/requests/RegisterCompanyRequest.js → serialization/resources/company/client/requests/CompanyRegisterRequest.js} +7 -7
- package/serialization/resources/company/client/requests/CompanyUpdateRequest.d.ts +20 -0
- package/serialization/{client/requests/UpdateCompanyRequest.js → resources/company/client/requests/CompanyUpdateRequest.js} +7 -7
- package/serialization/resources/company/client/requests/index.d.ts +2 -0
- package/serialization/resources/company/client/requests/index.js +7 -0
- package/serialization/resources/company/index.d.ts +2 -0
- package/serialization/resources/company/index.js +18 -0
- package/serialization/resources/company/types/CompanyRegisterResponse.d.ts +13 -0
- package/serialization/resources/company/types/CompanyRegisterResponse.js +34 -0
- package/serialization/resources/company/types/CompanyRegisterResponseBrand.d.ts +13 -0
- package/serialization/resources/company/types/CompanyRegisterResponseBrand.js +34 -0
- package/serialization/resources/company/types/CompanyUpdateResponse.d.ts +13 -0
- package/{dist/serialization/types/Call.js → serialization/resources/company/types/CompanyUpdateResponse.js} +5 -6
- package/serialization/resources/company/types/CompanyUpdateResponseBrand.d.ts +13 -0
- package/serialization/resources/company/types/CompanyUpdateResponseBrand.js +34 -0
- package/serialization/resources/company/types/index.d.ts +4 -0
- package/serialization/resources/company/types/index.js +20 -0
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +35 -0
- package/serialization/resources/send/client/index.d.ts +1 -0
- package/serialization/resources/send/client/index.js +17 -0
- package/serialization/resources/send/client/requests/Rcs.d.ts +19 -0
- package/serialization/{types/SmsMessage.js → resources/send/client/requests/Rcs.js} +10 -4
- package/serialization/resources/send/client/requests/SendMmsRequest.d.ts +15 -0
- package/serialization/resources/send/client/requests/SendMmsRequest.js +36 -0
- package/serialization/resources/send/client/requests/SendSmsRequest.d.ts +14 -0
- package/serialization/resources/send/client/requests/SendSmsRequest.js +35 -0
- package/serialization/resources/send/client/requests/index.d.ts +3 -0
- package/serialization/resources/send/client/requests/index.js +9 -0
- package/serialization/resources/send/index.d.ts +2 -0
- package/serialization/resources/send/index.js +18 -0
- package/serialization/resources/send/types/SendMmsResponse.d.ts +13 -0
- package/serialization/resources/send/types/SendMmsResponse.js +34 -0
- package/serialization/resources/send/types/SendRcsResponse.d.ts +13 -0
- package/serialization/resources/send/types/SendRcsResponse.js +34 -0
- package/serialization/resources/send/types/SendSmsResponse.d.ts +13 -0
- package/serialization/resources/send/types/SendSmsResponse.js +34 -0
- package/serialization/resources/send/types/index.d.ts +3 -0
- package/serialization/resources/send/types/index.js +19 -0
- package/serialization/types/Action.d.ts +14 -7
- package/serialization/types/Action.js +13 -6
- package/{dist/serialization/types/Call.d.ts → serialization/types/ActionLatLong.d.ts} +4 -5
- package/{dist/serialization/types/BasicRcsMessage.js → serialization/types/ActionLatLong.js} +4 -3
- package/serialization/types/ActionType.d.ts +10 -0
- package/{dist/serialization/types/CardStyleMediaHeight.js → serialization/types/ActionType.js} +2 -2
- package/serialization/types/BadRequestErrorBody.d.ts +1 -3
- package/serialization/types/BadRequestErrorBody.js +1 -3
- package/serialization/types/Card.d.ts +1 -3
- package/serialization/types/Card.js +1 -3
- package/{dist/serialization/types/BasicRcsMessage.d.ts → serialization/types/ForbiddenErrorBody.d.ts} +3 -3
- package/{dist/serialization/types/LatLng.js → serialization/types/ForbiddenErrorBody.js} +3 -4
- package/serialization/types/InternalServerErrorBody.d.ts +1 -2
- package/serialization/types/InternalServerErrorBody.js +1 -2
- package/serialization/types/RcsFunctionalities.d.ts +19 -0
- package/{dist/serialization/types/BasicRcs.js → serialization/types/RcsFunctionalities.js} +10 -9
- package/serialization/types/UnauthorizedErrorBody.d.ts +1 -1
- package/serialization/types/UnauthorizedErrorBody.js +1 -1
- package/serialization/types/index.d.ts +6 -37
- package/serialization/types/index.js +6 -37
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/client/requests/CheckRcsCapabilityRequest.d.ts +0 -21
- package/api/client/requests/UpdateSettingsRequest.d.ts +0 -13
- package/api/errors/NotFoundError.d.ts +0 -8
- package/api/types/BadRequestErrorBodyError.d.ts +0 -10
- package/api/types/BasicRcs.d.ts +0 -13
- package/api/types/BasicRcsMessage.d.ts +0 -10
- package/api/types/Call.d.ts +0 -11
- package/api/types/CardRcs.d.ts +0 -12
- package/api/types/CardRcsMessage.d.ts +0 -13
- package/api/types/CardStyle.d.ts +0 -16
- package/api/types/CardStyleImageAlignment.d.ts +0 -11
- package/api/types/CardStyleImageAlignment.js +0 -10
- package/api/types/CardStyleMediaHeight.d.ts +0 -12
- package/api/types/CardStyleMediaHeight.js +0 -11
- package/api/types/CardStyleOrientation.d.ts +0 -11
- package/api/types/CardStyleOrientation.js +0 -10
- package/api/types/CardStyleWidth.d.ts +0 -11
- package/api/types/CardStyleWidth.js +0 -10
- package/api/types/CarouselRcs.d.ts +0 -12
- package/api/types/CarouselRcsMessage.d.ts +0 -13
- package/api/types/CheckRcsCapabilityResponse.d.ts +0 -7
- package/api/types/Event.d.ts +0 -17
- package/api/types/GetAccountNumberResponse.d.ts +0 -7
- package/api/types/LatLng.d.ts +0 -12
- package/api/types/MediaRcs.d.ts +0 -12
- package/api/types/MediaRcsMessage.d.ts +0 -14
- package/api/types/MediaType.d.ts +0 -14
- package/api/types/MediaType.js +0 -13
- package/api/types/PhoneNumber.d.ts +0 -7
- package/api/types/Postback.d.ts +0 -13
- package/api/types/RegisterCompanyResponse.d.ts +0 -8
- package/api/types/RegisterCompanyResponseBrand.d.ts +0 -7
- package/api/types/SendMessageRequest.d.ts +0 -5
- package/api/types/SendMessageResponse.d.ts +0 -7
- package/api/types/ShareLocation.d.ts +0 -9
- package/api/types/Sms.d.ts +0 -12
- package/api/types/SmsMessage.d.ts +0 -12
- package/api/types/UpdateCompanyResponse.d.ts +0 -8
- package/api/types/UpdateCompanyResponseBrand.d.ts +0 -7
- package/api/types/UpdateSettingsResponse.d.ts +0 -6
- package/api/types/Url.d.ts +0 -11
- package/api/types/ViewLocation.d.ts +0 -13
- package/api/types/ViewLocation.js +0 -5
- package/dist/api/client/requests/CheckRcsCapabilityRequest.d.ts +0 -21
- package/dist/api/client/requests/CheckRcsCapabilityRequest.js +0 -5
- package/dist/api/client/requests/GetCompanyRequest.js +0 -5
- package/dist/api/client/requests/RegisterCompanyRequest.js +0 -5
- package/dist/api/client/requests/UpdateCompanyRequest.js +0 -5
- package/dist/api/client/requests/UpdateSettingsRequest.d.ts +0 -13
- package/dist/api/client/requests/UpdateSettingsRequest.js +0 -5
- package/dist/api/errors/NotFoundError.d.ts +0 -8
- package/dist/api/types/BadRequestErrorBodyError.d.ts +0 -10
- package/dist/api/types/BadRequestErrorBodyError.js +0 -5
- package/dist/api/types/BasicRcs.d.ts +0 -13
- package/dist/api/types/BasicRcs.js +0 -5
- package/dist/api/types/BasicRcsMessage.d.ts +0 -10
- package/dist/api/types/BasicRcsMessage.js +0 -5
- package/dist/api/types/Call.d.ts +0 -11
- package/dist/api/types/Call.js +0 -5
- package/dist/api/types/CardRcs.d.ts +0 -12
- package/dist/api/types/CardRcs.js +0 -5
- package/dist/api/types/CardRcsMessage.d.ts +0 -13
- package/dist/api/types/CardRcsMessage.js +0 -5
- package/dist/api/types/CardStyle.d.ts +0 -16
- package/dist/api/types/CardStyle.js +0 -5
- package/dist/api/types/CardStyleImageAlignment.d.ts +0 -11
- package/dist/api/types/CardStyleImageAlignment.js +0 -10
- package/dist/api/types/CardStyleMediaHeight.d.ts +0 -12
- package/dist/api/types/CardStyleMediaHeight.js +0 -11
- package/dist/api/types/CardStyleOrientation.d.ts +0 -11
- package/dist/api/types/CardStyleOrientation.js +0 -10
- package/dist/api/types/CardStyleWidth.d.ts +0 -11
- package/dist/api/types/CardStyleWidth.js +0 -10
- package/dist/api/types/CarouselRcs.d.ts +0 -12
- package/dist/api/types/CarouselRcs.js +0 -5
- package/dist/api/types/CarouselRcsMessage.d.ts +0 -13
- package/dist/api/types/CarouselRcsMessage.js +0 -5
- package/dist/api/types/CheckRcsCapabilityResponse.d.ts +0 -7
- package/dist/api/types/CheckRcsCapabilityResponse.js +0 -5
- package/dist/api/types/Event.d.ts +0 -17
- package/dist/api/types/Event.js +0 -5
- package/dist/api/types/GetAccountNumberResponse.d.ts +0 -7
- package/dist/api/types/GetAccountNumberResponse.js +0 -5
- package/dist/api/types/LatLng.d.ts +0 -12
- package/dist/api/types/LatLng.js +0 -5
- package/dist/api/types/MediaRcs.d.ts +0 -12
- package/dist/api/types/MediaRcs.js +0 -5
- package/dist/api/types/MediaRcsMessage.d.ts +0 -14
- package/dist/api/types/MediaRcsMessage.js +0 -5
- package/dist/api/types/MediaType.d.ts +0 -14
- package/dist/api/types/MediaType.js +0 -13
- package/dist/api/types/NotFoundErrorBody.js +0 -5
- package/dist/api/types/PhoneNumber.d.ts +0 -7
- package/dist/api/types/PhoneNumber.js +0 -5
- package/dist/api/types/Postback.d.ts +0 -13
- package/dist/api/types/Postback.js +0 -5
- package/dist/api/types/RegisterCompanyResponse.d.ts +0 -8
- package/dist/api/types/RegisterCompanyResponse.js +0 -5
- package/dist/api/types/RegisterCompanyResponseBrand.d.ts +0 -7
- package/dist/api/types/RegisterCompanyResponseBrand.js +0 -5
- package/dist/api/types/SendMessageRequest.d.ts +0 -5
- package/dist/api/types/SendMessageRequest.js +0 -5
- package/dist/api/types/SendMessageResponse.d.ts +0 -7
- package/dist/api/types/SendMessageResponse.js +0 -5
- package/dist/api/types/ShareLocation.d.ts +0 -9
- package/dist/api/types/ShareLocation.js +0 -5
- package/dist/api/types/Sms.d.ts +0 -12
- package/dist/api/types/Sms.js +0 -5
- package/dist/api/types/SmsMessage.d.ts +0 -12
- package/dist/api/types/SmsMessage.js +0 -5
- package/dist/api/types/UpdateCompanyResponse.d.ts +0 -8
- package/dist/api/types/UpdateCompanyResponse.js +0 -5
- package/dist/api/types/UpdateCompanyResponseBrand.d.ts +0 -7
- package/dist/api/types/UpdateCompanyResponseBrand.js +0 -5
- package/dist/api/types/UpdateSettingsResponse.d.ts +0 -6
- package/dist/api/types/UpdateSettingsResponse.js +0 -5
- package/dist/api/types/Url.d.ts +0 -11
- package/dist/api/types/Url.js +0 -5
- package/dist/api/types/ViewLocation.d.ts +0 -13
- package/dist/api/types/ViewLocation.js +0 -5
- package/dist/serialization/client/getCompany.d.ts +0 -11
- package/dist/serialization/client/index.d.ts +0 -2
- package/dist/serialization/client/requests/RegisterCompanyRequest.d.ts +0 -19
- package/dist/serialization/client/requests/UpdateCompanyRequest.d.ts +0 -20
- package/dist/serialization/client/requests/UpdateSettingsRequest.d.ts +0 -12
- package/dist/serialization/client/requests/index.d.ts +0 -3
- package/dist/serialization/client/requests/index.js +0 -9
- package/dist/serialization/types/BadRequestErrorBodyError.d.ts +0 -16
- package/dist/serialization/types/BasicRcs.d.ts +0 -18
- package/dist/serialization/types/CardRcs.d.ts +0 -16
- package/dist/serialization/types/CardRcs.js +0 -37
- package/dist/serialization/types/CardRcsMessage.d.ts +0 -15
- package/dist/serialization/types/CardRcsMessage.js +0 -36
- package/dist/serialization/types/CardStyle.d.ts +0 -20
- package/dist/serialization/types/CardStyle.js +0 -41
- package/dist/serialization/types/CardStyleImageAlignment.d.ts +0 -10
- package/dist/serialization/types/CardStyleMediaHeight.d.ts +0 -10
- package/dist/serialization/types/CardStyleOrientation.d.ts +0 -10
- package/dist/serialization/types/CardStyleOrientation.js +0 -31
- package/dist/serialization/types/CardStyleWidth.d.ts +0 -10
- package/dist/serialization/types/CardStyleWidth.js +0 -31
- package/dist/serialization/types/CarouselRcs.d.ts +0 -16
- package/dist/serialization/types/CarouselRcs.js +0 -37
- package/dist/serialization/types/CarouselRcsMessage.d.ts +0 -15
- package/dist/serialization/types/CarouselRcsMessage.js +0 -36
- package/dist/serialization/types/CheckRcsCapabilityResponse.d.ts +0 -13
- package/dist/serialization/types/Event.d.ts +0 -17
- package/dist/serialization/types/Event.js +0 -38
- package/dist/serialization/types/GetAccountNumberResponse.d.ts +0 -12
- package/dist/serialization/types/MediaRcs.d.ts +0 -16
- package/dist/serialization/types/MediaRcs.js +0 -37
- package/dist/serialization/types/MediaRcsMessage.d.ts +0 -16
- package/dist/serialization/types/MediaRcsMessage.js +0 -37
- package/dist/serialization/types/MediaType.d.ts +0 -10
- package/dist/serialization/types/MediaType.js +0 -31
- package/dist/serialization/types/PhoneNumber.d.ts +0 -10
- package/dist/serialization/types/PhoneNumber.js +0 -31
- package/dist/serialization/types/Postback.d.ts +0 -15
- package/dist/serialization/types/Postback.js +0 -36
- package/dist/serialization/types/RegisterCompanyResponse.d.ts +0 -14
- package/dist/serialization/types/RegisterCompanyResponse.js +0 -35
- package/dist/serialization/types/RegisterCompanyResponseBrand.d.ts +0 -13
- package/dist/serialization/types/RegisterCompanyResponseBrand.js +0 -34
- package/dist/serialization/types/SendMessageRequest.d.ts +0 -15
- package/dist/serialization/types/SendMessageRequest.js +0 -36
- package/dist/serialization/types/SendMessageResponse.d.ts +0 -12
- package/dist/serialization/types/SendMessageResponse.js +0 -33
- package/dist/serialization/types/ShareLocation.d.ts +0 -13
- package/dist/serialization/types/ShareLocation.js +0 -34
- package/dist/serialization/types/Sms.d.ts +0 -16
- package/dist/serialization/types/Sms.js +0 -37
- package/dist/serialization/types/SmsMessage.d.ts +0 -13
- package/dist/serialization/types/UpdateCompanyResponse.d.ts +0 -14
- package/dist/serialization/types/UpdateCompanyResponse.js +0 -35
- package/dist/serialization/types/UpdateCompanyResponseBrand.d.ts +0 -13
- package/dist/serialization/types/UpdateCompanyResponseBrand.js +0 -34
- package/dist/serialization/types/UpdateSettingsResponse.d.ts +0 -12
- package/dist/serialization/types/UpdateSettingsResponse.js +0 -33
- package/dist/serialization/types/Url.d.ts +0 -14
- package/dist/serialization/types/Url.js +0 -35
- package/dist/serialization/types/ViewLocation.d.ts +0 -16
- package/dist/serialization/types/ViewLocation.js +0 -37
- package/serialization/client/getCompany.d.ts +0 -11
- package/serialization/client/index.d.ts +0 -2
- package/serialization/client/requests/RegisterCompanyRequest.d.ts +0 -19
- package/serialization/client/requests/UpdateCompanyRequest.d.ts +0 -20
- package/serialization/client/requests/UpdateSettingsRequest.d.ts +0 -12
- package/serialization/client/requests/UpdateSettingsRequest.js +0 -33
- package/serialization/client/requests/index.d.ts +0 -3
- package/serialization/client/requests/index.js +0 -9
- package/serialization/types/BadRequestErrorBodyError.d.ts +0 -16
- package/serialization/types/BadRequestErrorBodyError.js +0 -37
- package/serialization/types/BasicRcs.d.ts +0 -18
- package/serialization/types/BasicRcs.js +0 -39
- package/serialization/types/BasicRcsMessage.d.ts +0 -12
- package/serialization/types/Call.d.ts +0 -14
- package/serialization/types/Call.js +0 -35
- package/serialization/types/CardRcs.d.ts +0 -16
- package/serialization/types/CardRcs.js +0 -37
- package/serialization/types/CardRcsMessage.d.ts +0 -15
- package/serialization/types/CardRcsMessage.js +0 -36
- package/serialization/types/CardStyle.d.ts +0 -20
- package/serialization/types/CardStyle.js +0 -41
- package/serialization/types/CardStyleImageAlignment.d.ts +0 -10
- package/serialization/types/CardStyleImageAlignment.js +0 -31
- package/serialization/types/CardStyleMediaHeight.d.ts +0 -10
- package/serialization/types/CardStyleMediaHeight.js +0 -31
- package/serialization/types/CardStyleOrientation.d.ts +0 -10
- package/serialization/types/CardStyleOrientation.js +0 -31
- package/serialization/types/CardStyleWidth.d.ts +0 -10
- package/serialization/types/CardStyleWidth.js +0 -31
- package/serialization/types/CarouselRcs.d.ts +0 -16
- package/serialization/types/CarouselRcs.js +0 -37
- package/serialization/types/CarouselRcsMessage.d.ts +0 -15
- package/serialization/types/CarouselRcsMessage.js +0 -36
- package/serialization/types/CheckRcsCapabilityResponse.d.ts +0 -13
- package/serialization/types/CheckRcsCapabilityResponse.js +0 -34
- package/serialization/types/Event.d.ts +0 -17
- package/serialization/types/Event.js +0 -38
- package/serialization/types/GetAccountNumberResponse.d.ts +0 -12
- package/serialization/types/GetAccountNumberResponse.js +0 -33
- package/serialization/types/LatLng.d.ts +0 -13
- package/serialization/types/LatLng.js +0 -34
- package/serialization/types/MediaRcs.d.ts +0 -16
- package/serialization/types/MediaRcs.js +0 -37
- package/serialization/types/MediaRcsMessage.d.ts +0 -16
- package/serialization/types/MediaRcsMessage.js +0 -37
- package/serialization/types/MediaType.d.ts +0 -10
- package/serialization/types/MediaType.js +0 -31
- package/serialization/types/NotFoundErrorBody.d.ts +0 -12
- package/serialization/types/NotFoundErrorBody.js +0 -33
- package/serialization/types/PhoneNumber.d.ts +0 -10
- package/serialization/types/PhoneNumber.js +0 -31
- package/serialization/types/Postback.d.ts +0 -15
- package/serialization/types/Postback.js +0 -36
- package/serialization/types/RegisterCompanyResponse.d.ts +0 -14
- package/serialization/types/RegisterCompanyResponse.js +0 -35
- package/serialization/types/RegisterCompanyResponseBrand.d.ts +0 -13
- package/serialization/types/RegisterCompanyResponseBrand.js +0 -34
- package/serialization/types/SendMessageRequest.d.ts +0 -15
- package/serialization/types/SendMessageRequest.js +0 -36
- package/serialization/types/SendMessageResponse.d.ts +0 -12
- package/serialization/types/SendMessageResponse.js +0 -33
- package/serialization/types/ShareLocation.d.ts +0 -13
- package/serialization/types/ShareLocation.js +0 -34
- package/serialization/types/Sms.d.ts +0 -16
- package/serialization/types/Sms.js +0 -37
- package/serialization/types/SmsMessage.d.ts +0 -13
- package/serialization/types/UpdateCompanyResponse.d.ts +0 -14
- package/serialization/types/UpdateCompanyResponse.js +0 -35
- package/serialization/types/UpdateCompanyResponseBrand.d.ts +0 -13
- package/serialization/types/UpdateCompanyResponseBrand.js +0 -34
- package/serialization/types/UpdateSettingsResponse.d.ts +0 -12
- package/serialization/types/UpdateSettingsResponse.js +0 -33
- package/serialization/types/Url.d.ts +0 -14
- package/serialization/types/Url.js +0 -35
- package/serialization/types/ViewLocation.d.ts +0 -16
- package/serialization/types/ViewLocation.js +0 -37
- /package/api/client/requests/{CheckRcsCapabilityRequest.js → GetRcsFunctionalityRequest.js} +0 -0
- /package/api/{client/requests/GetCompanyRequest.js → resources/company/client/requests/CompanyGetRequest.js} +0 -0
- /package/api/{client/requests/RegisterCompanyRequest.js → resources/company/client/requests/CompanyRegisterRequest.js} +0 -0
- /package/api/{client/requests/UpdateCompanyRequest.js → resources/company/client/requests/CompanyUpdateRequest.js} +0 -0
- /package/api/{client/requests/UpdateSettingsRequest.js → resources/company/types/CompanyRegisterResponse.js} +0 -0
- /package/api/{types/BadRequestErrorBodyError.js → resources/company/types/CompanyRegisterResponseBrand.js} +0 -0
- /package/api/{types/BasicRcs.js → resources/company/types/CompanyUpdateResponse.js} +0 -0
- /package/api/{types/BasicRcsMessage.js → resources/company/types/CompanyUpdateResponseBrand.js} +0 -0
- /package/api/{types/Call.js → resources/send/client/requests/Rcs.js} +0 -0
- /package/api/{types/CardRcs.js → resources/send/client/requests/SendMmsRequest.js} +0 -0
- /package/api/{types/CardRcsMessage.js → resources/send/client/requests/SendSmsRequest.js} +0 -0
- /package/api/{types/CardStyle.js → resources/send/types/SendMmsResponse.js} +0 -0
- /package/api/{types/CarouselRcs.js → resources/send/types/SendRcsResponse.js} +0 -0
- /package/api/{types/CarouselRcsMessage.js → resources/send/types/SendSmsResponse.js} +0 -0
- /package/api/types/{CheckRcsCapabilityResponse.js → ActionLatLong.js} +0 -0
- /package/api/types/{Event.js → ForbiddenErrorBody.js} +0 -0
- /package/api/types/{GetAccountNumberResponse.js → RcsFunctionalities.js} +0 -0
- /package/{api/types/LatLng.js → dist/api/client/requests/GetRcsFunctionalityRequest.js} +0 -0
- /package/{api/types/MediaRcs.js → dist/api/resources/company/client/requests/CompanyGetRequest.js} +0 -0
- /package/{api/types/MediaRcsMessage.js → dist/api/resources/company/client/requests/CompanyRegisterRequest.js} +0 -0
- /package/{api/types/NotFoundErrorBody.js → dist/api/resources/company/client/requests/CompanyUpdateRequest.js} +0 -0
- /package/{api/types/PhoneNumber.js → dist/api/resources/company/types/CompanyRegisterResponse.js} +0 -0
- /package/{api/types/Postback.js → dist/api/resources/company/types/CompanyRegisterResponseBrand.js} +0 -0
- /package/{api/types/RegisterCompanyResponse.js → dist/api/resources/company/types/CompanyUpdateResponse.js} +0 -0
- /package/{api/types/RegisterCompanyResponseBrand.js → dist/api/resources/company/types/CompanyUpdateResponseBrand.js} +0 -0
- /package/{api/types/SendMessageRequest.js → dist/api/resources/send/client/requests/Rcs.js} +0 -0
- /package/{api/types/SendMessageResponse.js → dist/api/resources/send/client/requests/SendMmsRequest.js} +0 -0
- /package/{api/types/ShareLocation.js → dist/api/resources/send/client/requests/SendSmsRequest.js} +0 -0
- /package/{api/types/Sms.js → dist/api/resources/send/types/SendMmsResponse.js} +0 -0
- /package/{api/types/SmsMessage.js → dist/api/resources/send/types/SendRcsResponse.js} +0 -0
- /package/{api/types/UpdateCompanyResponse.js → dist/api/resources/send/types/SendSmsResponse.js} +0 -0
- /package/{api/types/UpdateCompanyResponseBrand.js → dist/api/types/ActionLatLong.js} +0 -0
- /package/{api/types/UpdateSettingsResponse.js → dist/api/types/ForbiddenErrorBody.js} +0 -0
- /package/{api/types/Url.js → dist/api/types/RcsFunctionalities.js} +0 -0
package/README.md
CHANGED
|
@@ -19,8 +19,31 @@ Instantiate and use the client with the following:
|
|
|
19
19
|
import { PinnacleClient } from "rcs-js";
|
|
20
20
|
|
|
21
21
|
const client = new PinnacleClient({ apiKey: "YOUR_API_KEY" });
|
|
22
|
-
await client.
|
|
23
|
-
|
|
22
|
+
await client.company.register({
|
|
23
|
+
company: {
|
|
24
|
+
name: "name",
|
|
25
|
+
address: "address",
|
|
26
|
+
ein: "ein",
|
|
27
|
+
description: "description",
|
|
28
|
+
brandColor: "brandColor",
|
|
29
|
+
logoUrl: "logoUrl",
|
|
30
|
+
heroUrl: "heroUrl",
|
|
31
|
+
},
|
|
32
|
+
companyContact: {
|
|
33
|
+
primaryWebsiteUrl: "primaryWebsiteUrl",
|
|
34
|
+
primaryWebsiteLabel: "primaryWebsiteLabel",
|
|
35
|
+
primaryPhone: "primaryPhone",
|
|
36
|
+
primaryPhoneLabel: "primaryPhoneLabel",
|
|
37
|
+
primaryEmail: "primaryEmail",
|
|
38
|
+
primaryEmailLabel: "primaryEmailLabel",
|
|
39
|
+
privacyPolicyUrl: "privacyPolicyUrl",
|
|
40
|
+
tosUrl: "tosUrl",
|
|
41
|
+
},
|
|
42
|
+
pointOfContact: {
|
|
43
|
+
pocName: "pocName",
|
|
44
|
+
pocTitle: "pocTitle",
|
|
45
|
+
pocEmail: "pocEmail",
|
|
46
|
+
},
|
|
24
47
|
});
|
|
25
48
|
```
|
|
26
49
|
|
|
@@ -32,7 +55,7 @@ following namespace:
|
|
|
32
55
|
```typescript
|
|
33
56
|
import { Pinnacle } from "rcs-js";
|
|
34
57
|
|
|
35
|
-
const request: Pinnacle.
|
|
58
|
+
const request: Pinnacle.CompanyGetRequest = {
|
|
36
59
|
...
|
|
37
60
|
};
|
|
38
61
|
```
|
|
@@ -46,7 +69,7 @@ will be thrown.
|
|
|
46
69
|
import { PinnacleError } from "rcs-js";
|
|
47
70
|
|
|
48
71
|
try {
|
|
49
|
-
await client.
|
|
72
|
+
await client.company.register(...);
|
|
50
73
|
} catch (err) {
|
|
51
74
|
if (err instanceof PinnacleError) {
|
|
52
75
|
console.log(err.statusCode);
|
|
@@ -73,7 +96,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
|
73
96
|
Use the `maxRetries` request option to configure this behavior.
|
|
74
97
|
|
|
75
98
|
```typescript
|
|
76
|
-
const response = await client.
|
|
99
|
+
const response = await client.company.register(..., {
|
|
77
100
|
maxRetries: 0 // override maxRetries at the request level
|
|
78
101
|
});
|
|
79
102
|
```
|
|
@@ -83,7 +106,7 @@ const response = await client.updateSettings(..., {
|
|
|
83
106
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
84
107
|
|
|
85
108
|
```typescript
|
|
86
|
-
const response = await client.
|
|
109
|
+
const response = await client.company.register(..., {
|
|
87
110
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
88
111
|
});
|
|
89
112
|
```
|
|
@@ -94,7 +117,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
94
117
|
|
|
95
118
|
```typescript
|
|
96
119
|
const controller = new AbortController();
|
|
97
|
-
const response = await client.
|
|
120
|
+
const response = await client.company.register(..., {
|
|
98
121
|
abortSignal: controller.signal
|
|
99
122
|
});
|
|
100
123
|
controller.abort(); // aborts the request
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface GetRcsFunctionalityRequest {
|
|
9
|
+
/**
|
|
10
|
+
* The phone number to check for RCS functionality. Should be in E.164 format (i.e. +12345678901).
|
|
11
|
+
*/
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type UpdateSettingsRequest } from "./UpdateSettingsRequest";
|
|
3
|
-
export { type GetCompanyRequest } from "./GetCompanyRequest";
|
|
4
|
-
export { type RegisterCompanyRequest } from "./RegisterCompanyRequest";
|
|
5
|
-
export { type UpdateCompanyRequest } from "./UpdateCompanyRequest";
|
|
1
|
+
export { type GetRcsFunctionalityRequest } from "./GetRcsFunctionalityRequest";
|
|
@@ -26,16 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ForbiddenError = void 0;
|
|
30
30
|
const errors = __importStar(require("../../errors/index"));
|
|
31
|
-
class
|
|
31
|
+
class ForbiddenError extends errors.PinnacleError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
34
|
-
message: "
|
|
35
|
-
statusCode:
|
|
34
|
+
message: "ForbiddenError",
|
|
35
|
+
statusCode: 403,
|
|
36
36
|
body: body,
|
|
37
37
|
});
|
|
38
|
-
Object.setPrototypeOf(this,
|
|
38
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.
|
|
41
|
+
exports.ForbiddenError = ForbiddenError;
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerError"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./ForbiddenError"), exports);
|
package/api/index.d.ts
CHANGED
package/api/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
17
18
|
__exportStar(require("./types"), exports);
|
|
18
19
|
__exportStar(require("./errors"), exports);
|
|
19
20
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Pinnacle from "../../../index";
|
|
7
|
+
export declare namespace Company {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.PinnacleEnvironment | string>;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class Company {
|
|
22
|
+
protected readonly _options: Company.Options;
|
|
23
|
+
constructor(_options: Company.Options);
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve the company's information (i.e. approval status, company name, etc.). Search by company ID or company name.
|
|
26
|
+
*
|
|
27
|
+
* @param {Pinnacle.CompanyGetRequest} request
|
|
28
|
+
* @param {Company.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
31
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
32
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.company.get()
|
|
36
|
+
*/
|
|
37
|
+
get(request?: Pinnacle.CompanyGetRequest, requestOptions?: Company.RequestOptions): Promise<Pinnacle.Company[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Register a company for RCS with the Pinnacle platform
|
|
40
|
+
*
|
|
41
|
+
* @param {Pinnacle.CompanyRegisterRequest} request
|
|
42
|
+
* @param {Company.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
+
*
|
|
44
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
45
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
46
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.company.register({
|
|
50
|
+
* company: {
|
|
51
|
+
* name: "name",
|
|
52
|
+
* address: "address",
|
|
53
|
+
* ein: "ein",
|
|
54
|
+
* description: "description",
|
|
55
|
+
* brandColor: "brandColor",
|
|
56
|
+
* logoUrl: "logoUrl",
|
|
57
|
+
* heroUrl: "heroUrl"
|
|
58
|
+
* },
|
|
59
|
+
* companyContact: {
|
|
60
|
+
* primaryWebsiteUrl: "primaryWebsiteUrl",
|
|
61
|
+
* primaryWebsiteLabel: "primaryWebsiteLabel",
|
|
62
|
+
* primaryPhone: "primaryPhone",
|
|
63
|
+
* primaryPhoneLabel: "primaryPhoneLabel",
|
|
64
|
+
* primaryEmail: "primaryEmail",
|
|
65
|
+
* primaryEmailLabel: "primaryEmailLabel",
|
|
66
|
+
* privacyPolicyUrl: "privacyPolicyUrl",
|
|
67
|
+
* tosUrl: "tosUrl"
|
|
68
|
+
* },
|
|
69
|
+
* pointOfContact: {
|
|
70
|
+
* pocName: "pocName",
|
|
71
|
+
* pocTitle: "pocTitle",
|
|
72
|
+
* pocEmail: "pocEmail"
|
|
73
|
+
* }
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
register(request: Pinnacle.CompanyRegisterRequest, requestOptions?: Company.RequestOptions): Promise<Pinnacle.CompanyRegisterResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Update a company on the Pinnacle platform
|
|
79
|
+
*
|
|
80
|
+
* @param {Pinnacle.CompanyUpdateRequest} request
|
|
81
|
+
* @param {Company.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
84
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
85
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.company.update({
|
|
89
|
+
* companyId: "companyId"
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
update(request: Pinnacle.CompanyUpdateRequest, requestOptions?: Company.RequestOptions): Promise<Pinnacle.CompanyUpdateResponse>;
|
|
93
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
94
|
+
"PINNACLE-API-Key": string;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,289 @@
|
|
|
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.Company = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const Pinnacle = __importStar(require("../../../index"));
|
|
45
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
|
+
class Company {
|
|
49
|
+
constructor(_options) {
|
|
50
|
+
this._options = _options;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve the company's information (i.e. approval status, company name, etc.). Search by company ID or company name.
|
|
54
|
+
*
|
|
55
|
+
* @param {Pinnacle.CompanyGetRequest} request
|
|
56
|
+
* @param {Company.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
59
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
60
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.company.get()
|
|
64
|
+
*/
|
|
65
|
+
get(request = {}, requestOptions) {
|
|
66
|
+
var _a;
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const { companyId, companyName } = request;
|
|
69
|
+
const _queryParams = {};
|
|
70
|
+
if (companyId != null) {
|
|
71
|
+
_queryParams["companyId"] = companyId.toString();
|
|
72
|
+
}
|
|
73
|
+
if (companyName != null) {
|
|
74
|
+
_queryParams["companyName"] = companyName;
|
|
75
|
+
}
|
|
76
|
+
const _response = yield core.fetcher({
|
|
77
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company"),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "rcs-js/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
|
+
contentType: "application/json",
|
|
81
|
+
queryParameters: _queryParams,
|
|
82
|
+
requestType: "json",
|
|
83
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
84
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
85
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
|
+
});
|
|
87
|
+
if (_response.ok) {
|
|
88
|
+
return serializers.company.get.Response.parseOrThrow(_response.body, {
|
|
89
|
+
unrecognizedObjectKeys: "passthrough",
|
|
90
|
+
allowUnrecognizedUnionMembers: true,
|
|
91
|
+
allowUnrecognizedEnumValues: true,
|
|
92
|
+
breadcrumbsPrefix: ["response"],
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 400:
|
|
98
|
+
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
99
|
+
case 401:
|
|
100
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
101
|
+
case 500:
|
|
102
|
+
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
103
|
+
default:
|
|
104
|
+
throw new errors.PinnacleError({
|
|
105
|
+
statusCode: _response.error.statusCode,
|
|
106
|
+
body: _response.error.body,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
switch (_response.error.reason) {
|
|
111
|
+
case "non-json":
|
|
112
|
+
throw new errors.PinnacleError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.rawBody,
|
|
115
|
+
});
|
|
116
|
+
case "timeout":
|
|
117
|
+
throw new errors.PinnacleTimeoutError();
|
|
118
|
+
case "unknown":
|
|
119
|
+
throw new errors.PinnacleError({
|
|
120
|
+
message: _response.error.errorMessage,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Register a company for RCS with the Pinnacle platform
|
|
127
|
+
*
|
|
128
|
+
* @param {Pinnacle.CompanyRegisterRequest} request
|
|
129
|
+
* @param {Company.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
132
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
133
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* await client.company.register({
|
|
137
|
+
* company: {
|
|
138
|
+
* name: "name",
|
|
139
|
+
* address: "address",
|
|
140
|
+
* ein: "ein",
|
|
141
|
+
* description: "description",
|
|
142
|
+
* brandColor: "brandColor",
|
|
143
|
+
* logoUrl: "logoUrl",
|
|
144
|
+
* heroUrl: "heroUrl"
|
|
145
|
+
* },
|
|
146
|
+
* companyContact: {
|
|
147
|
+
* primaryWebsiteUrl: "primaryWebsiteUrl",
|
|
148
|
+
* primaryWebsiteLabel: "primaryWebsiteLabel",
|
|
149
|
+
* primaryPhone: "primaryPhone",
|
|
150
|
+
* primaryPhoneLabel: "primaryPhoneLabel",
|
|
151
|
+
* primaryEmail: "primaryEmail",
|
|
152
|
+
* primaryEmailLabel: "primaryEmailLabel",
|
|
153
|
+
* privacyPolicyUrl: "privacyPolicyUrl",
|
|
154
|
+
* tosUrl: "tosUrl"
|
|
155
|
+
* },
|
|
156
|
+
* pointOfContact: {
|
|
157
|
+
* pocName: "pocName",
|
|
158
|
+
* pocTitle: "pocTitle",
|
|
159
|
+
* pocEmail: "pocEmail"
|
|
160
|
+
* }
|
|
161
|
+
* })
|
|
162
|
+
*/
|
|
163
|
+
register(request, requestOptions) {
|
|
164
|
+
var _a;
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
const _response = yield core.fetcher({
|
|
167
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company/register"),
|
|
168
|
+
method: "POST",
|
|
169
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "rcs-js/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
170
|
+
contentType: "application/json",
|
|
171
|
+
requestType: "json",
|
|
172
|
+
body: serializers.CompanyRegisterRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
173
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
174
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
175
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
176
|
+
});
|
|
177
|
+
if (_response.ok) {
|
|
178
|
+
return serializers.CompanyRegisterResponse.parseOrThrow(_response.body, {
|
|
179
|
+
unrecognizedObjectKeys: "passthrough",
|
|
180
|
+
allowUnrecognizedUnionMembers: true,
|
|
181
|
+
allowUnrecognizedEnumValues: true,
|
|
182
|
+
breadcrumbsPrefix: ["response"],
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
if (_response.error.reason === "status-code") {
|
|
186
|
+
switch (_response.error.statusCode) {
|
|
187
|
+
case 400:
|
|
188
|
+
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
189
|
+
case 401:
|
|
190
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
191
|
+
case 500:
|
|
192
|
+
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
193
|
+
default:
|
|
194
|
+
throw new errors.PinnacleError({
|
|
195
|
+
statusCode: _response.error.statusCode,
|
|
196
|
+
body: _response.error.body,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
switch (_response.error.reason) {
|
|
201
|
+
case "non-json":
|
|
202
|
+
throw new errors.PinnacleError({
|
|
203
|
+
statusCode: _response.error.statusCode,
|
|
204
|
+
body: _response.error.rawBody,
|
|
205
|
+
});
|
|
206
|
+
case "timeout":
|
|
207
|
+
throw new errors.PinnacleTimeoutError();
|
|
208
|
+
case "unknown":
|
|
209
|
+
throw new errors.PinnacleError({
|
|
210
|
+
message: _response.error.errorMessage,
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Update a company on the Pinnacle platform
|
|
217
|
+
*
|
|
218
|
+
* @param {Pinnacle.CompanyUpdateRequest} request
|
|
219
|
+
* @param {Company.RequestOptions} requestOptions - Request-specific configuration.
|
|
220
|
+
*
|
|
221
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
222
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
223
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* await client.company.update({
|
|
227
|
+
* companyId: "companyId"
|
|
228
|
+
* })
|
|
229
|
+
*/
|
|
230
|
+
update(request, requestOptions) {
|
|
231
|
+
var _a;
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
const _response = yield core.fetcher({
|
|
234
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company/update"),
|
|
235
|
+
method: "POST",
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "rcs-js/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
|
+
contentType: "application/json",
|
|
238
|
+
requestType: "json",
|
|
239
|
+
body: serializers.CompanyUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
240
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
241
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
242
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
243
|
+
});
|
|
244
|
+
if (_response.ok) {
|
|
245
|
+
return serializers.CompanyUpdateResponse.parseOrThrow(_response.body, {
|
|
246
|
+
unrecognizedObjectKeys: "passthrough",
|
|
247
|
+
allowUnrecognizedUnionMembers: true,
|
|
248
|
+
allowUnrecognizedEnumValues: true,
|
|
249
|
+
breadcrumbsPrefix: ["response"],
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
if (_response.error.reason === "status-code") {
|
|
253
|
+
switch (_response.error.statusCode) {
|
|
254
|
+
case 400:
|
|
255
|
+
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
256
|
+
case 401:
|
|
257
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
258
|
+
case 500:
|
|
259
|
+
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
260
|
+
default:
|
|
261
|
+
throw new errors.PinnacleError({
|
|
262
|
+
statusCode: _response.error.statusCode,
|
|
263
|
+
body: _response.error.body,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
switch (_response.error.reason) {
|
|
268
|
+
case "non-json":
|
|
269
|
+
throw new errors.PinnacleError({
|
|
270
|
+
statusCode: _response.error.statusCode,
|
|
271
|
+
body: _response.error.rawBody,
|
|
272
|
+
});
|
|
273
|
+
case "timeout":
|
|
274
|
+
throw new errors.PinnacleTimeoutError();
|
|
275
|
+
case "unknown":
|
|
276
|
+
throw new errors.PinnacleError({
|
|
277
|
+
message: _response.error.errorMessage,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
_getCustomAuthorizationHeaders() {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
285
|
+
return { "PINNACLE-API-Key": apiKeyValue };
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
exports.Company = Company;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Pinnacle from "
|
|
4
|
+
import * as Pinnacle from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
@@ -31,7 +31,7 @@ import * as Pinnacle from "../../index";
|
|
|
31
31
|
* }
|
|
32
32
|
* }
|
|
33
33
|
*/
|
|
34
|
-
export interface
|
|
34
|
+
export interface CompanyRegisterRequest {
|
|
35
35
|
company: Pinnacle.CompanyDetails;
|
|
36
36
|
companyContact: Pinnacle.CompanyContact;
|
|
37
37
|
pointOfContact: Pinnacle.PointOfContact;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Pinnacle from "
|
|
4
|
+
import * as Pinnacle from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* companyId: "companyId"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface CompanyUpdateRequest {
|
|
12
12
|
companyId: string;
|
|
13
13
|
company?: Pinnacle.Company;
|
|
14
14
|
companyContact?: Pinnacle.CompanyContact;
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|