@tolt/api 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/resources/clicks/client/Client.d.ts +28 -8
- package/dist/api/resources/clicks/client/Client.js +89 -10
- package/dist/api/resources/{links/client/requests/GetLinkRequest.d.ts → clicks/client/requests/GetClicksRequest.d.ts} +1 -1
- package/dist/api/resources/clicks/client/requests/ListClicksRequest.d.ts +33 -0
- package/dist/api/resources/clicks/client/requests/index.d.ts +2 -1
- package/dist/api/resources/clicks/types/CreateClicksRequest.d.ts +1 -0
- package/dist/api/resources/clicks/types/{CreateClickResponse.d.ts → CreateClicksResponse.d.ts} +1 -1
- package/dist/api/resources/clicks/types/{GetClickResponse.d.ts → GetClicksResponse.d.ts} +1 -1
- package/dist/api/resources/clicks/types/ListClicksRequestOrder.d.ts +5 -0
- package/dist/api/resources/{reports/types/ReportsLinksRequestOrder.js → clicks/types/ListClicksRequestOrder.js} +1 -1
- package/dist/api/resources/clicks/types/ListClicksRequestSort.d.ts +6 -0
- package/dist/api/resources/clicks/types/ListClicksRequestSort.js +6 -0
- package/dist/api/resources/clicks/types/ListClicksResponse.d.ts +11 -0
- package/dist/api/resources/clicks/types/index.d.ts +6 -3
- package/dist/api/resources/clicks/types/index.js +6 -3
- package/dist/api/resources/commissions/client/Client.d.ts +39 -35
- package/dist/api/resources/commissions/client/Client.js +48 -44
- package/dist/api/resources/commissions/client/requests/{ApproveCommissionRequest.d.ts → ApproveCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/DeclineCommissionsRequest.d.ts +9 -0
- package/dist/api/resources/commissions/client/requests/{DeclineCommissionRequest.d.ts → DeleteCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/{GetCommissionRequest.d.ts → GetCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/{UpdateCommissionRequest.d.ts → UpdateCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/index.d.ts +5 -5
- package/dist/api/resources/commissions/types/{CreateCommissionResponse.d.ts → ApproveCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/CreateCommissionsRequest.d.ts +1 -0
- package/dist/api/resources/commissions/types/{ApproveCommissionResponse.d.ts → CreateCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/DeclineCommissionsResponse.d.ts +6 -0
- package/dist/api/resources/commissions/types/{DeclineCommissionResponse.d.ts → DeleteCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/{GetCommissionResponse.d.ts → GetCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/{DeleteCommissionResponse.d.ts → UpdateCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/index.d.ts +7 -7
- package/dist/api/resources/commissions/types/index.js +7 -7
- package/dist/api/resources/customers/client/Client.d.ts +22 -19
- package/dist/api/resources/customers/client/Client.js +37 -26
- package/dist/api/resources/customers/client/requests/CreateCustomersRequest.d.ts +29 -0
- package/dist/api/resources/customers/client/requests/CreateCustomersRequest.js +11 -0
- package/dist/api/resources/customers/client/requests/{DeleteCustomerRequest.d.ts → DeleteCustomersRequest.d.ts} +1 -1
- package/dist/api/resources/customers/client/requests/GetCustomersRequest.d.ts +9 -0
- package/dist/api/resources/customers/client/requests/ListCustomersRequest.d.ts +3 -1
- package/dist/api/resources/customers/client/requests/UpdateCustomersRequest.d.ts +31 -0
- package/dist/api/resources/customers/client/requests/UpdateCustomersRequest.js +11 -0
- package/dist/api/resources/customers/client/requests/index.d.ts +4 -4
- package/dist/api/resources/customers/client/requests/index.js +2 -1
- package/dist/api/resources/customers/types/{DeleteCustomerResponse.d.ts → CreateCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/{UpdateCustomerResponse.d.ts → DeleteCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/{GetCustomerResponse.d.ts → GetCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/ListCustomersRequestStatus.d.ts +8 -0
- package/dist/api/resources/customers/types/ListCustomersRequestStatus.js +8 -0
- package/dist/api/resources/customers/types/{CreateCustomerResponse.d.ts → UpdateCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/index.d.ts +5 -4
- package/dist/api/resources/customers/types/index.js +5 -4
- package/dist/api/resources/embed/client/Client.d.ts +4 -4
- package/dist/api/resources/embed/client/Client.js +5 -5
- package/dist/api/resources/embed/client/requests/CreateTokenEmbedRequest.d.ts +14 -0
- package/dist/api/resources/embed/client/requests/index.d.ts +1 -1
- package/dist/api/resources/embed/types/{CreateEmbedTokenResponse.d.ts → CreateTokenEmbedResponse.d.ts} +1 -1
- package/dist/api/resources/embed/types/index.d.ts +1 -1
- package/dist/api/resources/embed/types/index.js +1 -1
- package/dist/api/resources/flows/client/Client.d.ts +7 -7
- package/dist/api/resources/flows/client/Client.js +9 -9
- package/dist/api/resources/{clicks/client/requests/GetClickRequest.d.ts → flows/client/requests/GetFlowsRequest.d.ts} +1 -1
- package/dist/api/resources/flows/client/requests/index.d.ts +1 -1
- package/dist/api/resources/flows/types/{GetFlowResponse.d.ts → GetFlowsResponse.d.ts} +1 -1
- package/dist/api/resources/flows/types/index.d.ts +1 -1
- package/dist/api/resources/flows/types/index.js +1 -1
- package/dist/api/resources/groups/client/Client.d.ts +7 -7
- package/dist/api/resources/groups/client/Client.js +9 -9
- package/dist/api/resources/{flows/client/requests/GetFlowRequest.d.ts → groups/client/requests/GetGroupsRequest.d.ts} +1 -1
- package/dist/api/resources/groups/client/requests/index.d.ts +1 -1
- package/dist/api/resources/groups/types/{GetGroupResponse.d.ts → GetGroupsResponse.d.ts} +1 -1
- package/dist/api/resources/groups/types/index.d.ts +1 -1
- package/dist/api/resources/groups/types/index.js +1 -1
- package/dist/api/resources/links/client/Client.d.ts +49 -19
- package/dist/api/resources/links/client/Client.js +108 -25
- package/dist/api/resources/links/client/requests/{CreateLinkRequest.d.ts → CreateLinksRequest.d.ts} +1 -1
- package/dist/api/resources/{customers/client/requests/GetCustomerRequest.d.ts → links/client/requests/DeleteLinksRequest.d.ts} +1 -1
- package/dist/api/resources/links/client/requests/GetByParamValueLinksRequest.d.ts +12 -0
- package/dist/api/resources/{groups/client/requests/GetGroupRequest.d.ts → links/client/requests/GetLinksRequest.d.ts} +1 -1
- package/dist/api/resources/links/client/requests/ListLinksRequest.d.ts +2 -0
- package/dist/api/resources/links/client/requests/{UpdateLinkRequest.d.ts → UpdateLinksRequest.d.ts} +1 -1
- package/dist/api/resources/links/client/requests/index.d.ts +5 -4
- package/dist/api/resources/links/types/{DeleteLinkResponse.d.ts → CreateLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/{CreateLinkResponse.d.ts → DeleteLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/GetByParamValueLinksResponse.d.ts +6 -0
- package/dist/api/resources/links/types/{GetLinkResponse.d.ts → GetLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/{UpdateLinkResponse.d.ts → UpdateLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/index.d.ts +5 -4
- package/dist/api/resources/links/types/index.js +5 -4
- package/dist/api/resources/partners/client/Client.d.ts +33 -33
- package/dist/api/resources/partners/client/Client.js +42 -42
- package/dist/api/resources/partners/client/requests/ApprovePartnersRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/{CreatePartnerRequest.d.ts → CreatePartnersRequest.d.ts} +8 -4
- package/dist/api/resources/partners/client/requests/CreatePartnersRequest.js +8 -0
- package/dist/api/resources/partners/client/requests/GetPartnersRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/{RejectPartnerRequest.d.ts → RejectPartnersRequest.d.ts} +1 -1
- package/dist/api/resources/partners/client/requests/{SuspendPartnerRequest.d.ts → SuspendPartnersRequest.d.ts} +1 -1
- package/dist/api/resources/partners/client/requests/{UpdatePartnerRequest.d.ts → UpdatePartnersRequest.d.ts} +1 -1
- package/dist/api/resources/partners/client/requests/index.d.ts +6 -6
- package/dist/api/resources/partners/client/requests/index.js +1 -1
- package/dist/api/resources/partners/types/{SuspendPartnerResponse.d.ts → ApprovePartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{CreatePartnerResponse.d.ts → CreatePartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{GetPartnerResponse.d.ts → GetPartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{ApprovePartnerResponse.d.ts → RejectPartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{UpdatePartnerResponse.d.ts → SuspendPartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{RejectPartnerResponse.d.ts → UpdatePartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/index.d.ts +6 -6
- package/dist/api/resources/partners/types/index.js +6 -6
- package/dist/api/resources/programs/client/Client.d.ts +7 -7
- package/dist/api/resources/programs/client/Client.js +9 -9
- package/dist/api/resources/programs/client/requests/GetProgramsRequest.d.ts +9 -0
- package/dist/api/resources/programs/client/requests/index.d.ts +1 -1
- package/dist/api/resources/programs/types/{GetProgramResponse.d.ts → GetProgramsResponse.d.ts} +1 -1
- package/dist/api/resources/programs/types/index.d.ts +1 -1
- package/dist/api/resources/programs/types/index.js +1 -1
- package/dist/api/resources/promotionCodes/client/Client.d.ts +19 -19
- package/dist/api/resources/promotionCodes/client/Client.js +25 -25
- package/dist/api/resources/promotionCodes/client/requests/CreatePromotionCodesRequest.d.ts +20 -0
- package/dist/api/resources/promotionCodes/client/requests/CreatePromotionCodesRequest.js +8 -0
- package/dist/api/resources/promotionCodes/client/requests/DeletePromotionCodesRequest.d.ts +9 -0
- package/dist/api/resources/{commissions/client/requests/DeleteCommissionRequest.d.ts → promotionCodes/client/requests/GetPromotionCodesRequest.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/client/requests/ListPromotionCodesRequest.d.ts +1 -1
- package/dist/api/resources/promotionCodes/client/requests/UpdatePromotionCodesRequest.d.ts +19 -0
- package/dist/api/resources/promotionCodes/client/requests/UpdatePromotionCodesRequest.js +8 -0
- package/dist/api/resources/promotionCodes/client/requests/index.d.ts +4 -4
- package/dist/api/resources/promotionCodes/client/requests/index.js +2 -1
- package/dist/api/resources/promotionCodes/types/{CreatePromotionCodeResponse.d.ts → CreatePromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/{DeletePromotionCodeResponse.d.ts → DeletePromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/{GetPromotionCodeResponse.d.ts → GetPromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/ListPromotionCodesRequestType.d.ts +5 -0
- package/dist/api/resources/promotionCodes/types/ListPromotionCodesRequestType.js +5 -0
- package/dist/api/resources/promotionCodes/types/{UpdatePromotionCodeResponse.d.ts → UpdatePromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/index.d.ts +5 -4
- package/dist/api/resources/promotionCodes/types/index.js +5 -4
- package/dist/api/resources/reports/client/Client.d.ts +10 -10
- package/dist/api/resources/reports/client/Client.js +11 -8
- package/dist/api/resources/reports/client/requests/{ReportsCustomerStatsRequest.d.ts → CustomerStatsReportsRequest.d.ts} +1 -1
- package/dist/api/resources/reports/client/requests/{ReportsLinksRequest.d.ts → LinksReportsRequest.d.ts} +4 -3
- package/dist/api/resources/reports/client/requests/{ReportsOverviewRequest.d.ts → OverviewReportsRequest.d.ts} +1 -1
- package/dist/api/resources/reports/client/requests/{ReportsPartnersRequest.d.ts → PartnersReportsRequest.d.ts} +4 -3
- package/dist/api/resources/reports/client/requests/{ReportsTimeseriesRequest.d.ts → TimeseriesReportsRequest.d.ts} +3 -2
- package/dist/api/resources/reports/client/requests/index.d.ts +5 -5
- package/dist/api/resources/reports/types/{ReportsCustomerStatsResponse.d.ts → CustomerStatsReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/LinksReportsRequestOrder.d.ts +5 -0
- package/dist/api/resources/reports/types/{ReportsPartnersRequestOrder.js → LinksReportsRequestOrder.js} +1 -1
- package/dist/api/resources/reports/types/LinksReportsRequestSort.d.ts +7 -0
- package/dist/api/resources/reports/types/{ReportsLinksRequestSort.js → LinksReportsRequestSort.js} +1 -1
- package/dist/api/resources/reports/types/{ReportsLinksResponse.d.ts → LinksReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/{ReportsOverviewResponse.d.ts → OverviewReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/PartnersReportsRequestOrder.d.ts +5 -0
- package/dist/api/resources/reports/types/PartnersReportsRequestOrder.js +5 -0
- package/dist/api/resources/reports/types/PartnersReportsRequestSort.d.ts +7 -0
- package/dist/api/resources/reports/types/{ReportsPartnersRequestSort.js → PartnersReportsRequestSort.js} +1 -1
- package/dist/api/resources/reports/types/{ReportsPartnersResponse.d.ts → PartnersReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/TimeseriesReportsRequestGranularity.d.ts +6 -0
- package/dist/api/resources/reports/types/{ReportsTimeseriesRequestGranularity.js → TimeseriesReportsRequestGranularity.js} +1 -1
- package/dist/api/resources/reports/types/{ReportsTimeseriesResponse.d.ts → TimeseriesReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/index.d.ts +10 -10
- package/dist/api/resources/reports/types/index.js +10 -10
- package/dist/api/resources/transactions/client/Client.d.ts +31 -27
- package/dist/api/resources/transactions/client/Client.js +38 -34
- package/dist/api/resources/transactions/client/requests/{CreateTransactionRequest.d.ts → CreateTransactionsRequest.d.ts} +4 -1
- package/dist/api/resources/transactions/client/requests/DeleteTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/GetTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/RefundTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/RerunFlowsTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/{UpdateTransactionRequest.d.ts → UpdateTransactionsRequest.d.ts} +3 -1
- package/dist/api/resources/transactions/client/requests/index.d.ts +6 -6
- package/dist/api/resources/transactions/types/{CreateTransactionResponse.d.ts → CreateTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{DeleteTransactionResponse.d.ts → DeleteTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{GetTransactionResponse.d.ts → GetTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{RefundTransactionResponse.d.ts → RefundTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{RerunTransactionFlowsResponse.d.ts → RerunFlowsTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/UpdateTransactionsResponse.d.ts +6 -0
- package/dist/api/resources/transactions/types/index.d.ts +6 -6
- package/dist/api/resources/transactions/types/index.js +6 -6
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/package.json +1 -1
- package/dist/api/resources/clicks/types/CreateClickRequest.d.ts +0 -1
- package/dist/api/resources/commissions/types/CreateCommissionRequest.d.ts +0 -1
- package/dist/api/resources/commissions/types/UpdateCommissionResponse.d.ts +0 -6
- package/dist/api/resources/customers/client/requests/CreateCustomerRequest.d.ts +0 -14
- package/dist/api/resources/customers/client/requests/UpdateCustomerRequest.d.ts +0 -18
- package/dist/api/resources/embed/client/requests/CreateEmbedTokenRequest.d.ts +0 -14
- package/dist/api/resources/links/client/requests/DeleteLinkRequest.d.ts +0 -9
- package/dist/api/resources/partners/client/requests/ApprovePartnerRequest.d.ts +0 -9
- package/dist/api/resources/partners/client/requests/CreatePartnerRequest.js +0 -8
- package/dist/api/resources/partners/client/requests/GetPartnerRequest.d.ts +0 -9
- package/dist/api/resources/programs/client/requests/GetProgramRequest.d.ts +0 -9
- package/dist/api/resources/promotionCodes/client/requests/CreatePromotionCodeRequest.d.ts +0 -13
- package/dist/api/resources/promotionCodes/client/requests/DeletePromotionCodeRequest.d.ts +0 -9
- package/dist/api/resources/promotionCodes/client/requests/GetPromotionCodeRequest.d.ts +0 -9
- package/dist/api/resources/promotionCodes/client/requests/UpdatePromotionCodeRequest.d.ts +0 -12
- package/dist/api/resources/reports/types/ReportsLinksRequestOrder.d.ts +0 -5
- package/dist/api/resources/reports/types/ReportsLinksRequestSort.d.ts +0 -7
- package/dist/api/resources/reports/types/ReportsPartnersRequestOrder.d.ts +0 -5
- package/dist/api/resources/reports/types/ReportsPartnersRequestSort.d.ts +0 -7
- package/dist/api/resources/reports/types/ReportsTimeseriesRequestGranularity.d.ts +0 -6
- package/dist/api/resources/transactions/client/requests/DeleteTransactionRequest.d.ts +0 -9
- package/dist/api/resources/transactions/client/requests/GetTransactionRequest.d.ts +0 -9
- package/dist/api/resources/transactions/client/requests/RefundTransactionRequest.d.ts +0 -9
- package/dist/api/resources/transactions/client/requests/RerunTransactionFlowsRequest.d.ts +0 -9
- package/dist/api/resources/transactions/types/UpdateTransactionResponse.d.ts +0 -6
- /package/dist/api/resources/clicks/client/requests/{GetClickRequest.js → GetClicksRequest.js} +0 -0
- /package/dist/api/resources/clicks/{types/CreateClickRequest.js → client/requests/ListClicksRequest.js} +0 -0
- /package/dist/api/resources/clicks/types/{CreateClickResponse.js → CreateClicksRequest.js} +0 -0
- /package/dist/api/resources/clicks/types/{GetClickResponse.js → CreateClicksResponse.js} +0 -0
- /package/dist/api/resources/{commissions/client/requests/ApproveCommissionRequest.js → clicks/types/GetClicksResponse.js} +0 -0
- /package/dist/api/resources/{commissions/client/requests/DeclineCommissionRequest.js → clicks/types/ListClicksResponse.js} +0 -0
- /package/dist/api/resources/commissions/client/requests/{DeleteCommissionRequest.js → ApproveCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/client/requests/{GetCommissionRequest.js → DeclineCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/client/requests/{UpdateCommissionRequest.js → DeleteCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/{types/ApproveCommissionResponse.js → client/requests/GetCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/{types/CreateCommissionRequest.js → client/requests/UpdateCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/types/{CreateCommissionResponse.js → ApproveCommissionsResponse.js} +0 -0
- /package/dist/api/resources/commissions/types/{DeclineCommissionResponse.js → CreateCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/types/{DeleteCommissionResponse.js → CreateCommissionsResponse.js} +0 -0
- /package/dist/api/resources/commissions/types/{GetCommissionResponse.js → DeclineCommissionsResponse.js} +0 -0
- /package/dist/api/resources/commissions/types/{UpdateCommissionResponse.js → DeleteCommissionsResponse.js} +0 -0
- /package/dist/api/resources/{customers/client/requests/CreateCustomerRequest.js → commissions/types/GetCommissionsResponse.js} +0 -0
- /package/dist/api/resources/{customers/client/requests/DeleteCustomerRequest.js → commissions/types/UpdateCommissionsResponse.js} +0 -0
- /package/dist/api/resources/customers/client/requests/{GetCustomerRequest.js → DeleteCustomersRequest.js} +0 -0
- /package/dist/api/resources/customers/client/requests/{UpdateCustomerRequest.js → GetCustomersRequest.js} +0 -0
- /package/dist/api/resources/customers/types/{CreateCustomerResponse.js → CreateCustomersResponse.js} +0 -0
- /package/dist/api/resources/customers/types/{DeleteCustomerResponse.js → DeleteCustomersResponse.js} +0 -0
- /package/dist/api/resources/customers/types/{GetCustomerResponse.js → GetCustomersResponse.js} +0 -0
- /package/dist/api/resources/customers/types/{UpdateCustomerResponse.js → UpdateCustomersResponse.js} +0 -0
- /package/dist/api/resources/embed/client/requests/{CreateEmbedTokenRequest.js → CreateTokenEmbedRequest.js} +0 -0
- /package/dist/api/resources/embed/types/{CreateEmbedTokenResponse.js → CreateTokenEmbedResponse.js} +0 -0
- /package/dist/api/resources/flows/client/requests/{GetFlowRequest.js → GetFlowsRequest.js} +0 -0
- /package/dist/api/resources/flows/types/{GetFlowResponse.js → GetFlowsResponse.js} +0 -0
- /package/dist/api/resources/groups/client/requests/{GetGroupRequest.js → GetGroupsRequest.js} +0 -0
- /package/dist/api/resources/groups/types/{GetGroupResponse.js → GetGroupsResponse.js} +0 -0
- /package/dist/api/resources/links/client/requests/{CreateLinkRequest.js → CreateLinksRequest.js} +0 -0
- /package/dist/api/resources/links/client/requests/{DeleteLinkRequest.js → DeleteLinksRequest.js} +0 -0
- /package/dist/api/resources/links/client/requests/{GetLinkRequest.js → GetByParamValueLinksRequest.js} +0 -0
- /package/dist/api/resources/links/client/requests/{UpdateLinkRequest.js → GetLinksRequest.js} +0 -0
- /package/dist/api/resources/links/{types/CreateLinkResponse.js → client/requests/UpdateLinksRequest.js} +0 -0
- /package/dist/api/resources/links/types/{DeleteLinkResponse.js → CreateLinksResponse.js} +0 -0
- /package/dist/api/resources/links/types/{GetLinkResponse.js → DeleteLinksResponse.js} +0 -0
- /package/dist/api/resources/links/types/{UpdateLinkResponse.js → GetByParamValueLinksResponse.js} +0 -0
- /package/dist/api/resources/{partners/client/requests/ApprovePartnerRequest.js → links/types/GetLinksResponse.js} +0 -0
- /package/dist/api/resources/{partners/client/requests/GetPartnerRequest.js → links/types/UpdateLinksResponse.js} +0 -0
- /package/dist/api/resources/partners/client/requests/{RejectPartnerRequest.js → ApprovePartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/client/requests/{SuspendPartnerRequest.js → GetPartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/client/requests/{UpdatePartnerRequest.js → RejectPartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/{types/ApprovePartnerResponse.js → client/requests/SuspendPartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/{types/CreatePartnerResponse.js → client/requests/UpdatePartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/types/{GetPartnerResponse.js → ApprovePartnersResponse.js} +0 -0
- /package/dist/api/resources/partners/types/{RejectPartnerResponse.js → CreatePartnersResponse.js} +0 -0
- /package/dist/api/resources/partners/types/{SuspendPartnerResponse.js → GetPartnersResponse.js} +0 -0
- /package/dist/api/resources/partners/types/{UpdatePartnerResponse.js → RejectPartnersResponse.js} +0 -0
- /package/dist/api/resources/{programs/client/requests/GetProgramRequest.js → partners/types/SuspendPartnersResponse.js} +0 -0
- /package/dist/api/resources/{programs/types/GetProgramResponse.js → partners/types/UpdatePartnersResponse.js} +0 -0
- /package/dist/api/resources/{promotionCodes/client/requests/CreatePromotionCodeRequest.js → programs/client/requests/GetProgramsRequest.js} +0 -0
- /package/dist/api/resources/{promotionCodes/client/requests/DeletePromotionCodeRequest.js → programs/types/GetProgramsResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/client/requests/{GetPromotionCodeRequest.js → DeletePromotionCodesRequest.js} +0 -0
- /package/dist/api/resources/promotionCodes/client/requests/{UpdatePromotionCodeRequest.js → GetPromotionCodesRequest.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{CreatePromotionCodeResponse.js → CreatePromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{DeletePromotionCodeResponse.js → DeletePromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{GetPromotionCodeResponse.js → GetPromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{UpdatePromotionCodeResponse.js → UpdatePromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsCustomerStatsRequest.js → CustomerStatsReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsLinksRequest.js → LinksReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsOverviewRequest.js → OverviewReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsPartnersRequest.js → PartnersReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsTimeseriesRequest.js → TimeseriesReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsCustomerStatsResponse.js → CustomerStatsReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsLinksResponse.js → LinksReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsOverviewResponse.js → OverviewReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsPartnersResponse.js → PartnersReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsTimeseriesResponse.js → TimeseriesReportsResponse.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{CreateTransactionRequest.js → CreateTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{DeleteTransactionRequest.js → DeleteTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{GetTransactionRequest.js → GetTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{RefundTransactionRequest.js → RefundTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{RerunTransactionFlowsRequest.js → RerunFlowsTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{UpdateTransactionRequest.js → UpdateTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/types/{CreateTransactionResponse.js → CreateTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{DeleteTransactionResponse.js → DeleteTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{GetTransactionResponse.js → GetTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{RefundTransactionResponse.js → RefundTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{RerunTransactionFlowsResponse.js → RerunFlowsTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{UpdateTransactionResponse.js → UpdateTransactionsResponse.js} +0 -0
|
@@ -23,12 +23,12 @@ export declare class PartnersClient {
|
|
|
23
23
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
|
-
* await client.partners.
|
|
26
|
+
* await client.partners.bulkApprove({
|
|
27
27
|
* ids: ["part_9fQ2xLL", "part_3RtV9k"]
|
|
28
28
|
* })
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
private
|
|
30
|
+
bulkApprove(request: ToltApi.BulkApprovePartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.BulkApprovePartnersResponse>;
|
|
31
|
+
private __bulkApprove;
|
|
32
32
|
/**
|
|
33
33
|
* Rejects up to 100 partners with an optional shared rejection note. Each id is processed on its own and the response reports the outcome per id.
|
|
34
34
|
*
|
|
@@ -42,12 +42,12 @@ export declare class PartnersClient {
|
|
|
42
42
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.partners.
|
|
45
|
+
* await client.partners.bulkReject({
|
|
46
46
|
* ids: ["part_9fQ2xLL", "part_3RtV9k"]
|
|
47
47
|
* })
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
private
|
|
49
|
+
bulkReject(request: ToltApi.BulkRejectPartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.BulkRejectPartnersResponse>;
|
|
50
|
+
private __bulkReject;
|
|
51
51
|
/**
|
|
52
52
|
* @param {ToltApi.ListPartnersRequest} request
|
|
53
53
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,14 +59,14 @@ export declare class PartnersClient {
|
|
|
59
59
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await client.partners.
|
|
62
|
+
* await client.partners.list()
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
private
|
|
64
|
+
list(request?: ToltApi.ListPartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListPartnersResponse>;
|
|
65
|
+
private __list;
|
|
66
66
|
/**
|
|
67
67
|
* Creates an onboarded partner together with their referral link. The link value defaults to a slug of the partner's name or email and the parameter to the program's first link parameter. Omit group_id to place the partner in the program's default group.
|
|
68
68
|
*
|
|
69
|
-
* @param {ToltApi.
|
|
69
|
+
* @param {ToltApi.CreatePartnersRequest} request
|
|
70
70
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -77,15 +77,15 @@ export declare class PartnersClient {
|
|
|
77
77
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.partners.
|
|
80
|
+
* await client.partners.create({
|
|
81
81
|
* email: "sam@acme.com",
|
|
82
82
|
* program_id: "prg_YRsbPDAK"
|
|
83
83
|
* })
|
|
84
84
|
*/
|
|
85
|
-
|
|
86
|
-
private
|
|
85
|
+
create(request: ToltApi.CreatePartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.CreatePartnersResponse>;
|
|
86
|
+
private __create;
|
|
87
87
|
/**
|
|
88
|
-
* @param {ToltApi.
|
|
88
|
+
* @param {ToltApi.GetPartnersRequest} request
|
|
89
89
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
90
|
*
|
|
91
91
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -95,16 +95,16 @@ export declare class PartnersClient {
|
|
|
95
95
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
96
96
|
*
|
|
97
97
|
* @example
|
|
98
|
-
* await client.partners.
|
|
98
|
+
* await client.partners.get({
|
|
99
99
|
* id: "id"
|
|
100
100
|
* })
|
|
101
101
|
*/
|
|
102
|
-
|
|
103
|
-
private
|
|
102
|
+
get(request: ToltApi.GetPartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetPartnersResponse>;
|
|
103
|
+
private __get;
|
|
104
104
|
/**
|
|
105
105
|
* Edits profile fields and group membership. Status changes go through the approve, reject and suspend actions.
|
|
106
106
|
*
|
|
107
|
-
* @param {ToltApi.
|
|
107
|
+
* @param {ToltApi.UpdatePartnersRequest} request
|
|
108
108
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
109
|
*
|
|
110
110
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -116,14 +116,14 @@ export declare class PartnersClient {
|
|
|
116
116
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
|
-
* await client.partners.
|
|
119
|
+
* await client.partners.update({
|
|
120
120
|
* id: "id"
|
|
121
121
|
* })
|
|
122
122
|
*/
|
|
123
|
-
|
|
124
|
-
private
|
|
123
|
+
update(request: ToltApi.UpdatePartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.UpdatePartnersResponse>;
|
|
124
|
+
private __update;
|
|
125
125
|
/**
|
|
126
|
-
* @param {ToltApi.
|
|
126
|
+
* @param {ToltApi.ApprovePartnersRequest} request
|
|
127
127
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -133,14 +133,14 @@ export declare class PartnersClient {
|
|
|
133
133
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
134
134
|
*
|
|
135
135
|
* @example
|
|
136
|
-
* await client.partners.
|
|
136
|
+
* await client.partners.approve({
|
|
137
137
|
* id: "id"
|
|
138
138
|
* })
|
|
139
139
|
*/
|
|
140
|
-
|
|
141
|
-
private
|
|
140
|
+
approve(request: ToltApi.ApprovePartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.ApprovePartnersResponse>;
|
|
141
|
+
private __approve;
|
|
142
142
|
/**
|
|
143
|
-
* @param {ToltApi.
|
|
143
|
+
* @param {ToltApi.RejectPartnersRequest} request
|
|
144
144
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
145
|
*
|
|
146
146
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -151,14 +151,14 @@ export declare class PartnersClient {
|
|
|
151
151
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
152
152
|
*
|
|
153
153
|
* @example
|
|
154
|
-
* await client.partners.
|
|
154
|
+
* await client.partners.reject({
|
|
155
155
|
* id: "id"
|
|
156
156
|
* })
|
|
157
157
|
*/
|
|
158
|
-
|
|
159
|
-
private
|
|
158
|
+
reject(request: ToltApi.RejectPartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.RejectPartnersResponse>;
|
|
159
|
+
private __reject;
|
|
160
160
|
/**
|
|
161
|
-
* @param {ToltApi.
|
|
161
|
+
* @param {ToltApi.SuspendPartnersRequest} request
|
|
162
162
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
163
|
*
|
|
164
164
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -169,10 +169,10 @@ export declare class PartnersClient {
|
|
|
169
169
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
|
-
* await client.partners.
|
|
172
|
+
* await client.partners.suspend({
|
|
173
173
|
* id: "id"
|
|
174
174
|
* })
|
|
175
175
|
*/
|
|
176
|
-
|
|
177
|
-
private
|
|
176
|
+
suspend(request: ToltApi.SuspendPartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<ToltApi.SuspendPartnersResponse>;
|
|
177
|
+
private __suspend;
|
|
178
178
|
}
|
|
@@ -24,14 +24,14 @@ export class PartnersClient {
|
|
|
24
24
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.partners.
|
|
27
|
+
* await client.partners.bulkApprove({
|
|
28
28
|
* ids: ["part_9fQ2xLL", "part_3RtV9k"]
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
31
|
+
bulkApprove(request, requestOptions) {
|
|
32
|
+
return core.HttpResponsePromise.fromPromise(this.__bulkApprove(request, requestOptions));
|
|
33
33
|
}
|
|
34
|
-
async
|
|
34
|
+
async __bulkApprove(request, requestOptions) {
|
|
35
35
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
36
36
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
37
37
|
const _response = await core.fetcher({
|
|
@@ -84,14 +84,14 @@ export class PartnersClient {
|
|
|
84
84
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
|
-
* await client.partners.
|
|
87
|
+
* await client.partners.bulkReject({
|
|
88
88
|
* ids: ["part_9fQ2xLL", "part_3RtV9k"]
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
91
|
+
bulkReject(request, requestOptions) {
|
|
92
|
+
return core.HttpResponsePromise.fromPromise(this.__bulkReject(request, requestOptions));
|
|
93
93
|
}
|
|
94
|
-
async
|
|
94
|
+
async __bulkReject(request, requestOptions) {
|
|
95
95
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
96
96
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
97
97
|
const _response = await core.fetcher({
|
|
@@ -142,12 +142,12 @@ export class PartnersClient {
|
|
|
142
142
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
|
-
* await client.partners.
|
|
145
|
+
* await client.partners.list()
|
|
146
146
|
*/
|
|
147
|
-
|
|
148
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
147
|
+
list(request = {}, requestOptions) {
|
|
148
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
149
149
|
}
|
|
150
|
-
async
|
|
150
|
+
async __list(request = {}, requestOptions) {
|
|
151
151
|
const { limit, order, sort, starting_after: startingAfter, ending_before: endingBefore, created_after: createdAfter, created_before: createdBefore, updated_after: updatedAfter, updated_before: updatedBefore, status, program_id: programId, group_id: groupId, search, } = request;
|
|
152
152
|
const _queryParams = {
|
|
153
153
|
limit,
|
|
@@ -207,7 +207,7 @@ export class PartnersClient {
|
|
|
207
207
|
/**
|
|
208
208
|
* Creates an onboarded partner together with their referral link. The link value defaults to a slug of the partner's name or email and the parameter to the program's first link parameter. Omit group_id to place the partner in the program's default group.
|
|
209
209
|
*
|
|
210
|
-
* @param {ToltApi.
|
|
210
|
+
* @param {ToltApi.CreatePartnersRequest} request
|
|
211
211
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
212
212
|
*
|
|
213
213
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -218,15 +218,15 @@ export class PartnersClient {
|
|
|
218
218
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
219
219
|
*
|
|
220
220
|
* @example
|
|
221
|
-
* await client.partners.
|
|
221
|
+
* await client.partners.create({
|
|
222
222
|
* email: "sam@acme.com",
|
|
223
223
|
* program_id: "prg_YRsbPDAK"
|
|
224
224
|
* })
|
|
225
225
|
*/
|
|
226
|
-
|
|
227
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
226
|
+
create(request, requestOptions) {
|
|
227
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
228
228
|
}
|
|
229
|
-
async
|
|
229
|
+
async __create(request, requestOptions) {
|
|
230
230
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
231
231
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
232
232
|
const _response = await core.fetcher({
|
|
@@ -269,7 +269,7 @@ export class PartnersClient {
|
|
|
269
269
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/partners");
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
|
-
* @param {ToltApi.
|
|
272
|
+
* @param {ToltApi.GetPartnersRequest} request
|
|
273
273
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
274
274
|
*
|
|
275
275
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -279,14 +279,14 @@ export class PartnersClient {
|
|
|
279
279
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
280
280
|
*
|
|
281
281
|
* @example
|
|
282
|
-
* await client.partners.
|
|
282
|
+
* await client.partners.get({
|
|
283
283
|
* id: "id"
|
|
284
284
|
* })
|
|
285
285
|
*/
|
|
286
|
-
|
|
287
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
286
|
+
get(request, requestOptions) {
|
|
287
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
288
288
|
}
|
|
289
|
-
async
|
|
289
|
+
async __get(request, requestOptions) {
|
|
290
290
|
const { id } = request;
|
|
291
291
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
292
292
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -327,7 +327,7 @@ export class PartnersClient {
|
|
|
327
327
|
/**
|
|
328
328
|
* Edits profile fields and group membership. Status changes go through the approve, reject and suspend actions.
|
|
329
329
|
*
|
|
330
|
-
* @param {ToltApi.
|
|
330
|
+
* @param {ToltApi.UpdatePartnersRequest} request
|
|
331
331
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
332
332
|
*
|
|
333
333
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -339,14 +339,14 @@ export class PartnersClient {
|
|
|
339
339
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
340
340
|
*
|
|
341
341
|
* @example
|
|
342
|
-
* await client.partners.
|
|
342
|
+
* await client.partners.update({
|
|
343
343
|
* id: "id"
|
|
344
344
|
* })
|
|
345
345
|
*/
|
|
346
|
-
|
|
347
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
346
|
+
update(request, requestOptions) {
|
|
347
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
348
348
|
}
|
|
349
|
-
async
|
|
349
|
+
async __update(request, requestOptions) {
|
|
350
350
|
const { id, ..._body } = request;
|
|
351
351
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
352
352
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -392,7 +392,7 @@ export class PartnersClient {
|
|
|
392
392
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v2/partners/{id}");
|
|
393
393
|
}
|
|
394
394
|
/**
|
|
395
|
-
* @param {ToltApi.
|
|
395
|
+
* @param {ToltApi.ApprovePartnersRequest} request
|
|
396
396
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
397
397
|
*
|
|
398
398
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -402,14 +402,14 @@ export class PartnersClient {
|
|
|
402
402
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
403
403
|
*
|
|
404
404
|
* @example
|
|
405
|
-
* await client.partners.
|
|
405
|
+
* await client.partners.approve({
|
|
406
406
|
* id: "id"
|
|
407
407
|
* })
|
|
408
408
|
*/
|
|
409
|
-
|
|
410
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
409
|
+
approve(request, requestOptions) {
|
|
410
|
+
return core.HttpResponsePromise.fromPromise(this.__approve(request, requestOptions));
|
|
411
411
|
}
|
|
412
|
-
async
|
|
412
|
+
async __approve(request, requestOptions) {
|
|
413
413
|
const { id } = request;
|
|
414
414
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
415
415
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -448,7 +448,7 @@ export class PartnersClient {
|
|
|
448
448
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/partners/{id}/approve");
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
|
-
* @param {ToltApi.
|
|
451
|
+
* @param {ToltApi.RejectPartnersRequest} request
|
|
452
452
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
453
453
|
*
|
|
454
454
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -459,14 +459,14 @@ export class PartnersClient {
|
|
|
459
459
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
460
460
|
*
|
|
461
461
|
* @example
|
|
462
|
-
* await client.partners.
|
|
462
|
+
* await client.partners.reject({
|
|
463
463
|
* id: "id"
|
|
464
464
|
* })
|
|
465
465
|
*/
|
|
466
|
-
|
|
467
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
466
|
+
reject(request, requestOptions) {
|
|
467
|
+
return core.HttpResponsePromise.fromPromise(this.__reject(request, requestOptions));
|
|
468
468
|
}
|
|
469
|
-
async
|
|
469
|
+
async __reject(request, requestOptions) {
|
|
470
470
|
const { id, ..._body } = request;
|
|
471
471
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
472
472
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -510,7 +510,7 @@ export class PartnersClient {
|
|
|
510
510
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/partners/{id}/reject");
|
|
511
511
|
}
|
|
512
512
|
/**
|
|
513
|
-
* @param {ToltApi.
|
|
513
|
+
* @param {ToltApi.SuspendPartnersRequest} request
|
|
514
514
|
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
515
515
|
*
|
|
516
516
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -521,14 +521,14 @@ export class PartnersClient {
|
|
|
521
521
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
522
522
|
*
|
|
523
523
|
* @example
|
|
524
|
-
* await client.partners.
|
|
524
|
+
* await client.partners.suspend({
|
|
525
525
|
* id: "id"
|
|
526
526
|
* })
|
|
527
527
|
*/
|
|
528
|
-
|
|
529
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
528
|
+
suspend(request, requestOptions) {
|
|
529
|
+
return core.HttpResponsePromise.fromPromise(this.__suspend(request, requestOptions));
|
|
530
530
|
}
|
|
531
|
-
async
|
|
531
|
+
async __suspend(request, requestOptions) {
|
|
532
532
|
const { id, ..._body } = request;
|
|
533
533
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
534
534
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -5,25 +5,29 @@
|
|
|
5
5
|
* program_id: "prg_YRsbPDAK"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface CreatePartnersRequest {
|
|
9
9
|
/** Unique within the program, compared case-insensitively. */
|
|
10
10
|
email: string;
|
|
11
11
|
program_id: string;
|
|
12
12
|
first_name?: string;
|
|
13
13
|
last_name?: string;
|
|
14
|
+
/** Overrides the name shown for the partner; defaults to the first and last name. */
|
|
15
|
+
display_name?: string;
|
|
14
16
|
company_name?: string;
|
|
15
17
|
/** Two-letter ISO country code. */
|
|
16
18
|
country_code?: string;
|
|
17
19
|
website_url?: string;
|
|
20
|
+
/** Backdate the partner's creation time. Defaults to now. */
|
|
21
|
+
created_at?: string;
|
|
18
22
|
/** Group in the program. Defaults to the program's default group. */
|
|
19
23
|
group_id?: string;
|
|
20
|
-
status?:
|
|
24
|
+
status?: CreatePartnersRequest.Status;
|
|
21
25
|
/** The referral link created with the partner. Defaults to a slug of the name or email. */
|
|
22
|
-
link?:
|
|
26
|
+
link?: CreatePartnersRequest.Link;
|
|
23
27
|
/** Send the partner the program's welcome email. Only goes out when the program's welcome email is enabled and the partner is active. */
|
|
24
28
|
notify_partner?: boolean;
|
|
25
29
|
}
|
|
26
|
-
export declare namespace
|
|
30
|
+
export declare namespace CreatePartnersRequest {
|
|
27
31
|
const Status: {
|
|
28
32
|
readonly Active: "active";
|
|
29
33
|
readonly Pending: "pending";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var CreatePartnersRequest;
|
|
3
|
+
(function (CreatePartnersRequest) {
|
|
4
|
+
CreatePartnersRequest.Status = {
|
|
5
|
+
Active: "active",
|
|
6
|
+
Pending: "pending",
|
|
7
|
+
};
|
|
8
|
+
})(CreatePartnersRequest || (CreatePartnersRequest = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { ApprovePartnersRequest } from "./ApprovePartnersRequest.js";
|
|
2
2
|
export type { BulkApprovePartnersRequest } from "./BulkApprovePartnersRequest.js";
|
|
3
3
|
export type { BulkRejectPartnersRequest } from "./BulkRejectPartnersRequest.js";
|
|
4
|
-
export {
|
|
5
|
-
export type {
|
|
4
|
+
export { CreatePartnersRequest } from "./CreatePartnersRequest.js";
|
|
5
|
+
export type { GetPartnersRequest } from "./GetPartnersRequest.js";
|
|
6
6
|
export type { ListPartnersRequest } from "./ListPartnersRequest.js";
|
|
7
|
-
export type {
|
|
8
|
-
export type {
|
|
9
|
-
export type {
|
|
7
|
+
export type { RejectPartnersRequest } from "./RejectPartnersRequest.js";
|
|
8
|
+
export type { SuspendPartnersRequest } from "./SuspendPartnersRequest.js";
|
|
9
|
+
export type { UpdatePartnersRequest } from "./UpdatePartnersRequest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CreatePartnersRequest } from "./CreatePartnersRequest.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./ApprovePartnersResponse.js";
|
|
2
2
|
export * from "./BulkApprovePartnersResponse.js";
|
|
3
3
|
export * from "./BulkRejectPartnersResponse.js";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./CreatePartnersResponse.js";
|
|
5
|
+
export * from "./GetPartnersResponse.js";
|
|
6
6
|
export * from "./ListPartnersRequestOrder.js";
|
|
7
7
|
export * from "./ListPartnersRequestSort.js";
|
|
8
8
|
export * from "./ListPartnersRequestStatus.js";
|
|
9
9
|
export * from "./ListPartnersResponse.js";
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
10
|
+
export * from "./RejectPartnersResponse.js";
|
|
11
|
+
export * from "./SuspendPartnersResponse.js";
|
|
12
|
+
export * from "./UpdatePartnersResponse.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./ApprovePartnersResponse.js";
|
|
2
2
|
export * from "./BulkApprovePartnersResponse.js";
|
|
3
3
|
export * from "./BulkRejectPartnersResponse.js";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./CreatePartnersResponse.js";
|
|
5
|
+
export * from "./GetPartnersResponse.js";
|
|
6
6
|
export * from "./ListPartnersRequestOrder.js";
|
|
7
7
|
export * from "./ListPartnersRequestSort.js";
|
|
8
8
|
export * from "./ListPartnersRequestStatus.js";
|
|
9
9
|
export * from "./ListPartnersResponse.js";
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
10
|
+
export * from "./RejectPartnersResponse.js";
|
|
11
|
+
export * from "./SuspendPartnersResponse.js";
|
|
12
|
+
export * from "./UpdatePartnersResponse.js";
|
|
@@ -21,12 +21,12 @@ export declare class ProgramsClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.programs.
|
|
24
|
+
* await client.programs.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
private
|
|
26
|
+
list(request?: ToltApi.ListProgramsRequest, requestOptions?: ProgramsClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListProgramsResponse>;
|
|
27
|
+
private __list;
|
|
28
28
|
/**
|
|
29
|
-
* @param {ToltApi.
|
|
29
|
+
* @param {ToltApi.GetProgramsRequest} request
|
|
30
30
|
* @param {ProgramsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -36,10 +36,10 @@ export declare class ProgramsClient {
|
|
|
36
36
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.programs.
|
|
39
|
+
* await client.programs.get({
|
|
40
40
|
* id: "id"
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
private
|
|
43
|
+
get(request: ToltApi.GetProgramsRequest, requestOptions?: ProgramsClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetProgramsResponse>;
|
|
44
|
+
private __get;
|
|
45
45
|
}
|