@tolt/api 0.5.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 +105 -24
- 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/{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
|
@@ -21,12 +21,12 @@ export class ProgramsClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.programs.
|
|
24
|
+
* await client.programs.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
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, search, } = request;
|
|
31
31
|
const _queryParams = {
|
|
32
32
|
limit,
|
|
@@ -81,7 +81,7 @@ export class ProgramsClient {
|
|
|
81
81
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/programs");
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* @param {ToltApi.
|
|
84
|
+
* @param {ToltApi.GetProgramsRequest} request
|
|
85
85
|
* @param {ProgramsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
86
|
*
|
|
87
87
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -91,14 +91,14 @@ export class ProgramsClient {
|
|
|
91
91
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.programs.
|
|
94
|
+
* await client.programs.get({
|
|
95
95
|
* id: "id"
|
|
96
96
|
* })
|
|
97
97
|
*/
|
|
98
|
-
|
|
99
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
98
|
+
get(request, requestOptions) {
|
|
99
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
100
100
|
}
|
|
101
|
-
async
|
|
101
|
+
async __get(request, requestOptions) {
|
|
102
102
|
const { id } = request;
|
|
103
103
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
104
104
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { GetProgramsRequest } from "./GetProgramsRequest.js";
|
|
2
2
|
export type { ListProgramsRequest } from "./ListProgramsRequest.js";
|
|
@@ -21,12 +21,12 @@ export declare class PromotionCodesClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.promotionCodes.
|
|
24
|
+
* await client.promotionCodes.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
private
|
|
26
|
+
list(request?: ToltApi.ListPromotionCodesRequest, requestOptions?: PromotionCodesClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListPromotionCodesResponse>;
|
|
27
|
+
private __list;
|
|
28
28
|
/**
|
|
29
|
-
* @param {ToltApi.
|
|
29
|
+
* @param {ToltApi.CreatePromotionCodesRequest} request
|
|
30
30
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -36,15 +36,15 @@ export declare class PromotionCodesClient {
|
|
|
36
36
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.promotionCodes.
|
|
39
|
+
* await client.promotionCodes.create({
|
|
40
40
|
* code: "code",
|
|
41
41
|
* partner_id: "partner_id"
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
44
|
+
create(request: ToltApi.CreatePromotionCodesRequest, requestOptions?: PromotionCodesClient.RequestOptions): core.HttpResponsePromise<ToltApi.CreatePromotionCodesResponse>;
|
|
45
|
+
private __create;
|
|
46
46
|
/**
|
|
47
|
-
* @param {ToltApi.
|
|
47
|
+
* @param {ToltApi.GetPromotionCodesRequest} request
|
|
48
48
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
49
|
*
|
|
50
50
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -54,14 +54,14 @@ export declare class PromotionCodesClient {
|
|
|
54
54
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.promotionCodes.
|
|
57
|
+
* await client.promotionCodes.get({
|
|
58
58
|
* id: "id"
|
|
59
59
|
* })
|
|
60
60
|
*/
|
|
61
|
-
|
|
62
|
-
private
|
|
61
|
+
get(request: ToltApi.GetPromotionCodesRequest, requestOptions?: PromotionCodesClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetPromotionCodesResponse>;
|
|
62
|
+
private __get;
|
|
63
63
|
/**
|
|
64
|
-
* @param {ToltApi.
|
|
64
|
+
* @param {ToltApi.UpdatePromotionCodesRequest} request
|
|
65
65
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -72,14 +72,14 @@ export declare class PromotionCodesClient {
|
|
|
72
72
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.promotionCodes.
|
|
75
|
+
* await client.promotionCodes.update({
|
|
76
76
|
* id: "id"
|
|
77
77
|
* })
|
|
78
78
|
*/
|
|
79
|
-
|
|
80
|
-
private
|
|
79
|
+
update(request: ToltApi.UpdatePromotionCodesRequest, requestOptions?: PromotionCodesClient.RequestOptions): core.HttpResponsePromise<ToltApi.UpdatePromotionCodesResponse>;
|
|
80
|
+
private __update;
|
|
81
81
|
/**
|
|
82
|
-
* @param {ToltApi.
|
|
82
|
+
* @param {ToltApi.DeletePromotionCodesRequest} request
|
|
83
83
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
84
|
*
|
|
85
85
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -89,10 +89,10 @@ export declare class PromotionCodesClient {
|
|
|
89
89
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.promotionCodes.
|
|
92
|
+
* await client.promotionCodes.delete({
|
|
93
93
|
* id: "id"
|
|
94
94
|
* })
|
|
95
95
|
*/
|
|
96
|
-
|
|
97
|
-
private
|
|
96
|
+
delete(request: ToltApi.DeletePromotionCodesRequest, requestOptions?: PromotionCodesClient.RequestOptions): core.HttpResponsePromise<ToltApi.DeletePromotionCodesResponse>;
|
|
97
|
+
private __delete;
|
|
98
98
|
}
|
|
@@ -22,12 +22,12 @@ export class PromotionCodesClient {
|
|
|
22
22
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await client.promotionCodes.
|
|
25
|
+
* await client.promotionCodes.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
|
|
30
|
+
async __list(request = {}, requestOptions) {
|
|
31
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, type: type_, search, } = request;
|
|
32
32
|
const _queryParams = {
|
|
33
33
|
limit,
|
|
@@ -41,7 +41,7 @@ export class PromotionCodesClient {
|
|
|
41
41
|
updated_before: updatedBefore != null ? updatedBefore : undefined,
|
|
42
42
|
program_id: programId,
|
|
43
43
|
partner_id: partnerId,
|
|
44
|
-
type: type_,
|
|
44
|
+
type: type_ != null ? type_ : undefined,
|
|
45
45
|
search,
|
|
46
46
|
};
|
|
47
47
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
@@ -85,7 +85,7 @@ export class PromotionCodesClient {
|
|
|
85
85
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/promotion-codes");
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* @param {ToltApi.
|
|
88
|
+
* @param {ToltApi.CreatePromotionCodesRequest} request
|
|
89
89
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
90
|
*
|
|
91
91
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -95,15 +95,15 @@ export class PromotionCodesClient {
|
|
|
95
95
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
96
96
|
*
|
|
97
97
|
* @example
|
|
98
|
-
* await client.promotionCodes.
|
|
98
|
+
* await client.promotionCodes.create({
|
|
99
99
|
* code: "code",
|
|
100
100
|
* partner_id: "partner_id"
|
|
101
101
|
* })
|
|
102
102
|
*/
|
|
103
|
-
|
|
104
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
103
|
+
create(request, requestOptions) {
|
|
104
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
105
105
|
}
|
|
106
|
-
async
|
|
106
|
+
async __create(request, requestOptions) {
|
|
107
107
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
108
108
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
109
109
|
const _response = await core.fetcher({
|
|
@@ -144,7 +144,7 @@ export class PromotionCodesClient {
|
|
|
144
144
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/promotion-codes");
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
* @param {ToltApi.
|
|
147
|
+
* @param {ToltApi.GetPromotionCodesRequest} request
|
|
148
148
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
149
|
*
|
|
150
150
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -154,14 +154,14 @@ export class PromotionCodesClient {
|
|
|
154
154
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
155
155
|
*
|
|
156
156
|
* @example
|
|
157
|
-
* await client.promotionCodes.
|
|
157
|
+
* await client.promotionCodes.get({
|
|
158
158
|
* id: "id"
|
|
159
159
|
* })
|
|
160
160
|
*/
|
|
161
|
-
|
|
162
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
161
|
+
get(request, requestOptions) {
|
|
162
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
163
163
|
}
|
|
164
|
-
async
|
|
164
|
+
async __get(request, requestOptions) {
|
|
165
165
|
const { id } = request;
|
|
166
166
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
167
167
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -200,7 +200,7 @@ export class PromotionCodesClient {
|
|
|
200
200
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/promotion-codes/{id}");
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
|
-
* @param {ToltApi.
|
|
203
|
+
* @param {ToltApi.UpdatePromotionCodesRequest} request
|
|
204
204
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
205
|
*
|
|
206
206
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -211,14 +211,14 @@ export class PromotionCodesClient {
|
|
|
211
211
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
212
212
|
*
|
|
213
213
|
* @example
|
|
214
|
-
* await client.promotionCodes.
|
|
214
|
+
* await client.promotionCodes.update({
|
|
215
215
|
* id: "id"
|
|
216
216
|
* })
|
|
217
217
|
*/
|
|
218
|
-
|
|
219
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
218
|
+
update(request, requestOptions) {
|
|
219
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
220
220
|
}
|
|
221
|
-
async
|
|
221
|
+
async __update(request, requestOptions) {
|
|
222
222
|
const { id, ..._body } = request;
|
|
223
223
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
224
224
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -262,7 +262,7 @@ export class PromotionCodesClient {
|
|
|
262
262
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v2/promotion-codes/{id}");
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* @param {ToltApi.
|
|
265
|
+
* @param {ToltApi.DeletePromotionCodesRequest} request
|
|
266
266
|
* @param {PromotionCodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
267
267
|
*
|
|
268
268
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -272,14 +272,14 @@ export class PromotionCodesClient {
|
|
|
272
272
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
273
273
|
*
|
|
274
274
|
* @example
|
|
275
|
-
* await client.promotionCodes.
|
|
275
|
+
* await client.promotionCodes.delete({
|
|
276
276
|
* id: "id"
|
|
277
277
|
* })
|
|
278
278
|
*/
|
|
279
|
-
|
|
280
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
279
|
+
delete(request, requestOptions) {
|
|
280
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
281
281
|
}
|
|
282
|
-
async
|
|
282
|
+
async __delete(request, requestOptions) {
|
|
283
283
|
const { id } = request;
|
|
284
284
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
285
285
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* code: "code",
|
|
5
|
+
* partner_id: "partner_id"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface CreatePromotionCodesRequest {
|
|
9
|
+
code: string;
|
|
10
|
+
type?: CreatePromotionCodesRequest.Type;
|
|
11
|
+
value?: string;
|
|
12
|
+
partner_id: string;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace CreatePromotionCodesRequest {
|
|
15
|
+
const Type: {
|
|
16
|
+
readonly Fixed: "fixed";
|
|
17
|
+
readonly Percentage: "percentage";
|
|
18
|
+
};
|
|
19
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var CreatePromotionCodesRequest;
|
|
3
|
+
(function (CreatePromotionCodesRequest) {
|
|
4
|
+
CreatePromotionCodesRequest.Type = {
|
|
5
|
+
Fixed: "fixed",
|
|
6
|
+
Percentage: "percentage",
|
|
7
|
+
};
|
|
8
|
+
})(CreatePromotionCodesRequest || (CreatePromotionCodesRequest = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "id"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface UpdatePromotionCodesRequest {
|
|
8
|
+
id: string;
|
|
9
|
+
code?: string;
|
|
10
|
+
type?: UpdatePromotionCodesRequest.Type | null;
|
|
11
|
+
value?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace UpdatePromotionCodesRequest {
|
|
14
|
+
const Type: {
|
|
15
|
+
readonly Fixed: "fixed";
|
|
16
|
+
readonly Percentage: "percentage";
|
|
17
|
+
};
|
|
18
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var UpdatePromotionCodesRequest;
|
|
3
|
+
(function (UpdatePromotionCodesRequest) {
|
|
4
|
+
UpdatePromotionCodesRequest.Type = {
|
|
5
|
+
Fixed: "fixed",
|
|
6
|
+
Percentage: "percentage",
|
|
7
|
+
};
|
|
8
|
+
})(UpdatePromotionCodesRequest || (UpdatePromotionCodesRequest = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type {
|
|
3
|
-
export type {
|
|
1
|
+
export { CreatePromotionCodesRequest } from "./CreatePromotionCodesRequest.js";
|
|
2
|
+
export type { DeletePromotionCodesRequest } from "./DeletePromotionCodesRequest.js";
|
|
3
|
+
export type { GetPromotionCodesRequest } from "./GetPromotionCodesRequest.js";
|
|
4
4
|
export type { ListPromotionCodesRequest } from "./ListPromotionCodesRequest.js";
|
|
5
|
-
export
|
|
5
|
+
export { UpdatePromotionCodesRequest } from "./UpdatePromotionCodesRequest.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { CreatePromotionCodesRequest } from "./CreatePromotionCodesRequest.js";
|
|
2
|
+
export { UpdatePromotionCodesRequest } from "./UpdatePromotionCodesRequest.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./CreatePromotionCodesResponse.js";
|
|
2
|
+
export * from "./DeletePromotionCodesResponse.js";
|
|
3
|
+
export * from "./GetPromotionCodesResponse.js";
|
|
4
4
|
export * from "./ListPromotionCodesRequestOrder.js";
|
|
5
5
|
export * from "./ListPromotionCodesRequestSort.js";
|
|
6
|
+
export * from "./ListPromotionCodesRequestType.js";
|
|
6
7
|
export * from "./ListPromotionCodesResponse.js";
|
|
7
|
-
export * from "./
|
|
8
|
+
export * from "./UpdatePromotionCodesResponse.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./CreatePromotionCodesResponse.js";
|
|
2
|
+
export * from "./DeletePromotionCodesResponse.js";
|
|
3
|
+
export * from "./GetPromotionCodesResponse.js";
|
|
4
4
|
export * from "./ListPromotionCodesRequestOrder.js";
|
|
5
5
|
export * from "./ListPromotionCodesRequestSort.js";
|
|
6
|
+
export * from "./ListPromotionCodesRequestType.js";
|
|
6
7
|
export * from "./ListPromotionCodesResponse.js";
|
|
7
|
-
export * from "./
|
|
8
|
+
export * from "./UpdatePromotionCodesResponse.js";
|
|
@@ -11,7 +11,7 @@ export declare class ReportsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ReportsClient.Options>;
|
|
12
12
|
constructor(options: ReportsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* @param {ToltApi.
|
|
14
|
+
* @param {ToltApi.OverviewReportsRequest} request
|
|
15
15
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -23,10 +23,10 @@ export declare class ReportsClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.reports.overview()
|
|
25
25
|
*/
|
|
26
|
-
overview(request?: ToltApi.
|
|
26
|
+
overview(request?: ToltApi.OverviewReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<ToltApi.OverviewReportsResponse>;
|
|
27
27
|
private __overview;
|
|
28
28
|
/**
|
|
29
|
-
* @param {ToltApi.
|
|
29
|
+
* @param {ToltApi.PartnersReportsRequest} request
|
|
30
30
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -38,10 +38,10 @@ export declare class ReportsClient {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.reports.partners()
|
|
40
40
|
*/
|
|
41
|
-
partners(request?: ToltApi.
|
|
41
|
+
partners(request?: ToltApi.PartnersReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<ToltApi.PartnersReportsResponse>;
|
|
42
42
|
private __partners;
|
|
43
43
|
/**
|
|
44
|
-
* @param {ToltApi.
|
|
44
|
+
* @param {ToltApi.LinksReportsRequest} request
|
|
45
45
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -53,10 +53,10 @@ export declare class ReportsClient {
|
|
|
53
53
|
* @example
|
|
54
54
|
* await client.reports.links()
|
|
55
55
|
*/
|
|
56
|
-
links(request?: ToltApi.
|
|
56
|
+
links(request?: ToltApi.LinksReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<ToltApi.LinksReportsResponse>;
|
|
57
57
|
private __links;
|
|
58
58
|
/**
|
|
59
|
-
* @param {ToltApi.
|
|
59
|
+
* @param {ToltApi.TimeseriesReportsRequest} request
|
|
60
60
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -68,10 +68,10 @@ export declare class ReportsClient {
|
|
|
68
68
|
* @example
|
|
69
69
|
* await client.reports.timeseries()
|
|
70
70
|
*/
|
|
71
|
-
timeseries(request?: ToltApi.
|
|
71
|
+
timeseries(request?: ToltApi.TimeseriesReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<ToltApi.TimeseriesReportsResponse>;
|
|
72
72
|
private __timeseries;
|
|
73
73
|
/**
|
|
74
|
-
* @param {ToltApi.
|
|
74
|
+
* @param {ToltApi.CustomerStatsReportsRequest} request
|
|
75
75
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -83,6 +83,6 @@ export declare class ReportsClient {
|
|
|
83
83
|
* @example
|
|
84
84
|
* await client.reports.customerStats()
|
|
85
85
|
*/
|
|
86
|
-
customerStats(request?: ToltApi.
|
|
86
|
+
customerStats(request?: ToltApi.CustomerStatsReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<ToltApi.CustomerStatsReportsResponse>;
|
|
87
87
|
private __customerStats;
|
|
88
88
|
}
|