reach-api-sdk 1.0.220 → 1.0.222

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/src/index.ts CHANGED
@@ -441,6 +441,10 @@ export type { TemplatePatch } from './models/TemplatePatch';
441
441
  export type { TemplatePost } from './models/TemplatePost';
442
442
  export type { TemplateUseResponse } from './models/TemplateUseResponse';
443
443
  export type { Tenant } from './models/Tenant';
444
+ export type { TenantFaq } from './models/TenantFaq';
445
+ export type { TenantFaqPage } from './models/TenantFaqPage';
446
+ export type { TenantFaqPatch } from './models/TenantFaqPatch';
447
+ export type { TenantFaqPost } from './models/TenantFaqPost';
444
448
  export type { TenantPage } from './models/TenantPage';
445
449
  export type { TenantPatch } from './models/TenantPatch';
446
450
  export type { TenantPost } from './models/TenantPost';
@@ -630,6 +634,7 @@ export { PublicStripeWebhookService } from './services/PublicStripeWebhookServic
630
634
  export { PublicSurveyCompletionLogsService } from './services/PublicSurveyCompletionLogsService';
631
635
  export { PublicSurveyQuestionsService } from './services/PublicSurveyQuestionsService';
632
636
  export { PublicSurveysService } from './services/PublicSurveysService';
637
+ export { PublicTenantFaqsService } from './services/PublicTenantFaqsService';
633
638
  export { PublicTenantsService } from './services/PublicTenantsService';
634
639
  export { PublicVenuesService } from './services/PublicVenuesService';
635
640
  export { PublicVenueTypesService } from './services/PublicVenueTypesService';
@@ -658,6 +663,7 @@ export { TemplateDetailsService } from './services/TemplateDetailsService';
658
663
  export { TemplateFieldPermissionsService } from './services/TemplateFieldPermissionsService';
659
664
  export { TemplateOffersService } from './services/TemplateOffersService';
660
665
  export { TemplatesService } from './services/TemplatesService';
666
+ export { TenantFaqsService } from './services/TenantFaqsService';
661
667
  export { TenantsService } from './services/TenantsService';
662
668
  export { TenantWebsiteSettingsService } from './services/TenantWebsiteSettingsService';
663
669
  export { TimezoneService } from './services/TimezoneService';
