@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.
@@ -44,6 +44,7 @@ __export(v1_exports, {
44
44
  ApplicationStatus: () => ApplicationStatus,
45
45
  ApplicationType: () => ApplicationType,
46
46
  ApplicationVersion: () => ApplicationVersion,
47
+ BillingTaxIdType: () => BillingTaxIdType,
47
48
  DatabaseCluster: () => DatabaseCluster,
48
49
  DatabaseFilterOperator: () => DatabaseFilterOperator,
49
50
  DatabaseRedisKeyType: () => DatabaseRedisKeyType,
@@ -53,6 +54,7 @@ __export(v1_exports, {
53
54
  DatabaseType: () => DatabaseType,
54
55
  NotificationImportance: () => NotificationImportance,
55
56
  NotificationType: () => NotificationType,
57
+ OrderCardPaymentStatus: () => OrderCardPaymentStatus,
56
58
  OrderProvider: () => OrderProvider,
57
59
  OrderStatus: () => OrderStatus,
58
60
  OrderType: () => OrderType,
@@ -463,9 +465,32 @@ var API_ERROR_CODES = {
463
465
  APP_NOT_FOUND_IN_WORKSPACE: "APP_NOT_FOUND_IN_WORKSPACE",
464
466
  BUILD_FAILED: "BUILD_FAILED",
465
467
  BUILD_TIMEOUT: "BUILD_TIMEOUT",
468
+ /** 400 — billing details failed validation; the field is in `details.path`. */
469
+ BILLING_DETAILS_INVALID: "BILLING_DETAILS_INVALID",
470
+ /** 402 — the bank refused the card charge. */
471
+ CARD_DECLINED: "CARD_DECLINED",
472
+ /** 400 — the plan can only be paid by PIX. */
473
+ CARD_NOT_ALLOWED_FOR_PLAN: "CARD_NOT_ALLOWED_FOR_PLAN",
474
+ CARD_NOT_FOUND: "CARD_NOT_FOUND",
466
475
  CERTIFICATE_NOT_FOUND: "CERTIFICATE_NOT_FOUND",
467
476
  CLEANUP_LANGUAGE_SAME_AS_CURRENT: "CLEANUP_LANGUAGE_SAME_AS_CURRENT",
468
477
  CONTAINER_ALREADY_RUNNING: "CONTAINER_ALREADY_RUNNING",
478
+ /** 400 — no active coupon with this code. */
479
+ COUPON_INVALID: "COUPON_INVALID",
480
+ COUPON_INACTIVE: "COUPON_INACTIVE",
481
+ COUPON_NOT_STARTED: "COUPON_NOT_STARTED",
482
+ COUPON_EXPIRED: "COUPON_EXPIRED",
483
+ /** 400 — the coupon reached its total number of uses. */
484
+ COUPON_EXHAUSTED: "COUPON_EXHAUSTED",
485
+ /** 400 — the account already used this coupon as many times as allowed. */
486
+ COUPON_USER_LIMIT: "COUPON_USER_LIMIT",
487
+ /** 400 — the coupon is not available to this account. */
488
+ COUPON_AUDIENCE: "COUPON_AUDIENCE",
489
+ /** 400 — the coupon does not apply to this plan. */
490
+ COUPON_PLAN: "COUPON_PLAN",
491
+ /** 400 — the coupon does not apply to this billing period. */
492
+ COUPON_DURATION: "COUPON_DURATION",
493
+ COUPON_PAYMENT_METHOD: "COUPON_PAYMENT_METHOD",
469
494
  CUSTOM_DOMAIN_RECORD_NOT_FOUND: "CUSTOM_DOMAIN_RECORD_NOT_FOUND",
470
495
  CUSTOM_DOMAIN_REGISTRATION_FAILED: "CUSTOM_DOMAIN_REGISTRATION_FAILED",
471
496
  DAILY_QUOTA_EXCEEDED: "DAILY_QUOTA_EXCEEDED",
@@ -491,6 +516,8 @@ var API_ERROR_CODES = {
491
516
  FORBIDDEN_KEY: "FORBIDDEN_KEY",
492
517
  FORCED_SNAPSHOT_RATE_LIMIT: "FORCED_SNAPSHOT_RATE_LIMIT",
493
518
  FREE_PLAN_NO_WEB_PUBLISH: "FREE_PLAN_NO_WEB_PUBLISH",
519
+ /** 403 — the Free plan can no longer create applications or databases; a paid plan is required. */
520
+ FREE_PLAN_SUSPENDED: "FREE_PLAN_SUSPENDED",
494
521
  INSTALLATION_NOT_FOUND: "INSTALLATION_NOT_FOUND",
495
522
  INSTALL_SHIELD_BLOCKED: "INSTALL_SHIELD_BLOCKED",
496
523
  INSTALL_TIMEOUT: "INSTALL_TIMEOUT",
@@ -539,9 +566,12 @@ var API_ERROR_CODES = {
539
566
  ORDER_NOT_PAID: "ORDER_NOT_PAID",
540
567
  ORDER_NOT_PAYABLE: "ORDER_NOT_PAYABLE",
541
568
  ORDER_NOT_REFUNDED: "ORDER_NOT_REFUNDED",
569
+ /** 404 — the order has no payment receipt (unpaid, redeemed code or paid before receipts existed). */
570
+ ORDER_RECEIPT_UNAVAILABLE: "ORDER_RECEIPT_UNAVAILABLE",
542
571
  OWNER_APP_WITHOUT_LIMITS: "OWNER_APP_WITHOUT_LIMITS",
543
572
  PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
544
573
  PENDING_ORDER_LIMIT_REACHED: "PENDING_ORDER_LIMIT_REACHED",
574
+ PAYMENT_METHOD_UNAVAILABLE: "PAYMENT_METHOD_UNAVAILABLE",
545
575
  PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN",
546
576
  PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN",
547
577
  PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH: "PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH",
@@ -561,10 +591,11 @@ var API_ERROR_CODES = {
561
591
  SOURCE_CONFLICT: "SOURCE_CONFLICT",
562
592
  SOURCE_REQUIRED: "SOURCE_REQUIRED",
563
593
  STORAGE_ABOVE_NEW_LIMIT: "STORAGE_ABOVE_NEW_LIMIT",
564
- SUBDOMAIN_ALREADY_IN_USE: "SUBDOMAIN_ALREADY_IN_USE",
565
594
  SUBDOMAIN_CHANGE_RATE_LIMITED: "SUBDOMAIN_CHANGE_RATE_LIMITED",
566
595
  SUBDOMAIN_FORBIDDEN: "SUBDOMAIN_FORBIDDEN",
567
596
  SUBDOMAIN_TAKEN: "SUBDOMAIN_TAKEN",
597
+ /** 400 — the CPF or CNPJ is not valid. */
598
+ TAX_ID_INVALID: "TAX_ID_INVALID",
568
599
  TYPE_MISMATCH: "TYPE_MISMATCH",
569
600
  USER_LIMITS_NOT_FOUND: "USER_LIMITS_NOT_FOUND",
570
601
  USER_NOT_FOUND: "USER_NOT_FOUND",
@@ -639,6 +670,12 @@ var ApplicationRealtimeEventType = {
639
670
  HEARTBEAT: "heartbeat"
640
671
  };
641
672
 
673
+ // payloads/v1/billing.ts
674
+ var BillingTaxIdType = {
675
+ CPF: "cpf",
676
+ CNPJ: "cnpj"
677
+ };
678
+
642
679
  // payloads/v1/database.ts
643
680
  var DatabaseType = {
644
681
  POSTGRESQL: 1,
@@ -715,8 +752,14 @@ var OrderType = {
715
752
  };
716
753
  var OrderProvider = {
717
754
  PIX: "pix",
755
+ CARD: "card",
718
756
  REDEEM_CODE: "redeem_code"
719
757
  };
758
+ var OrderCardPaymentStatus = {
759
+ SUCCEEDED: "succeeded",
760
+ REQUIRES_ACTION: "requires_action",
761
+ PROCESSING: "processing"
762
+ };
720
763
 
721
764
  // payloads/v1/snapshot.ts
722
765
  var ResourceType = {
@@ -767,6 +810,7 @@ var UserLanguage = {
767
810
  ApplicationStatus,
768
811
  ApplicationType,
769
812
  ApplicationVersion,
813
+ BillingTaxIdType,
770
814
  DatabaseCluster,
771
815
  DatabaseFilterOperator,
772
816
  DatabaseRedisKeyType,
@@ -776,6 +820,7 @@ var UserLanguage = {
776
820
  DatabaseType,
777
821
  NotificationImportance,
778
822
  NotificationType,
823
+ OrderCardPaymentStatus,
779
824
  OrderProvider,
780
825
  OrderStatus,
781
826
  OrderType,