@vertracloud/api-types 0.2.4 → 0.3.0

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/v1.mjs CHANGED
@@ -405,9 +405,32 @@ var API_ERROR_CODES = {
405
405
  APP_NOT_FOUND_IN_WORKSPACE: "APP_NOT_FOUND_IN_WORKSPACE",
406
406
  BUILD_FAILED: "BUILD_FAILED",
407
407
  BUILD_TIMEOUT: "BUILD_TIMEOUT",
408
+ /** 400 — billing details failed validation; the field is in `details.path`. */
409
+ BILLING_DETAILS_INVALID: "BILLING_DETAILS_INVALID",
410
+ /** 402 — the bank refused the card charge. */
411
+ CARD_DECLINED: "CARD_DECLINED",
412
+ /** 400 — the plan can only be paid by PIX. */
413
+ CARD_NOT_ALLOWED_FOR_PLAN: "CARD_NOT_ALLOWED_FOR_PLAN",
414
+ CARD_NOT_FOUND: "CARD_NOT_FOUND",
408
415
  CERTIFICATE_NOT_FOUND: "CERTIFICATE_NOT_FOUND",
409
416
  CLEANUP_LANGUAGE_SAME_AS_CURRENT: "CLEANUP_LANGUAGE_SAME_AS_CURRENT",
410
417
  CONTAINER_ALREADY_RUNNING: "CONTAINER_ALREADY_RUNNING",
418
+ /** 400 — no active coupon with this code. */
419
+ COUPON_INVALID: "COUPON_INVALID",
420
+ COUPON_INACTIVE: "COUPON_INACTIVE",
421
+ COUPON_NOT_STARTED: "COUPON_NOT_STARTED",
422
+ COUPON_EXPIRED: "COUPON_EXPIRED",
423
+ /** 400 — the coupon reached its total number of uses. */
424
+ COUPON_EXHAUSTED: "COUPON_EXHAUSTED",
425
+ /** 400 — the account already used this coupon as many times as allowed. */
426
+ COUPON_USER_LIMIT: "COUPON_USER_LIMIT",
427
+ /** 400 — the coupon is not available to this account. */
428
+ COUPON_AUDIENCE: "COUPON_AUDIENCE",
429
+ /** 400 — the coupon does not apply to this plan. */
430
+ COUPON_PLAN: "COUPON_PLAN",
431
+ /** 400 — the coupon does not apply to this billing period. */
432
+ COUPON_DURATION: "COUPON_DURATION",
433
+ COUPON_PAYMENT_METHOD: "COUPON_PAYMENT_METHOD",
411
434
  CUSTOM_DOMAIN_RECORD_NOT_FOUND: "CUSTOM_DOMAIN_RECORD_NOT_FOUND",
412
435
  CUSTOM_DOMAIN_REGISTRATION_FAILED: "CUSTOM_DOMAIN_REGISTRATION_FAILED",
413
436
  DAILY_QUOTA_EXCEEDED: "DAILY_QUOTA_EXCEEDED",
@@ -433,6 +456,8 @@ var API_ERROR_CODES = {
433
456
  FORBIDDEN_KEY: "FORBIDDEN_KEY",
434
457
  FORCED_SNAPSHOT_RATE_LIMIT: "FORCED_SNAPSHOT_RATE_LIMIT",
435
458
  FREE_PLAN_NO_WEB_PUBLISH: "FREE_PLAN_NO_WEB_PUBLISH",
459
+ /** 403 — the Free plan can no longer create applications or databases; a paid plan is required. */
460
+ FREE_PLAN_SUSPENDED: "FREE_PLAN_SUSPENDED",
436
461
  INSTALLATION_NOT_FOUND: "INSTALLATION_NOT_FOUND",
437
462
  INSTALL_SHIELD_BLOCKED: "INSTALL_SHIELD_BLOCKED",
438
463
  INSTALL_TIMEOUT: "INSTALL_TIMEOUT",
@@ -481,9 +506,12 @@ var API_ERROR_CODES = {
481
506
  ORDER_NOT_PAID: "ORDER_NOT_PAID",
482
507
  ORDER_NOT_PAYABLE: "ORDER_NOT_PAYABLE",
483
508
  ORDER_NOT_REFUNDED: "ORDER_NOT_REFUNDED",
509
+ /** 404 — the order has no payment receipt (unpaid, redeemed code or paid before receipts existed). */
510
+ ORDER_RECEIPT_UNAVAILABLE: "ORDER_RECEIPT_UNAVAILABLE",
484
511
  OWNER_APP_WITHOUT_LIMITS: "OWNER_APP_WITHOUT_LIMITS",
485
512
  PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
486
513
  PENDING_ORDER_LIMIT_REACHED: "PENDING_ORDER_LIMIT_REACHED",
514
+ PAYMENT_METHOD_UNAVAILABLE: "PAYMENT_METHOD_UNAVAILABLE",
487
515
  PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN",
488
516
  PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN",
489
517
  PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH: "PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH",
@@ -503,10 +531,11 @@ var API_ERROR_CODES = {
503
531
  SOURCE_CONFLICT: "SOURCE_CONFLICT",
504
532
  SOURCE_REQUIRED: "SOURCE_REQUIRED",
505
533
  STORAGE_ABOVE_NEW_LIMIT: "STORAGE_ABOVE_NEW_LIMIT",
506
- SUBDOMAIN_ALREADY_IN_USE: "SUBDOMAIN_ALREADY_IN_USE",
507
534
  SUBDOMAIN_CHANGE_RATE_LIMITED: "SUBDOMAIN_CHANGE_RATE_LIMITED",
508
535
  SUBDOMAIN_FORBIDDEN: "SUBDOMAIN_FORBIDDEN",
509
536
  SUBDOMAIN_TAKEN: "SUBDOMAIN_TAKEN",
537
+ /** 400 — the CPF or CNPJ is not valid. */
538
+ TAX_ID_INVALID: "TAX_ID_INVALID",
510
539
  TYPE_MISMATCH: "TYPE_MISMATCH",
511
540
  USER_LIMITS_NOT_FOUND: "USER_LIMITS_NOT_FOUND",
512
541
  USER_NOT_FOUND: "USER_NOT_FOUND",
@@ -581,6 +610,12 @@ var ApplicationRealtimeEventType = {
581
610
  HEARTBEAT: "heartbeat"
582
611
  };
583
612
 
613
+ // payloads/v1/billing.ts
614
+ var BillingTaxIdType = {
615
+ CPF: "cpf",
616
+ CNPJ: "cnpj"
617
+ };
618
+
584
619
  // payloads/v1/database.ts
585
620
  var DatabaseType = {
586
621
  POSTGRESQL: 1,
@@ -657,8 +692,14 @@ var OrderType = {
657
692
  };
658
693
  var OrderProvider = {
659
694
  PIX: "pix",
695
+ CARD: "card",
660
696
  REDEEM_CODE: "redeem_code"
661
697
  };
698
+ var OrderCardPaymentStatus = {
699
+ SUCCEEDED: "succeeded",
700
+ REQUIRES_ACTION: "requires_action",
701
+ PROCESSING: "processing"
702
+ };
662
703
 
663
704
  // payloads/v1/snapshot.ts
664
705
  var ResourceType = {
@@ -708,6 +749,7 @@ export {
708
749
  ApplicationStatus,
709
750
  ApplicationType,
710
751
  ApplicationVersion,
752
+ BillingTaxIdType,
711
753
  DatabaseCluster,
712
754
  DatabaseFilterOperator,
713
755
  DatabaseRedisKeyType,
@@ -717,6 +759,7 @@ export {
717
759
  DatabaseType,
718
760
  NotificationImportance,
719
761
  NotificationType,
762
+ OrderCardPaymentStatus,
720
763
  OrderProvider,
721
764
  OrderStatus,
722
765
  OrderType,