@@ -0,0 +1,54 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Represents a single Frequently Asked Question entry owned by a tenant.
8
+ */
9
+ export type TenantFaq = {
10
+ /**
11
+ * Gets or sets the entities Id.
12
+ */
13
+ id?: string;
14
+ /**
15
+ * Gets or sets the tenant Id.
16
+ */
17
+ tenantId: string;
18
+ /**
19
+ * Gets or sets the created date of this entity.
20
+ */
21
+ dateCreated: string;
22
+ /**
23
+ * Gets or sets the last modified date of this entity.
24
+ */
25
+ dateModified: string;
26
+ /**
27
+ * Gets or sets the modified by Id.
28
+ */
29
+ modifiedById?: string | null;
30
+ /**
31
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
32
+ */
33
+ isLive: boolean;
34
+ /**
35
+ * Gets or sets the question text.
36
+ */
37
+ question?: string | null;
38
+ /**
39
+ * Gets or sets the answer text. Stored as sanitized HTML (basic formatting only - paragraphs, bullets, links).
40
+ */
41
+ answer?: string | null;
42
+ /**
43
+ * Gets or sets the display order for the FAQ within the tenant list. Lower values appear first.
44
+ */
45
+ sortOrder?: number;
46
+ /**
47
+ * Gets or sets a value indicating whether this FAQ is shown on the public storefront.
48
+ */
49
+ showOnStorefront?: boolean;
50
+ /**
51
+ * Gets or sets a value indicating whether this FAQ is shown on the customer portal.
52
+ */
53
+ showOnCustomerPortal?: boolean;
54
+ };
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { Pagination } from './Pagination';
7
+ import type { TenantFaq } from './TenantFaq';
8
+
9
+ export type TenantFaqPage = {
10
+ pagination: Pagination;
11
+ readonly items: Array<TenantFaq>;
12
+ };
@@ -0,0 +1,42 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Patch model for a tenant FAQ entry.
8
+ */
9
+ export type TenantFaqPatch = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the Id.
16
+ */
17
+ id: string;
18
+ /**
19
+ * Gets or sets the question text.
20
+ */
21
+ question?: string | null;
22
+ /**
23
+ * Gets or sets the answer text (sanitized HTML).
24
+ */
25
+ answer?: string | null;
26
+ /**
27
+ * Gets or sets the display order for the FAQ within the tenant list.
28
+ */
29
+ sortOrder?: number;
30
+ /**
31
+ * Gets or sets a value indicating whether this FAQ is shown on the public storefront.
32
+ */
33
+ showOnStorefront?: boolean;
34
+ /**
35
+ * Gets or sets a value indicating whether this FAQ is shown on the customer portal.
36
+ */
37
+ showOnCustomerPortal?: boolean;
38
+ /**
39
+ * Gets or sets a value indicating whether this FAQ is live (published).
40
+ */
41
+ isLive?: boolean;
42
+ };
@@ -0,0 +1,38 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Post model for a tenant FAQ entry.
8
+ */
9
+ export type TenantFaqPost = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the question text.
16
+ */
17
+ question?: string | null;
18
+ /**
19
+ * Gets or sets the answer text (sanitized HTML).
20
+ */
21
+ answer?: string | null;
22
+ /**
23
+ * Gets or sets the display order for the FAQ within the tenant list.
24
+ */
25
+ sortOrder?: number;
26
+ /**
27
+ * Gets or sets a value indicating whether this FAQ is shown on the public storefront.
28
+ */
29
+ showOnStorefront?: boolean;
30
+ /**
31
+ * Gets or sets a value indicating whether this FAQ is shown on the customer portal.
32
+ */
33
+ showOnCustomerPortal?: boolean;
34
+ /**
35
+ * Gets or sets a value indicating whether this FAQ is live (published).
36
+ */
37
+ isLive?: boolean;
38
+ };
@@ -115,4 +115,12 @@ export type TenantWebsiteSetting = {
115
115
  */
116
116
  defaultMapCenterPlaceId?: string | null;
117
117
  websiteHomepage?: WebsiteHomepage;
118
+ /**
119
+ * Gets or sets a value indicating whether a gating message is shown to customers in a modal before they proceed to the checkout flow.
120
+ */
121
+ checkoutGatingMessageEnabled?: boolean | null;
122
+ /**
123
+ * Gets or sets the message shown to customers in a modal before they proceed to the checkout flow. Only shown when Reach.Models.TenantWebsiteSetting.CheckoutGatingMessageEnabled is true.
124
+ */
125
+ checkoutGatingMessage?: string | null;
118
126
  };
@@ -83,4 +83,12 @@ export type TenantWebsiteSettingPatch = {
83
83
  */
84
84
  defaultMapCenterPlaceId?: string | null;
85
85
  websiteHomepage?: WebsiteHomepage;
86
+ /**
87
+ * Gets or sets a value indicating whether a gating message is shown to customers in a modal before they proceed to the checkout flow.
88
+ */
89
+ checkoutGatingMessageEnabled?: boolean | null;
90
+ /**
91
+ * Gets or sets the message shown to customers in a modal before they proceed to the checkout flow.
92
+ */
93
+ checkoutGatingMessage?: string | null;
86
94
  };
