constants.js 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.BSON_BINARY_SUBTYPE_USER_DEFINED = exports.BSON_BINARY_SUBTYPE_COLUMN = exports.BSON_BINARY_SUBTYPE_ENCRYPTED = exports.BSON_BINARY_SUBTYPE_MD5 = exports.BSON_BINARY_SUBTYPE_UUID_NEW = exports.BSON_BINARY_SUBTYPE_UUID = exports.BSON_BINARY_SUBTYPE_BYTE_ARRAY = exports.BSON_BINARY_SUBTYPE_FUNCTION = exports.BSON_BINARY_SUBTYPE_DEFAULT = exports.BSON_DATA_MAX_KEY = exports.BSON_DATA_MIN_KEY = exports.BSON_DATA_DECIMAL128 = exports.BSON_DATA_LONG = exports.BSON_DATA_TIMESTAMP = exports.BSON_DATA_INT = exports.BSON_DATA_CODE_W_SCOPE = exports.BSON_DATA_SYMBOL = exports.BSON_DATA_CODE = exports.BSON_DATA_DBPOINTER = exports.BSON_DATA_REGEXP = exports.BSON_DATA_NULL = exports.BSON_DATA_DATE = exports.BSON_DATA_BOOLEAN = exports.BSON_DATA_OID = exports.BSON_DATA_UNDEFINED = exports.BSON_DATA_BINARY = exports.BSON_DATA_ARRAY = exports.BSON_DATA_OBJECT = exports.BSON_DATA_STRING = exports.BSON_DATA_NUMBER = exports.JS_INT_MIN = exports.JS_INT_MAX = exports.BSON_INT64_MIN = exports.BSON_INT64_MAX = exports.BSON_INT32_MIN = exports.BSON_INT32_MAX = void 0;
  4. /** @internal */
  5. exports.BSON_INT32_MAX = 0x7fffffff;
  6. /** @internal */
  7. exports.BSON_INT32_MIN = -0x80000000;
  8. /** @internal */
  9. exports.BSON_INT64_MAX = Math.pow(2, 63) - 1;
  10. /** @internal */
  11. exports.BSON_INT64_MIN = -Math.pow(2, 63);
  12. /**
  13. * Any integer up to 2^53 can be precisely represented by a double.
  14. * @internal
  15. */
  16. exports.JS_INT_MAX = Math.pow(2, 53);
  17. /**
  18. * Any integer down to -2^53 can be precisely represented by a double.
  19. * @internal
  20. */
  21. exports.JS_INT_MIN = -Math.pow(2, 53);
  22. /** Number BSON Type @internal */
  23. exports.BSON_DATA_NUMBER = 1;
  24. /** String BSON Type @internal */
  25. exports.BSON_DATA_STRING = 2;
  26. /** Object BSON Type @internal */
  27. exports.BSON_DATA_OBJECT = 3;
  28. /** Array BSON Type @internal */
  29. exports.BSON_DATA_ARRAY = 4;
  30. /** Binary BSON Type @internal */
  31. exports.BSON_DATA_BINARY = 5;
  32. /** Binary BSON Type @internal */
  33. exports.BSON_DATA_UNDEFINED = 6;
  34. /** ObjectId BSON Type @internal */
  35. exports.BSON_DATA_OID = 7;
  36. /** Boolean BSON Type @internal */
  37. exports.BSON_DATA_BOOLEAN = 8;
  38. /** Date BSON Type @internal */
  39. exports.BSON_DATA_DATE = 9;
  40. /** null BSON Type @internal */
  41. exports.BSON_DATA_NULL = 10;
  42. /** RegExp BSON Type @internal */
  43. exports.BSON_DATA_REGEXP = 11;
  44. /** Code BSON Type @internal */
  45. exports.BSON_DATA_DBPOINTER = 12;
  46. /** Code BSON Type @internal */
  47. exports.BSON_DATA_CODE = 13;
  48. /** Symbol BSON Type @internal */
  49. exports.BSON_DATA_SYMBOL = 14;
  50. /** Code with Scope BSON Type @internal */
  51. exports.BSON_DATA_CODE_W_SCOPE = 15;
  52. /** 32 bit Integer BSON Type @internal */
  53. exports.BSON_DATA_INT = 16;
  54. /** Timestamp BSON Type @internal */
  55. exports.BSON_DATA_TIMESTAMP = 17;
  56. /** Long BSON Type @internal */
  57. exports.BSON_DATA_LONG = 18;
  58. /** Decimal128 BSON Type @internal */
  59. exports.BSON_DATA_DECIMAL128 = 19;
  60. /** MinKey BSON Type @internal */
  61. exports.BSON_DATA_MIN_KEY = 0xff;
  62. /** MaxKey BSON Type @internal */
  63. exports.BSON_DATA_MAX_KEY = 0x7f;
  64. /** Binary Default Type @internal */
  65. exports.BSON_BINARY_SUBTYPE_DEFAULT = 0;
  66. /** Binary Function Type @internal */
  67. exports.BSON_BINARY_SUBTYPE_FUNCTION = 1;
  68. /** Binary Byte Array Type @internal */
  69. exports.BSON_BINARY_SUBTYPE_BYTE_ARRAY = 2;
  70. /** Binary Deprecated UUID Type @deprecated Please use BSON_BINARY_SUBTYPE_UUID_NEW @internal */
  71. exports.BSON_BINARY_SUBTYPE_UUID = 3;
  72. /** Binary UUID Type @internal */
  73. exports.BSON_BINARY_SUBTYPE_UUID_NEW = 4;
  74. /** Binary MD5 Type @internal */
  75. exports.BSON_BINARY_SUBTYPE_MD5 = 5;
  76. /** Encrypted BSON type @internal */
  77. exports.BSON_BINARY_SUBTYPE_ENCRYPTED = 6;
  78. /** Column BSON type @internal */
  79. exports.BSON_BINARY_SUBTYPE_COLUMN = 7;
  80. /** Binary User Defined Type @internal */
  81. exports.BSON_BINARY_SUBTYPE_USER_DEFINED = 128;
  82. //# sourceMappingURL=constants.js.map