@outseta/api-client 0.4.3 → 0.4.5
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 +2 -0
- package/package.json +1 -1
- package/src/generated/crm/crm.ts +2 -1
- package/src/generated/models/activityType.ts +2 -1
- package/src/generated/models/billSettingsAllOf.ts +3 -0
- package/src/generated/models/index.ts +7 -0
- package/src/generated/models/qcountConfigSettingType.ts +2 -1
- package/src/generated/models/stripeInvoiceLineItemAllOf.ts +7 -0
- package/src/generated/models/templateGetTransactionalEmailSettings200.ts +8 -0
- package/src/generated/models/templateGetTransactionalEmailSettingsParams.ts +14 -0
- package/src/generated/models/templateUpdateTransactionalEmailSettings200.ts +8 -0
- package/src/generated/models/templateUpdateTransactionalEmailSettingsBody.ts +7 -0
- package/src/generated/models/transactionalEmailSetting.ts +13 -0
- package/src/generated/models/transactionalEmailSettingUpdate.ts +7 -0
- package/src/generated/models/transactionalEmailSettingUpdateRequest.ts +7 -0
- package/src/generated/template/template.ts +102 -0
package/dist/index.js
CHANGED
|
@@ -2298,6 +2298,7 @@ var ActivityType = {
|
|
|
2298
2298
|
PlanUpdated: 401,
|
|
2299
2299
|
AddOnCreated: 402,
|
|
2300
2300
|
AddOnUpdated: 403,
|
|
2301
|
+
TransactionalEmailSettingUpdated: 404,
|
|
2301
2302
|
DiscordUserLinked: 500,
|
|
2302
2303
|
DiscordUserAddedToServer: 501,
|
|
2303
2304
|
DiscordUserRolesUpdated: 502,
|
|
@@ -2588,6 +2589,7 @@ var QcountConfigSettingType = {
|
|
|
2588
2589
|
MagicLinkLoginEnabled: 143,
|
|
2589
2590
|
Support_DeleteClosedTicketsAfterMonths: 148,
|
|
2590
2591
|
SingleSessionLogin: 149,
|
|
2592
|
+
CRM_PasswordChangedEmailDisabled: 152,
|
|
2591
2593
|
GoogleAnalyticsMeasurementId: 170,
|
|
2592
2594
|
GoogleAnalyticsApiSecret: 171,
|
|
2593
2595
|
Stripe_TaxEnabled: 190,
|
package/package.json
CHANGED
package/src/generated/crm/crm.ts
CHANGED
|
@@ -1275,7 +1275,8 @@ export const accountExtendRenewal = async (accountUid: string | null,
|
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Pass personUid as a query parameter to send to a specific person, or personUid=* to send
|
|
1277
1277
|
to all people on the account. If no personUid is provided, the email is sent to the
|
|
1278
|
-
primary contact.
|
|
1278
|
+
primary contact. The email is sent even when the Registration confirmation email is
|
|
1279
|
+
turned off under Email > Transactional emails.
|
|
1279
1280
|
* @summary Send a confirmation email to people on an account.
|
|
1280
1281
|
*/
|
|
1281
1282
|
export type accountSendConfirmationEmailResponse200 = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `10` - Custom, `50` - Note, `51` - Email, `52` - PhoneCall, `53` - Meeting, `54` - Chat, `100` - AccountCreated, `101` - AccountUpdated, `102` - AccountAddPerson, `103` - AccountStageUpdated, `104` - AccountDeleted, `105` - AccountBillingInformationUpdated, `106` - AccountSubscriptionPlanUpdated, `107` - AccountSubscriptionPaymentCollected, `108` - AccountSubscriptionPaymentDeclined, `109` - AccountBillingInformationRequested, `110` - AccountBillingInvoiceEmailSent, `111` - AccountRemovePerson, `112` - AccountPaidSubscriptionCreated, `113` - AccountBillingInformationRemoved, `114` - AccountPrimaryPersonUpdated, `115` - AccountBillingInvoiceCreated, `116` - AccountSubscriptionStarted, `117` - AccountSubscriptionRenewalExtended, `118` - AccountSubscriptionAddOnsChanged, `119` - AccountSubscriptionCancellationRequested, `120` - AccountBillingInvoiceDeleted, `121` - AccountPersonRoleUpdated, `122` - AccountProductsChanged, `200` - PersonCreated, `201` - PersonUpdated, `202` - PersonDeleted, `203` - PersonLogin, `204` - PersonListSubscribed, `205` - PersonListUnsubscribed, `206` - PersonSegmentAdded, `207` - PersonSegmentRemoved, `208` - PersonEmailOpened, `209` - PersonEmailClicked, `210` - PersonEmailBounce, `211` - PersonEmailSpam, `212` - PersonSupportTicketCreated, `213` - PersonSupportTicketUpdated, `214` - PersonLeadFormSubmitted, `215` - PersonListConfirmed, `216` - PersonEmailSubscribed, `217` - PersonEmailUnsubscribed, `218` - PersonTemporaryPasswordSet, `219` - PersonSupportTicketClosed, `220` - PersonTwoFactorRecoveryCodesRegenerated, `300` - DealCreated, `301` - DealUpdated, `304` - DealDeleted, `305` - DealDueDate, `306` - TaskCreated, `307` - TaskUpdated, `400` - PlanCreated, `401` - PlanUpdated, `402` - AddOnCreated, `403` - AddOnUpdated, `500` - DiscordUserLinked, `501` - DiscordUserAddedToServer, `502` - DiscordUserRolesUpdated, `503` - DiscordUserRemovedFromServer
|
|
4
|
+
* `10` - Custom, `50` - Note, `51` - Email, `52` - PhoneCall, `53` - Meeting, `54` - Chat, `100` - AccountCreated, `101` - AccountUpdated, `102` - AccountAddPerson, `103` - AccountStageUpdated, `104` - AccountDeleted, `105` - AccountBillingInformationUpdated, `106` - AccountSubscriptionPlanUpdated, `107` - AccountSubscriptionPaymentCollected, `108` - AccountSubscriptionPaymentDeclined, `109` - AccountBillingInformationRequested, `110` - AccountBillingInvoiceEmailSent, `111` - AccountRemovePerson, `112` - AccountPaidSubscriptionCreated, `113` - AccountBillingInformationRemoved, `114` - AccountPrimaryPersonUpdated, `115` - AccountBillingInvoiceCreated, `116` - AccountSubscriptionStarted, `117` - AccountSubscriptionRenewalExtended, `118` - AccountSubscriptionAddOnsChanged, `119` - AccountSubscriptionCancellationRequested, `120` - AccountBillingInvoiceDeleted, `121` - AccountPersonRoleUpdated, `122` - AccountProductsChanged, `200` - PersonCreated, `201` - PersonUpdated, `202` - PersonDeleted, `203` - PersonLogin, `204` - PersonListSubscribed, `205` - PersonListUnsubscribed, `206` - PersonSegmentAdded, `207` - PersonSegmentRemoved, `208` - PersonEmailOpened, `209` - PersonEmailClicked, `210` - PersonEmailBounce, `211` - PersonEmailSpam, `212` - PersonSupportTicketCreated, `213` - PersonSupportTicketUpdated, `214` - PersonLeadFormSubmitted, `215` - PersonListConfirmed, `216` - PersonEmailSubscribed, `217` - PersonEmailUnsubscribed, `218` - PersonTemporaryPasswordSet, `219` - PersonSupportTicketClosed, `220` - PersonTwoFactorRecoveryCodesRegenerated, `300` - DealCreated, `301` - DealUpdated, `304` - DealDeleted, `305` - DealDueDate, `306` - TaskCreated, `307` - TaskUpdated, `400` - PlanCreated, `401` - PlanUpdated, `402` - AddOnCreated, `403` - AddOnUpdated, `404` - TransactionalEmailSettingUpdated, `500` - DiscordUserLinked, `501` - DiscordUserAddedToServer, `502` - DiscordUserRolesUpdated, `503` - DiscordUserRemovedFromServer
|
|
5
5
|
*/
|
|
6
6
|
export type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
7
7
|
|
|
@@ -68,6 +68,7 @@ export const ActivityType = {
|
|
|
68
68
|
PlanUpdated: 401,
|
|
69
69
|
AddOnCreated: 402,
|
|
70
70
|
AddOnUpdated: 403,
|
|
71
|
+
TransactionalEmailSettingUpdated: 404,
|
|
71
72
|
DiscordUserLinked: 500,
|
|
72
73
|
DiscordUserAddedToServer: 501,
|
|
73
74
|
DiscordUserRolesUpdated: 502,
|
|
@@ -5,6 +5,9 @@ import type { BillingSystem } from './billingSystem';
|
|
|
5
5
|
export type BillSettingsAllOf = {
|
|
6
6
|
DaysPastDueToSetAccountToCanceling?: number;
|
|
7
7
|
IsInvoicePaymentEmailDisabled: boolean;
|
|
8
|
+
IsInvoiceReminderEmailDisabled: boolean;
|
|
9
|
+
IsPaymentProblemEmailDisabled: boolean;
|
|
10
|
+
IsPaymentInfoUpdatedEmailDisabled: boolean;
|
|
8
11
|
PaymentsMode?: PaymentsMode;
|
|
9
12
|
BillingSystem?: BillingSystem;
|
|
10
13
|
RestrictSubscriptionActions?: boolean;
|
|
@@ -823,7 +823,11 @@ export * from './templateGetAllTemplates200';
|
|
|
823
823
|
export * from './templateGetAllTemplatesParams';
|
|
824
824
|
export * from './templateGetTemplateEmails200';
|
|
825
825
|
export * from './templateGetTemplateEmailsParams';
|
|
826
|
+
export * from './templateGetTransactionalEmailSettings200';
|
|
827
|
+
export * from './templateGetTransactionalEmailSettingsParams';
|
|
826
828
|
export * from './templateSendTemplateEmailBody';
|
|
829
|
+
export * from './templateUpdateTransactionalEmailSettings200';
|
|
830
|
+
export * from './templateUpdateTransactionalEmailSettingsBody';
|
|
827
831
|
export * from './temporaryPasswordModel';
|
|
828
832
|
export * from './tokenPayload';
|
|
829
833
|
export * from './tokenTwoFactorEnrollmentBeginEmailParams';
|
|
@@ -834,6 +838,9 @@ export * from './transaction';
|
|
|
834
838
|
export * from './transactionAllOf';
|
|
835
839
|
export * from './transactionAllOfAccount';
|
|
836
840
|
export * from './transactionAllOfInvoice';
|
|
841
|
+
export * from './transactionalEmailSetting';
|
|
842
|
+
export * from './transactionalEmailSettingUpdate';
|
|
843
|
+
export * from './transactionalEmailSettingUpdateRequest';
|
|
837
844
|
export * from './transactionsAddPaymentTransactionBody';
|
|
838
845
|
export * from './transactionsGetAllTransactionsByAccountId200';
|
|
839
846
|
export * from './transactionsGetAllTransactionsByAccountIdParams';
|
|
@@ -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, `143` - MagicLinkLoginEnabled, `148` - Support_DeleteClosedTicketsAfterMonths, `149` - SingleSessionLogin, `170` - GoogleAnalyticsMeasurementId, `171` - GoogleAnalyticsApiSecret, `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, `148` - Support_DeleteClosedTicketsAfterMonths, `149` - SingleSessionLogin, `152` - CRM_PasswordChangedEmailDisabled, `170` - GoogleAnalyticsMeasurementId, `171` - GoogleAnalyticsApiSecret, `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
|
|
|
@@ -35,6 +35,7 @@ export const QcountConfigSettingType = {
|
|
|
35
35
|
MagicLinkLoginEnabled: 143,
|
|
36
36
|
Support_DeleteClosedTicketsAfterMonths: 148,
|
|
37
37
|
SingleSessionLogin: 149,
|
|
38
|
+
CRM_PasswordChangedEmailDisabled: 152,
|
|
38
39
|
GoogleAnalyticsMeasurementId: 170,
|
|
39
40
|
GoogleAnalyticsApiSecret: 171,
|
|
40
41
|
Stripe_TaxEnabled: 190,
|
|
@@ -12,6 +12,8 @@ export type StripeInvoiceLineItemAllOf = {
|
|
|
12
12
|
* @nullable
|
|
13
13
|
*/
|
|
14
14
|
Currency?: string | null;
|
|
15
|
+
/** @nullable */
|
|
16
|
+
Description?: string | null;
|
|
15
17
|
PeriodStart?: string;
|
|
16
18
|
PeriodEnd?: string;
|
|
17
19
|
/** @nullable */
|
|
@@ -22,6 +24,11 @@ export type StripeInvoiceLineItemAllOf = {
|
|
|
22
24
|
StripePrice?: StripeInvoiceLineItemAllOfStripePrice;
|
|
23
25
|
/** @nullable */
|
|
24
26
|
EndDate?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* @maxLength 20
|
|
29
|
+
* @nullable
|
|
30
|
+
*/
|
|
31
|
+
LineType?: string | null;
|
|
25
32
|
/** @nullable */
|
|
26
33
|
CurrencyAmount?: number | null;
|
|
27
34
|
/** @nullable */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { CollectionMetadata } from './collectionMetadata';
|
|
3
|
+
import type { TransactionalEmailSetting } from './transactionalEmailSetting';
|
|
4
|
+
|
|
5
|
+
export type TemplateGetTransactionalEmailSettings200 = {
|
|
6
|
+
metadata?: CollectionMetadata;
|
|
7
|
+
items?: TransactionalEmailSetting[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type TemplateGetTransactionalEmailSettingsParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { CollectionMetadata } from './collectionMetadata';
|
|
3
|
+
import type { TransactionalEmailSetting } from './transactionalEmailSetting';
|
|
4
|
+
|
|
5
|
+
export type TemplateUpdateTransactionalEmailSettings200 = {
|
|
6
|
+
metadata?: CollectionMetadata;
|
|
7
|
+
items?: TransactionalEmailSetting[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
export interface TransactionalEmailSetting {
|
|
4
|
+
/** @nullable */
|
|
5
|
+
Key?: string | null;
|
|
6
|
+
/** @nullable */
|
|
7
|
+
Name?: string | null;
|
|
8
|
+
/** @nullable */
|
|
9
|
+
SentWhen?: string | null;
|
|
10
|
+
/** @nullable */
|
|
11
|
+
TemplateSystemNames?: string[] | null;
|
|
12
|
+
IsEnabled?: boolean;
|
|
13
|
+
}
|
|
@@ -8,7 +8,11 @@ import type {
|
|
|
8
8
|
TemplateGetAllTemplatesParams,
|
|
9
9
|
TemplateGetTemplateEmails200,
|
|
10
10
|
TemplateGetTemplateEmailsParams,
|
|
11
|
+
TemplateGetTransactionalEmailSettings200,
|
|
12
|
+
TemplateGetTransactionalEmailSettingsParams,
|
|
11
13
|
TemplateSendTemplateEmailBody,
|
|
14
|
+
TemplateUpdateTransactionalEmailSettings200,
|
|
15
|
+
TemplateUpdateTransactionalEmailSettingsBody,
|
|
12
16
|
UpdateTemplateRequest
|
|
13
17
|
} from '.././models';
|
|
14
18
|
|
|
@@ -130,6 +134,104 @@ export const templateGetAllTemplateEmails = async (params?: TemplateGetAllTempla
|
|
|
130
134
|
);}
|
|
131
135
|
|
|
132
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Each setting names the email templates it covers. A setting that is off stops the
|
|
139
|
+
automatic email only; an email sent by hand, such as the send invoice button, is
|
|
140
|
+
still sent.
|
|
141
|
+
* @summary The on/off settings for the transactional emails that Outseta sends to your customers.
|
|
142
|
+
*/
|
|
143
|
+
export type templateGetTransactionalEmailSettingsResponse200 = {
|
|
144
|
+
data: TemplateGetTransactionalEmailSettings200
|
|
145
|
+
status: 200
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type templateGetTransactionalEmailSettingsResponse401 = {
|
|
149
|
+
data: void
|
|
150
|
+
status: 401
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type templateGetTransactionalEmailSettingsResponseSuccess = (templateGetTransactionalEmailSettingsResponse200) & {
|
|
154
|
+
headers: Headers;
|
|
155
|
+
};
|
|
156
|
+
export type templateGetTransactionalEmailSettingsResponseError = (templateGetTransactionalEmailSettingsResponse401) & {
|
|
157
|
+
headers: Headers;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export type templateGetTransactionalEmailSettingsResponse = (templateGetTransactionalEmailSettingsResponseSuccess | templateGetTransactionalEmailSettingsResponseError)
|
|
161
|
+
|
|
162
|
+
export const getTemplateGetTransactionalEmailSettingsUrl = (params?: TemplateGetTransactionalEmailSettingsParams,) => {
|
|
163
|
+
const normalizedParams = new URLSearchParams();
|
|
164
|
+
|
|
165
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
166
|
+
|
|
167
|
+
if (value !== undefined) {
|
|
168
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
const stringifiedParams = normalizedParams.toString();
|
|
173
|
+
|
|
174
|
+
return stringifiedParams.length > 0 ? `/api/v1/templates/transactional-email-settings?${stringifiedParams}` : `/api/v1/templates/transactional-email-settings`
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const templateGetTransactionalEmailSettings = async (params?: TemplateGetTransactionalEmailSettingsParams, options?: RequestInit): Promise<templateGetTransactionalEmailSettingsResponse> => {
|
|
178
|
+
|
|
179
|
+
return customFetch<templateGetTransactionalEmailSettingsResponse>(getTemplateGetTransactionalEmailSettingsUrl(params),
|
|
180
|
+
{
|
|
181
|
+
...options,
|
|
182
|
+
method: 'GET'
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
);}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Send an object with a Settings list. Each item has Key and IsEnabled. A setting that
|
|
191
|
+
is not in the list keeps its state. Each change is recorded in the activity log.
|
|
192
|
+
Returns all settings.
|
|
193
|
+
* @summary Turns transactional emails on or off.
|
|
194
|
+
*/
|
|
195
|
+
export type templateUpdateTransactionalEmailSettingsResponse200 = {
|
|
196
|
+
data: TemplateUpdateTransactionalEmailSettings200
|
|
197
|
+
status: 200
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type templateUpdateTransactionalEmailSettingsResponse401 = {
|
|
201
|
+
data: void
|
|
202
|
+
status: 401
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type templateUpdateTransactionalEmailSettingsResponseSuccess = (templateUpdateTransactionalEmailSettingsResponse200) & {
|
|
206
|
+
headers: Headers;
|
|
207
|
+
};
|
|
208
|
+
export type templateUpdateTransactionalEmailSettingsResponseError = (templateUpdateTransactionalEmailSettingsResponse401) & {
|
|
209
|
+
headers: Headers;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export type templateUpdateTransactionalEmailSettingsResponse = (templateUpdateTransactionalEmailSettingsResponseSuccess | templateUpdateTransactionalEmailSettingsResponseError)
|
|
213
|
+
|
|
214
|
+
export const getTemplateUpdateTransactionalEmailSettingsUrl = () => {
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
return `/api/v1/templates/transactional-email-settings`
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export const templateUpdateTransactionalEmailSettings = async (templateUpdateTransactionalEmailSettingsBody: TemplateUpdateTransactionalEmailSettingsBody, options?: RequestInit): Promise<templateUpdateTransactionalEmailSettingsResponse> => {
|
|
223
|
+
|
|
224
|
+
return customFetch<templateUpdateTransactionalEmailSettingsResponse>(getTemplateUpdateTransactionalEmailSettingsUrl(),
|
|
225
|
+
{
|
|
226
|
+
...options,
|
|
227
|
+
method: 'PUT',
|
|
228
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
229
|
+
body: JSON.stringify(
|
|
230
|
+
templateUpdateTransactionalEmailSettingsBody,)
|
|
231
|
+
}
|
|
232
|
+
);}
|
|
233
|
+
|
|
234
|
+
|
|
133
235
|
/**
|
|
134
236
|
* Add personUid to the query string to see what one person was sent from this
|
|
135
237
|
template.
|