@@ -0,0 +1,264 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
+ import type { TenantFaq } from '../models/TenantFaq';
7
+ import type { TenantFaqPage } from '../models/TenantFaqPage';
8
+
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
11
+
12
+ export class PublicTenantFaqsService {
13
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
14
+
15
+ /**
16
+ * @returns TenantFaq OK
17
+ * @throws ApiError
18
+ */
19
+ public getObject({
20
+ id,
21
+ xTenantSubdomain,
22
+ }: {
23
+ id: string;
24
+ xTenantSubdomain?: string;
25
+ }): CancelablePromise<TenantFaq> {
26
+ return this.httpRequest.request({
27
+ method: 'GET',
28
+ url: '/api/public/tenant-faqs/{id}',
29
+ path: {
30
+ id: id,
31
+ },
32
+ headers: {
33
+ x_tenant_subdomain: xTenantSubdomain,
34
+ },
35
+ errors: {
36
+ 400: `Bad Request`,
37
+ 422: `Unprocessable Content`,
38
+ 500: `Internal Server Error`,
39
+ },
40
+ });
41
+ }
42
+
43
+ /**
44
+ * @returns TenantFaqPage OK
45
+ * @throws ApiError
46
+ */
47
+ public getPage({
48
+ xTenantSubdomain,
49
+ ids,
50
+ showOnStorefront,
51
+ showOnCustomerPortal,
52
+ pageNumber,
53
+ take,
54
+ skip,
55
+ limitListRequests,
56
+ tenantId,
57
+ modifiedById,
58
+ modifiedByIds,
59
+ dateCreatedGte,
60
+ dateCreatedLte,
61
+ isLive,
62
+ sortOrderDirection,
63
+ }: {
64
+ xTenantSubdomain?: string;
65
+ /**
66
+ * Gets or sets the queryable tenant FAQ ids.
67
+ */
68
+ ids?: Array<string>;
69
+ /**
70
+ * Gets or sets the queryable ShowOnStorefront value.
71
+ */
72
+ showOnStorefront?: boolean;
73
+ /**
74
+ * Gets or sets the queryable ShowOnCustomerPortal value.
75
+ */
76
+ showOnCustomerPortal?: boolean;
77
+ /**
78
+ * Gets or sets the page number for paged queries.
79
+ */
80
+ pageNumber?: number;
81
+ /**
82
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
83
+ */
84
+ take?: number;
85
+ /**
86
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
87
+ */
88
+ skip?: number;
89
+ /**
90
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
91
+ */
92
+ limitListRequests?: boolean;
93
+ /**
94
+ * Gets or sets the Tenant Id.
95
+ */
96
+ tenantId?: string;
97
+ /**
98
+ * Gets or sets the Modifed By Id.
99
+ */
100
+ modifiedById?: string;
101
+ /**
102
+ * Gets or sets the Modifed By Ids.
103
+ */
104
+ modifiedByIds?: Array<string>;
105
+ /**
106
+ * Gets or sets the Date Created greater than equal to.
107
+ */
108
+ dateCreatedGte?: string;
109
+ /**
110
+ * Gets or sets the Date Created less than equal to.
111
+ */
112
+ dateCreatedLte?: string;
113
+ /**
114
+ * Gets or sets the queryable only is live status.
115
+ */
116
+ isLive?: boolean;
117
+ /**
118
+ * Gets or sets the sort order direction.
119
+ */
120
+ sortOrderDirection?: SearchSortOrderDirection;
121
+ }): CancelablePromise<TenantFaqPage> {
122
+ return this.httpRequest.request({
123
+ method: 'GET',
124
+ url: '/api/public/tenant-faqs',
125
+ headers: {
126
+ x_tenant_subdomain: xTenantSubdomain,
127
+ },
128
+ query: {
129
+ Ids: ids,
130
+ ShowOnStorefront: showOnStorefront,
131
+ ShowOnCustomerPortal: showOnCustomerPortal,
132
+ PageNumber: pageNumber,
133
+ Take: take,
134
+ Skip: skip,
135
+ LimitListRequests: limitListRequests,
136
+ TenantId: tenantId,
137
+ ModifiedById: modifiedById,
138
+ ModifiedByIds: modifiedByIds,
139
+ DateCreatedGTE: dateCreatedGte,
140
+ DateCreatedLTE: dateCreatedLte,
141
+ IsLive: isLive,
142
+ SortOrderDirection: sortOrderDirection,
143
+ },
144
+ errors: {
145
+ 400: `Bad Request`,
146
+ 422: `Unprocessable Content`,
147
+ 500: `Internal Server Error`,
148
+ },
149
+ });
150
+ }
151
+
152
+ /**
153
+ * Returns a value indicating whether the resource exists in the database given the provided search params.
154
+ * @returns boolean OK
155
+ * @throws ApiError
156
+ */
157
+ public exists({
158
+ xTenantSubdomain,
159
+ ids,
160
+ showOnStorefront,
161
+ showOnCustomerPortal,
162
+ pageNumber,
163
+ take,
164
+ skip,
165
+ limitListRequests,
166
+ tenantId,
167
+ modifiedById,
168
+ modifiedByIds,
169
+ dateCreatedGte,
170
+ dateCreatedLte,
171
+ isLive,
172
+ sortOrderDirection,
173
+ }: {
174
+ /**
175
+ * The tenants subdomain.
176
+ */
177
+ xTenantSubdomain?: string;
178
+ /**
179
+ * Gets or sets the queryable tenant FAQ ids.
180
+ */
181
+ ids?: Array<string>;
182
+ /**
183
+ * Gets or sets the queryable ShowOnStorefront value.
184
+ */
185
+ showOnStorefront?: boolean;
186
+ /**
187
+ * Gets or sets the queryable ShowOnCustomerPortal value.
188
+ */
189
+ showOnCustomerPortal?: boolean;
190
+ /**
191
+ * Gets or sets the page number for paged queries.
192
+ */
193
+ pageNumber?: number;
194
+ /**
195
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
196
+ */
197
+ take?: number;
198
+ /**
199
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
200
+ */
201
+ skip?: number;
202
+ /**
203
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
204
+ */
205
+ limitListRequests?: boolean;
206
+ /**
207
+ * Gets or sets the Tenant Id.
208
+ */
209
+ tenantId?: string;
210
+ /**
211
+ * Gets or sets the Modifed By Id.
212
+ */
213
+ modifiedById?: string;
214
+ /**
215
+ * Gets or sets the Modifed By Ids.
216
+ */
217
+ modifiedByIds?: Array<string>;
218
+ /**
219
+ * Gets or sets the Date Created greater than equal to.
220
+ */
221
+ dateCreatedGte?: string;
222
+ /**
223
+ * Gets or sets the Date Created less than equal to.
224
+ */
225
+ dateCreatedLte?: string;
226
+ /**
227
+ * Gets or sets the queryable only is live status.
228
+ */
229
+ isLive?: boolean;
230
+ /**
231
+ * Gets or sets the sort order direction.
232
+ */
233
+ sortOrderDirection?: SearchSortOrderDirection;
234
+ }): CancelablePromise<boolean> {
235
+ return this.httpRequest.request({
236
+ method: 'GET',
237
+ url: '/api/public/tenant-faqs/exists',
238
+ headers: {
239
+ x_tenant_subdomain: xTenantSubdomain,
240
+ },
241
+ query: {
242
+ Ids: ids,
243
+ ShowOnStorefront: showOnStorefront,
244
+ ShowOnCustomerPortal: showOnCustomerPortal,
245
+ PageNumber: pageNumber,
246
+ Take: take,
247
+ Skip: skip,
248
+ LimitListRequests: limitListRequests,
249
+ TenantId: tenantId,
250
+ ModifiedById: modifiedById,
251
+ ModifiedByIds: modifiedByIds,
252
+ DateCreatedGTE: dateCreatedGte,
253
+ DateCreatedLTE: dateCreatedLte,
254
+ IsLive: isLive,
255
+ SortOrderDirection: sortOrderDirection,
256
+ },
257
+ errors: {
258
+ 400: `Bad Request`,
259
+ 422: `Unprocessable Content`,
260
+ 500: `Internal Server Error`,
261
+ },
262
+ });
263
+ }
264
+ }