@outseta/api-client 0.3.31 → 0.3.33
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/index.js +304 -289
- package/package.json +1 -1
- package/src/generated/crm/crm.ts +41 -0
- package/src/generated/models/authMagicLinkTokenParams.ts +8 -0
- package/src/generated/models/backGroundTaskType.ts +2 -1
- package/src/generated/models/index.ts +2 -0
- package/src/generated/models/personRequestMagicLinkBody.ts +7 -0
- package/src/generated/models/qcountConfigSettingType.ts +2 -1
- package/src/generated/public/public.ts +71 -0
package/dist/index.js
CHANGED
|
@@ -895,6 +895,17 @@ var personForgotPassword = async (personForgotPasswordBody, options) => {
|
|
|
895
895
|
body: JSON.stringify(personForgotPasswordBody)
|
|
896
896
|
});
|
|
897
897
|
};
|
|
898
|
+
var getPersonRequestMagicLinkUrl = () => {
|
|
899
|
+
return `/api/v1/crm/people/requestMagicLink`;
|
|
900
|
+
};
|
|
901
|
+
var personRequestMagicLink = async (personRequestMagicLinkBody, options) => {
|
|
902
|
+
return customFetch(getPersonRequestMagicLinkUrl(), {
|
|
903
|
+
...options,
|
|
904
|
+
method: "POST",
|
|
905
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
906
|
+
body: JSON.stringify(personRequestMagicLinkBody)
|
|
907
|
+
});
|
|
908
|
+
};
|
|
898
909
|
// src/generated/email/email.ts
|
|
899
910
|
var getDripCampaignGetAllDripCampaignsUrl = (params) => {
|
|
900
911
|
const normalizedParams = new URLSearchParams;
|
|
@@ -1579,7 +1590,8 @@ var BackGroundTaskType = {
|
|
|
1579
1590
|
SendSpamCheckEmailTask: 18,
|
|
1580
1591
|
UpdateDiscordMemberRolesTask: 19,
|
|
1581
1592
|
SendInvoicePaidEmailTask: 20,
|
|
1582
|
-
ResendTrialLimitEmailTask: 21
|
|
1593
|
+
ResendTrialLimitEmailTask: 21,
|
|
1594
|
+
UpdateStripeSubscriptionApplicationFeePercentTask: 22
|
|
1583
1595
|
};
|
|
1584
1596
|
// src/generated/models/billingAddOnType.ts
|
|
1585
1597
|
var BillingAddOnType = {
|
|
@@ -1801,6 +1813,7 @@ var QcountConfigSettingType = {
|
|
|
1801
1813
|
Billing_RestrictSubscriptionActions: 131,
|
|
1802
1814
|
TwoFactorAuthenticationEnabled: 140,
|
|
1803
1815
|
ForceTwoFactorAuthentication: 142,
|
|
1816
|
+
MagicLinkLoginEnabled: 143,
|
|
1804
1817
|
Stripe_TaxEnabled: 190,
|
|
1805
1818
|
Stripe_TaxIdTypes: 192,
|
|
1806
1819
|
Stripe_ApplePayMerchantIdDomainAssociation: 193,
|
|
@@ -1915,293 +1928,295 @@ var TeamRole = {
|
|
|
1915
1928
|
Operator: 3
|
|
1916
1929
|
};
|
|
1917
1930
|
export {
|
|
1918
|
-
|
|
1919
|
-
usageAddUsage,
|
|
1920
|
-
transactionsGetAllTransactionsByAccountId,
|
|
1921
|
-
transactionsAddPaymentTransaction,
|
|
1922
|
-
subscriptionSetSubscriptionUpgradeRequired,
|
|
1923
|
-
subscriptionGetSubscription,
|
|
1924
|
-
subscriptionGetAllSubscriptions,
|
|
1925
|
-
subscriptionFirstTimeSubscriptionPreview,
|
|
1926
|
-
subscriptionFirstTimeSubscription,
|
|
1927
|
-
subscriptionExpireDiscountCouponSubscription,
|
|
1928
|
-
subscriptionDeleteSubscription,
|
|
1929
|
-
subscriptionChangeSubscriptionPreview,
|
|
1930
|
-
subscriptionChangeSubscription,
|
|
1931
|
-
subscriptionAddOnSetAddOnUpgradeRequired,
|
|
1932
|
-
subscriptionAddOnGetSubscriptionAddOn,
|
|
1933
|
-
subscriptionAddOnGetAllSubscriptionsAddOns,
|
|
1934
|
-
subscriptionAddOnExpireSubscriptionAddOn,
|
|
1935
|
-
subscriptionAddOnEndSubscriptionAddOn,
|
|
1936
|
-
subscriptionAddOnAddSubscriptionAddOnPreview,
|
|
1937
|
-
subscriptionAddOnAddSubscriptionAddOn,
|
|
1938
|
-
subscriptionAddDiscountToSubscription,
|
|
1939
|
-
registrationRegisterAccount,
|
|
1940
|
-
planUpdatePlan,
|
|
1941
|
-
planGetPlan,
|
|
1942
|
-
planGetAllPlans,
|
|
1943
|
-
planFamilyUpdatePlanFamily,
|
|
1944
|
-
planFamilyGetPlanFamily,
|
|
1945
|
-
planFamilyGetAllPlanFamilies,
|
|
1946
|
-
planFamilyDeletePlanFamily,
|
|
1947
|
-
planFamilyAddPlanFamily,
|
|
1948
|
-
planDeletePlan,
|
|
1949
|
-
planAddPlan,
|
|
1950
|
-
personUpdatePerson,
|
|
1951
|
-
personSetTemporaryPassword,
|
|
1952
|
-
personRegenerateTwoFactorRecoveryCodes,
|
|
1953
|
-
personGetPerson,
|
|
1954
|
-
personGetAllPeople,
|
|
1955
|
-
personForgotPassword,
|
|
1956
|
-
personDeletePerson,
|
|
1957
|
-
personAddPerson,
|
|
1958
|
-
paymentInformationSavePaymentInformation,
|
|
1959
|
-
invoiceUpdateInvoice,
|
|
1960
|
-
invoiceSendInvoicePaidEmail,
|
|
1961
|
-
invoiceSendInvoiceEmail,
|
|
1962
|
-
invoiceGetInvoiceAsPdf,
|
|
1963
|
-
invoiceGetInvoice,
|
|
1964
|
-
invoiceGetAllInvoices,
|
|
1965
|
-
invoiceDeleteInvoice,
|
|
1966
|
-
invoiceAddInvoice,
|
|
1967
|
-
getUsageAddUsageUrl,
|
|
1968
|
-
getTransactionsGetAllTransactionsByAccountIdUrl,
|
|
1969
|
-
getTransactionsAddPaymentTransactionUrl,
|
|
1970
|
-
getSubscriptionSetSubscriptionUpgradeRequiredUrl,
|
|
1971
|
-
getSubscriptionGetSubscriptionUrl,
|
|
1972
|
-
getSubscriptionGetAllSubscriptionsUrl,
|
|
1973
|
-
getSubscriptionFirstTimeSubscriptionUrl,
|
|
1974
|
-
getSubscriptionFirstTimeSubscriptionPreviewUrl,
|
|
1975
|
-
getSubscriptionExpireDiscountCouponSubscriptionUrl,
|
|
1976
|
-
getSubscriptionDeleteSubscriptionUrl,
|
|
1977
|
-
getSubscriptionChangeSubscriptionUrl,
|
|
1978
|
-
getSubscriptionChangeSubscriptionPreviewUrl,
|
|
1979
|
-
getSubscriptionAddOnSetAddOnUpgradeRequiredUrl,
|
|
1980
|
-
getSubscriptionAddOnGetSubscriptionAddOnUrl,
|
|
1981
|
-
getSubscriptionAddOnGetAllSubscriptionsAddOnsUrl,
|
|
1982
|
-
getSubscriptionAddOnExpireSubscriptionAddOnUrl,
|
|
1983
|
-
getSubscriptionAddOnEndSubscriptionAddOnUrl,
|
|
1984
|
-
getSubscriptionAddOnAddSubscriptionAddOnUrl,
|
|
1985
|
-
getSubscriptionAddOnAddSubscriptionAddOnPreviewUrl,
|
|
1986
|
-
getSubscriptionAddDiscountToSubscriptionUrl,
|
|
1987
|
-
getRegistrationRegisterAccountUrl,
|
|
1988
|
-
getPlanUpdatePlanUrl,
|
|
1989
|
-
getPlanGetPlanUrl,
|
|
1990
|
-
getPlanGetAllPlansUrl,
|
|
1991
|
-
getPlanFamilyUpdatePlanFamilyUrl,
|
|
1992
|
-
getPlanFamilyGetPlanFamilyUrl,
|
|
1993
|
-
getPlanFamilyGetAllPlanFamiliesUrl,
|
|
1994
|
-
getPlanFamilyDeletePlanFamilyUrl,
|
|
1995
|
-
getPlanFamilyAddPlanFamilyUrl,
|
|
1996
|
-
getPlanDeletePlanUrl,
|
|
1997
|
-
getPlanAddPlanUrl,
|
|
1998
|
-
getPersonUpdatePersonUrl,
|
|
1999
|
-
getPersonSetTemporaryPasswordUrl,
|
|
2000
|
-
getPersonRegenerateTwoFactorRecoveryCodesUrl,
|
|
2001
|
-
getPersonGetPersonUrl,
|
|
2002
|
-
getPersonGetAllPeopleUrl,
|
|
2003
|
-
getPersonForgotPasswordUrl,
|
|
2004
|
-
getPersonDeletePersonUrl,
|
|
2005
|
-
getPersonAddPersonUrl,
|
|
2006
|
-
getPaymentInformationSavePaymentInformationUrl,
|
|
2007
|
-
getInvoiceUpdateInvoiceUrl,
|
|
2008
|
-
getInvoiceSendInvoicePaidEmailUrl,
|
|
2009
|
-
getInvoiceSendInvoiceEmailUrl,
|
|
2010
|
-
getInvoiceGetInvoiceUrl,
|
|
2011
|
-
getInvoiceGetInvoiceAsPdfUrl,
|
|
2012
|
-
getInvoiceGetAllInvoicesUrl,
|
|
2013
|
-
getInvoiceDeleteInvoiceUrl,
|
|
2014
|
-
getInvoiceAddInvoiceUrl,
|
|
2015
|
-
getEmailListUpdateEmailListUrl,
|
|
2016
|
-
getEmailListGetEmailListUrl,
|
|
2017
|
-
getEmailListGetAllSubscriptionsUrl,
|
|
2018
|
-
getEmailListGetAllEmailListsUrl,
|
|
2019
|
-
getEmailListDeleteSubscriptionUrl,
|
|
2020
|
-
getEmailListDeleteEmailListUrl,
|
|
2021
|
-
getEmailListAddSubscriptionUrl,
|
|
2022
|
-
getEmailListAddEmailListUrl,
|
|
2023
|
-
getDripCampaignUpdateDripCampaignUrl,
|
|
2024
|
-
getDripCampaignUpdateDripCampaignMessageUrl,
|
|
2025
|
-
getDripCampaignSendTestCampaignEmailUrl,
|
|
2026
|
-
getDripCampaignGetDripCampaignUrl,
|
|
2027
|
-
getDripCampaignGetDripCampaignMessageUrl,
|
|
2028
|
-
getDripCampaignGetAllDripCampaignsUrl,
|
|
2029
|
-
getDripCampaignDeleteDripCampaignUrl,
|
|
2030
|
-
getDripCampaignDeleteDripCampaignMessageUrl,
|
|
2031
|
-
getDripCampaignAddDripCampaignUrl,
|
|
2032
|
-
getDripCampaignAddDripCampaignMessageUrl,
|
|
2033
|
-
getDiscountCouponUpdateDiscountCouponUrl,
|
|
2034
|
-
getDiscountCouponGetDiscountCouponUrl,
|
|
2035
|
-
getDiscountCouponGetDiscountCouponRedemptionsUrl,
|
|
2036
|
-
getDiscountCouponGetDiscountCouponByCodeUrl,
|
|
2037
|
-
getDiscountCouponGetAllDiscountCouponsUrl,
|
|
2038
|
-
getDiscountCouponDeleteDiscountCouponUrl,
|
|
2039
|
-
getDiscountCouponAddDiscountCouponUrl,
|
|
2040
|
-
getDealUpdateDealUrl,
|
|
2041
|
-
getDealGetDealUrl,
|
|
2042
|
-
getDealGetAllDealsUrl,
|
|
2043
|
-
getDealDeleteDealUrl,
|
|
2044
|
-
getDealAddDealUrl,
|
|
2045
|
-
getCategoryGetAllCategoriesUrl,
|
|
2046
|
-
getCaseGetCaseUrl,
|
|
2047
|
-
getCaseGetAllCasesUrl,
|
|
2048
|
-
getCaseAddReplyUrl,
|
|
2049
|
-
getCaseAddClientResponseUrl,
|
|
2050
|
-
getCaseAddCaseUrl,
|
|
2051
|
-
getCampaignUpdateBroadcastEmailUrl,
|
|
2052
|
-
getCampaignUnscheduleBroadcastEmailUrl,
|
|
2053
|
-
getCampaignSendTestCampaignEmailUrl,
|
|
2054
|
-
getCampaignGetBroadcastEmailUrl,
|
|
2055
|
-
getCampaignGetAllBroadcastEmailsUrl,
|
|
2056
|
-
getCampaignDeleteBroadcastCampaignUrl,
|
|
2057
|
-
getCampaignArchiveBroadcastCampaignUrl,
|
|
2058
|
-
getCampaignAddBroadcastEmailUrl,
|
|
2059
|
-
getArticleGetArticleUrl,
|
|
2060
|
-
getArticleGetAllArticlesUrl,
|
|
2061
|
-
getArticleAddArticleUrl,
|
|
2062
|
-
getActivityGetAllUrl,
|
|
2063
|
-
getActivityAddCustomActivityUrl,
|
|
2064
|
-
getAccountUpdateMembershipUrl,
|
|
2065
|
-
getAccountUpdateAccountUrl,
|
|
2066
|
-
getAccountSendConfirmationEmailUrl,
|
|
2067
|
-
getAccountRemoveCancellationUrl,
|
|
2068
|
-
getAccountGetAllAccountsUrl,
|
|
2069
|
-
getAccountGetAccountUrl,
|
|
2070
|
-
getAccountExtendTrialUrl,
|
|
2071
|
-
getAccountDeleteMembershipUrl,
|
|
2072
|
-
getAccountDeleteAccountUrl,
|
|
2073
|
-
getAccountCancelAccountUrl,
|
|
2074
|
-
getAccountAddPersonToAccountUrl,
|
|
2075
|
-
getAccountAddAccountUrl,
|
|
2076
|
-
emailListUpdateEmailList,
|
|
2077
|
-
emailListGetEmailList,
|
|
2078
|
-
emailListGetAllSubscriptions,
|
|
2079
|
-
emailListGetAllEmailLists,
|
|
2080
|
-
emailListDeleteSubscription,
|
|
2081
|
-
emailListDeleteEmailList,
|
|
2082
|
-
emailListAddSubscription,
|
|
2083
|
-
emailListAddEmailList,
|
|
2084
|
-
dripCampaignUpdateDripCampaignMessage,
|
|
2085
|
-
dripCampaignUpdateDripCampaign,
|
|
2086
|
-
dripCampaignSendTestCampaignEmail,
|
|
2087
|
-
dripCampaignGetDripCampaignMessage,
|
|
2088
|
-
dripCampaignGetDripCampaign,
|
|
2089
|
-
dripCampaignGetAllDripCampaigns,
|
|
2090
|
-
dripCampaignDeleteDripCampaignMessage,
|
|
2091
|
-
dripCampaignDeleteDripCampaign,
|
|
2092
|
-
dripCampaignAddDripCampaignMessage,
|
|
2093
|
-
dripCampaignAddDripCampaign,
|
|
2094
|
-
discountCouponUpdateDiscountCoupon,
|
|
2095
|
-
discountCouponGetDiscountCouponRedemptions,
|
|
2096
|
-
discountCouponGetDiscountCouponByCode,
|
|
2097
|
-
discountCouponGetDiscountCoupon,
|
|
2098
|
-
discountCouponGetAllDiscountCoupons,
|
|
2099
|
-
discountCouponDeleteDiscountCoupon,
|
|
2100
|
-
discountCouponAddDiscountCoupon,
|
|
2101
|
-
dealUpdateDeal,
|
|
2102
|
-
dealGetDeal,
|
|
2103
|
-
dealGetAllDeals,
|
|
2104
|
-
dealDeleteDeal,
|
|
2105
|
-
dealAddDeal,
|
|
2106
|
-
customFetch,
|
|
2107
|
-
createClient,
|
|
2108
|
-
categoryGetAllCategories,
|
|
2109
|
-
caseGetCase,
|
|
2110
|
-
caseGetAllCases,
|
|
2111
|
-
caseAddReply,
|
|
2112
|
-
caseAddClientResponse,
|
|
2113
|
-
caseAddCase,
|
|
2114
|
-
campaignUpdateBroadcastEmail,
|
|
2115
|
-
campaignUnscheduleBroadcastEmail,
|
|
2116
|
-
campaignSendTestCampaignEmail,
|
|
2117
|
-
campaignGetBroadcastEmail,
|
|
2118
|
-
campaignGetAllBroadcastEmails,
|
|
2119
|
-
campaignDeleteBroadcastCampaign,
|
|
2120
|
-
campaignArchiveBroadcastCampaign,
|
|
2121
|
-
campaignAddBroadcastEmail,
|
|
2122
|
-
articleGetArticle,
|
|
2123
|
-
articleGetAllArticles,
|
|
2124
|
-
articleAddArticle,
|
|
2125
|
-
activityGetAll,
|
|
2126
|
-
activityAddCustomActivity,
|
|
2127
|
-
accountUpdateMembership,
|
|
2128
|
-
accountUpdateAccount,
|
|
2129
|
-
accountSendConfirmationEmail,
|
|
2130
|
-
accountRemoveCancellation,
|
|
2131
|
-
accountGetAllAccounts,
|
|
2132
|
-
accountGetAccount,
|
|
2133
|
-
accountExtendTrial,
|
|
2134
|
-
accountDeleteMembership,
|
|
2135
|
-
accountDeleteAccount,
|
|
2136
|
-
accountCancelAccount,
|
|
2137
|
-
accountAddPersonToAccount,
|
|
2138
|
-
accountAddAccount,
|
|
2139
|
-
TeamRole,
|
|
2140
|
-
TaskStatus,
|
|
2141
|
-
TagColor,
|
|
2142
|
-
SupportCaseStatus,
|
|
2143
|
-
SupportCaseSource,
|
|
2144
|
-
SupportCaseHistoryType,
|
|
2145
|
-
SupportArticleStatus,
|
|
2146
|
-
SpamStatus,
|
|
2147
|
-
RegistrationField,
|
|
2148
|
-
QcountStatus,
|
|
2149
|
-
QcountConfigSettingType,
|
|
2150
|
-
PlanWebhookEntityPlanAddOnsItemAddOnBillingAddOnType,
|
|
2151
|
-
PlanWebhookEntityAccountRegistrationMode,
|
|
2152
|
-
PersonWebhookEntityPersonAccountItemRole,
|
|
2153
|
-
PersonWebhookEntityOAuthIntegrationStatus,
|
|
2154
|
-
PersonWebhookEntityEmailListPersonItemEmailListSubscriberStatus,
|
|
2155
|
-
PersonWebhookEntityAccountAccountStage,
|
|
2156
|
-
PaymentsMode,
|
|
2157
|
-
PaymentsGatewayActivationStatus,
|
|
2158
|
-
OAuthService,
|
|
2159
|
-
LineItemType,
|
|
2160
|
-
EntityType,
|
|
2161
|
-
EmailListSubscriberStatus,
|
|
2162
|
-
DeserializationStatus,
|
|
2163
|
-
DealWebhookEntityOwnerOAuthIntegrationStatus,
|
|
2164
|
-
DealWebhookEntityAccountAccountStage,
|
|
2165
|
-
DatabaseType,
|
|
2166
|
-
ContentGroupItemMatchMode,
|
|
2167
|
-
CancelationStatus,
|
|
2168
|
-
CampaignType,
|
|
2169
|
-
BroadcastCampaignStatus,
|
|
2170
|
-
BillingTransactionType,
|
|
2171
|
-
BillingSystem,
|
|
2172
|
-
BillingRenewalTerm,
|
|
2173
|
-
BillingInvoiceStatus,
|
|
2174
|
-
BillingDiscountDuration,
|
|
2175
|
-
BillingAddOnType,
|
|
2176
|
-
BackGroundTaskType,
|
|
2177
|
-
ApiKeyType,
|
|
2178
|
-
AddOnWebhookEntityBillingAddOnType,
|
|
2179
|
-
AddOnChangeType,
|
|
2180
|
-
ActivityType,
|
|
2181
|
-
AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm,
|
|
2182
|
-
AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType,
|
|
2183
|
-
AccountWebhookEntitySubscriptionsItemPlanAccountRegistrationMode,
|
|
2184
|
-
AccountWebhookEntitySubscriptionsItemLatestInvoiceBillingInvoiceStatus,
|
|
2185
|
-
AccountWebhookEntitySubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration,
|
|
2186
|
-
AccountWebhookEntitySubscriptionsItemBillingRenewalTerm,
|
|
2187
|
-
AccountWebhookEntityPrimarySubscriptionBillingRenewalTerm,
|
|
2188
|
-
AccountWebhookEntityPrimaryContactOAuthIntegrationStatus,
|
|
2189
|
-
AccountWebhookEntityPersonAccountItemRole,
|
|
2190
|
-
AccountWebhookEntityPersonAccountItemPersonOAuthIntegrationStatus,
|
|
2191
|
-
AccountWebhookEntityLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm,
|
|
2192
|
-
AccountWebhookEntityLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType,
|
|
2193
|
-
AccountWebhookEntityLatestSubscriptionPlanAccountRegistrationMode,
|
|
2194
|
-
AccountWebhookEntityLatestSubscriptionLatestInvoiceBillingInvoiceStatus,
|
|
2195
|
-
AccountWebhookEntityLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration,
|
|
2196
|
-
AccountWebhookEntityLatestSubscriptionBillingRenewalTerm,
|
|
2197
|
-
AccountWebhookEntityCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm,
|
|
2198
|
-
AccountWebhookEntityCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType,
|
|
2199
|
-
AccountWebhookEntityCurrentSubscriptionPlanAccountRegistrationMode,
|
|
2200
|
-
AccountWebhookEntityCurrentSubscriptionLatestInvoiceBillingInvoiceStatus,
|
|
2201
|
-
AccountWebhookEntityCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration,
|
|
2202
|
-
AccountWebhookEntityCurrentSubscriptionBillingRenewalTerm,
|
|
2203
|
-
AccountWebhookEntityAccountStage,
|
|
2204
|
-
AccountStage,
|
|
1931
|
+
AcceptTermsAndConditionsLocations,
|
|
2205
1932
|
AccountRegistrationMode,
|
|
2206
|
-
|
|
1933
|
+
AccountStage,
|
|
1934
|
+
AccountWebhookEntityAccountStage,
|
|
1935
|
+
AccountWebhookEntityCurrentSubscriptionBillingRenewalTerm,
|
|
1936
|
+
AccountWebhookEntityCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration,
|
|
1937
|
+
AccountWebhookEntityCurrentSubscriptionLatestInvoiceBillingInvoiceStatus,
|
|
1938
|
+
AccountWebhookEntityCurrentSubscriptionPlanAccountRegistrationMode,
|
|
1939
|
+
AccountWebhookEntityCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType,
|
|
1940
|
+
AccountWebhookEntityCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm,
|
|
1941
|
+
AccountWebhookEntityLatestSubscriptionBillingRenewalTerm,
|
|
1942
|
+
AccountWebhookEntityLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration,
|
|
1943
|
+
AccountWebhookEntityLatestSubscriptionLatestInvoiceBillingInvoiceStatus,
|
|
1944
|
+
AccountWebhookEntityLatestSubscriptionPlanAccountRegistrationMode,
|
|
1945
|
+
AccountWebhookEntityLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType,
|
|
1946
|
+
AccountWebhookEntityLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm,
|
|
1947
|
+
AccountWebhookEntityPersonAccountItemPersonOAuthIntegrationStatus,
|
|
1948
|
+
AccountWebhookEntityPersonAccountItemRole,
|
|
1949
|
+
AccountWebhookEntityPrimaryContactOAuthIntegrationStatus,
|
|
1950
|
+
AccountWebhookEntityPrimarySubscriptionBillingRenewalTerm,
|
|
1951
|
+
AccountWebhookEntitySubscriptionsItemBillingRenewalTerm,
|
|
1952
|
+
AccountWebhookEntitySubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration,
|
|
1953
|
+
AccountWebhookEntitySubscriptionsItemLatestInvoiceBillingInvoiceStatus,
|
|
1954
|
+
AccountWebhookEntitySubscriptionsItemPlanAccountRegistrationMode,
|
|
1955
|
+
AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType,
|
|
1956
|
+
AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm,
|
|
1957
|
+
ActivityType,
|
|
1958
|
+
AddOnChangeType,
|
|
1959
|
+
AddOnWebhookEntityBillingAddOnType,
|
|
1960
|
+
ApiKeyType,
|
|
1961
|
+
BackGroundTaskType,
|
|
1962
|
+
BillingAddOnType,
|
|
1963
|
+
BillingDiscountDuration,
|
|
1964
|
+
BillingInvoiceStatus,
|
|
1965
|
+
BillingRenewalTerm,
|
|
1966
|
+
BillingSystem,
|
|
1967
|
+
BillingTransactionType,
|
|
1968
|
+
BroadcastCampaignStatus,
|
|
1969
|
+
CampaignType,
|
|
1970
|
+
CancelationStatus,
|
|
1971
|
+
ContentGroupItemMatchMode,
|
|
1972
|
+
DatabaseType,
|
|
1973
|
+
DealWebhookEntityAccountAccountStage,
|
|
1974
|
+
DealWebhookEntityOwnerOAuthIntegrationStatus,
|
|
1975
|
+
DeserializationStatus,
|
|
1976
|
+
EmailListSubscriberStatus,
|
|
1977
|
+
EntityType,
|
|
1978
|
+
LineItemType,
|
|
1979
|
+
OAuthService,
|
|
1980
|
+
PaymentsGatewayActivationStatus,
|
|
1981
|
+
PaymentsMode,
|
|
1982
|
+
PersonWebhookEntityAccountAccountStage,
|
|
1983
|
+
PersonWebhookEntityEmailListPersonItemEmailListSubscriberStatus,
|
|
1984
|
+
PersonWebhookEntityOAuthIntegrationStatus,
|
|
1985
|
+
PersonWebhookEntityPersonAccountItemRole,
|
|
1986
|
+
PlanWebhookEntityAccountRegistrationMode,
|
|
1987
|
+
PlanWebhookEntityPlanAddOnsItemAddOnBillingAddOnType,
|
|
1988
|
+
QcountConfigSettingType,
|
|
1989
|
+
QcountStatus,
|
|
1990
|
+
RegistrationField,
|
|
1991
|
+
SpamStatus,
|
|
1992
|
+
SupportArticleStatus,
|
|
1993
|
+
SupportCaseHistoryType,
|
|
1994
|
+
SupportCaseSource,
|
|
1995
|
+
SupportCaseStatus,
|
|
1996
|
+
TagColor,
|
|
1997
|
+
TaskStatus,
|
|
1998
|
+
TeamRole,
|
|
1999
|
+
accountAddAccount,
|
|
2000
|
+
accountAddPersonToAccount,
|
|
2001
|
+
accountCancelAccount,
|
|
2002
|
+
accountDeleteAccount,
|
|
2003
|
+
accountDeleteMembership,
|
|
2004
|
+
accountExtendTrial,
|
|
2005
|
+
accountGetAccount,
|
|
2006
|
+
accountGetAllAccounts,
|
|
2007
|
+
accountRemoveCancellation,
|
|
2008
|
+
accountSendConfirmationEmail,
|
|
2009
|
+
accountUpdateAccount,
|
|
2010
|
+
accountUpdateMembership,
|
|
2011
|
+
activityAddCustomActivity,
|
|
2012
|
+
activityGetAll,
|
|
2013
|
+
articleAddArticle,
|
|
2014
|
+
articleGetAllArticles,
|
|
2015
|
+
articleGetArticle,
|
|
2016
|
+
campaignAddBroadcastEmail,
|
|
2017
|
+
campaignArchiveBroadcastCampaign,
|
|
2018
|
+
campaignDeleteBroadcastCampaign,
|
|
2019
|
+
campaignGetAllBroadcastEmails,
|
|
2020
|
+
campaignGetBroadcastEmail,
|
|
2021
|
+
campaignSendTestCampaignEmail,
|
|
2022
|
+
campaignUnscheduleBroadcastEmail,
|
|
2023
|
+
campaignUpdateBroadcastEmail,
|
|
2024
|
+
caseAddCase,
|
|
2025
|
+
caseAddClientResponse,
|
|
2026
|
+
caseAddReply,
|
|
2027
|
+
caseGetAllCases,
|
|
2028
|
+
caseGetCase,
|
|
2029
|
+
categoryGetAllCategories,
|
|
2030
|
+
createClient,
|
|
2031
|
+
customFetch,
|
|
2032
|
+
dealAddDeal,
|
|
2033
|
+
dealDeleteDeal,
|
|
2034
|
+
dealGetAllDeals,
|
|
2035
|
+
dealGetDeal,
|
|
2036
|
+
dealUpdateDeal,
|
|
2037
|
+
discountCouponAddDiscountCoupon,
|
|
2038
|
+
discountCouponDeleteDiscountCoupon,
|
|
2039
|
+
discountCouponGetAllDiscountCoupons,
|
|
2040
|
+
discountCouponGetDiscountCoupon,
|
|
2041
|
+
discountCouponGetDiscountCouponByCode,
|
|
2042
|
+
discountCouponGetDiscountCouponRedemptions,
|
|
2043
|
+
discountCouponUpdateDiscountCoupon,
|
|
2044
|
+
dripCampaignAddDripCampaign,
|
|
2045
|
+
dripCampaignAddDripCampaignMessage,
|
|
2046
|
+
dripCampaignDeleteDripCampaign,
|
|
2047
|
+
dripCampaignDeleteDripCampaignMessage,
|
|
2048
|
+
dripCampaignGetAllDripCampaigns,
|
|
2049
|
+
dripCampaignGetDripCampaign,
|
|
2050
|
+
dripCampaignGetDripCampaignMessage,
|
|
2051
|
+
dripCampaignSendTestCampaignEmail,
|
|
2052
|
+
dripCampaignUpdateDripCampaign,
|
|
2053
|
+
dripCampaignUpdateDripCampaignMessage,
|
|
2054
|
+
emailListAddEmailList,
|
|
2055
|
+
emailListAddSubscription,
|
|
2056
|
+
emailListDeleteEmailList,
|
|
2057
|
+
emailListDeleteSubscription,
|
|
2058
|
+
emailListGetAllEmailLists,
|
|
2059
|
+
emailListGetAllSubscriptions,
|
|
2060
|
+
emailListGetEmailList,
|
|
2061
|
+
emailListUpdateEmailList,
|
|
2062
|
+
getAccountAddAccountUrl,
|
|
2063
|
+
getAccountAddPersonToAccountUrl,
|
|
2064
|
+
getAccountCancelAccountUrl,
|
|
2065
|
+
getAccountDeleteAccountUrl,
|
|
2066
|
+
getAccountDeleteMembershipUrl,
|
|
2067
|
+
getAccountExtendTrialUrl,
|
|
2068
|
+
getAccountGetAccountUrl,
|
|
2069
|
+
getAccountGetAllAccountsUrl,
|
|
2070
|
+
getAccountRemoveCancellationUrl,
|
|
2071
|
+
getAccountSendConfirmationEmailUrl,
|
|
2072
|
+
getAccountUpdateAccountUrl,
|
|
2073
|
+
getAccountUpdateMembershipUrl,
|
|
2074
|
+
getActivityAddCustomActivityUrl,
|
|
2075
|
+
getActivityGetAllUrl,
|
|
2076
|
+
getArticleAddArticleUrl,
|
|
2077
|
+
getArticleGetAllArticlesUrl,
|
|
2078
|
+
getArticleGetArticleUrl,
|
|
2079
|
+
getCampaignAddBroadcastEmailUrl,
|
|
2080
|
+
getCampaignArchiveBroadcastCampaignUrl,
|
|
2081
|
+
getCampaignDeleteBroadcastCampaignUrl,
|
|
2082
|
+
getCampaignGetAllBroadcastEmailsUrl,
|
|
2083
|
+
getCampaignGetBroadcastEmailUrl,
|
|
2084
|
+
getCampaignSendTestCampaignEmailUrl,
|
|
2085
|
+
getCampaignUnscheduleBroadcastEmailUrl,
|
|
2086
|
+
getCampaignUpdateBroadcastEmailUrl,
|
|
2087
|
+
getCaseAddCaseUrl,
|
|
2088
|
+
getCaseAddClientResponseUrl,
|
|
2089
|
+
getCaseAddReplyUrl,
|
|
2090
|
+
getCaseGetAllCasesUrl,
|
|
2091
|
+
getCaseGetCaseUrl,
|
|
2092
|
+
getCategoryGetAllCategoriesUrl,
|
|
2093
|
+
getDealAddDealUrl,
|
|
2094
|
+
getDealDeleteDealUrl,
|
|
2095
|
+
getDealGetAllDealsUrl,
|
|
2096
|
+
getDealGetDealUrl,
|
|
2097
|
+
getDealUpdateDealUrl,
|
|
2098
|
+
getDiscountCouponAddDiscountCouponUrl,
|
|
2099
|
+
getDiscountCouponDeleteDiscountCouponUrl,
|
|
2100
|
+
getDiscountCouponGetAllDiscountCouponsUrl,
|
|
2101
|
+
getDiscountCouponGetDiscountCouponByCodeUrl,
|
|
2102
|
+
getDiscountCouponGetDiscountCouponRedemptionsUrl,
|
|
2103
|
+
getDiscountCouponGetDiscountCouponUrl,
|
|
2104
|
+
getDiscountCouponUpdateDiscountCouponUrl,
|
|
2105
|
+
getDripCampaignAddDripCampaignMessageUrl,
|
|
2106
|
+
getDripCampaignAddDripCampaignUrl,
|
|
2107
|
+
getDripCampaignDeleteDripCampaignMessageUrl,
|
|
2108
|
+
getDripCampaignDeleteDripCampaignUrl,
|
|
2109
|
+
getDripCampaignGetAllDripCampaignsUrl,
|
|
2110
|
+
getDripCampaignGetDripCampaignMessageUrl,
|
|
2111
|
+
getDripCampaignGetDripCampaignUrl,
|
|
2112
|
+
getDripCampaignSendTestCampaignEmailUrl,
|
|
2113
|
+
getDripCampaignUpdateDripCampaignMessageUrl,
|
|
2114
|
+
getDripCampaignUpdateDripCampaignUrl,
|
|
2115
|
+
getEmailListAddEmailListUrl,
|
|
2116
|
+
getEmailListAddSubscriptionUrl,
|
|
2117
|
+
getEmailListDeleteEmailListUrl,
|
|
2118
|
+
getEmailListDeleteSubscriptionUrl,
|
|
2119
|
+
getEmailListGetAllEmailListsUrl,
|
|
2120
|
+
getEmailListGetAllSubscriptionsUrl,
|
|
2121
|
+
getEmailListGetEmailListUrl,
|
|
2122
|
+
getEmailListUpdateEmailListUrl,
|
|
2123
|
+
getInvoiceAddInvoiceUrl,
|
|
2124
|
+
getInvoiceDeleteInvoiceUrl,
|
|
2125
|
+
getInvoiceGetAllInvoicesUrl,
|
|
2126
|
+
getInvoiceGetInvoiceAsPdfUrl,
|
|
2127
|
+
getInvoiceGetInvoiceUrl,
|
|
2128
|
+
getInvoiceSendInvoiceEmailUrl,
|
|
2129
|
+
getInvoiceSendInvoicePaidEmailUrl,
|
|
2130
|
+
getInvoiceUpdateInvoiceUrl,
|
|
2131
|
+
getPaymentInformationSavePaymentInformationUrl,
|
|
2132
|
+
getPersonAddPersonUrl,
|
|
2133
|
+
getPersonDeletePersonUrl,
|
|
2134
|
+
getPersonForgotPasswordUrl,
|
|
2135
|
+
getPersonGetAllPeopleUrl,
|
|
2136
|
+
getPersonGetPersonUrl,
|
|
2137
|
+
getPersonRegenerateTwoFactorRecoveryCodesUrl,
|
|
2138
|
+
getPersonRequestMagicLinkUrl,
|
|
2139
|
+
getPersonSetTemporaryPasswordUrl,
|
|
2140
|
+
getPersonUpdatePersonUrl,
|
|
2141
|
+
getPlanAddPlanUrl,
|
|
2142
|
+
getPlanDeletePlanUrl,
|
|
2143
|
+
getPlanFamilyAddPlanFamilyUrl,
|
|
2144
|
+
getPlanFamilyDeletePlanFamilyUrl,
|
|
2145
|
+
getPlanFamilyGetAllPlanFamiliesUrl,
|
|
2146
|
+
getPlanFamilyGetPlanFamilyUrl,
|
|
2147
|
+
getPlanFamilyUpdatePlanFamilyUrl,
|
|
2148
|
+
getPlanGetAllPlansUrl,
|
|
2149
|
+
getPlanGetPlanUrl,
|
|
2150
|
+
getPlanUpdatePlanUrl,
|
|
2151
|
+
getRegistrationRegisterAccountUrl,
|
|
2152
|
+
getSubscriptionAddDiscountToSubscriptionUrl,
|
|
2153
|
+
getSubscriptionAddOnAddSubscriptionAddOnPreviewUrl,
|
|
2154
|
+
getSubscriptionAddOnAddSubscriptionAddOnUrl,
|
|
2155
|
+
getSubscriptionAddOnEndSubscriptionAddOnUrl,
|
|
2156
|
+
getSubscriptionAddOnExpireSubscriptionAddOnUrl,
|
|
2157
|
+
getSubscriptionAddOnGetAllSubscriptionsAddOnsUrl,
|
|
2158
|
+
getSubscriptionAddOnGetSubscriptionAddOnUrl,
|
|
2159
|
+
getSubscriptionAddOnSetAddOnUpgradeRequiredUrl,
|
|
2160
|
+
getSubscriptionChangeSubscriptionPreviewUrl,
|
|
2161
|
+
getSubscriptionChangeSubscriptionUrl,
|
|
2162
|
+
getSubscriptionDeleteSubscriptionUrl,
|
|
2163
|
+
getSubscriptionExpireDiscountCouponSubscriptionUrl,
|
|
2164
|
+
getSubscriptionFirstTimeSubscriptionPreviewUrl,
|
|
2165
|
+
getSubscriptionFirstTimeSubscriptionUrl,
|
|
2166
|
+
getSubscriptionGetAllSubscriptionsUrl,
|
|
2167
|
+
getSubscriptionGetSubscriptionUrl,
|
|
2168
|
+
getSubscriptionSetSubscriptionUpgradeRequiredUrl,
|
|
2169
|
+
getTransactionsAddPaymentTransactionUrl,
|
|
2170
|
+
getTransactionsGetAllTransactionsByAccountIdUrl,
|
|
2171
|
+
getUsageAddUsageUrl,
|
|
2172
|
+
invoiceAddInvoice,
|
|
2173
|
+
invoiceDeleteInvoice,
|
|
2174
|
+
invoiceGetAllInvoices,
|
|
2175
|
+
invoiceGetInvoice,
|
|
2176
|
+
invoiceGetInvoiceAsPdf,
|
|
2177
|
+
invoiceSendInvoiceEmail,
|
|
2178
|
+
invoiceSendInvoicePaidEmail,
|
|
2179
|
+
invoiceUpdateInvoice,
|
|
2180
|
+
paymentInformationSavePaymentInformation,
|
|
2181
|
+
personAddPerson,
|
|
2182
|
+
personDeletePerson,
|
|
2183
|
+
personForgotPassword,
|
|
2184
|
+
personGetAllPeople,
|
|
2185
|
+
personGetPerson,
|
|
2186
|
+
personRegenerateTwoFactorRecoveryCodes,
|
|
2187
|
+
personRequestMagicLink,
|
|
2188
|
+
personSetTemporaryPassword,
|
|
2189
|
+
personUpdatePerson,
|
|
2190
|
+
planAddPlan,
|
|
2191
|
+
planDeletePlan,
|
|
2192
|
+
planFamilyAddPlanFamily,
|
|
2193
|
+
planFamilyDeletePlanFamily,
|
|
2194
|
+
planFamilyGetAllPlanFamilies,
|
|
2195
|
+
planFamilyGetPlanFamily,
|
|
2196
|
+
planFamilyUpdatePlanFamily,
|
|
2197
|
+
planGetAllPlans,
|
|
2198
|
+
planGetPlan,
|
|
2199
|
+
planUpdatePlan,
|
|
2200
|
+
registrationRegisterAccount,
|
|
2201
|
+
subscriptionAddDiscountToSubscription,
|
|
2202
|
+
subscriptionAddOnAddSubscriptionAddOn,
|
|
2203
|
+
subscriptionAddOnAddSubscriptionAddOnPreview,
|
|
2204
|
+
subscriptionAddOnEndSubscriptionAddOn,
|
|
2205
|
+
subscriptionAddOnExpireSubscriptionAddOn,
|
|
2206
|
+
subscriptionAddOnGetAllSubscriptionsAddOns,
|
|
2207
|
+
subscriptionAddOnGetSubscriptionAddOn,
|
|
2208
|
+
subscriptionAddOnSetAddOnUpgradeRequired,
|
|
2209
|
+
subscriptionChangeSubscription,
|
|
2210
|
+
subscriptionChangeSubscriptionPreview,
|
|
2211
|
+
subscriptionDeleteSubscription,
|
|
2212
|
+
subscriptionExpireDiscountCouponSubscription,
|
|
2213
|
+
subscriptionFirstTimeSubscription,
|
|
2214
|
+
subscriptionFirstTimeSubscriptionPreview,
|
|
2215
|
+
subscriptionGetAllSubscriptions,
|
|
2216
|
+
subscriptionGetSubscription,
|
|
2217
|
+
subscriptionSetSubscriptionUpgradeRequired,
|
|
2218
|
+
transactionsAddPaymentTransaction,
|
|
2219
|
+
transactionsGetAllTransactionsByAccountId,
|
|
2220
|
+
usageAddUsage,
|
|
2221
|
+
withClient
|
|
2207
2222
|
};
|
package/package.json
CHANGED
package/src/generated/crm/crm.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
PersonForgotPasswordBody,
|
|
22
22
|
PersonGetAllPeople200,
|
|
23
23
|
PersonGetAllPeopleParams,
|
|
24
|
+
PersonRequestMagicLinkBody,
|
|
24
25
|
PersonSetTemporaryPasswordBody,
|
|
25
26
|
PersonUpdatePersonBody
|
|
26
27
|
} from '.././models';
|
|
@@ -1417,3 +1418,43 @@ export const personForgotPassword = async (personForgotPasswordBody: NonReadonly
|
|
|
1417
1418
|
);}
|
|
1418
1419
|
|
|
1419
1420
|
|
|
1421
|
+
/**
|
|
1422
|
+
* Sends an email containing a single-use, time-limited link that signs
|
|
1423
|
+
the recipient in without a password. Always responds 200 regardless
|
|
1424
|
+
of whether the email matches a known user or whether the feature is
|
|
1425
|
+
enabled, so the endpoint cannot be used to enumerate accounts.
|
|
1426
|
+
* @summary Request a passwordless magic link to sign in.
|
|
1427
|
+
*/
|
|
1428
|
+
export type personRequestMagicLinkResponse200 = {
|
|
1429
|
+
data: Blob
|
|
1430
|
+
status: 200
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
export type personRequestMagicLinkResponseSuccess = (personRequestMagicLinkResponse200) & {
|
|
1434
|
+
headers: Headers;
|
|
1435
|
+
};
|
|
1436
|
+
;
|
|
1437
|
+
|
|
1438
|
+
export type personRequestMagicLinkResponse = (personRequestMagicLinkResponseSuccess)
|
|
1439
|
+
|
|
1440
|
+
export const getPersonRequestMagicLinkUrl = () => {
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
return `/api/v1/crm/people/requestMagicLink`
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export const personRequestMagicLink = async (personRequestMagicLinkBody: NonReadonly<PersonRequestMagicLinkBody>, options?: RequestInit): Promise<personRequestMagicLinkResponse> => {
|
|
1449
|
+
|
|
1450
|
+
return customFetch<personRequestMagicLinkResponse>(getPersonRequestMagicLinkUrl(),
|
|
1451
|
+
{
|
|
1452
|
+
...options,
|
|
1453
|
+
method: 'POST',
|
|
1454
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
1455
|
+
body: JSON.stringify(
|
|
1456
|
+
personRequestMagicLinkBody,)
|
|
1457
|
+
}
|
|
1458
|
+
);}
|
|
1459
|
+
|
|
1460
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `1` - UpdateSegmentBackGroundTask, `2` - ImportPeopleTask, `3` - ImportAccountTask, `4` - ImportDealTask, `5` - ImportEmailList, `6` - RescheduleDripCampaignTask, `7` - DeleteSegmentPeopleTask, `8` - StartDripCampaignTask, `9` - WebflowSyncTask, `10` - UpdatePersonSegmentsTask, `11` - ImportDiscountCouponTask, `12` - RemoveDiscordUserFromAllServersTask, `13` - SendInvoiceEmailTask, `14` - UpdateDiscordUserRolesTask, `15` - StripeBillingSyncTask, `16` - UpdateStripeDefaultSourceTask, `17` - DeleteScheduledCampaignMessagesTask, `18` - SendSpamCheckEmailTask, `19` - UpdateDiscordMemberRolesTask, `20` - SendInvoicePaidEmailTask, `21` - ResendTrialLimitEmailTask
|
|
4
|
+
* `1` - UpdateSegmentBackGroundTask, `2` - ImportPeopleTask, `3` - ImportAccountTask, `4` - ImportDealTask, `5` - ImportEmailList, `6` - RescheduleDripCampaignTask, `7` - DeleteSegmentPeopleTask, `8` - StartDripCampaignTask, `9` - WebflowSyncTask, `10` - UpdatePersonSegmentsTask, `11` - ImportDiscountCouponTask, `12` - RemoveDiscordUserFromAllServersTask, `13` - SendInvoiceEmailTask, `14` - UpdateDiscordUserRolesTask, `15` - StripeBillingSyncTask, `16` - UpdateStripeDefaultSourceTask, `17` - DeleteScheduledCampaignMessagesTask, `18` - SendSpamCheckEmailTask, `19` - UpdateDiscordMemberRolesTask, `20` - SendInvoicePaidEmailTask, `21` - ResendTrialLimitEmailTask, `22` - UpdateStripeSubscriptionApplicationFeePercentTask
|
|
5
5
|
*/
|
|
6
6
|
export type BackGroundTaskType = typeof BackGroundTaskType[keyof typeof BackGroundTaskType];
|
|
7
7
|
|
|
@@ -29,4 +29,5 @@ export const BackGroundTaskType = {
|
|
|
29
29
|
UpdateDiscordMemberRolesTask: 19,
|
|
30
30
|
SendInvoicePaidEmailTask: 20,
|
|
31
31
|
ResendTrialLimitEmailTask: 21,
|
|
32
|
+
UpdateStripeSubscriptionApplicationFeePercentTask: 22,
|
|
32
33
|
} as const;
|
|
@@ -229,6 +229,7 @@ export * from './articleAllOfCategory';
|
|
|
229
229
|
export * from './articleGetAllArticles200';
|
|
230
230
|
export * from './articleGetAllArticlesParams';
|
|
231
231
|
export * from './authGetTokenParams';
|
|
232
|
+
export * from './authMagicLinkTokenParams';
|
|
232
233
|
export * from './authResendTwoFactorParams';
|
|
233
234
|
export * from './authSwitchTwoFactorMechanismParams';
|
|
234
235
|
export * from './authVerifyTwoFactorRecoveryParams';
|
|
@@ -476,6 +477,7 @@ export * from './personListUnsubscribedWebhookPayloadAllOf';
|
|
|
476
477
|
export * from './personLoginActivityData';
|
|
477
478
|
export * from './personLoginWebhookPayload';
|
|
478
479
|
export * from './personLoginWebhookPayloadAllOf';
|
|
480
|
+
export * from './personRequestMagicLinkBody';
|
|
479
481
|
export * from './personSegmentAddedActivityData';
|
|
480
482
|
export * from './personSegmentAddedWebhookPayload';
|
|
481
483
|
export * from './personSegmentAddedWebhookPayloadAllOf';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `100` - Slack, `102` - MagicLinkApiKey, `103` - MagicLinkApiKeySecret, `104` - OAuth_HideCreateAccountLink, `105` - Chat_IsOffline, `106` - HostedPageCustomCode, `107` - RegistrationConfirmationEmailDelaySeconds, `108` - AccountCancellationReasons, `110` - WebhookSignatureKey, `111` - HostedProfileBackLink, `112` - AccountCancellationReasonRequired, `114` - Email_OutsetaBrandingDisabled, `119` - Email_BlacklistedInboundEmails, `121` - PasswordPolicy, `123` - CRM_FieldSortingEnabled, `124` - CRM_RegistrationCallbackLocations, `125` - KnowledgeBaseVersion, `126` - Support_SpamThreshold, `127` - Email_RestrictedPhrases, `128` - KnowledgeBaseLanguage, `130` - Billing_System, `131` - Billing_RestrictSubscriptionActions, `140` - TwoFactorAuthenticationEnabled, `142` - ForceTwoFactorAuthentication, `190` - Stripe_TaxEnabled, `192` - Stripe_TaxIdTypes, `193` - Stripe_ApplePayMerchantIdDomainAssociation, `194` - Stripe_WebhookSecret, `195` - Stripe_OnlySyncOutsetaCustomers, `196` - Stripe_Checkout_RequireBillingAddress, `197` - Stripe_Checkout_RequireConsentTermsOfService, `200` - Webflow_AccessToken, `201` - Webflow_SyncEnabled, `202` - Webflow_SyncConfiguration, `203` - Webflow_ApiVersion, `550` - CopyQcount_AddOnMap, `551` - CopyQcount_AccountMap, `552` - CopyQcount_DiscountCouponMap, `553` - CopyQcount_InvoiceMap, `554` - CopyQcount_PersonMap, `555` - CopyQcount_PlanMap, `556` - CopyQcount_PlanFamilyMap, `557` - CopyQcount_SubscriptionMap, `558` - CopyQcount_TransactionMap, `570` - StripeMigration_LastAccountId, `571` - StripeMigration_LastInvoiceId, `572` - StripeMigration_LastExpiredSubscriptionId, `573` - StripeMigration_LastPostExportSubscriptionId, `574` - StripeMigration_LastUsageId, `575` - StripeMigration_SubscriptionExportDate, `576` - StripeMigration_SubscriptionExportIds, `577` - StripeMigration_SubscriptionAddOnExportIds, `578` - StripeMigration_SubscriptionCutoverDate, `579` - StripeMigration_LastPreCutoverExportSubscriptionId
|
|
4
|
+
* `100` - Slack, `102` - MagicLinkApiKey, `103` - MagicLinkApiKeySecret, `104` - OAuth_HideCreateAccountLink, `105` - Chat_IsOffline, `106` - HostedPageCustomCode, `107` - RegistrationConfirmationEmailDelaySeconds, `108` - AccountCancellationReasons, `110` - WebhookSignatureKey, `111` - HostedProfileBackLink, `112` - AccountCancellationReasonRequired, `114` - Email_OutsetaBrandingDisabled, `119` - Email_BlacklistedInboundEmails, `121` - PasswordPolicy, `123` - CRM_FieldSortingEnabled, `124` - CRM_RegistrationCallbackLocations, `125` - KnowledgeBaseVersion, `126` - Support_SpamThreshold, `127` - Email_RestrictedPhrases, `128` - KnowledgeBaseLanguage, `130` - Billing_System, `131` - Billing_RestrictSubscriptionActions, `140` - TwoFactorAuthenticationEnabled, `142` - ForceTwoFactorAuthentication, `143` - MagicLinkLoginEnabled, `190` - Stripe_TaxEnabled, `192` - Stripe_TaxIdTypes, `193` - Stripe_ApplePayMerchantIdDomainAssociation, `194` - Stripe_WebhookSecret, `195` - Stripe_OnlySyncOutsetaCustomers, `196` - Stripe_Checkout_RequireBillingAddress, `197` - Stripe_Checkout_RequireConsentTermsOfService, `200` - Webflow_AccessToken, `201` - Webflow_SyncEnabled, `202` - Webflow_SyncConfiguration, `203` - Webflow_ApiVersion, `550` - CopyQcount_AddOnMap, `551` - CopyQcount_AccountMap, `552` - CopyQcount_DiscountCouponMap, `553` - CopyQcount_InvoiceMap, `554` - CopyQcount_PersonMap, `555` - CopyQcount_PlanMap, `556` - CopyQcount_PlanFamilyMap, `557` - CopyQcount_SubscriptionMap, `558` - CopyQcount_TransactionMap, `570` - StripeMigration_LastAccountId, `571` - StripeMigration_LastInvoiceId, `572` - StripeMigration_LastExpiredSubscriptionId, `573` - StripeMigration_LastPostExportSubscriptionId, `574` - StripeMigration_LastUsageId, `575` - StripeMigration_SubscriptionExportDate, `576` - StripeMigration_SubscriptionExportIds, `577` - StripeMigration_SubscriptionAddOnExportIds, `578` - StripeMigration_SubscriptionCutoverDate, `579` - StripeMigration_LastPreCutoverExportSubscriptionId
|
|
5
5
|
*/
|
|
6
6
|
export type QcountConfigSettingType = typeof QcountConfigSettingType[keyof typeof QcountConfigSettingType];
|
|
7
7
|
|
|
@@ -32,6 +32,7 @@ export const QcountConfigSettingType = {
|
|
|
32
32
|
Billing_RestrictSubscriptionActions: 131,
|
|
33
33
|
TwoFactorAuthenticationEnabled: 140,
|
|
34
34
|
ForceTwoFactorAuthentication: 142,
|
|
35
|
+
MagicLinkLoginEnabled: 143,
|
|
35
36
|
Stripe_TaxEnabled: 190,
|
|
36
37
|
Stripe_TaxIdTypes: 192,
|
|
37
38
|
Stripe_ApplePayMerchantIdDomainAssociation: 193,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type {
|
|
3
3
|
AuthGetTokenParams,
|
|
4
|
+
AuthMagicLinkTokenParams,
|
|
4
5
|
AuthResendTwoFactorParams,
|
|
5
6
|
AuthSwitchTwoFactorMechanismParams,
|
|
6
7
|
AuthVerifyTwoFactorRecoveryParams,
|
|
@@ -187,6 +188,76 @@ export const authGetToken = async (params: AuthGetTokenParams, options?: Request
|
|
|
187
188
|
);}
|
|
188
189
|
|
|
189
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Call this with the magicToken carried by the link from a
|
|
193
|
+
"magic link" email (requested via POST /api/v1/crm/people/requestMagicLink):
|
|
194
|
+
|
|
195
|
+
{ "magic_token": "eyJ..." }
|
|
196
|
+
|
|
197
|
+
The link proves control of the email inbox, which satisfies the first
|
|
198
|
+
factor. The response then matches POST /api/v1/tokens:
|
|
199
|
+
|
|
200
|
+
- 200 with an access token when no further factor is required;
|
|
201
|
+
- 202 with a two_factor_required challenge when the user
|
|
202
|
+
has a non-email second factor (e.g. an authenticator app) that must
|
|
203
|
+
still be cleared via POST /api/v1/tokens/two-factor. Email is
|
|
204
|
+
never offered as that second factor — it was already the first.
|
|
205
|
+
|
|
206
|
+
An invalid, expired, already-used token (or a tenant without magic-link
|
|
207
|
+
login enabled) returns 400 (invalid_grant).
|
|
208
|
+
* @summary Exchange a magic-link token for an access token (passwordless login).
|
|
209
|
+
*/
|
|
210
|
+
export type authMagicLinkTokenResponse200 = {
|
|
211
|
+
data: TokenPayload
|
|
212
|
+
status: 200
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type authMagicLinkTokenResponse202 = {
|
|
216
|
+
data: TwoFactorChallengePayload
|
|
217
|
+
status: 202
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export type authMagicLinkTokenResponse400 = {
|
|
221
|
+
data: string
|
|
222
|
+
status: 400
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type authMagicLinkTokenResponseSuccess = (authMagicLinkTokenResponse200 | authMagicLinkTokenResponse202) & {
|
|
226
|
+
headers: Headers;
|
|
227
|
+
};
|
|
228
|
+
export type authMagicLinkTokenResponseError = (authMagicLinkTokenResponse400) & {
|
|
229
|
+
headers: Headers;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
export type authMagicLinkTokenResponse = (authMagicLinkTokenResponseSuccess | authMagicLinkTokenResponseError)
|
|
233
|
+
|
|
234
|
+
export const getAuthMagicLinkTokenUrl = (params: AuthMagicLinkTokenParams,) => {
|
|
235
|
+
const normalizedParams = new URLSearchParams();
|
|
236
|
+
|
|
237
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
238
|
+
|
|
239
|
+
if (value !== undefined) {
|
|
240
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
const stringifiedParams = normalizedParams.toString();
|
|
245
|
+
|
|
246
|
+
return stringifiedParams.length > 0 ? `/api/v1/tokens/magic-link?${stringifiedParams}` : `/api/v1/tokens/magic-link`
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const authMagicLinkToken = async (params: AuthMagicLinkTokenParams, options?: RequestInit): Promise<authMagicLinkTokenResponse> => {
|
|
250
|
+
|
|
251
|
+
return customFetch<authMagicLinkTokenResponse>(getAuthMagicLinkTokenUrl(params),
|
|
252
|
+
{
|
|
253
|
+
...options,
|
|
254
|
+
method: 'POST'
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
);}
|
|
259
|
+
|
|
260
|
+
|
|
190
261
|
/**
|
|
191
262
|
* Call this after `POST /api/v1/tokens` returns `two_factor_required`.
|
|
192
263
|
Post the challenge token from that response together with the user's
|