@vertracloud/api-types 0.2.5 → 0.3.1

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",
@@ -483,9 +506,14 @@ var API_ERROR_CODES = {
483
506
  ORDER_NOT_PAID: "ORDER_NOT_PAID",
484
507
  ORDER_NOT_PAYABLE: "ORDER_NOT_PAYABLE",
485
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",
486
511
  OWNER_APP_WITHOUT_LIMITS: "OWNER_APP_WITHOUT_LIMITS",
487
512
  PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
513
+ /** 409 — a folder in the path is an existing file (writing `app/x.js` when `app` is a file). */
514
+ PATH_IS_FILE: "PATH_IS_FILE",
488
515
  PENDING_ORDER_LIMIT_REACHED: "PENDING_ORDER_LIMIT_REACHED",
516
+ PAYMENT_METHOD_UNAVAILABLE: "PAYMENT_METHOD_UNAVAILABLE",
489
517
  PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN",
490
518
  PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN",
491
519
  PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH: "PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH",
@@ -508,6 +536,8 @@ var API_ERROR_CODES = {
508
536
  SUBDOMAIN_CHANGE_RATE_LIMITED: "SUBDOMAIN_CHANGE_RATE_LIMITED",
509
537
  SUBDOMAIN_FORBIDDEN: "SUBDOMAIN_FORBIDDEN",
510
538
  SUBDOMAIN_TAKEN: "SUBDOMAIN_TAKEN",
539
+ /** 400 — the CPF or CNPJ is not valid. */
540
+ TAX_ID_INVALID: "TAX_ID_INVALID",
511
541
  TYPE_MISMATCH: "TYPE_MISMATCH",
512
542
  USER_LIMITS_NOT_FOUND: "USER_LIMITS_NOT_FOUND",
513
543
  USER_NOT_FOUND: "USER_NOT_FOUND",
@@ -582,6 +612,12 @@ var ApplicationRealtimeEventType = {
582
612
  HEARTBEAT: "heartbeat"
583
613
  };
584
614
 
615
+ // payloads/v1/billing.ts
616
+ var BillingTaxIdType = {
617
+ CPF: "cpf",
618
+ CNPJ: "cnpj"
619
+ };
620
+
585
621
  // payloads/v1/database.ts
586
622
  var DatabaseType = {
587
623
  POSTGRESQL: 1,
@@ -658,8 +694,14 @@ var OrderType = {
658
694
  };
659
695
  var OrderProvider = {
660
696
  PIX: "pix",
697
+ CARD: "card",
661
698
  REDEEM_CODE: "redeem_code"
662
699
  };
700
+ var OrderCardPaymentStatus = {
701
+ SUCCEEDED: "succeeded",
702
+ REQUIRES_ACTION: "requires_action",
703
+ PROCESSING: "processing"
704
+ };
663
705
 
664
706
  // payloads/v1/snapshot.ts
665
707
  var ResourceType = {
@@ -709,6 +751,7 @@ export {
709
751
  ApplicationStatus,
710
752
  ApplicationType,
711
753
  ApplicationVersion,
754
+ BillingTaxIdType,
712
755
  DatabaseCluster,
713
756
  DatabaseFilterOperator,
714
757
  DatabaseRedisKeyType,
@@ -718,6 +761,7 @@ export {
718
761
  DatabaseType,
719
762
  NotificationImportance,
720
763
  NotificationType,
764
+ OrderCardPaymentStatus,
721
765
  OrderProvider,
722
766
  OrderStatus,
723
767
  OrderType,