@oppulence/stripe-sync-engine-sdk 0.0.1-alpha

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.mjs ADDED
@@ -0,0 +1,1921 @@
1
+ // runtime.ts
2
+ var BASE_PATH = "http://localhost:3000".replace(/\/+$/, "");
3
+ var Configuration = class {
4
+ constructor(configuration = {}) {
5
+ this.configuration = configuration;
6
+ }
7
+ set config(configuration) {
8
+ this.configuration = configuration;
9
+ }
10
+ get basePath() {
11
+ return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
12
+ }
13
+ get fetchApi() {
14
+ return this.configuration.fetchApi;
15
+ }
16
+ get middleware() {
17
+ return this.configuration.middleware || [];
18
+ }
19
+ get queryParamsStringify() {
20
+ return this.configuration.queryParamsStringify || querystring;
21
+ }
22
+ get username() {
23
+ return this.configuration.username;
24
+ }
25
+ get password() {
26
+ return this.configuration.password;
27
+ }
28
+ get apiKey() {
29
+ const apiKey = this.configuration.apiKey;
30
+ if (apiKey) {
31
+ return typeof apiKey === "function" ? apiKey : () => apiKey;
32
+ }
33
+ return void 0;
34
+ }
35
+ get accessToken() {
36
+ const accessToken = this.configuration.accessToken;
37
+ if (accessToken) {
38
+ return typeof accessToken === "function" ? accessToken : async () => accessToken;
39
+ }
40
+ return void 0;
41
+ }
42
+ get headers() {
43
+ return this.configuration.headers;
44
+ }
45
+ get credentials() {
46
+ return this.configuration.credentials;
47
+ }
48
+ };
49
+ var DefaultConfig = new Configuration();
50
+ var _BaseAPI = class _BaseAPI {
51
+ constructor(configuration = DefaultConfig) {
52
+ this.configuration = configuration;
53
+ this.fetchApi = async (url, init) => {
54
+ let fetchParams = { url, init };
55
+ for (const middleware of this.middleware) {
56
+ if (middleware.pre) {
57
+ fetchParams = await middleware.pre({
58
+ fetch: this.fetchApi,
59
+ ...fetchParams
60
+ }) || fetchParams;
61
+ }
62
+ }
63
+ let response = void 0;
64
+ try {
65
+ response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
66
+ } catch (e) {
67
+ for (const middleware of this.middleware) {
68
+ if (middleware.onError) {
69
+ response = await middleware.onError({
70
+ fetch: this.fetchApi,
71
+ url: fetchParams.url,
72
+ init: fetchParams.init,
73
+ error: e,
74
+ response: response ? response.clone() : void 0
75
+ }) || response;
76
+ }
77
+ }
78
+ if (response === void 0) {
79
+ if (e instanceof Error) {
80
+ throw new FetchError(
81
+ e,
82
+ "The request failed and the interceptors did not return an alternative response"
83
+ );
84
+ } else {
85
+ throw e;
86
+ }
87
+ }
88
+ }
89
+ for (const middleware of this.middleware) {
90
+ if (middleware.post) {
91
+ response = await middleware.post({
92
+ fetch: this.fetchApi,
93
+ url: fetchParams.url,
94
+ init: fetchParams.init,
95
+ response: response.clone()
96
+ }) || response;
97
+ }
98
+ }
99
+ return response;
100
+ };
101
+ this.middleware = configuration.middleware;
102
+ }
103
+ withMiddleware(...middlewares) {
104
+ const next = this.clone();
105
+ next.middleware = next.middleware.concat(...middlewares);
106
+ return next;
107
+ }
108
+ withPreMiddleware(...preMiddlewares) {
109
+ const middlewares = preMiddlewares.map((pre) => ({ pre }));
110
+ return this.withMiddleware(...middlewares);
111
+ }
112
+ withPostMiddleware(...postMiddlewares) {
113
+ const middlewares = postMiddlewares.map((post) => ({ post }));
114
+ return this.withMiddleware(...middlewares);
115
+ }
116
+ /**
117
+ * Check if the given MIME is a JSON MIME.
118
+ * JSON MIME examples:
119
+ * application/json
120
+ * application/json; charset=UTF8
121
+ * APPLICATION/JSON
122
+ * application/vnd.company+json
123
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
124
+ * @return True if the given MIME is JSON, false otherwise.
125
+ */
126
+ isJsonMime(mime) {
127
+ if (!mime) {
128
+ return false;
129
+ }
130
+ return _BaseAPI.jsonRegex.test(mime);
131
+ }
132
+ async request(context, initOverrides) {
133
+ const { url, init } = await this.createFetchParams(context, initOverrides);
134
+ const response = await this.fetchApi(url, init);
135
+ if (response && response.status >= 200 && response.status < 300) {
136
+ return response;
137
+ }
138
+ throw new ResponseError(response, "Response returned an error code");
139
+ }
140
+ async createFetchParams(context, initOverrides) {
141
+ let url = this.configuration.basePath + context.path;
142
+ if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
143
+ url += "?" + this.configuration.queryParamsStringify(context.query);
144
+ }
145
+ const headers = Object.assign({}, this.configuration.headers, context.headers);
146
+ Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
147
+ const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
148
+ const initParams = {
149
+ method: context.method,
150
+ headers,
151
+ body: context.body,
152
+ credentials: this.configuration.credentials
153
+ };
154
+ const overriddenInit = {
155
+ ...initParams,
156
+ ...await initOverrideFn({
157
+ init: initParams,
158
+ context
159
+ })
160
+ };
161
+ let body;
162
+ if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
163
+ body = overriddenInit.body;
164
+ } else if (this.isJsonMime(headers["Content-Type"])) {
165
+ body = JSON.stringify(overriddenInit.body);
166
+ } else {
167
+ body = overriddenInit.body;
168
+ }
169
+ const init = {
170
+ ...overriddenInit,
171
+ body
172
+ };
173
+ return { url, init };
174
+ }
175
+ /**
176
+ * Create a shallow clone of `this` by constructing a new instance
177
+ * and then shallow cloning data members.
178
+ */
179
+ clone() {
180
+ const constructor = this.constructor;
181
+ const next = new constructor(this.configuration);
182
+ next.middleware = this.middleware.slice();
183
+ return next;
184
+ }
185
+ };
186
+ _BaseAPI.jsonRegex = new RegExp(
187
+ "^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$",
188
+ "i"
189
+ );
190
+ var BaseAPI = _BaseAPI;
191
+ function isBlob(value) {
192
+ return typeof Blob !== "undefined" && value instanceof Blob;
193
+ }
194
+ function isFormData(value) {
195
+ return typeof FormData !== "undefined" && value instanceof FormData;
196
+ }
197
+ var ResponseError = class extends Error {
198
+ constructor(response, msg) {
199
+ super(msg);
200
+ this.response = response;
201
+ this.name = "ResponseError";
202
+ }
203
+ };
204
+ var FetchError = class extends Error {
205
+ constructor(cause, msg) {
206
+ super(msg);
207
+ this.cause = cause;
208
+ this.name = "FetchError";
209
+ }
210
+ };
211
+ var RequiredError = class extends Error {
212
+ constructor(field, msg) {
213
+ super(msg);
214
+ this.field = field;
215
+ this.name = "RequiredError";
216
+ }
217
+ };
218
+ var COLLECTION_FORMATS = {
219
+ csv: ",",
220
+ ssv: " ",
221
+ tsv: " ",
222
+ pipes: "|"
223
+ };
224
+ function querystring(params, prefix = "") {
225
+ return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
226
+ }
227
+ function querystringSingleKey(key, value, keyPrefix = "") {
228
+ const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
229
+ if (value instanceof Array) {
230
+ const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
231
+ return `${encodeURIComponent(fullKey)}=${multiValue}`;
232
+ }
233
+ if (value instanceof Set) {
234
+ const valueAsArray = Array.from(value);
235
+ return querystringSingleKey(key, valueAsArray, keyPrefix);
236
+ }
237
+ if (value instanceof Date) {
238
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
239
+ }
240
+ if (value instanceof Object) {
241
+ return querystring(value, fullKey);
242
+ }
243
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
244
+ }
245
+ function mapValues(data, fn) {
246
+ return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
247
+ }
248
+ function canConsumeForm(consumes) {
249
+ for (const consume of consumes) {
250
+ if ("multipart/form-data" === consume.contentType) {
251
+ return true;
252
+ }
253
+ }
254
+ return false;
255
+ }
256
+ var JSONApiResponse = class {
257
+ constructor(raw, transformer = (jsonValue) => jsonValue) {
258
+ this.raw = raw;
259
+ this.transformer = transformer;
260
+ }
261
+ async value() {
262
+ return this.transformer(await this.raw.json());
263
+ }
264
+ };
265
+ var VoidApiResponse = class {
266
+ constructor(raw) {
267
+ this.raw = raw;
268
+ }
269
+ async value() {
270
+ return void 0;
271
+ }
272
+ };
273
+ var BlobApiResponse = class {
274
+ constructor(raw) {
275
+ this.raw = raw;
276
+ }
277
+ async value() {
278
+ return await this.raw.blob();
279
+ }
280
+ };
281
+ var TextApiResponse = class {
282
+ constructor(raw) {
283
+ this.raw = raw;
284
+ }
285
+ async value() {
286
+ return await this.raw.text();
287
+ }
288
+ };
289
+
290
+ // models/ListTenants200ResponseDataInner.ts
291
+ var ListTenants200ResponseDataInnerStatusEnum = {
292
+ Active: "active",
293
+ Suspended: "suspended",
294
+ Deprovisioning: "deprovisioning"
295
+ };
296
+ function instanceOfListTenants200ResponseDataInner(value) {
297
+ return true;
298
+ }
299
+ function ListTenants200ResponseDataInnerFromJSON(json) {
300
+ return ListTenants200ResponseDataInnerFromJSONTyped(json, false);
301
+ }
302
+ function ListTenants200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
303
+ if (json == null) {
304
+ return json;
305
+ }
306
+ return {
307
+ id: json["id"] == null ? void 0 : json["id"],
308
+ slug: json["slug"] == null ? void 0 : json["slug"],
309
+ name: json["name"] == null ? void 0 : json["name"],
310
+ stripeAccountId: json["stripeAccountId"] == null ? void 0 : json["stripeAccountId"],
311
+ status: json["status"] == null ? void 0 : json["status"],
312
+ syncEnabled: json["syncEnabled"] == null ? void 0 : json["syncEnabled"],
313
+ webhookEnabled: json["webhookEnabled"] == null ? void 0 : json["webhookEnabled"],
314
+ autoExpandLists: json["autoExpandLists"] == null ? void 0 : json["autoExpandLists"],
315
+ backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"],
316
+ maxWebhookEventsPerHour: json["maxWebhookEventsPerHour"] == null ? void 0 : json["maxWebhookEventsPerHour"],
317
+ maxApiCallsPerHour: json["maxApiCallsPerHour"] == null ? void 0 : json["maxApiCallsPerHour"],
318
+ createdAt: json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
319
+ updatedAt: json["updatedAt"] == null ? void 0 : new Date(json["updatedAt"]),
320
+ lastSyncAt: json["lastSyncAt"] == null ? void 0 : new Date(json["lastSyncAt"])
321
+ };
322
+ }
323
+ function ListTenants200ResponseDataInnerToJSON(value) {
324
+ if (value == null) {
325
+ return value;
326
+ }
327
+ return {
328
+ id: value["id"],
329
+ slug: value["slug"],
330
+ name: value["name"],
331
+ stripeAccountId: value["stripeAccountId"],
332
+ status: value["status"],
333
+ syncEnabled: value["syncEnabled"],
334
+ webhookEnabled: value["webhookEnabled"],
335
+ autoExpandLists: value["autoExpandLists"],
336
+ backfillRelatedEntities: value["backfillRelatedEntities"],
337
+ maxWebhookEventsPerHour: value["maxWebhookEventsPerHour"],
338
+ maxApiCallsPerHour: value["maxApiCallsPerHour"],
339
+ createdAt: value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
340
+ updatedAt: value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString(),
341
+ lastSyncAt: value["lastSyncAt"] == null ? void 0 : value["lastSyncAt"].toISOString()
342
+ };
343
+ }
344
+
345
+ // models/CreateTenant201Response.ts
346
+ function instanceOfCreateTenant201Response(value) {
347
+ return true;
348
+ }
349
+ function CreateTenant201ResponseFromJSON(json) {
350
+ return CreateTenant201ResponseFromJSONTyped(json, false);
351
+ }
352
+ function CreateTenant201ResponseFromJSONTyped(json, ignoreDiscriminator) {
353
+ if (json == null) {
354
+ return json;
355
+ }
356
+ return {
357
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
358
+ ts: json["ts"] == null ? void 0 : json["ts"],
359
+ data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
360
+ };
361
+ }
362
+ function CreateTenant201ResponseToJSON(value) {
363
+ if (value == null) {
364
+ return value;
365
+ }
366
+ return {
367
+ statusCode: value["statusCode"],
368
+ ts: value["ts"],
369
+ data: ListTenants200ResponseDataInnerToJSON(value["data"])
370
+ };
371
+ }
372
+
373
+ // models/CreateTenantRequest.ts
374
+ function instanceOfCreateTenantRequest(value) {
375
+ if (!("slug" in value) || value["slug"] === void 0) return false;
376
+ if (!("name" in value) || value["name"] === void 0) return false;
377
+ if (!("stripeAccountId" in value) || value["stripeAccountId"] === void 0) return false;
378
+ if (!("stripeSecretKey" in value) || value["stripeSecretKey"] === void 0) return false;
379
+ if (!("stripeWebhookSecret" in value) || value["stripeWebhookSecret"] === void 0) return false;
380
+ return true;
381
+ }
382
+ function CreateTenantRequestFromJSON(json) {
383
+ return CreateTenantRequestFromJSONTyped(json, false);
384
+ }
385
+ function CreateTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
386
+ if (json == null) {
387
+ return json;
388
+ }
389
+ return {
390
+ slug: json["slug"],
391
+ name: json["name"],
392
+ stripeAccountId: json["stripeAccountId"],
393
+ stripeSecretKey: json["stripeSecretKey"],
394
+ stripeWebhookSecret: json["stripeWebhookSecret"],
395
+ stripePublishableKey: json["stripePublishableKey"] == null ? void 0 : json["stripePublishableKey"],
396
+ autoExpandLists: json["autoExpandLists"] == null ? void 0 : json["autoExpandLists"],
397
+ backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"]
398
+ };
399
+ }
400
+ function CreateTenantRequestToJSON(value) {
401
+ if (value == null) {
402
+ return value;
403
+ }
404
+ return {
405
+ slug: value["slug"],
406
+ name: value["name"],
407
+ stripeAccountId: value["stripeAccountId"],
408
+ stripeSecretKey: value["stripeSecretKey"],
409
+ stripeWebhookSecret: value["stripeWebhookSecret"],
410
+ stripePublishableKey: value["stripePublishableKey"],
411
+ autoExpandLists: value["autoExpandLists"],
412
+ backfillRelatedEntities: value["backfillRelatedEntities"]
413
+ };
414
+ }
415
+
416
+ // models/Def0Details.ts
417
+ function instanceOfDef0Details(value) {
418
+ return true;
419
+ }
420
+ function Def0DetailsFromJSON(json) {
421
+ return Def0DetailsFromJSONTyped(json, false);
422
+ }
423
+ function Def0DetailsFromJSONTyped(json, ignoreDiscriminator) {
424
+ return json;
425
+ }
426
+ function Def0DetailsToJSON(value) {
427
+ return value;
428
+ }
429
+
430
+ // models/Def0.ts
431
+ function instanceOfDef0(value) {
432
+ if (!("statusCode" in value) || value["statusCode"] === void 0) return false;
433
+ if (!("error" in value) || value["error"] === void 0) return false;
434
+ if (!("message" in value) || value["message"] === void 0) return false;
435
+ return true;
436
+ }
437
+ function Def0FromJSON(json) {
438
+ return Def0FromJSONTyped(json, false);
439
+ }
440
+ function Def0FromJSONTyped(json, ignoreDiscriminator) {
441
+ if (json == null) {
442
+ return json;
443
+ }
444
+ return {
445
+ ...json,
446
+ statusCode: json["statusCode"],
447
+ error: json["error"],
448
+ message: json["message"],
449
+ correlationId: json["correlationId"] == null ? void 0 : json["correlationId"],
450
+ timestamp: json["timestamp"] == null ? void 0 : new Date(json["timestamp"]),
451
+ details: json["details"] == null ? void 0 : Def0DetailsFromJSON(json["details"])
452
+ };
453
+ }
454
+ function Def0ToJSON(value) {
455
+ if (value == null) {
456
+ return value;
457
+ }
458
+ return {
459
+ ...value,
460
+ statusCode: value["statusCode"],
461
+ error: value["error"],
462
+ message: value["message"],
463
+ correlationId: value["correlationId"],
464
+ timestamp: value["timestamp"] == null ? void 0 : value["timestamp"].toISOString(),
465
+ details: Def0DetailsToJSON(value["details"])
466
+ };
467
+ }
468
+
469
+ // models/GetTenant200Response.ts
470
+ function instanceOfGetTenant200Response(value) {
471
+ return true;
472
+ }
473
+ function GetTenant200ResponseFromJSON(json) {
474
+ return GetTenant200ResponseFromJSONTyped(json, false);
475
+ }
476
+ function GetTenant200ResponseFromJSONTyped(json, ignoreDiscriminator) {
477
+ if (json == null) {
478
+ return json;
479
+ }
480
+ return {
481
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
482
+ ts: json["ts"] == null ? void 0 : json["ts"],
483
+ data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
484
+ };
485
+ }
486
+ function GetTenant200ResponseToJSON(value) {
487
+ if (value == null) {
488
+ return value;
489
+ }
490
+ return {
491
+ statusCode: value["statusCode"],
492
+ ts: value["ts"],
493
+ data: ListTenants200ResponseDataInnerToJSON(value["data"])
494
+ };
495
+ }
496
+
497
+ // models/GetTenantHealth200ResponseData.ts
498
+ var GetTenantHealth200ResponseDataStatusEnum = {
499
+ Healthy: "healthy",
500
+ Degraded: "degraded",
501
+ Unhealthy: "unhealthy"
502
+ };
503
+ function instanceOfGetTenantHealth200ResponseData(value) {
504
+ return true;
505
+ }
506
+ function GetTenantHealth200ResponseDataFromJSON(json) {
507
+ return GetTenantHealth200ResponseDataFromJSONTyped(json, false);
508
+ }
509
+ function GetTenantHealth200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
510
+ if (json == null) {
511
+ return json;
512
+ }
513
+ return {
514
+ tenantId: json["tenantId"] == null ? void 0 : json["tenantId"],
515
+ status: json["status"] == null ? void 0 : json["status"],
516
+ lastSyncAt: json["lastSyncAt"] == null ? void 0 : new Date(json["lastSyncAt"]),
517
+ errorCount: json["errorCount"] == null ? void 0 : json["errorCount"],
518
+ webhookBacklog: json["webhookBacklog"] == null ? void 0 : json["webhookBacklog"],
519
+ lastError: json["lastError"] == null ? void 0 : json["lastError"]
520
+ };
521
+ }
522
+ function GetTenantHealth200ResponseDataToJSON(value) {
523
+ if (value == null) {
524
+ return value;
525
+ }
526
+ return {
527
+ tenantId: value["tenantId"],
528
+ status: value["status"],
529
+ lastSyncAt: value["lastSyncAt"] == null ? void 0 : value["lastSyncAt"].toISOString(),
530
+ errorCount: value["errorCount"],
531
+ webhookBacklog: value["webhookBacklog"],
532
+ lastError: value["lastError"]
533
+ };
534
+ }
535
+
536
+ // models/GetTenantHealth200Response.ts
537
+ function instanceOfGetTenantHealth200Response(value) {
538
+ return true;
539
+ }
540
+ function GetTenantHealth200ResponseFromJSON(json) {
541
+ return GetTenantHealth200ResponseFromJSONTyped(json, false);
542
+ }
543
+ function GetTenantHealth200ResponseFromJSONTyped(json, ignoreDiscriminator) {
544
+ if (json == null) {
545
+ return json;
546
+ }
547
+ return {
548
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
549
+ ts: json["ts"] == null ? void 0 : json["ts"],
550
+ data: json["data"] == null ? void 0 : GetTenantHealth200ResponseDataFromJSON(json["data"])
551
+ };
552
+ }
553
+ function GetTenantHealth200ResponseToJSON(value) {
554
+ if (value == null) {
555
+ return value;
556
+ }
557
+ return {
558
+ statusCode: value["statusCode"],
559
+ ts: value["ts"],
560
+ data: GetTenantHealth200ResponseDataToJSON(value["data"])
561
+ };
562
+ }
563
+
564
+ // models/GetTenantStats200ResponseDataInner.ts
565
+ function instanceOfGetTenantStats200ResponseDataInner(value) {
566
+ return true;
567
+ }
568
+ function GetTenantStats200ResponseDataInnerFromJSON(json) {
569
+ return GetTenantStats200ResponseDataInnerFromJSONTyped(json, false);
570
+ }
571
+ function GetTenantStats200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
572
+ if (json == null) {
573
+ return json;
574
+ }
575
+ return {
576
+ date: json["date"] == null ? void 0 : new Date(json["date"]),
577
+ webhookEventsProcessed: json["webhookEventsProcessed"] == null ? void 0 : json["webhookEventsProcessed"],
578
+ apiCallsMade: json["apiCallsMade"] == null ? void 0 : json["apiCallsMade"],
579
+ recordsSynced: json["recordsSynced"] == null ? void 0 : json["recordsSynced"],
580
+ avgWebhookProcessingMs: json["avgWebhookProcessingMs"] == null ? void 0 : json["avgWebhookProcessingMs"],
581
+ maxWebhookProcessingMs: json["maxWebhookProcessingMs"] == null ? void 0 : json["maxWebhookProcessingMs"],
582
+ syncErrorsCount: json["syncErrorsCount"] == null ? void 0 : json["syncErrorsCount"],
583
+ databaseQueriesCount: json["databaseQueriesCount"] == null ? void 0 : json["databaseQueriesCount"],
584
+ avgDatabaseQueryMs: json["avgDatabaseQueryMs"] == null ? void 0 : json["avgDatabaseQueryMs"]
585
+ };
586
+ }
587
+ function GetTenantStats200ResponseDataInnerToJSON(value) {
588
+ if (value == null) {
589
+ return value;
590
+ }
591
+ return {
592
+ date: value["date"] == null ? void 0 : value["date"].toISOString().substring(0, 10),
593
+ webhookEventsProcessed: value["webhookEventsProcessed"],
594
+ apiCallsMade: value["apiCallsMade"],
595
+ recordsSynced: value["recordsSynced"],
596
+ avgWebhookProcessingMs: value["avgWebhookProcessingMs"],
597
+ maxWebhookProcessingMs: value["maxWebhookProcessingMs"],
598
+ syncErrorsCount: value["syncErrorsCount"],
599
+ databaseQueriesCount: value["databaseQueriesCount"],
600
+ avgDatabaseQueryMs: value["avgDatabaseQueryMs"]
601
+ };
602
+ }
603
+
604
+ // models/GetTenantStats200Response.ts
605
+ function instanceOfGetTenantStats200Response(value) {
606
+ return true;
607
+ }
608
+ function GetTenantStats200ResponseFromJSON(json) {
609
+ return GetTenantStats200ResponseFromJSONTyped(json, false);
610
+ }
611
+ function GetTenantStats200ResponseFromJSONTyped(json, ignoreDiscriminator) {
612
+ if (json == null) {
613
+ return json;
614
+ }
615
+ return {
616
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
617
+ ts: json["ts"] == null ? void 0 : json["ts"],
618
+ data: json["data"] == null ? void 0 : json["data"].map(GetTenantStats200ResponseDataInnerFromJSON)
619
+ };
620
+ }
621
+ function GetTenantStats200ResponseToJSON(value) {
622
+ if (value == null) {
623
+ return value;
624
+ }
625
+ return {
626
+ statusCode: value["statusCode"],
627
+ ts: value["ts"],
628
+ data: value["data"] == null ? void 0 : value["data"].map(GetTenantStats200ResponseDataInnerToJSON)
629
+ };
630
+ }
631
+
632
+ // models/HealthGet200Response.ts
633
+ function instanceOfHealthGet200Response(value) {
634
+ return true;
635
+ }
636
+ function HealthGet200ResponseFromJSON(json) {
637
+ return HealthGet200ResponseFromJSONTyped(json, false);
638
+ }
639
+ function HealthGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
640
+ if (json == null) {
641
+ return json;
642
+ }
643
+ return {
644
+ status: json["status"] == null ? void 0 : json["status"],
645
+ timestamp: json["timestamp"] == null ? void 0 : json["timestamp"],
646
+ uptime: json["uptime"] == null ? void 0 : json["uptime"]
647
+ };
648
+ }
649
+ function HealthGet200ResponseToJSON(value) {
650
+ if (value == null) {
651
+ return value;
652
+ }
653
+ return {
654
+ status: value["status"],
655
+ timestamp: value["timestamp"],
656
+ uptime: value["uptime"]
657
+ };
658
+ }
659
+
660
+ // models/HealthReadyGet200Response.ts
661
+ function instanceOfHealthReadyGet200Response(value) {
662
+ return true;
663
+ }
664
+ function HealthReadyGet200ResponseFromJSON(json) {
665
+ return HealthReadyGet200ResponseFromJSONTyped(json, false);
666
+ }
667
+ function HealthReadyGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
668
+ if (json == null) {
669
+ return json;
670
+ }
671
+ return {
672
+ status: json["status"] == null ? void 0 : json["status"],
673
+ timestamp: json["timestamp"] == null ? void 0 : json["timestamp"],
674
+ uptime: json["uptime"] == null ? void 0 : json["uptime"],
675
+ version: json["version"] == null ? void 0 : json["version"],
676
+ services: json["services"] == null ? void 0 : json["services"],
677
+ metrics: json["metrics"] == null ? void 0 : json["metrics"],
678
+ circuitBreakers: json["circuitBreakers"] == null ? void 0 : json["circuitBreakers"]
679
+ };
680
+ }
681
+ function HealthReadyGet200ResponseToJSON(value) {
682
+ if (value == null) {
683
+ return value;
684
+ }
685
+ return {
686
+ status: value["status"],
687
+ timestamp: value["timestamp"],
688
+ uptime: value["uptime"],
689
+ version: value["version"],
690
+ services: value["services"],
691
+ metrics: value["metrics"],
692
+ circuitBreakers: value["circuitBreakers"]
693
+ };
694
+ }
695
+
696
+ // models/ListTenants200Response.ts
697
+ function instanceOfListTenants200Response(value) {
698
+ return true;
699
+ }
700
+ function ListTenants200ResponseFromJSON(json) {
701
+ return ListTenants200ResponseFromJSONTyped(json, false);
702
+ }
703
+ function ListTenants200ResponseFromJSONTyped(json, ignoreDiscriminator) {
704
+ if (json == null) {
705
+ return json;
706
+ }
707
+ return {
708
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
709
+ ts: json["ts"] == null ? void 0 : json["ts"],
710
+ data: json["data"] == null ? void 0 : json["data"].map(ListTenants200ResponseDataInnerFromJSON)
711
+ };
712
+ }
713
+ function ListTenants200ResponseToJSON(value) {
714
+ if (value == null) {
715
+ return value;
716
+ }
717
+ return {
718
+ statusCode: value["statusCode"],
719
+ ts: value["ts"],
720
+ data: value["data"] == null ? void 0 : value["data"].map(ListTenants200ResponseDataInnerToJSON)
721
+ };
722
+ }
723
+
724
+ // models/ProcessLegacyWebhook200Response.ts
725
+ function instanceOfProcessLegacyWebhook200Response(value) {
726
+ return true;
727
+ }
728
+ function ProcessLegacyWebhook200ResponseFromJSON(json) {
729
+ return ProcessLegacyWebhook200ResponseFromJSONTyped(json, false);
730
+ }
731
+ function ProcessLegacyWebhook200ResponseFromJSONTyped(json, ignoreDiscriminator) {
732
+ if (json == null) {
733
+ return json;
734
+ }
735
+ return {
736
+ received: json["received"] == null ? void 0 : json["received"]
737
+ };
738
+ }
739
+ function ProcessLegacyWebhook200ResponseToJSON(value) {
740
+ if (value == null) {
741
+ return value;
742
+ }
743
+ return {
744
+ received: value["received"]
745
+ };
746
+ }
747
+
748
+ // models/SyncBackfill200Response.ts
749
+ function instanceOfSyncBackfill200Response(value) {
750
+ return true;
751
+ }
752
+ function SyncBackfill200ResponseFromJSON(json) {
753
+ return SyncBackfill200ResponseFromJSONTyped(json, false);
754
+ }
755
+ function SyncBackfill200ResponseFromJSONTyped(json, ignoreDiscriminator) {
756
+ if (json == null) {
757
+ return json;
758
+ }
759
+ return {
760
+ ...json,
761
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
762
+ ts: json["ts"] == null ? void 0 : json["ts"]
763
+ };
764
+ }
765
+ function SyncBackfill200ResponseToJSON(value) {
766
+ if (value == null) {
767
+ return value;
768
+ }
769
+ return {
770
+ ...value,
771
+ statusCode: value["statusCode"],
772
+ ts: value["ts"]
773
+ };
774
+ }
775
+
776
+ // models/SyncBackfillRequestCreated.ts
777
+ function instanceOfSyncBackfillRequestCreated(value) {
778
+ return true;
779
+ }
780
+ function SyncBackfillRequestCreatedFromJSON(json) {
781
+ return SyncBackfillRequestCreatedFromJSONTyped(json, false);
782
+ }
783
+ function SyncBackfillRequestCreatedFromJSONTyped(json, ignoreDiscriminator) {
784
+ if (json == null) {
785
+ return json;
786
+ }
787
+ return {
788
+ gt: json["gt"] == null ? void 0 : json["gt"],
789
+ gte: json["gte"] == null ? void 0 : json["gte"],
790
+ lt: json["lt"] == null ? void 0 : json["lt"],
791
+ lte: json["lte"] == null ? void 0 : json["lte"]
792
+ };
793
+ }
794
+ function SyncBackfillRequestCreatedToJSON(value) {
795
+ if (value == null) {
796
+ return value;
797
+ }
798
+ return {
799
+ gt: value["gt"],
800
+ gte: value["gte"],
801
+ lt: value["lt"],
802
+ lte: value["lte"]
803
+ };
804
+ }
805
+
806
+ // models/SyncBackfillRequest.ts
807
+ var SyncBackfillRequestObjectEnum = {
808
+ All: "all",
809
+ Customer: "customer",
810
+ Invoice: "invoice",
811
+ Price: "price",
812
+ Product: "product",
813
+ Subscription: "subscription",
814
+ SubscriptionSchedules: "subscription_schedules",
815
+ SetupIntent: "setup_intent",
816
+ PaymentMethod: "payment_method",
817
+ Dispute: "dispute",
818
+ Charge: "charge",
819
+ PaymentIntent: "payment_intent",
820
+ Plan: "plan",
821
+ TaxId: "tax_id",
822
+ CreditNote: "credit_note",
823
+ EarlyFraudWarning: "early_fraud_warning",
824
+ Refund: "refund"
825
+ };
826
+ function instanceOfSyncBackfillRequest(value) {
827
+ return true;
828
+ }
829
+ function SyncBackfillRequestFromJSON(json) {
830
+ return SyncBackfillRequestFromJSONTyped(json, false);
831
+ }
832
+ function SyncBackfillRequestFromJSONTyped(json, ignoreDiscriminator) {
833
+ if (json == null) {
834
+ return json;
835
+ }
836
+ return {
837
+ created: json["created"] == null ? void 0 : SyncBackfillRequestCreatedFromJSON(json["created"]),
838
+ object: json["object"] == null ? void 0 : json["object"],
839
+ backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"]
840
+ };
841
+ }
842
+ function SyncBackfillRequestToJSON(value) {
843
+ if (value == null) {
844
+ return value;
845
+ }
846
+ return {
847
+ created: SyncBackfillRequestCreatedToJSON(value["created"]),
848
+ object: value["object"],
849
+ backfillRelatedEntities: value["backfillRelatedEntities"]
850
+ };
851
+ }
852
+
853
+ // models/SyncSingleEntity200Response.ts
854
+ function instanceOfSyncSingleEntity200Response(value) {
855
+ return true;
856
+ }
857
+ function SyncSingleEntity200ResponseFromJSON(json) {
858
+ return SyncSingleEntity200ResponseFromJSONTyped(json, false);
859
+ }
860
+ function SyncSingleEntity200ResponseFromJSONTyped(json, ignoreDiscriminator) {
861
+ if (json == null) {
862
+ return json;
863
+ }
864
+ return {
865
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
866
+ ts: json["ts"] == null ? void 0 : json["ts"],
867
+ data: json["data"] == null ? void 0 : json["data"]
868
+ };
869
+ }
870
+ function SyncSingleEntity200ResponseToJSON(value) {
871
+ if (value == null) {
872
+ return value;
873
+ }
874
+ return {
875
+ statusCode: value["statusCode"],
876
+ ts: value["ts"],
877
+ data: value["data"]
878
+ };
879
+ }
880
+
881
+ // models/SyncTenant200ResponseDataValue.ts
882
+ function instanceOfSyncTenant200ResponseDataValue(value) {
883
+ return true;
884
+ }
885
+ function SyncTenant200ResponseDataValueFromJSON(json) {
886
+ return SyncTenant200ResponseDataValueFromJSONTyped(json, false);
887
+ }
888
+ function SyncTenant200ResponseDataValueFromJSONTyped(json, ignoreDiscriminator) {
889
+ if (json == null) {
890
+ return json;
891
+ }
892
+ return {
893
+ synced: json["synced"] == null ? void 0 : json["synced"]
894
+ };
895
+ }
896
+ function SyncTenant200ResponseDataValueToJSON(value) {
897
+ if (value == null) {
898
+ return value;
899
+ }
900
+ return {
901
+ synced: value["synced"]
902
+ };
903
+ }
904
+
905
+ // models/SyncTenant200Response.ts
906
+ function instanceOfSyncTenant200Response(value) {
907
+ return true;
908
+ }
909
+ function SyncTenant200ResponseFromJSON(json) {
910
+ return SyncTenant200ResponseFromJSONTyped(json, false);
911
+ }
912
+ function SyncTenant200ResponseFromJSONTyped(json, ignoreDiscriminator) {
913
+ if (json == null) {
914
+ return json;
915
+ }
916
+ return {
917
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
918
+ ts: json["ts"] == null ? void 0 : json["ts"],
919
+ data: json["data"] == null ? void 0 : mapValues(json["data"], SyncTenant200ResponseDataValueFromJSON)
920
+ };
921
+ }
922
+ function SyncTenant200ResponseToJSON(value) {
923
+ if (value == null) {
924
+ return value;
925
+ }
926
+ return {
927
+ statusCode: value["statusCode"],
928
+ ts: value["ts"],
929
+ data: value["data"] == null ? void 0 : mapValues(value["data"], SyncTenant200ResponseDataValueToJSON)
930
+ };
931
+ }
932
+
933
+ // models/TriggerDailySync200Response.ts
934
+ function instanceOfTriggerDailySync200Response(value) {
935
+ return true;
936
+ }
937
+ function TriggerDailySync200ResponseFromJSON(json) {
938
+ return TriggerDailySync200ResponseFromJSONTyped(json, false);
939
+ }
940
+ function TriggerDailySync200ResponseFromJSONTyped(json, ignoreDiscriminator) {
941
+ if (json == null) {
942
+ return json;
943
+ }
944
+ return {
945
+ ...json,
946
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
947
+ ts: json["ts"] == null ? void 0 : json["ts"]
948
+ };
949
+ }
950
+ function TriggerDailySync200ResponseToJSON(value) {
951
+ if (value == null) {
952
+ return value;
953
+ }
954
+ return {
955
+ ...value,
956
+ statusCode: value["statusCode"],
957
+ ts: value["ts"]
958
+ };
959
+ }
960
+
961
+ // models/TriggerDailySyncRequest.ts
962
+ var TriggerDailySyncRequestObjectEnum = {
963
+ All: "all",
964
+ Customer: "customer",
965
+ Invoice: "invoice",
966
+ Price: "price",
967
+ Product: "product",
968
+ Subscription: "subscription",
969
+ SubscriptionSchedules: "subscription_schedules",
970
+ SetupIntent: "setup_intent",
971
+ PaymentMethod: "payment_method",
972
+ Dispute: "dispute",
973
+ Charge: "charge",
974
+ PaymentIntent: "payment_intent",
975
+ Plan: "plan",
976
+ TaxId: "tax_id",
977
+ CreditNote: "credit_note",
978
+ EarlyFraudWarning: "early_fraud_warning",
979
+ Refund: "refund"
980
+ };
981
+ function instanceOfTriggerDailySyncRequest(value) {
982
+ return true;
983
+ }
984
+ function TriggerDailySyncRequestFromJSON(json) {
985
+ return TriggerDailySyncRequestFromJSONTyped(json, false);
986
+ }
987
+ function TriggerDailySyncRequestFromJSONTyped(json, ignoreDiscriminator) {
988
+ if (json == null) {
989
+ return json;
990
+ }
991
+ return {
992
+ object: json["object"] == null ? void 0 : json["object"],
993
+ backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"]
994
+ };
995
+ }
996
+ function TriggerDailySyncRequestToJSON(value) {
997
+ if (value == null) {
998
+ return value;
999
+ }
1000
+ return {
1001
+ object: value["object"],
1002
+ backfillRelatedEntities: value["backfillRelatedEntities"]
1003
+ };
1004
+ }
1005
+
1006
+ // models/TriggerMonthlySync200Response.ts
1007
+ function instanceOfTriggerMonthlySync200Response(value) {
1008
+ return true;
1009
+ }
1010
+ function TriggerMonthlySync200ResponseFromJSON(json) {
1011
+ return TriggerMonthlySync200ResponseFromJSONTyped(json, false);
1012
+ }
1013
+ function TriggerMonthlySync200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1014
+ if (json == null) {
1015
+ return json;
1016
+ }
1017
+ return {
1018
+ ...json,
1019
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
1020
+ ts: json["ts"] == null ? void 0 : json["ts"]
1021
+ };
1022
+ }
1023
+ function TriggerMonthlySync200ResponseToJSON(value) {
1024
+ if (value == null) {
1025
+ return value;
1026
+ }
1027
+ return {
1028
+ ...value,
1029
+ statusCode: value["statusCode"],
1030
+ ts: value["ts"]
1031
+ };
1032
+ }
1033
+
1034
+ // models/TriggerWeeklySync200Response.ts
1035
+ function instanceOfTriggerWeeklySync200Response(value) {
1036
+ return true;
1037
+ }
1038
+ function TriggerWeeklySync200ResponseFromJSON(json) {
1039
+ return TriggerWeeklySync200ResponseFromJSONTyped(json, false);
1040
+ }
1041
+ function TriggerWeeklySync200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1042
+ if (json == null) {
1043
+ return json;
1044
+ }
1045
+ return {
1046
+ ...json,
1047
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
1048
+ ts: json["ts"] == null ? void 0 : json["ts"]
1049
+ };
1050
+ }
1051
+ function TriggerWeeklySync200ResponseToJSON(value) {
1052
+ if (value == null) {
1053
+ return value;
1054
+ }
1055
+ return {
1056
+ ...value,
1057
+ statusCode: value["statusCode"],
1058
+ ts: value["ts"]
1059
+ };
1060
+ }
1061
+
1062
+ // models/UpdateTenant200Response.ts
1063
+ function instanceOfUpdateTenant200Response(value) {
1064
+ return true;
1065
+ }
1066
+ function UpdateTenant200ResponseFromJSON(json) {
1067
+ return UpdateTenant200ResponseFromJSONTyped(json, false);
1068
+ }
1069
+ function UpdateTenant200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1070
+ if (json == null) {
1071
+ return json;
1072
+ }
1073
+ return {
1074
+ statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
1075
+ ts: json["ts"] == null ? void 0 : json["ts"],
1076
+ data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
1077
+ };
1078
+ }
1079
+ function UpdateTenant200ResponseToJSON(value) {
1080
+ if (value == null) {
1081
+ return value;
1082
+ }
1083
+ return {
1084
+ statusCode: value["statusCode"],
1085
+ ts: value["ts"],
1086
+ data: ListTenants200ResponseDataInnerToJSON(value["data"])
1087
+ };
1088
+ }
1089
+
1090
+ // models/UpdateTenantRequest.ts
1091
+ var UpdateTenantRequestStatusEnum = {
1092
+ Active: "active",
1093
+ Suspended: "suspended",
1094
+ Deprovisioning: "deprovisioning"
1095
+ };
1096
+ function instanceOfUpdateTenantRequest(value) {
1097
+ return true;
1098
+ }
1099
+ function UpdateTenantRequestFromJSON(json) {
1100
+ return UpdateTenantRequestFromJSONTyped(json, false);
1101
+ }
1102
+ function UpdateTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
1103
+ if (json == null) {
1104
+ return json;
1105
+ }
1106
+ return {
1107
+ name: json["name"] == null ? void 0 : json["name"],
1108
+ stripeSecretKey: json["stripeSecretKey"] == null ? void 0 : json["stripeSecretKey"],
1109
+ stripeWebhookSecret: json["stripeWebhookSecret"] == null ? void 0 : json["stripeWebhookSecret"],
1110
+ stripePublishableKey: json["stripePublishableKey"] == null ? void 0 : json["stripePublishableKey"],
1111
+ status: json["status"] == null ? void 0 : json["status"],
1112
+ syncEnabled: json["syncEnabled"] == null ? void 0 : json["syncEnabled"],
1113
+ webhookEnabled: json["webhookEnabled"] == null ? void 0 : json["webhookEnabled"],
1114
+ autoExpandLists: json["autoExpandLists"] == null ? void 0 : json["autoExpandLists"],
1115
+ backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"],
1116
+ maxWebhookEventsPerHour: json["maxWebhookEventsPerHour"] == null ? void 0 : json["maxWebhookEventsPerHour"],
1117
+ maxApiCallsPerHour: json["maxApiCallsPerHour"] == null ? void 0 : json["maxApiCallsPerHour"]
1118
+ };
1119
+ }
1120
+ function UpdateTenantRequestToJSON(value) {
1121
+ if (value == null) {
1122
+ return value;
1123
+ }
1124
+ return {
1125
+ name: value["name"],
1126
+ stripeSecretKey: value["stripeSecretKey"],
1127
+ stripeWebhookSecret: value["stripeWebhookSecret"],
1128
+ stripePublishableKey: value["stripePublishableKey"],
1129
+ status: value["status"],
1130
+ syncEnabled: value["syncEnabled"],
1131
+ webhookEnabled: value["webhookEnabled"],
1132
+ autoExpandLists: value["autoExpandLists"],
1133
+ backfillRelatedEntities: value["backfillRelatedEntities"],
1134
+ maxWebhookEventsPerHour: value["maxWebhookEventsPerHour"],
1135
+ maxApiCallsPerHour: value["maxApiCallsPerHour"]
1136
+ };
1137
+ }
1138
+
1139
+ // apis/HealthApi.ts
1140
+ var HealthApi = class extends BaseAPI {
1141
+ /**
1142
+ * Circuit breaker status
1143
+ */
1144
+ async healthCircuitBreakersGetRaw(initOverrides) {
1145
+ const queryParameters = {};
1146
+ const headerParameters = {};
1147
+ const response = await this.request(
1148
+ {
1149
+ path: `/health/circuit-breakers`,
1150
+ method: "GET",
1151
+ headers: headerParameters,
1152
+ query: queryParameters
1153
+ },
1154
+ initOverrides
1155
+ );
1156
+ return new JSONApiResponse(response);
1157
+ }
1158
+ /**
1159
+ * Circuit breaker status
1160
+ */
1161
+ async healthCircuitBreakersGet(initOverrides) {
1162
+ const response = await this.healthCircuitBreakersGetRaw(initOverrides);
1163
+ return await response.value();
1164
+ }
1165
+ /**
1166
+ * Basic health check
1167
+ */
1168
+ async healthGetRaw(initOverrides) {
1169
+ const queryParameters = {};
1170
+ const headerParameters = {};
1171
+ const response = await this.request(
1172
+ {
1173
+ path: `/health`,
1174
+ method: "GET",
1175
+ headers: headerParameters,
1176
+ query: queryParameters
1177
+ },
1178
+ initOverrides
1179
+ );
1180
+ return new JSONApiResponse(
1181
+ response,
1182
+ (jsonValue) => HealthGet200ResponseFromJSON(jsonValue)
1183
+ );
1184
+ }
1185
+ /**
1186
+ * Basic health check
1187
+ */
1188
+ async healthGet(initOverrides) {
1189
+ const response = await this.healthGetRaw(initOverrides);
1190
+ return await response.value();
1191
+ }
1192
+ /**
1193
+ * Application metrics
1194
+ */
1195
+ async healthMetricsGetRaw(initOverrides) {
1196
+ const queryParameters = {};
1197
+ const headerParameters = {};
1198
+ const response = await this.request(
1199
+ {
1200
+ path: `/health/metrics`,
1201
+ method: "GET",
1202
+ headers: headerParameters,
1203
+ query: queryParameters
1204
+ },
1205
+ initOverrides
1206
+ );
1207
+ return new JSONApiResponse(response);
1208
+ }
1209
+ /**
1210
+ * Application metrics
1211
+ */
1212
+ async healthMetricsGet(initOverrides) {
1213
+ const response = await this.healthMetricsGetRaw(initOverrides);
1214
+ return await response.value();
1215
+ }
1216
+ /**
1217
+ * Detailed readiness check
1218
+ */
1219
+ async healthReadyGetRaw(initOverrides) {
1220
+ const queryParameters = {};
1221
+ const headerParameters = {};
1222
+ const response = await this.request(
1223
+ {
1224
+ path: `/health/ready`,
1225
+ method: "GET",
1226
+ headers: headerParameters,
1227
+ query: queryParameters
1228
+ },
1229
+ initOverrides
1230
+ );
1231
+ return new JSONApiResponse(
1232
+ response,
1233
+ (jsonValue) => HealthReadyGet200ResponseFromJSON(jsonValue)
1234
+ );
1235
+ }
1236
+ /**
1237
+ * Detailed readiness check
1238
+ */
1239
+ async healthReadyGet(initOverrides) {
1240
+ const response = await this.healthReadyGetRaw(initOverrides);
1241
+ return await response.value();
1242
+ }
1243
+ };
1244
+
1245
+ // apis/SyncApi.ts
1246
+ var SyncApi = class extends BaseAPI {
1247
+ /**
1248
+ * Sync Stripe data with backfill options
1249
+ */
1250
+ async syncBackfillRaw(requestParameters, initOverrides) {
1251
+ const queryParameters = {};
1252
+ const headerParameters = {};
1253
+ headerParameters["Content-Type"] = "application/json";
1254
+ if (this.configuration && this.configuration.apiKey) {
1255
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1256
+ }
1257
+ const response = await this.request(
1258
+ {
1259
+ path: `/sync`,
1260
+ method: "POST",
1261
+ headers: headerParameters,
1262
+ query: queryParameters,
1263
+ body: SyncBackfillRequestToJSON(requestParameters["syncBackfillRequest"])
1264
+ },
1265
+ initOverrides
1266
+ );
1267
+ return new JSONApiResponse(
1268
+ response,
1269
+ (jsonValue) => SyncBackfill200ResponseFromJSON(jsonValue)
1270
+ );
1271
+ }
1272
+ /**
1273
+ * Sync Stripe data with backfill options
1274
+ */
1275
+ async syncBackfill(requestParameters = {}, initOverrides) {
1276
+ const response = await this.syncBackfillRaw(requestParameters, initOverrides);
1277
+ return await response.value();
1278
+ }
1279
+ /**
1280
+ * Sync a single Stripe entity by ID
1281
+ */
1282
+ async syncSingleEntityRaw(requestParameters, initOverrides) {
1283
+ if (requestParameters["stripeId"] == null) {
1284
+ throw new RequiredError(
1285
+ "stripeId",
1286
+ 'Required parameter "stripeId" was null or undefined when calling syncSingleEntity().'
1287
+ );
1288
+ }
1289
+ const queryParameters = {};
1290
+ const headerParameters = {};
1291
+ if (this.configuration && this.configuration.apiKey) {
1292
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1293
+ }
1294
+ const response = await this.request(
1295
+ {
1296
+ path: `/sync/single/{stripeId}`.replace(
1297
+ `{${"stripeId"}}`,
1298
+ encodeURIComponent(String(requestParameters["stripeId"]))
1299
+ ),
1300
+ method: "POST",
1301
+ headers: headerParameters,
1302
+ query: queryParameters
1303
+ },
1304
+ initOverrides
1305
+ );
1306
+ return new JSONApiResponse(
1307
+ response,
1308
+ (jsonValue) => SyncSingleEntity200ResponseFromJSON(jsonValue)
1309
+ );
1310
+ }
1311
+ /**
1312
+ * Sync a single Stripe entity by ID
1313
+ */
1314
+ async syncSingleEntity(requestParameters, initOverrides) {
1315
+ const response = await this.syncSingleEntityRaw(requestParameters, initOverrides);
1316
+ return await response.value();
1317
+ }
1318
+ /**
1319
+ * Sync Stripe data for the last 24 hours
1320
+ */
1321
+ async triggerDailySyncRaw(requestParameters, initOverrides) {
1322
+ const queryParameters = {};
1323
+ const headerParameters = {};
1324
+ headerParameters["Content-Type"] = "application/json";
1325
+ if (this.configuration && this.configuration.apiKey) {
1326
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1327
+ }
1328
+ const response = await this.request(
1329
+ {
1330
+ path: `/daily`,
1331
+ method: "POST",
1332
+ headers: headerParameters,
1333
+ query: queryParameters,
1334
+ body: TriggerDailySyncRequestToJSON(requestParameters["triggerDailySyncRequest"])
1335
+ },
1336
+ initOverrides
1337
+ );
1338
+ return new JSONApiResponse(
1339
+ response,
1340
+ (jsonValue) => TriggerDailySync200ResponseFromJSON(jsonValue)
1341
+ );
1342
+ }
1343
+ /**
1344
+ * Sync Stripe data for the last 24 hours
1345
+ */
1346
+ async triggerDailySync(requestParameters = {}, initOverrides) {
1347
+ const response = await this.triggerDailySyncRaw(requestParameters, initOverrides);
1348
+ return await response.value();
1349
+ }
1350
+ /**
1351
+ * Sync Stripe data for the last month
1352
+ */
1353
+ async triggerMonthlySyncRaw(requestParameters, initOverrides) {
1354
+ const queryParameters = {};
1355
+ const headerParameters = {};
1356
+ headerParameters["Content-Type"] = "application/json";
1357
+ if (this.configuration && this.configuration.apiKey) {
1358
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1359
+ }
1360
+ const response = await this.request(
1361
+ {
1362
+ path: `/monthly`,
1363
+ method: "POST",
1364
+ headers: headerParameters,
1365
+ query: queryParameters,
1366
+ body: TriggerDailySyncRequestToJSON(requestParameters["triggerDailySyncRequest"])
1367
+ },
1368
+ initOverrides
1369
+ );
1370
+ return new JSONApiResponse(
1371
+ response,
1372
+ (jsonValue) => TriggerMonthlySync200ResponseFromJSON(jsonValue)
1373
+ );
1374
+ }
1375
+ /**
1376
+ * Sync Stripe data for the last month
1377
+ */
1378
+ async triggerMonthlySync(requestParameters = {}, initOverrides) {
1379
+ const response = await this.triggerMonthlySyncRaw(requestParameters, initOverrides);
1380
+ return await response.value();
1381
+ }
1382
+ /**
1383
+ * Sync Stripe data for the last 7 days
1384
+ */
1385
+ async triggerWeeklySyncRaw(requestParameters, initOverrides) {
1386
+ const queryParameters = {};
1387
+ const headerParameters = {};
1388
+ headerParameters["Content-Type"] = "application/json";
1389
+ if (this.configuration && this.configuration.apiKey) {
1390
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1391
+ }
1392
+ const response = await this.request(
1393
+ {
1394
+ path: `/weekly`,
1395
+ method: "POST",
1396
+ headers: headerParameters,
1397
+ query: queryParameters,
1398
+ body: TriggerDailySyncRequestToJSON(requestParameters["triggerDailySyncRequest"])
1399
+ },
1400
+ initOverrides
1401
+ );
1402
+ return new JSONApiResponse(
1403
+ response,
1404
+ (jsonValue) => TriggerWeeklySync200ResponseFromJSON(jsonValue)
1405
+ );
1406
+ }
1407
+ /**
1408
+ * Sync Stripe data for the last 7 days
1409
+ */
1410
+ async triggerWeeklySync(requestParameters = {}, initOverrides) {
1411
+ const response = await this.triggerWeeklySyncRaw(requestParameters, initOverrides);
1412
+ return await response.value();
1413
+ }
1414
+ };
1415
+
1416
+ // apis/TenantsApi.ts
1417
+ var TenantsApi = class extends BaseAPI {
1418
+ /**
1419
+ * Create a new tenant
1420
+ */
1421
+ async createTenantRaw(requestParameters, initOverrides) {
1422
+ if (requestParameters["createTenantRequest"] == null) {
1423
+ throw new RequiredError(
1424
+ "createTenantRequest",
1425
+ 'Required parameter "createTenantRequest" was null or undefined when calling createTenant().'
1426
+ );
1427
+ }
1428
+ const queryParameters = {};
1429
+ const headerParameters = {};
1430
+ headerParameters["Content-Type"] = "application/json";
1431
+ if (this.configuration && this.configuration.apiKey) {
1432
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1433
+ }
1434
+ const response = await this.request(
1435
+ {
1436
+ path: `/tenants`,
1437
+ method: "POST",
1438
+ headers: headerParameters,
1439
+ query: queryParameters,
1440
+ body: CreateTenantRequestToJSON(requestParameters["createTenantRequest"])
1441
+ },
1442
+ initOverrides
1443
+ );
1444
+ return new JSONApiResponse(
1445
+ response,
1446
+ (jsonValue) => CreateTenant201ResponseFromJSON(jsonValue)
1447
+ );
1448
+ }
1449
+ /**
1450
+ * Create a new tenant
1451
+ */
1452
+ async createTenant(requestParameters, initOverrides) {
1453
+ const response = await this.createTenantRaw(requestParameters, initOverrides);
1454
+ return await response.value();
1455
+ }
1456
+ /**
1457
+ * Get tenant details
1458
+ */
1459
+ async getTenantRaw(requestParameters, initOverrides) {
1460
+ if (requestParameters["tenantId"] == null) {
1461
+ throw new RequiredError(
1462
+ "tenantId",
1463
+ 'Required parameter "tenantId" was null or undefined when calling getTenant().'
1464
+ );
1465
+ }
1466
+ const queryParameters = {};
1467
+ const headerParameters = {};
1468
+ if (this.configuration && this.configuration.apiKey) {
1469
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1470
+ }
1471
+ const response = await this.request(
1472
+ {
1473
+ path: `/tenants/{tenantId}`.replace(
1474
+ `{${"tenantId"}}`,
1475
+ encodeURIComponent(String(requestParameters["tenantId"]))
1476
+ ),
1477
+ method: "GET",
1478
+ headers: headerParameters,
1479
+ query: queryParameters
1480
+ },
1481
+ initOverrides
1482
+ );
1483
+ return new JSONApiResponse(
1484
+ response,
1485
+ (jsonValue) => GetTenant200ResponseFromJSON(jsonValue)
1486
+ );
1487
+ }
1488
+ /**
1489
+ * Get tenant details
1490
+ */
1491
+ async getTenant(requestParameters, initOverrides) {
1492
+ const response = await this.getTenantRaw(requestParameters, initOverrides);
1493
+ return await response.value();
1494
+ }
1495
+ /**
1496
+ * Get tenant health status
1497
+ */
1498
+ async getTenantHealthRaw(requestParameters, initOverrides) {
1499
+ if (requestParameters["tenantId"] == null) {
1500
+ throw new RequiredError(
1501
+ "tenantId",
1502
+ 'Required parameter "tenantId" was null or undefined when calling getTenantHealth().'
1503
+ );
1504
+ }
1505
+ const queryParameters = {};
1506
+ const headerParameters = {};
1507
+ if (this.configuration && this.configuration.apiKey) {
1508
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1509
+ }
1510
+ const response = await this.request(
1511
+ {
1512
+ path: `/tenants/{tenantId}/health`.replace(
1513
+ `{${"tenantId"}}`,
1514
+ encodeURIComponent(String(requestParameters["tenantId"]))
1515
+ ),
1516
+ method: "GET",
1517
+ headers: headerParameters,
1518
+ query: queryParameters
1519
+ },
1520
+ initOverrides
1521
+ );
1522
+ return new JSONApiResponse(
1523
+ response,
1524
+ (jsonValue) => GetTenantHealth200ResponseFromJSON(jsonValue)
1525
+ );
1526
+ }
1527
+ /**
1528
+ * Get tenant health status
1529
+ */
1530
+ async getTenantHealth(requestParameters, initOverrides) {
1531
+ const response = await this.getTenantHealthRaw(requestParameters, initOverrides);
1532
+ return await response.value();
1533
+ }
1534
+ /**
1535
+ * Get tenant sync statistics
1536
+ */
1537
+ async getTenantStatsRaw(requestParameters, initOverrides) {
1538
+ if (requestParameters["tenantId"] == null) {
1539
+ throw new RequiredError(
1540
+ "tenantId",
1541
+ 'Required parameter "tenantId" was null or undefined when calling getTenantStats().'
1542
+ );
1543
+ }
1544
+ const queryParameters = {};
1545
+ if (requestParameters["days"] != null) {
1546
+ queryParameters["days"] = requestParameters["days"];
1547
+ }
1548
+ const headerParameters = {};
1549
+ if (this.configuration && this.configuration.apiKey) {
1550
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1551
+ }
1552
+ const response = await this.request(
1553
+ {
1554
+ path: `/tenants/{tenantId}/stats`.replace(
1555
+ `{${"tenantId"}}`,
1556
+ encodeURIComponent(String(requestParameters["tenantId"]))
1557
+ ),
1558
+ method: "GET",
1559
+ headers: headerParameters,
1560
+ query: queryParameters
1561
+ },
1562
+ initOverrides
1563
+ );
1564
+ return new JSONApiResponse(
1565
+ response,
1566
+ (jsonValue) => GetTenantStats200ResponseFromJSON(jsonValue)
1567
+ );
1568
+ }
1569
+ /**
1570
+ * Get tenant sync statistics
1571
+ */
1572
+ async getTenantStats(requestParameters, initOverrides) {
1573
+ const response = await this.getTenantStatsRaw(requestParameters, initOverrides);
1574
+ return await response.value();
1575
+ }
1576
+ /**
1577
+ * Get all tenants
1578
+ */
1579
+ async listTenantsRaw(requestParameters, initOverrides) {
1580
+ const queryParameters = {};
1581
+ if (requestParameters["includeInactive"] != null) {
1582
+ queryParameters["includeInactive"] = requestParameters["includeInactive"];
1583
+ }
1584
+ const headerParameters = {};
1585
+ if (this.configuration && this.configuration.apiKey) {
1586
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1587
+ }
1588
+ const response = await this.request(
1589
+ {
1590
+ path: `/tenants`,
1591
+ method: "GET",
1592
+ headers: headerParameters,
1593
+ query: queryParameters
1594
+ },
1595
+ initOverrides
1596
+ );
1597
+ return new JSONApiResponse(
1598
+ response,
1599
+ (jsonValue) => ListTenants200ResponseFromJSON(jsonValue)
1600
+ );
1601
+ }
1602
+ /**
1603
+ * Get all tenants
1604
+ */
1605
+ async listTenants(requestParameters = {}, initOverrides) {
1606
+ const response = await this.listTenantsRaw(requestParameters, initOverrides);
1607
+ return await response.value();
1608
+ }
1609
+ /**
1610
+ * Trigger manual sync for tenant
1611
+ */
1612
+ async syncTenantRaw(requestParameters, initOverrides) {
1613
+ if (requestParameters["tenantId"] == null) {
1614
+ throw new RequiredError(
1615
+ "tenantId",
1616
+ 'Required parameter "tenantId" was null or undefined when calling syncTenant().'
1617
+ );
1618
+ }
1619
+ const queryParameters = {};
1620
+ const headerParameters = {};
1621
+ headerParameters["Content-Type"] = "application/json";
1622
+ if (this.configuration && this.configuration.apiKey) {
1623
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1624
+ }
1625
+ const response = await this.request(
1626
+ {
1627
+ path: `/tenants/{tenantId}/sync`.replace(
1628
+ `{${"tenantId"}}`,
1629
+ encodeURIComponent(String(requestParameters["tenantId"]))
1630
+ ),
1631
+ method: "POST",
1632
+ headers: headerParameters,
1633
+ query: queryParameters,
1634
+ body: SyncBackfillRequestToJSON(requestParameters["syncBackfillRequest"])
1635
+ },
1636
+ initOverrides
1637
+ );
1638
+ return new JSONApiResponse(
1639
+ response,
1640
+ (jsonValue) => SyncTenant200ResponseFromJSON(jsonValue)
1641
+ );
1642
+ }
1643
+ /**
1644
+ * Trigger manual sync for tenant
1645
+ */
1646
+ async syncTenant(requestParameters, initOverrides) {
1647
+ const response = await this.syncTenantRaw(requestParameters, initOverrides);
1648
+ return await response.value();
1649
+ }
1650
+ /**
1651
+ * Update tenant configuration
1652
+ */
1653
+ async updateTenantRaw(requestParameters, initOverrides) {
1654
+ if (requestParameters["tenantId"] == null) {
1655
+ throw new RequiredError(
1656
+ "tenantId",
1657
+ 'Required parameter "tenantId" was null or undefined when calling updateTenant().'
1658
+ );
1659
+ }
1660
+ const queryParameters = {};
1661
+ const headerParameters = {};
1662
+ headerParameters["Content-Type"] = "application/json";
1663
+ if (this.configuration && this.configuration.apiKey) {
1664
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
1665
+ }
1666
+ const response = await this.request(
1667
+ {
1668
+ path: `/tenants/{tenantId}`.replace(
1669
+ `{${"tenantId"}}`,
1670
+ encodeURIComponent(String(requestParameters["tenantId"]))
1671
+ ),
1672
+ method: "PUT",
1673
+ headers: headerParameters,
1674
+ query: queryParameters,
1675
+ body: UpdateTenantRequestToJSON(requestParameters["updateTenantRequest"])
1676
+ },
1677
+ initOverrides
1678
+ );
1679
+ return new JSONApiResponse(
1680
+ response,
1681
+ (jsonValue) => UpdateTenant200ResponseFromJSON(jsonValue)
1682
+ );
1683
+ }
1684
+ /**
1685
+ * Update tenant configuration
1686
+ */
1687
+ async updateTenant(requestParameters, initOverrides) {
1688
+ const response = await this.updateTenantRaw(requestParameters, initOverrides);
1689
+ return await response.value();
1690
+ }
1691
+ };
1692
+
1693
+ // apis/WebhooksApi.ts
1694
+ var WebhooksApi = class extends BaseAPI {
1695
+ /**
1696
+ * Process Stripe webhook (legacy single-tenant)
1697
+ */
1698
+ async processLegacyWebhookRaw(initOverrides) {
1699
+ const queryParameters = {};
1700
+ const headerParameters = {};
1701
+ const response = await this.request(
1702
+ {
1703
+ path: `/webhooks`,
1704
+ method: "POST",
1705
+ headers: headerParameters,
1706
+ query: queryParameters
1707
+ },
1708
+ initOverrides
1709
+ );
1710
+ return new JSONApiResponse(
1711
+ response,
1712
+ (jsonValue) => ProcessLegacyWebhook200ResponseFromJSON(jsonValue)
1713
+ );
1714
+ }
1715
+ /**
1716
+ * Process Stripe webhook (legacy single-tenant)
1717
+ */
1718
+ async processLegacyWebhook(initOverrides) {
1719
+ const response = await this.processLegacyWebhookRaw(initOverrides);
1720
+ return await response.value();
1721
+ }
1722
+ /**
1723
+ * Process Stripe webhook with tenant resolution
1724
+ */
1725
+ async webhooksStripePostRaw(requestParameters, initOverrides) {
1726
+ const queryParameters = {};
1727
+ if (requestParameters["apiKey"] != null) {
1728
+ queryParameters["api_key"] = requestParameters["apiKey"];
1729
+ }
1730
+ if (requestParameters["tenantId"] != null) {
1731
+ queryParameters["tenant_id"] = requestParameters["tenantId"];
1732
+ }
1733
+ const headerParameters = {};
1734
+ const response = await this.request(
1735
+ {
1736
+ path: `/webhooks/stripe`,
1737
+ method: "POST",
1738
+ headers: headerParameters,
1739
+ query: queryParameters
1740
+ },
1741
+ initOverrides
1742
+ );
1743
+ return new JSONApiResponse(
1744
+ response,
1745
+ (jsonValue) => ProcessLegacyWebhook200ResponseFromJSON(jsonValue)
1746
+ );
1747
+ }
1748
+ /**
1749
+ * Process Stripe webhook with tenant resolution
1750
+ */
1751
+ async webhooksStripePost(requestParameters = {}, initOverrides) {
1752
+ const response = await this.webhooksStripePostRaw(requestParameters, initOverrides);
1753
+ return await response.value();
1754
+ }
1755
+ /**
1756
+ * Process Stripe webhook for specific tenant
1757
+ */
1758
+ async webhooksStripeTenantIdPostRaw(requestParameters, initOverrides) {
1759
+ if (requestParameters["tenantId"] == null) {
1760
+ throw new RequiredError(
1761
+ "tenantId",
1762
+ 'Required parameter "tenantId" was null or undefined when calling webhooksStripeTenantIdPost().'
1763
+ );
1764
+ }
1765
+ const queryParameters = {};
1766
+ const headerParameters = {};
1767
+ const response = await this.request(
1768
+ {
1769
+ path: `/webhooks/stripe/{tenantId}`.replace(
1770
+ `{${"tenantId"}}`,
1771
+ encodeURIComponent(String(requestParameters["tenantId"]))
1772
+ ),
1773
+ method: "POST",
1774
+ headers: headerParameters,
1775
+ query: queryParameters
1776
+ },
1777
+ initOverrides
1778
+ );
1779
+ return new JSONApiResponse(
1780
+ response,
1781
+ (jsonValue) => ProcessLegacyWebhook200ResponseFromJSON(jsonValue)
1782
+ );
1783
+ }
1784
+ /**
1785
+ * Process Stripe webhook for specific tenant
1786
+ */
1787
+ async webhooksStripeTenantIdPost(requestParameters, initOverrides) {
1788
+ const response = await this.webhooksStripeTenantIdPostRaw(requestParameters, initOverrides);
1789
+ return await response.value();
1790
+ }
1791
+ };
1792
+ export {
1793
+ BASE_PATH,
1794
+ BaseAPI,
1795
+ BlobApiResponse,
1796
+ COLLECTION_FORMATS,
1797
+ Configuration,
1798
+ CreateTenant201ResponseFromJSON,
1799
+ CreateTenant201ResponseFromJSONTyped,
1800
+ CreateTenant201ResponseToJSON,
1801
+ CreateTenantRequestFromJSON,
1802
+ CreateTenantRequestFromJSONTyped,
1803
+ CreateTenantRequestToJSON,
1804
+ Def0DetailsFromJSON,
1805
+ Def0DetailsFromJSONTyped,
1806
+ Def0DetailsToJSON,
1807
+ Def0FromJSON,
1808
+ Def0FromJSONTyped,
1809
+ Def0ToJSON,
1810
+ DefaultConfig,
1811
+ FetchError,
1812
+ GetTenant200ResponseFromJSON,
1813
+ GetTenant200ResponseFromJSONTyped,
1814
+ GetTenant200ResponseToJSON,
1815
+ GetTenantHealth200ResponseDataFromJSON,
1816
+ GetTenantHealth200ResponseDataFromJSONTyped,
1817
+ GetTenantHealth200ResponseDataStatusEnum,
1818
+ GetTenantHealth200ResponseDataToJSON,
1819
+ GetTenantHealth200ResponseFromJSON,
1820
+ GetTenantHealth200ResponseFromJSONTyped,
1821
+ GetTenantHealth200ResponseToJSON,
1822
+ GetTenantStats200ResponseDataInnerFromJSON,
1823
+ GetTenantStats200ResponseDataInnerFromJSONTyped,
1824
+ GetTenantStats200ResponseDataInnerToJSON,
1825
+ GetTenantStats200ResponseFromJSON,
1826
+ GetTenantStats200ResponseFromJSONTyped,
1827
+ GetTenantStats200ResponseToJSON,
1828
+ HealthApi,
1829
+ HealthGet200ResponseFromJSON,
1830
+ HealthGet200ResponseFromJSONTyped,
1831
+ HealthGet200ResponseToJSON,
1832
+ HealthReadyGet200ResponseFromJSON,
1833
+ HealthReadyGet200ResponseFromJSONTyped,
1834
+ HealthReadyGet200ResponseToJSON,
1835
+ JSONApiResponse,
1836
+ ListTenants200ResponseDataInnerFromJSON,
1837
+ ListTenants200ResponseDataInnerFromJSONTyped,
1838
+ ListTenants200ResponseDataInnerStatusEnum,
1839
+ ListTenants200ResponseDataInnerToJSON,
1840
+ ListTenants200ResponseFromJSON,
1841
+ ListTenants200ResponseFromJSONTyped,
1842
+ ListTenants200ResponseToJSON,
1843
+ ProcessLegacyWebhook200ResponseFromJSON,
1844
+ ProcessLegacyWebhook200ResponseFromJSONTyped,
1845
+ ProcessLegacyWebhook200ResponseToJSON,
1846
+ RequiredError,
1847
+ ResponseError,
1848
+ SyncApi,
1849
+ SyncBackfill200ResponseFromJSON,
1850
+ SyncBackfill200ResponseFromJSONTyped,
1851
+ SyncBackfill200ResponseToJSON,
1852
+ SyncBackfillRequestCreatedFromJSON,
1853
+ SyncBackfillRequestCreatedFromJSONTyped,
1854
+ SyncBackfillRequestCreatedToJSON,
1855
+ SyncBackfillRequestFromJSON,
1856
+ SyncBackfillRequestFromJSONTyped,
1857
+ SyncBackfillRequestObjectEnum,
1858
+ SyncBackfillRequestToJSON,
1859
+ SyncSingleEntity200ResponseFromJSON,
1860
+ SyncSingleEntity200ResponseFromJSONTyped,
1861
+ SyncSingleEntity200ResponseToJSON,
1862
+ SyncTenant200ResponseDataValueFromJSON,
1863
+ SyncTenant200ResponseDataValueFromJSONTyped,
1864
+ SyncTenant200ResponseDataValueToJSON,
1865
+ SyncTenant200ResponseFromJSON,
1866
+ SyncTenant200ResponseFromJSONTyped,
1867
+ SyncTenant200ResponseToJSON,
1868
+ TenantsApi,
1869
+ TextApiResponse,
1870
+ TriggerDailySync200ResponseFromJSON,
1871
+ TriggerDailySync200ResponseFromJSONTyped,
1872
+ TriggerDailySync200ResponseToJSON,
1873
+ TriggerDailySyncRequestFromJSON,
1874
+ TriggerDailySyncRequestFromJSONTyped,
1875
+ TriggerDailySyncRequestObjectEnum,
1876
+ TriggerDailySyncRequestToJSON,
1877
+ TriggerMonthlySync200ResponseFromJSON,
1878
+ TriggerMonthlySync200ResponseFromJSONTyped,
1879
+ TriggerMonthlySync200ResponseToJSON,
1880
+ TriggerWeeklySync200ResponseFromJSON,
1881
+ TriggerWeeklySync200ResponseFromJSONTyped,
1882
+ TriggerWeeklySync200ResponseToJSON,
1883
+ UpdateTenant200ResponseFromJSON,
1884
+ UpdateTenant200ResponseFromJSONTyped,
1885
+ UpdateTenant200ResponseToJSON,
1886
+ UpdateTenantRequestFromJSON,
1887
+ UpdateTenantRequestFromJSONTyped,
1888
+ UpdateTenantRequestStatusEnum,
1889
+ UpdateTenantRequestToJSON,
1890
+ VoidApiResponse,
1891
+ WebhooksApi,
1892
+ canConsumeForm,
1893
+ instanceOfCreateTenant201Response,
1894
+ instanceOfCreateTenantRequest,
1895
+ instanceOfDef0,
1896
+ instanceOfDef0Details,
1897
+ instanceOfGetTenant200Response,
1898
+ instanceOfGetTenantHealth200Response,
1899
+ instanceOfGetTenantHealth200ResponseData,
1900
+ instanceOfGetTenantStats200Response,
1901
+ instanceOfGetTenantStats200ResponseDataInner,
1902
+ instanceOfHealthGet200Response,
1903
+ instanceOfHealthReadyGet200Response,
1904
+ instanceOfListTenants200Response,
1905
+ instanceOfListTenants200ResponseDataInner,
1906
+ instanceOfProcessLegacyWebhook200Response,
1907
+ instanceOfSyncBackfill200Response,
1908
+ instanceOfSyncBackfillRequest,
1909
+ instanceOfSyncBackfillRequestCreated,
1910
+ instanceOfSyncSingleEntity200Response,
1911
+ instanceOfSyncTenant200Response,
1912
+ instanceOfSyncTenant200ResponseDataValue,
1913
+ instanceOfTriggerDailySync200Response,
1914
+ instanceOfTriggerDailySyncRequest,
1915
+ instanceOfTriggerMonthlySync200Response,
1916
+ instanceOfTriggerWeeklySync200Response,
1917
+ instanceOfUpdateTenant200Response,
1918
+ instanceOfUpdateTenantRequest,
1919
+ mapValues,
1920
+ querystring
1921
+ };