@homespot-sdk/core 0.0.357 → 0.0.358
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/rem/index.d.ts +1 -1
- package/dist/rem/index.d.ts.map +1 -1
- package/dist/rem/schemas.gen.d.ts +168 -179
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +209 -209
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +8 -11
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +3 -4
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +3 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +43 -0
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +73 -122
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +151 -132
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +120 -113
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/zod.gen.js
CHANGED
|
@@ -423,10 +423,10 @@ export const zSubscriptionAddressRequest = z.object({
|
|
|
423
423
|
export const zSubscribeRequest = z.object({
|
|
424
424
|
plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
|
|
425
425
|
billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
|
|
426
|
-
name: z.string(),
|
|
427
|
-
email: z.email(),
|
|
428
|
-
phone: z.string(),
|
|
429
|
-
subdomain: z.string(),
|
|
426
|
+
name: z.string().min(1),
|
|
427
|
+
email: z.email().min(1),
|
|
428
|
+
phone: z.string().min(1),
|
|
429
|
+
subdomain: z.string().min(1),
|
|
430
430
|
address: zSubscriptionAddressRequest,
|
|
431
431
|
});
|
|
432
432
|
export const zSubscriptionCheckoutResponse = z.object({
|
|
@@ -443,114 +443,6 @@ export const zSubscriptionCheckoutResponse = z.object({
|
|
|
443
443
|
'SUPERSEDED',
|
|
444
444
|
])),
|
|
445
445
|
});
|
|
446
|
-
export const zProblemDetail = z.object({
|
|
447
|
-
type: z.optional(z.url()),
|
|
448
|
-
title: z.optional(z.string()),
|
|
449
|
-
status: z.optional(z
|
|
450
|
-
.int()
|
|
451
|
-
.min(-2147483648, {
|
|
452
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
453
|
-
})
|
|
454
|
-
.max(2147483647, {
|
|
455
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
456
|
-
})),
|
|
457
|
-
detail: z.optional(z.string()),
|
|
458
|
-
instance: z.optional(z.url()),
|
|
459
|
-
properties: z.optional(z.record(z.string(), z.unknown())),
|
|
460
|
-
});
|
|
461
|
-
export const zAgencyRegistrationConflictResponse = z.object({
|
|
462
|
-
type: z.url(),
|
|
463
|
-
title: z.string(),
|
|
464
|
-
status: z
|
|
465
|
-
.int()
|
|
466
|
-
.min(-2147483648, {
|
|
467
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
468
|
-
})
|
|
469
|
-
.max(2147483647, {
|
|
470
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
471
|
-
}),
|
|
472
|
-
detail: z.string(),
|
|
473
|
-
instance: z.url(),
|
|
474
|
-
conflicts: z.array(z.enum(['OWNER', 'NAME', 'SUBDOMAIN'])),
|
|
475
|
-
code: z.enum(['AGENCY_REGISTRATION_CONFLICT']),
|
|
476
|
-
});
|
|
477
|
-
export const zConcurrentModificationResponse = z.object({
|
|
478
|
-
type: z.url(),
|
|
479
|
-
title: z.string(),
|
|
480
|
-
status: z
|
|
481
|
-
.int()
|
|
482
|
-
.min(-2147483648, {
|
|
483
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
484
|
-
})
|
|
485
|
-
.max(2147483647, {
|
|
486
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
487
|
-
}),
|
|
488
|
-
detail: z.string(),
|
|
489
|
-
instance: z.url(),
|
|
490
|
-
code: z.enum(['CONCURRENT_MODIFICATION']),
|
|
491
|
-
});
|
|
492
|
-
export const zDataIntegrityConflictResponse = z.object({
|
|
493
|
-
type: z.url(),
|
|
494
|
-
title: z.string(),
|
|
495
|
-
status: z
|
|
496
|
-
.int()
|
|
497
|
-
.min(-2147483648, {
|
|
498
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
499
|
-
})
|
|
500
|
-
.max(2147483647, {
|
|
501
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
502
|
-
}),
|
|
503
|
-
detail: z.string(),
|
|
504
|
-
instance: z.url(),
|
|
505
|
-
code: z.enum(['DATA_INTEGRITY_CONFLICT']),
|
|
506
|
-
});
|
|
507
|
-
export const zSubscriptionStateConflictResponse = z.object({
|
|
508
|
-
type: z.url(),
|
|
509
|
-
title: z.string(),
|
|
510
|
-
status: z
|
|
511
|
-
.int()
|
|
512
|
-
.min(-2147483648, {
|
|
513
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
514
|
-
})
|
|
515
|
-
.max(2147483647, {
|
|
516
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
517
|
-
}),
|
|
518
|
-
detail: z.string(),
|
|
519
|
-
instance: z.url(),
|
|
520
|
-
subscriptionId: z.uuid(),
|
|
521
|
-
subscriptionStatus: z.enum([
|
|
522
|
-
'PENDING',
|
|
523
|
-
'TRIALING',
|
|
524
|
-
'ACTIVE',
|
|
525
|
-
'PAST_DUE',
|
|
526
|
-
'CANCELLED',
|
|
527
|
-
'EXPIRED',
|
|
528
|
-
'SUPERSEDED',
|
|
529
|
-
]),
|
|
530
|
-
code: z.enum(['SUBSCRIPTION_STATE_CONFLICT']),
|
|
531
|
-
});
|
|
532
|
-
export const zSubscriptionConflictResponse = z.union([
|
|
533
|
-
z
|
|
534
|
-
.object({
|
|
535
|
-
code: z.literal('AGENCY_REGISTRATION_CONFLICT'),
|
|
536
|
-
})
|
|
537
|
-
.and(zAgencyRegistrationConflictResponse),
|
|
538
|
-
z
|
|
539
|
-
.object({
|
|
540
|
-
code: z.literal('SUBSCRIPTION_STATE_CONFLICT'),
|
|
541
|
-
})
|
|
542
|
-
.and(zSubscriptionStateConflictResponse),
|
|
543
|
-
z
|
|
544
|
-
.object({
|
|
545
|
-
code: z.literal('CONCURRENT_MODIFICATION'),
|
|
546
|
-
})
|
|
547
|
-
.and(zConcurrentModificationResponse),
|
|
548
|
-
z
|
|
549
|
-
.object({
|
|
550
|
-
code: z.literal('DATA_INTEGRITY_CONFLICT'),
|
|
551
|
-
})
|
|
552
|
-
.and(zDataIntegrityConflictResponse),
|
|
553
|
-
]);
|
|
554
446
|
export const zChangePlanRequest = z.object({
|
|
555
447
|
plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
|
|
556
448
|
billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
|
|
@@ -690,6 +582,21 @@ export const zAgencyPrincipalDto = z.object({
|
|
|
690
582
|
export const zSendMessageRequest = z.object({
|
|
691
583
|
text: z.string().min(0).max(2000),
|
|
692
584
|
});
|
|
585
|
+
export const zProblemDetail = z.object({
|
|
586
|
+
type: z.optional(z.url()),
|
|
587
|
+
title: z.optional(z.string()),
|
|
588
|
+
status: z.optional(z
|
|
589
|
+
.int()
|
|
590
|
+
.min(-2147483648, {
|
|
591
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
592
|
+
})
|
|
593
|
+
.max(2147483647, {
|
|
594
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
595
|
+
})),
|
|
596
|
+
detail: z.optional(z.string()),
|
|
597
|
+
instance: z.optional(z.url()),
|
|
598
|
+
properties: z.optional(z.record(z.string(), z.unknown())),
|
|
599
|
+
});
|
|
693
600
|
export const zStartPropertyRegistrationRequest = z.object({
|
|
694
601
|
propertyType: z.enum([
|
|
695
602
|
'HOUSE',
|
|
@@ -1378,6 +1285,98 @@ export const zStageCardsResponse = z.object({
|
|
|
1378
1285
|
members: z.array(zMemberPeekResponse),
|
|
1379
1286
|
data: zCursorPageTaskCardResponse,
|
|
1380
1287
|
});
|
|
1288
|
+
export const zSubscriptionResponse = z.object({
|
|
1289
|
+
subscriptionId: z.uuid(),
|
|
1290
|
+
plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
|
|
1291
|
+
billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
|
|
1292
|
+
priceMinorUnits: z.coerce
|
|
1293
|
+
.bigint()
|
|
1294
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1295
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1296
|
+
})
|
|
1297
|
+
.max(BigInt('9223372036854775807'), {
|
|
1298
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1299
|
+
}),
|
|
1300
|
+
currency: z.string(),
|
|
1301
|
+
seats: z
|
|
1302
|
+
.int()
|
|
1303
|
+
.min(-2147483648, {
|
|
1304
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1305
|
+
})
|
|
1306
|
+
.max(2147483647, {
|
|
1307
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1308
|
+
}),
|
|
1309
|
+
monthlyContactLimit: z
|
|
1310
|
+
.int()
|
|
1311
|
+
.min(-2147483648, {
|
|
1312
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1313
|
+
})
|
|
1314
|
+
.max(2147483647, {
|
|
1315
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1316
|
+
}),
|
|
1317
|
+
trialDays: z
|
|
1318
|
+
.int()
|
|
1319
|
+
.min(-2147483648, {
|
|
1320
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1321
|
+
})
|
|
1322
|
+
.max(2147483647, {
|
|
1323
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1324
|
+
}),
|
|
1325
|
+
status: z.enum([
|
|
1326
|
+
'PENDING',
|
|
1327
|
+
'TRIALING',
|
|
1328
|
+
'ACTIVE',
|
|
1329
|
+
'PAST_DUE',
|
|
1330
|
+
'CANCELLED',
|
|
1331
|
+
'EXPIRED',
|
|
1332
|
+
'SUPERSEDED',
|
|
1333
|
+
]),
|
|
1334
|
+
live: z.boolean(),
|
|
1335
|
+
trialEndsAt: z.optional(z.iso.datetime()),
|
|
1336
|
+
paidThroughAt: z.optional(z.iso.datetime()),
|
|
1337
|
+
accessEndsAt: z.optional(z.iso.datetime()),
|
|
1338
|
+
pastDueSince: z.optional(z.iso.datetime()),
|
|
1339
|
+
lastChargedAt: z.optional(z.iso.datetime()),
|
|
1340
|
+
createdAt: z.iso.datetime(),
|
|
1341
|
+
activatedAt: z.optional(z.iso.datetime()),
|
|
1342
|
+
cancelledAt: z.optional(z.iso.datetime()),
|
|
1343
|
+
checkoutExpiresAt: z.optional(z.iso.datetime()),
|
|
1344
|
+
});
|
|
1345
|
+
export const zPaymentResponse = z.object({
|
|
1346
|
+
id: z.uuid(),
|
|
1347
|
+
subscriptionId: z.uuid(),
|
|
1348
|
+
flittPaymentId: z.string(),
|
|
1349
|
+
flittOrderId: z.string(),
|
|
1350
|
+
orderStatus: z.string(),
|
|
1351
|
+
tranType: z.optional(z.string()),
|
|
1352
|
+
outcome: z.enum([
|
|
1353
|
+
'APPLIED',
|
|
1354
|
+
'TRIAL_STARTED',
|
|
1355
|
+
'DUPLICATE',
|
|
1356
|
+
'NOT_APPLIED_CANCELLED',
|
|
1357
|
+
'NOT_APPLIED_SUPERSEDED',
|
|
1358
|
+
'REJECTED_AMOUNT',
|
|
1359
|
+
'REJECTED_CURRENCY',
|
|
1360
|
+
'IGNORED_TRANSACTION_TYPE',
|
|
1361
|
+
'DECLINED',
|
|
1362
|
+
'REVERSED',
|
|
1363
|
+
'REVERSAL_IGNORED',
|
|
1364
|
+
'RECORDED',
|
|
1365
|
+
]),
|
|
1366
|
+
amountMinorUnits: z.optional(z.coerce
|
|
1367
|
+
.bigint()
|
|
1368
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1369
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1370
|
+
})
|
|
1371
|
+
.max(BigInt('9223372036854775807'), {
|
|
1372
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1373
|
+
})),
|
|
1374
|
+
currency: z.optional(z.string()),
|
|
1375
|
+
responseCode: z.optional(z.string()),
|
|
1376
|
+
responseDescription: z.optional(z.string()),
|
|
1377
|
+
orderTime: z.optional(z.iso.datetime()),
|
|
1378
|
+
receivedAt: z.iso.datetime(),
|
|
1379
|
+
});
|
|
1381
1380
|
export const zBucket = z.object({
|
|
1382
1381
|
count: z.coerce
|
|
1383
1382
|
.bigint()
|
|
@@ -4202,13 +4201,17 @@ export const zGetSubscriptionsData = z.object({
|
|
|
4202
4201
|
path: z.optional(z.never()),
|
|
4203
4202
|
query: z.optional(z.never()),
|
|
4204
4203
|
});
|
|
4204
|
+
/**
|
|
4205
|
+
* OK
|
|
4206
|
+
*/
|
|
4207
|
+
export const zGetSubscriptionsResponse = zSubscriptionResponse;
|
|
4205
4208
|
export const zPostSubscriptionsData = z.object({
|
|
4206
4209
|
body: zSubscribeRequest,
|
|
4207
4210
|
path: z.optional(z.never()),
|
|
4208
4211
|
query: z.optional(z.never()),
|
|
4209
4212
|
});
|
|
4210
4213
|
/**
|
|
4211
|
-
*
|
|
4214
|
+
* OK
|
|
4212
4215
|
*/
|
|
4213
4216
|
export const zPostSubscriptionsResponse = zSubscriptionCheckoutResponse;
|
|
4214
4217
|
export const zPostSubscriptionsResumeData = z.object({
|
|
@@ -5210,6 +5213,10 @@ export const zGetSubscriptionsPaymentsData = z.object({
|
|
|
5210
5213
|
path: z.optional(z.never()),
|
|
5211
5214
|
query: z.optional(z.never()),
|
|
5212
5215
|
});
|
|
5216
|
+
/**
|
|
5217
|
+
* OK
|
|
5218
|
+
*/
|
|
5219
|
+
export const zGetSubscriptionsPaymentsResponse = z.array(zPaymentResponse);
|
|
5213
5220
|
export const zGetStatsPipelineCommissionData = z.object({
|
|
5214
5221
|
body: z.optional(z.never()),
|
|
5215
5222
|
path: z.optional(z.never()),
|