@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.js CHANGED
@@ -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,
@@ -487,9 +489,32 @@ var API_ERROR_CODES = {
487
489
  APP_NOT_FOUND_IN_WORKSPACE: "APP_NOT_FOUND_IN_WORKSPACE",
488
490
  BUILD_FAILED: "BUILD_FAILED",
489
491
  BUILD_TIMEOUT: "BUILD_TIMEOUT",
492
+ /** 400 — billing details failed validation; the field is in `details.path`. */
493
+ BILLING_DETAILS_INVALID: "BILLING_DETAILS_INVALID",
494
+ /** 402 — the bank refused the card charge. */
495
+ CARD_DECLINED: "CARD_DECLINED",
496
+ /** 400 — the plan can only be paid by PIX. */
497
+ CARD_NOT_ALLOWED_FOR_PLAN: "CARD_NOT_ALLOWED_FOR_PLAN",
498
+ CARD_NOT_FOUND: "CARD_NOT_FOUND",
490
499
  CERTIFICATE_NOT_FOUND: "CERTIFICATE_NOT_FOUND",
491
500
  CLEANUP_LANGUAGE_SAME_AS_CURRENT: "CLEANUP_LANGUAGE_SAME_AS_CURRENT",
492
501
  CONTAINER_ALREADY_RUNNING: "CONTAINER_ALREADY_RUNNING",
502
+ /** 400 — no active coupon with this code. */
503
+ COUPON_INVALID: "COUPON_INVALID",
504
+ COUPON_INACTIVE: "COUPON_INACTIVE",
505
+ COUPON_NOT_STARTED: "COUPON_NOT_STARTED",
506
+ COUPON_EXPIRED: "COUPON_EXPIRED",
507
+ /** 400 — the coupon reached its total number of uses. */
508
+ COUPON_EXHAUSTED: "COUPON_EXHAUSTED",
509
+ /** 400 — the account already used this coupon as many times as allowed. */
510
+ COUPON_USER_LIMIT: "COUPON_USER_LIMIT",
511
+ /** 400 — the coupon is not available to this account. */
512
+ COUPON_AUDIENCE: "COUPON_AUDIENCE",
513
+ /** 400 — the coupon does not apply to this plan. */
514
+ COUPON_PLAN: "COUPON_PLAN",
515
+ /** 400 — the coupon does not apply to this billing period. */
516
+ COUPON_DURATION: "COUPON_DURATION",
517
+ COUPON_PAYMENT_METHOD: "COUPON_PAYMENT_METHOD",
493
518
  CUSTOM_DOMAIN_RECORD_NOT_FOUND: "CUSTOM_DOMAIN_RECORD_NOT_FOUND",
494
519
  CUSTOM_DOMAIN_REGISTRATION_FAILED: "CUSTOM_DOMAIN_REGISTRATION_FAILED",
495
520
  DAILY_QUOTA_EXCEEDED: "DAILY_QUOTA_EXCEEDED",
@@ -515,6 +540,8 @@ var API_ERROR_CODES = {
515
540
  FORBIDDEN_KEY: "FORBIDDEN_KEY",
516
541
  FORCED_SNAPSHOT_RATE_LIMIT: "FORCED_SNAPSHOT_RATE_LIMIT",
517
542
  FREE_PLAN_NO_WEB_PUBLISH: "FREE_PLAN_NO_WEB_PUBLISH",
543
+ /** 403 — the Free plan can no longer create applications or databases; a paid plan is required. */
544
+ FREE_PLAN_SUSPENDED: "FREE_PLAN_SUSPENDED",
518
545
  INSTALLATION_NOT_FOUND: "INSTALLATION_NOT_FOUND",
519
546
  INSTALL_SHIELD_BLOCKED: "INSTALL_SHIELD_BLOCKED",
520
547
  INSTALL_TIMEOUT: "INSTALL_TIMEOUT",
@@ -563,9 +590,12 @@ var API_ERROR_CODES = {
563
590
  ORDER_NOT_PAID: "ORDER_NOT_PAID",
564
591
  ORDER_NOT_PAYABLE: "ORDER_NOT_PAYABLE",
565
592
  ORDER_NOT_REFUNDED: "ORDER_NOT_REFUNDED",
593
+ /** 404 — the order has no payment receipt (unpaid, redeemed code or paid before receipts existed). */
594
+ ORDER_RECEIPT_UNAVAILABLE: "ORDER_RECEIPT_UNAVAILABLE",
566
595
  OWNER_APP_WITHOUT_LIMITS: "OWNER_APP_WITHOUT_LIMITS",
567
596
  PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
568
597
  PENDING_ORDER_LIMIT_REACHED: "PENDING_ORDER_LIMIT_REACHED",
598
+ PAYMENT_METHOD_UNAVAILABLE: "PAYMENT_METHOD_UNAVAILABLE",
569
599
  PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN",
570
600
  PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN",
571
601
  PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH: "PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH",
@@ -585,10 +615,11 @@ var API_ERROR_CODES = {
585
615
  SOURCE_CONFLICT: "SOURCE_CONFLICT",
586
616
  SOURCE_REQUIRED: "SOURCE_REQUIRED",
587
617
  STORAGE_ABOVE_NEW_LIMIT: "STORAGE_ABOVE_NEW_LIMIT",
588
- SUBDOMAIN_ALREADY_IN_USE: "SUBDOMAIN_ALREADY_IN_USE",
589
618
  SUBDOMAIN_CHANGE_RATE_LIMITED: "SUBDOMAIN_CHANGE_RATE_LIMITED",
590
619
  SUBDOMAIN_FORBIDDEN: "SUBDOMAIN_FORBIDDEN",
591
620
  SUBDOMAIN_TAKEN: "SUBDOMAIN_TAKEN",
621
+ /** 400 — the CPF or CNPJ is not valid. */
622
+ TAX_ID_INVALID: "TAX_ID_INVALID",
592
623
  TYPE_MISMATCH: "TYPE_MISMATCH",
593
624
  USER_LIMITS_NOT_FOUND: "USER_LIMITS_NOT_FOUND",
594
625
  USER_NOT_FOUND: "USER_NOT_FOUND",
@@ -663,6 +694,12 @@ var ApplicationRealtimeEventType = {
663
694
  HEARTBEAT: "heartbeat"
664
695
  };
665
696
 
697
+ // payloads/v1/billing.ts
698
+ var BillingTaxIdType = {
699
+ CPF: "cpf",
700
+ CNPJ: "cnpj"
701
+ };
702
+
666
703
  // payloads/v1/database.ts
667
704
  var DatabaseType = {
668
705
  POSTGRESQL: 1,
@@ -739,8 +776,14 @@ var OrderType = {
739
776
  };
740
777
  var OrderProvider = {
741
778
  PIX: "pix",
779
+ CARD: "card",
742
780
  REDEEM_CODE: "redeem_code"
743
781
  };
782
+ var OrderCardPaymentStatus = {
783
+ SUCCEEDED: "succeeded",
784
+ REQUIRES_ACTION: "requires_action",
785
+ PROCESSING: "processing"
786
+ };
744
787
 
745
788
  // payloads/v1/snapshot.ts
746
789
  var ResourceType = {
@@ -791,6 +834,7 @@ var UserLanguage = {
791
834
  ApplicationStatus,
792
835
  ApplicationType,
793
836
  ApplicationVersion,
837
+ BillingTaxIdType,
794
838
  DatabaseCluster,
795
839
  DatabaseFilterOperator,
796
840
  DatabaseRedisKeyType,
@@ -800,6 +844,7 @@ var UserLanguage = {
800
844
  DatabaseType,
801
845
  NotificationImportance,
802
846
  NotificationType,
847
+ OrderCardPaymentStatus,
803
848
  OrderProvider,
804
849
  OrderStatus,
805
850
  OrderType,