@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
|
@@ -22,13 +22,13 @@ export class CustomersClient {
|
|
|
22
22
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await client.customers.
|
|
25
|
+
* await client.customers.list()
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
27
|
+
list(request = {}, requestOptions) {
|
|
28
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
29
29
|
}
|
|
30
|
-
async
|
|
31
|
-
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, customer_id: customerId, status, search, } = request;
|
|
30
|
+
async __list(request = {}, requestOptions) {
|
|
31
|
+
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, customer_id: customerId, status, search, click_id: clickId, link_id: linkId, } = request;
|
|
32
32
|
const _queryParams = {
|
|
33
33
|
limit,
|
|
34
34
|
order: order != null ? order : undefined,
|
|
@@ -42,8 +42,10 @@ export class CustomersClient {
|
|
|
42
42
|
program_id: programId,
|
|
43
43
|
partner_id: partnerId,
|
|
44
44
|
customer_id: customerId,
|
|
45
|
-
status,
|
|
45
|
+
status: status != null ? status : undefined,
|
|
46
46
|
search,
|
|
47
|
+
click_id: clickId,
|
|
48
|
+
link_id: linkId,
|
|
47
49
|
};
|
|
48
50
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
49
51
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -86,22 +88,23 @@ export class CustomersClient {
|
|
|
86
88
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/customers");
|
|
87
89
|
}
|
|
88
90
|
/**
|
|
89
|
-
* @param {ToltApi.
|
|
91
|
+
* @param {ToltApi.CreateCustomersRequest} request
|
|
90
92
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
93
|
*
|
|
92
94
|
* @throws {@link ToltApi.BadRequestError}
|
|
93
95
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
96
|
+
* @throws {@link ToltApi.ConflictError}
|
|
94
97
|
* @throws {@link ToltApi.TooManyRequestsError}
|
|
95
98
|
* @throws {@link errors.ToltApiError}
|
|
96
99
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
97
100
|
*
|
|
98
101
|
* @example
|
|
99
|
-
* await client.customers.
|
|
102
|
+
* await client.customers.create()
|
|
100
103
|
*/
|
|
101
|
-
|
|
102
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
104
|
+
create(request = {}, requestOptions) {
|
|
105
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
103
106
|
}
|
|
104
|
-
async
|
|
107
|
+
async __create(request = {}, requestOptions) {
|
|
105
108
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
106
109
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
107
110
|
const _response = await core.fetcher({
|
|
@@ -129,6 +132,8 @@ export class CustomersClient {
|
|
|
129
132
|
throw new ToltApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
130
133
|
case 401:
|
|
131
134
|
throw new ToltApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
135
|
+
case 409:
|
|
136
|
+
throw new ToltApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
132
137
|
case 429:
|
|
133
138
|
throw new ToltApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
134
139
|
default:
|
|
@@ -142,7 +147,7 @@ export class CustomersClient {
|
|
|
142
147
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/customers");
|
|
143
148
|
}
|
|
144
149
|
/**
|
|
145
|
-
* @param {ToltApi.
|
|
150
|
+
* @param {ToltApi.GetCustomersRequest} request
|
|
146
151
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
152
|
*
|
|
148
153
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -152,14 +157,14 @@ export class CustomersClient {
|
|
|
152
157
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
153
158
|
*
|
|
154
159
|
* @example
|
|
155
|
-
* await client.customers.
|
|
160
|
+
* await client.customers.get({
|
|
156
161
|
* id: "id"
|
|
157
162
|
* })
|
|
158
163
|
*/
|
|
159
|
-
|
|
160
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
164
|
+
get(request, requestOptions) {
|
|
165
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
161
166
|
}
|
|
162
|
-
async
|
|
167
|
+
async __get(request, requestOptions) {
|
|
163
168
|
const { id } = request;
|
|
164
169
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
165
170
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -198,25 +203,26 @@ export class CustomersClient {
|
|
|
198
203
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/customers/{id}");
|
|
199
204
|
}
|
|
200
205
|
/**
|
|
201
|
-
* @param {ToltApi.
|
|
206
|
+
* @param {ToltApi.UpdateCustomersRequest} request
|
|
202
207
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
208
|
*
|
|
204
209
|
* @throws {@link ToltApi.BadRequestError}
|
|
205
210
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
206
211
|
* @throws {@link ToltApi.NotFoundError}
|
|
212
|
+
* @throws {@link ToltApi.ConflictError}
|
|
207
213
|
* @throws {@link ToltApi.TooManyRequestsError}
|
|
208
214
|
* @throws {@link errors.ToltApiError}
|
|
209
215
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
210
216
|
*
|
|
211
217
|
* @example
|
|
212
|
-
* await client.customers.
|
|
218
|
+
* await client.customers.update({
|
|
213
219
|
* id: "id"
|
|
214
220
|
* })
|
|
215
221
|
*/
|
|
216
|
-
|
|
217
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
222
|
+
update(request, requestOptions) {
|
|
223
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
218
224
|
}
|
|
219
|
-
async
|
|
225
|
+
async __update(request, requestOptions) {
|
|
220
226
|
const { id, ..._body } = request;
|
|
221
227
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
222
228
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -247,6 +253,8 @@ export class CustomersClient {
|
|
|
247
253
|
throw new ToltApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
248
254
|
case 404:
|
|
249
255
|
throw new ToltApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
256
|
+
case 409:
|
|
257
|
+
throw new ToltApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
250
258
|
case 429:
|
|
251
259
|
throw new ToltApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
252
260
|
default:
|
|
@@ -260,9 +268,10 @@ export class CustomersClient {
|
|
|
260
268
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v2/customers/{id}");
|
|
261
269
|
}
|
|
262
270
|
/**
|
|
263
|
-
* @param {ToltApi.
|
|
271
|
+
* @param {ToltApi.DeleteCustomersRequest} request
|
|
264
272
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
265
273
|
*
|
|
274
|
+
* @throws {@link ToltApi.BadRequestError}
|
|
266
275
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
267
276
|
* @throws {@link ToltApi.NotFoundError}
|
|
268
277
|
* @throws {@link ToltApi.TooManyRequestsError}
|
|
@@ -270,14 +279,14 @@ export class CustomersClient {
|
|
|
270
279
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
271
280
|
*
|
|
272
281
|
* @example
|
|
273
|
-
* await client.customers.
|
|
282
|
+
* await client.customers.delete({
|
|
274
283
|
* id: "id"
|
|
275
284
|
* })
|
|
276
285
|
*/
|
|
277
|
-
|
|
278
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
286
|
+
delete(request, requestOptions) {
|
|
287
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
279
288
|
}
|
|
280
|
-
async
|
|
289
|
+
async __delete(request, requestOptions) {
|
|
281
290
|
const { id } = request;
|
|
282
291
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
283
292
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -299,6 +308,8 @@ export class CustomersClient {
|
|
|
299
308
|
}
|
|
300
309
|
if (_response.error.reason === "status-code") {
|
|
301
310
|
switch (_response.error.statusCode) {
|
|
311
|
+
case 400:
|
|
312
|
+
throw new ToltApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
302
313
|
case 401:
|
|
303
314
|
throw new ToltApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
304
315
|
case 404:
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateCustomersRequest {
|
|
6
|
+
email?: string;
|
|
7
|
+
/** Resolve a code in the partner’s program, preferring partner, group, then program scope. An unmatched code leaves attribution unchanged. */
|
|
8
|
+
promotion_code?: string;
|
|
9
|
+
created_at?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
customer_id?: string;
|
|
12
|
+
status?: CreateCustomersRequest.Status;
|
|
13
|
+
subscription_id?: string;
|
|
14
|
+
click_id?: string;
|
|
15
|
+
link_id?: string;
|
|
16
|
+
partner_id?: string;
|
|
17
|
+
lead_at?: string | null;
|
|
18
|
+
active_at?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace CreateCustomersRequest {
|
|
21
|
+
const Status: {
|
|
22
|
+
readonly Lead: "lead";
|
|
23
|
+
readonly Active: "active";
|
|
24
|
+
readonly Canceled: "canceled";
|
|
25
|
+
readonly Suspended: "suspended";
|
|
26
|
+
readonly Trialing: "trialing";
|
|
27
|
+
};
|
|
28
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var CreateCustomersRequest;
|
|
3
|
+
(function (CreateCustomersRequest) {
|
|
4
|
+
CreateCustomersRequest.Status = {
|
|
5
|
+
Lead: "lead",
|
|
6
|
+
Active: "active",
|
|
7
|
+
Canceled: "canceled",
|
|
8
|
+
Suspended: "suspended",
|
|
9
|
+
Trialing: "trialing",
|
|
10
|
+
};
|
|
11
|
+
})(CreateCustomersRequest || (CreateCustomersRequest = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "id"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface UpdateCustomersRequest {
|
|
8
|
+
id: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
/** Resolve a code in the partner’s program, preferring partner, group, then program scope. An unmatched code leaves attribution unchanged. Null clears the promotion code and its derived attribution. */
|
|
11
|
+
promotion_code?: string | null;
|
|
12
|
+
created_at?: string;
|
|
13
|
+
name?: string | null;
|
|
14
|
+
status?: UpdateCustomersRequest.Status | null;
|
|
15
|
+
customer_id?: string;
|
|
16
|
+
subscription_id?: string | null;
|
|
17
|
+
click_id?: string | null;
|
|
18
|
+
link_id?: string | null;
|
|
19
|
+
lead_at?: string | null;
|
|
20
|
+
active_at?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace UpdateCustomersRequest {
|
|
23
|
+
const Status: {
|
|
24
|
+
readonly Lead: "lead";
|
|
25
|
+
readonly Active: "active";
|
|
26
|
+
readonly Canceled: "canceled";
|
|
27
|
+
readonly Suspended: "suspended";
|
|
28
|
+
readonly Trialing: "trialing";
|
|
29
|
+
};
|
|
30
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UpdateCustomersRequest;
|
|
3
|
+
(function (UpdateCustomersRequest) {
|
|
4
|
+
UpdateCustomersRequest.Status = {
|
|
5
|
+
Lead: "lead",
|
|
6
|
+
Active: "active",
|
|
7
|
+
Canceled: "canceled",
|
|
8
|
+
Suspended: "suspended",
|
|
9
|
+
Trialing: "trialing",
|
|
10
|
+
};
|
|
11
|
+
})(UpdateCustomersRequest || (UpdateCustomersRequest = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type {
|
|
3
|
-
export type {
|
|
1
|
+
export { CreateCustomersRequest } from "./CreateCustomersRequest.js";
|
|
2
|
+
export type { DeleteCustomersRequest } from "./DeleteCustomersRequest.js";
|
|
3
|
+
export type { GetCustomersRequest } from "./GetCustomersRequest.js";
|
|
4
4
|
export type { ListCustomersRequest } from "./ListCustomersRequest.js";
|
|
5
|
-
export
|
|
5
|
+
export { UpdateCustomersRequest } from "./UpdateCustomersRequest.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { CreateCustomersRequest } from "./CreateCustomersRequest.js";
|
|
2
|
+
export { UpdateCustomersRequest } from "./UpdateCustomersRequest.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ListCustomersRequestStatus: {
|
|
2
|
+
readonly Lead: "lead";
|
|
3
|
+
readonly Active: "active";
|
|
4
|
+
readonly Canceled: "canceled";
|
|
5
|
+
readonly Suspended: "suspended";
|
|
6
|
+
readonly Trialing: "trialing";
|
|
7
|
+
};
|
|
8
|
+
export type ListCustomersRequestStatus = (typeof ListCustomersRequestStatus)[keyof typeof ListCustomersRequestStatus];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./CreateCustomersResponse.js";
|
|
2
|
+
export * from "./DeleteCustomersResponse.js";
|
|
3
|
+
export * from "./GetCustomersResponse.js";
|
|
4
4
|
export * from "./ListCustomersRequestOrder.js";
|
|
5
5
|
export * from "./ListCustomersRequestSort.js";
|
|
6
|
+
export * from "./ListCustomersRequestStatus.js";
|
|
6
7
|
export * from "./ListCustomersResponse.js";
|
|
7
|
-
export * from "./
|
|
8
|
+
export * from "./UpdateCustomersResponse.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./CreateCustomersResponse.js";
|
|
2
|
+
export * from "./DeleteCustomersResponse.js";
|
|
3
|
+
export * from "./GetCustomersResponse.js";
|
|
4
4
|
export * from "./ListCustomersRequestOrder.js";
|
|
5
5
|
export * from "./ListCustomersRequestSort.js";
|
|
6
|
+
export * from "./ListCustomersRequestStatus.js";
|
|
6
7
|
export * from "./ListCustomersResponse.js";
|
|
7
|
-
export * from "./
|
|
8
|
+
export * from "./UpdateCustomersResponse.js";
|
|
@@ -13,7 +13,7 @@ export declare class EmbedClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Mint a short-lived, partner-scoped token for the embedded referral dashboard. Safe to send to the browser.
|
|
15
15
|
*
|
|
16
|
-
* @param {ToltApi.
|
|
16
|
+
* @param {ToltApi.CreateTokenEmbedRequest} request
|
|
17
17
|
* @param {EmbedClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -24,8 +24,8 @@ export declare class EmbedClient {
|
|
|
24
24
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.embed.
|
|
27
|
+
* await client.embed.createToken()
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
private
|
|
29
|
+
createToken(request?: ToltApi.CreateTokenEmbedRequest, requestOptions?: EmbedClient.RequestOptions): core.HttpResponsePromise<ToltApi.CreateTokenEmbedResponse>;
|
|
30
|
+
private __createToken;
|
|
31
31
|
}
|
|
@@ -14,7 +14,7 @@ export class EmbedClient {
|
|
|
14
14
|
/**
|
|
15
15
|
* Mint a short-lived, partner-scoped token for the embedded referral dashboard. Safe to send to the browser.
|
|
16
16
|
*
|
|
17
|
-
* @param {ToltApi.
|
|
17
|
+
* @param {ToltApi.CreateTokenEmbedRequest} request
|
|
18
18
|
* @param {EmbedClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
19
|
*
|
|
20
20
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -25,12 +25,12 @@ export class EmbedClient {
|
|
|
25
25
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.embed.
|
|
28
|
+
* await client.embed.createToken()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
createToken(request = {}, requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__createToken(request, requestOptions));
|
|
32
32
|
}
|
|
33
|
-
async
|
|
33
|
+
async __createToken(request = {}, requestOptions) {
|
|
34
34
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
35
35
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
36
36
|
const _response = await core.fetcher({
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateTokenEmbedRequest {
|
|
6
|
+
partner_id?: string;
|
|
7
|
+
partner?: CreateTokenEmbedRequest.Partner;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace CreateTokenEmbedRequest {
|
|
10
|
+
interface Partner {
|
|
11
|
+
email: string;
|
|
12
|
+
program_id: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { CreateTokenEmbedRequest } from "./CreateTokenEmbedRequest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./CreateTokenEmbedResponse.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./CreateTokenEmbedResponse.js";
|
|
@@ -21,12 +21,12 @@ export declare class FlowsClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.flows.
|
|
24
|
+
* await client.flows.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
private
|
|
26
|
+
list(request?: ToltApi.ListFlowsRequest, requestOptions?: FlowsClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListFlowsResponse>;
|
|
27
|
+
private __list;
|
|
28
28
|
/**
|
|
29
|
-
* @param {ToltApi.
|
|
29
|
+
* @param {ToltApi.GetFlowsRequest} request
|
|
30
30
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -36,10 +36,10 @@ export declare class FlowsClient {
|
|
|
36
36
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.flows.
|
|
39
|
+
* await client.flows.get({
|
|
40
40
|
* id: "id"
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
private
|
|
43
|
+
get(request: ToltApi.GetFlowsRequest, requestOptions?: FlowsClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetFlowsResponse>;
|
|
44
|
+
private __get;
|
|
45
45
|
}
|
|
@@ -21,12 +21,12 @@ export class FlowsClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.flows.
|
|
24
|
+
* await client.flows.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
26
|
+
list(request = {}, requestOptions) {
|
|
27
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
28
28
|
}
|
|
29
|
-
async
|
|
29
|
+
async __list(request = {}, requestOptions) {
|
|
30
30
|
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, group_id: groupId, campaign_id: campaignId, event, active, search, } = request;
|
|
31
31
|
const _queryParams = {
|
|
32
32
|
limit,
|
|
@@ -86,7 +86,7 @@ export class FlowsClient {
|
|
|
86
86
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/flows");
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* @param {ToltApi.
|
|
89
|
+
* @param {ToltApi.GetFlowsRequest} request
|
|
90
90
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
91
|
*
|
|
92
92
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -96,14 +96,14 @@ export class FlowsClient {
|
|
|
96
96
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
|
-
* await client.flows.
|
|
99
|
+
* await client.flows.get({
|
|
100
100
|
* id: "id"
|
|
101
101
|
* })
|
|
102
102
|
*/
|
|
103
|
-
|
|
104
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
103
|
+
get(request, requestOptions) {
|
|
104
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
105
105
|
}
|
|
106
|
-
async
|
|
106
|
+
async __get(request, requestOptions) {
|
|
107
107
|
const { id } = request;
|
|
108
108
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
109
109
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { GetFlowsRequest } from "./GetFlowsRequest.js";
|
|
2
2
|
export type { ListFlowsRequest } from "./ListFlowsRequest.js";
|
|
@@ -21,12 +21,12 @@ export declare class GroupsClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.groups.
|
|
24
|
+
* await client.groups.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
private
|
|
26
|
+
list(request?: ToltApi.ListGroupsRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListGroupsResponse>;
|
|
27
|
+
private __list;
|
|
28
28
|
/**
|
|
29
|
-
* @param {ToltApi.
|
|
29
|
+
* @param {ToltApi.GetGroupsRequest} request
|
|
30
30
|
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -36,10 +36,10 @@ export declare class GroupsClient {
|
|
|
36
36
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.groups.
|
|
39
|
+
* await client.groups.get({
|
|
40
40
|
* id: "id"
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
private
|
|
43
|
+
get(request: ToltApi.GetGroupsRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetGroupsResponse>;
|
|
44
|
+
private __get;
|
|
45
45
|
}
|