@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
|
@@ -10,10 +10,30 @@ export declare namespace ClicksClient {
|
|
|
10
10
|
export declare class ClicksClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ClicksClient.Options>;
|
|
12
12
|
constructor(options: ClicksClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Lists recorded clicks. Filter by program, partner, link, country, or device, and page with cursors.
|
|
15
|
+
*
|
|
16
|
+
* @param {ToltApi.ListClicksRequest} request
|
|
17
|
+
* @param {ClicksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link ToltApi.BadRequestError}
|
|
20
|
+
* @throws {@link ToltApi.UnauthorizedError}
|
|
21
|
+
* @throws {@link ToltApi.TooManyRequestsError}
|
|
22
|
+
* @throws {@link errors.ToltApiError}
|
|
23
|
+
* @throws {@link errors.ToltApiTimeoutError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.clicks.list({
|
|
27
|
+
* country: "Canada",
|
|
28
|
+
* device: "desktop"
|
|
29
|
+
* })
|
|
30
|
+
*/
|
|
31
|
+
list(request?: ToltApi.ListClicksRequest, requestOptions?: ClicksClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListClicksResponse>;
|
|
32
|
+
private __list;
|
|
13
33
|
/**
|
|
14
34
|
* Records a click on a partner's link from your own server, for visits the browser script cannot see. Identify the source by link_id, by partner_id with an optional link_id, or by the link's param and value; the partner and program are resolved from it. Pass the returned id as click_id when you create the customer.
|
|
15
35
|
*
|
|
16
|
-
* @param {ToltApi.
|
|
36
|
+
* @param {ToltApi.CreateClicksRequest} request
|
|
17
37
|
* @param {ClicksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
38
|
*
|
|
19
39
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -23,14 +43,14 @@ export declare class ClicksClient {
|
|
|
23
43
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
24
44
|
*
|
|
25
45
|
* @example
|
|
26
|
-
* await client.clicks.
|
|
46
|
+
* await client.clicks.create({
|
|
27
47
|
* "key": "value"
|
|
28
48
|
* })
|
|
29
49
|
*/
|
|
30
|
-
|
|
31
|
-
private
|
|
50
|
+
create(request: ToltApi.CreateClicksRequest, requestOptions?: ClicksClient.RequestOptions): core.HttpResponsePromise<ToltApi.CreateClicksResponse>;
|
|
51
|
+
private __create;
|
|
32
52
|
/**
|
|
33
|
-
* @param {ToltApi.
|
|
53
|
+
* @param {ToltApi.GetClicksRequest} request
|
|
34
54
|
* @param {ClicksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
55
|
*
|
|
36
56
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -40,10 +60,10 @@ export declare class ClicksClient {
|
|
|
40
60
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
41
61
|
*
|
|
42
62
|
* @example
|
|
43
|
-
* await client.clicks.
|
|
63
|
+
* await client.clicks.get({
|
|
44
64
|
* id: "id"
|
|
45
65
|
* })
|
|
46
66
|
*/
|
|
47
|
-
|
|
48
|
-
private
|
|
67
|
+
get(request: ToltApi.GetClicksRequest, requestOptions?: ClicksClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetClicksResponse>;
|
|
68
|
+
private __get;
|
|
49
69
|
}
|
|
@@ -11,10 +11,89 @@ export class ClicksClient {
|
|
|
11
11
|
constructor(options) {
|
|
12
12
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Lists recorded clicks. Filter by program, partner, link, country, or device, and page with cursors.
|
|
16
|
+
*
|
|
17
|
+
* @param {ToltApi.ListClicksRequest} request
|
|
18
|
+
* @param {ClicksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link ToltApi.BadRequestError}
|
|
21
|
+
* @throws {@link ToltApi.UnauthorizedError}
|
|
22
|
+
* @throws {@link ToltApi.TooManyRequestsError}
|
|
23
|
+
* @throws {@link errors.ToltApiError}
|
|
24
|
+
* @throws {@link errors.ToltApiTimeoutError}
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* await client.clicks.list({
|
|
28
|
+
* country: "Canada",
|
|
29
|
+
* device: "desktop"
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
list(request = {}, requestOptions) {
|
|
33
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
34
|
+
}
|
|
35
|
+
async __list(request = {}, requestOptions) {
|
|
36
|
+
const { limit, order, sort, starting_after: startingAfter, ending_before: endingBefore, created_after: createdAfter, created_before: createdBefore, updated_after: updatedAfter, updated_before: updatedBefore, program_id: programId, partner_id: partnerId, link_id: linkId, country, device, } = request;
|
|
37
|
+
const _queryParams = {
|
|
38
|
+
limit,
|
|
39
|
+
order: order != null ? order : undefined,
|
|
40
|
+
sort: sort != null ? sort : undefined,
|
|
41
|
+
starting_after: startingAfter,
|
|
42
|
+
ending_before: endingBefore,
|
|
43
|
+
created_after: createdAfter != null ? createdAfter : undefined,
|
|
44
|
+
created_before: createdBefore != null ? createdBefore : undefined,
|
|
45
|
+
updated_after: updatedAfter != null ? updatedAfter : undefined,
|
|
46
|
+
updated_before: updatedBefore != null ? updatedBefore : undefined,
|
|
47
|
+
program_id: programId,
|
|
48
|
+
partner_id: partnerId,
|
|
49
|
+
link_id: linkId,
|
|
50
|
+
country,
|
|
51
|
+
device,
|
|
52
|
+
};
|
|
53
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
54
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
55
|
+
const _response = await core.fetcher({
|
|
56
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
57
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
58
|
+
environments.ToltApiEnvironment.Production, "v2/clicks"),
|
|
59
|
+
method: "GET",
|
|
60
|
+
headers: _headers,
|
|
61
|
+
queryString: core.url
|
|
62
|
+
.queryBuilder()
|
|
63
|
+
.addMany(_queryParams)
|
|
64
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
65
|
+
.build(),
|
|
66
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
67
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
68
|
+
abortSignal: requestOptions?.abortSignal,
|
|
69
|
+
fetchFn: this._options?.fetch,
|
|
70
|
+
logging: this._options.logging,
|
|
71
|
+
});
|
|
72
|
+
if (_response.ok) {
|
|
73
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
74
|
+
}
|
|
75
|
+
if (_response.error.reason === "status-code") {
|
|
76
|
+
switch (_response.error.statusCode) {
|
|
77
|
+
case 400:
|
|
78
|
+
throw new ToltApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 401:
|
|
80
|
+
throw new ToltApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 429:
|
|
82
|
+
throw new ToltApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
83
|
+
default:
|
|
84
|
+
throw new errors.ToltApiError({
|
|
85
|
+
statusCode: _response.error.statusCode,
|
|
86
|
+
body: _response.error.body,
|
|
87
|
+
rawResponse: _response.rawResponse,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/clicks");
|
|
92
|
+
}
|
|
14
93
|
/**
|
|
15
94
|
* Records a click on a partner's link from your own server, for visits the browser script cannot see. Identify the source by link_id, by partner_id with an optional link_id, or by the link's param and value; the partner and program are resolved from it. Pass the returned id as click_id when you create the customer.
|
|
16
95
|
*
|
|
17
|
-
* @param {ToltApi.
|
|
96
|
+
* @param {ToltApi.CreateClicksRequest} request
|
|
18
97
|
* @param {ClicksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
98
|
*
|
|
20
99
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -24,14 +103,14 @@ export class ClicksClient {
|
|
|
24
103
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
25
104
|
*
|
|
26
105
|
* @example
|
|
27
|
-
* await client.clicks.
|
|
106
|
+
* await client.clicks.create({
|
|
28
107
|
* "key": "value"
|
|
29
108
|
* })
|
|
30
109
|
*/
|
|
31
|
-
|
|
32
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
110
|
+
create(request, requestOptions) {
|
|
111
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
33
112
|
}
|
|
34
|
-
async
|
|
113
|
+
async __create(request, requestOptions) {
|
|
35
114
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
36
115
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
37
116
|
const _response = await core.fetcher({
|
|
@@ -72,7 +151,7 @@ export class ClicksClient {
|
|
|
72
151
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/clicks");
|
|
73
152
|
}
|
|
74
153
|
/**
|
|
75
|
-
* @param {ToltApi.
|
|
154
|
+
* @param {ToltApi.GetClicksRequest} request
|
|
76
155
|
* @param {ClicksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
156
|
*
|
|
78
157
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -82,14 +161,14 @@ export class ClicksClient {
|
|
|
82
161
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
83
162
|
*
|
|
84
163
|
* @example
|
|
85
|
-
* await client.clicks.
|
|
164
|
+
* await client.clicks.get({
|
|
86
165
|
* id: "id"
|
|
87
166
|
* })
|
|
88
167
|
*/
|
|
89
|
-
|
|
90
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
168
|
+
get(request, requestOptions) {
|
|
169
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
91
170
|
}
|
|
92
|
-
async
|
|
171
|
+
async __get(request, requestOptions) {
|
|
93
172
|
const { id } = request;
|
|
94
173
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
95
174
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as ToltApi from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* country: "Canada",
|
|
6
|
+
* device: "desktop"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListClicksRequest {
|
|
10
|
+
limit?: number;
|
|
11
|
+
order?: ToltApi.ListClicksRequestOrder;
|
|
12
|
+
/** Column the list is ordered and paged by. */
|
|
13
|
+
sort?: ToltApi.ListClicksRequestSort;
|
|
14
|
+
/** Continue after a position: the next_cursor of a previous page, or an item id when sorting by created_at. Cannot be combined with ending_before. */
|
|
15
|
+
starting_after?: string;
|
|
16
|
+
/** Page backward from a position: the prev_cursor of a previous page, or an item id when sorting by created_at. Cannot be combined with starting_after. */
|
|
17
|
+
ending_before?: string;
|
|
18
|
+
/** Only items created at or after this ISO 8601 time. */
|
|
19
|
+
created_after?: string;
|
|
20
|
+
/** Only items created before this ISO 8601 time. */
|
|
21
|
+
created_before?: string;
|
|
22
|
+
/** Only items updated at or after this ISO 8601 time. Combine with sort=updated_at to sync changes. */
|
|
23
|
+
updated_after?: string;
|
|
24
|
+
/** Only items updated before this ISO 8601 time. */
|
|
25
|
+
updated_before?: string;
|
|
26
|
+
program_id?: string;
|
|
27
|
+
partner_id?: string;
|
|
28
|
+
link_id?: string;
|
|
29
|
+
/** Filter by the click's stored country, matched exactly (values are not normalized). Clicks recorded by the tracking script store a country name (e.g. `Canada`); clicks created through the API store a 2-letter ISO code (e.g. `CA`). Filter by the exact form you expect. */
|
|
30
|
+
country?: string;
|
|
31
|
+
/** Device type, e.g. `desktop`, `mobile` or `tablet`. */
|
|
32
|
+
device?: string;
|
|
33
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { GetClicksRequest } from "./GetClicksRequest.js";
|
|
2
|
+
export type { ListClicksRequest } from "./ListClicksRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CreateClicksRequest = unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Column the list is ordered and paged by. */
|
|
2
|
+
export declare const ListClicksRequestSort: {
|
|
3
|
+
readonly CreatedAt: "created_at";
|
|
4
|
+
readonly UpdatedAt: "updated_at";
|
|
5
|
+
};
|
|
6
|
+
export type ListClicksRequestSort = (typeof ListClicksRequestSort)[keyof typeof ListClicksRequestSort];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as ToltApi from "../../../index.js";
|
|
2
|
+
export interface ListClicksResponse {
|
|
3
|
+
success: boolean;
|
|
4
|
+
message: string;
|
|
5
|
+
data: ToltApi.Click[];
|
|
6
|
+
has_more: boolean;
|
|
7
|
+
/** Opaque cursor marking the last item on this page. Pass it as starting_after to continue. Null when the page is empty. */
|
|
8
|
+
next_cursor: string | null;
|
|
9
|
+
/** Opaque cursor marking the first item on this page. Pass it as ending_before to page backward. Null when the page is empty. */
|
|
10
|
+
prev_cursor: string | null;
|
|
11
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./CreateClicksRequest.js";
|
|
2
|
+
export * from "./CreateClicksResponse.js";
|
|
3
|
+
export * from "./GetClicksResponse.js";
|
|
4
|
+
export * from "./ListClicksRequestOrder.js";
|
|
5
|
+
export * from "./ListClicksRequestSort.js";
|
|
6
|
+
export * from "./ListClicksResponse.js";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./CreateClicksRequest.js";
|
|
2
|
+
export * from "./CreateClicksResponse.js";
|
|
3
|
+
export * from "./GetClicksResponse.js";
|
|
4
|
+
export * from "./ListClicksRequestOrder.js";
|
|
5
|
+
export * from "./ListClicksRequestSort.js";
|
|
6
|
+
export * from "./ListClicksResponse.js";
|
|
@@ -11,7 +11,7 @@ export declare class CommissionsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CommissionsClient.Options>;
|
|
12
12
|
constructor(options: CommissionsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Approves up to 100 commissions
|
|
14
|
+
* Approves up to 100 commissions and reports the outcome per id. Successful changes and affected draft invoice totals commit together.
|
|
15
15
|
*
|
|
16
16
|
* @param {ToltApi.BulkApproveCommissionsRequest} request
|
|
17
17
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -23,14 +23,14 @@ export declare class CommissionsClient {
|
|
|
23
23
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
|
-
* await client.commissions.
|
|
26
|
+
* await client.commissions.bulkApprove({
|
|
27
27
|
* ids: ["part_9fQ2xLL", "part_3RtV9k"]
|
|
28
28
|
* })
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
private
|
|
30
|
+
bulkApprove(request: ToltApi.BulkApproveCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.BulkApproveCommissionsResponse>;
|
|
31
|
+
private __bulkApprove;
|
|
32
32
|
/**
|
|
33
|
-
* Declines up to 100 commissions
|
|
33
|
+
* Declines up to 100 commissions and reports the outcome per id. Successful changes and affected draft invoice totals commit together.
|
|
34
34
|
*
|
|
35
35
|
* @param {ToltApi.BulkDeclineCommissionsRequest} request
|
|
36
36
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -42,12 +42,12 @@ export declare class CommissionsClient {
|
|
|
42
42
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.commissions.
|
|
45
|
+
* await client.commissions.bulkDecline({
|
|
46
46
|
* ids: ["part_9fQ2xLL", "part_3RtV9k"]
|
|
47
47
|
* })
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
private
|
|
49
|
+
bulkDecline(request: ToltApi.BulkDeclineCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.BulkDeclineCommissionsResponse>;
|
|
50
|
+
private __bulkDecline;
|
|
51
51
|
/**
|
|
52
52
|
* @param {ToltApi.ListCommissionsRequest} request
|
|
53
53
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,12 +59,14 @@ export declare class CommissionsClient {
|
|
|
59
59
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await client.commissions.
|
|
62
|
+
* await client.commissions.list()
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
private
|
|
64
|
+
list(request?: ToltApi.ListCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListCommissionsResponse>;
|
|
65
|
+
private __list;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Supports historical created_at values. Status defaults to approved when omitted.
|
|
68
|
+
*
|
|
69
|
+
* @param {ToltApi.CreateCommissionsRequest} request
|
|
68
70
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
71
|
*
|
|
70
72
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -75,14 +77,14 @@ export declare class CommissionsClient {
|
|
|
75
77
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
76
78
|
*
|
|
77
79
|
* @example
|
|
78
|
-
* await client.commissions.
|
|
80
|
+
* await client.commissions.create({
|
|
79
81
|
* "key": "value"
|
|
80
82
|
* })
|
|
81
83
|
*/
|
|
82
|
-
|
|
83
|
-
private
|
|
84
|
+
create(request: ToltApi.CreateCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.CreateCommissionsResponse>;
|
|
85
|
+
private __create;
|
|
84
86
|
/**
|
|
85
|
-
* @param {ToltApi.
|
|
87
|
+
* @param {ToltApi.GetCommissionsRequest} request
|
|
86
88
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
89
|
*
|
|
88
90
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -92,14 +94,16 @@ export declare class CommissionsClient {
|
|
|
92
94
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
93
95
|
*
|
|
94
96
|
* @example
|
|
95
|
-
* await client.commissions.
|
|
97
|
+
* await client.commissions.get({
|
|
96
98
|
* id: "id"
|
|
97
99
|
* })
|
|
98
100
|
*/
|
|
99
|
-
|
|
100
|
-
private
|
|
101
|
+
get(request: ToltApi.GetCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetCommissionsResponse>;
|
|
102
|
+
private __get;
|
|
101
103
|
/**
|
|
102
|
-
*
|
|
104
|
+
* Unpaid commissions can be changed unless linked to a confirmed invoice or legacy autopayout invoice. Affected draft invoice totals are recalculated.
|
|
105
|
+
*
|
|
106
|
+
* @param {ToltApi.UpdateCommissionsRequest} request
|
|
103
107
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
108
|
*
|
|
105
109
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -111,14 +115,14 @@ export declare class CommissionsClient {
|
|
|
111
115
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
112
116
|
*
|
|
113
117
|
* @example
|
|
114
|
-
* await client.commissions.
|
|
118
|
+
* await client.commissions.update({
|
|
115
119
|
* id: "id"
|
|
116
120
|
* })
|
|
117
121
|
*/
|
|
118
|
-
|
|
119
|
-
private
|
|
122
|
+
update(request: ToltApi.UpdateCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.UpdateCommissionsResponse>;
|
|
123
|
+
private __update;
|
|
120
124
|
/**
|
|
121
|
-
* @param {ToltApi.
|
|
125
|
+
* @param {ToltApi.DeleteCommissionsRequest} request
|
|
122
126
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
127
|
*
|
|
124
128
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -130,14 +134,14 @@ export declare class CommissionsClient {
|
|
|
130
134
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
131
135
|
*
|
|
132
136
|
* @example
|
|
133
|
-
* await client.commissions.
|
|
137
|
+
* await client.commissions.delete({
|
|
134
138
|
* id: "id"
|
|
135
139
|
* })
|
|
136
140
|
*/
|
|
137
|
-
|
|
138
|
-
private
|
|
141
|
+
delete(request: ToltApi.DeleteCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.DeleteCommissionsResponse>;
|
|
142
|
+
private __delete;
|
|
139
143
|
/**
|
|
140
|
-
* @param {ToltApi.
|
|
144
|
+
* @param {ToltApi.ApproveCommissionsRequest} request
|
|
141
145
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
146
|
*
|
|
143
147
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -149,14 +153,14 @@ export declare class CommissionsClient {
|
|
|
149
153
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
150
154
|
*
|
|
151
155
|
* @example
|
|
152
|
-
* await client.commissions.
|
|
156
|
+
* await client.commissions.approve({
|
|
153
157
|
* id: "id"
|
|
154
158
|
* })
|
|
155
159
|
*/
|
|
156
|
-
|
|
157
|
-
private
|
|
160
|
+
approve(request: ToltApi.ApproveCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.ApproveCommissionsResponse>;
|
|
161
|
+
private __approve;
|
|
158
162
|
/**
|
|
159
|
-
* @param {ToltApi.
|
|
163
|
+
* @param {ToltApi.DeclineCommissionsRequest} request
|
|
160
164
|
* @param {CommissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
165
|
*
|
|
162
166
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -168,10 +172,10 @@ export declare class CommissionsClient {
|
|
|
168
172
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
169
173
|
*
|
|
170
174
|
* @example
|
|
171
|
-
* await client.commissions.
|
|
175
|
+
* await client.commissions.decline({
|
|
172
176
|
* id: "id"
|
|
173
177
|
* })
|
|
174
178
|
*/
|
|
175
|
-
|
|
176
|
-
private
|
|
179
|
+
decline(request: ToltApi.DeclineCommissionsRequest, requestOptions?: CommissionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.DeclineCommissionsResponse>;
|
|
180
|
+
private __decline;
|
|
177
181
|
}
|