values.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.BsonBinary = exports.BsonMaxKey = exports.BsonMinKey = exports.BsonDecimal128 = exports.BsonTimestamp = exports.BsonFloat = exports.BsonInt64 = exports.BsonInt32 = exports.BsonJavascriptCodeWithScope = exports.BsonSymbol = exports.BsonJavascriptCode = exports.BsonDbPointer = exports.BsonObjectId = void 0;
  4. class BsonObjectId {
  5. constructor(timestamp, process, counter) {
  6. this.timestamp = timestamp;
  7. this.process = process;
  8. this.counter = counter;
  9. }
  10. }
  11. exports.BsonObjectId = BsonObjectId;
  12. class BsonDbPointer {
  13. constructor(name, id) {
  14. this.name = name;
  15. this.id = id;
  16. }
  17. }
  18. exports.BsonDbPointer = BsonDbPointer;
  19. class BsonJavascriptCode {
  20. constructor(code) {
  21. this.code = code;
  22. }
  23. }
  24. exports.BsonJavascriptCode = BsonJavascriptCode;
  25. class BsonSymbol {
  26. constructor(symbol) {
  27. this.symbol = symbol;
  28. }
  29. }
  30. exports.BsonSymbol = BsonSymbol;
  31. class BsonJavascriptCodeWithScope {
  32. constructor(code, scope) {
  33. this.code = code;
  34. this.scope = scope;
  35. }
  36. }
  37. exports.BsonJavascriptCodeWithScope = BsonJavascriptCodeWithScope;
  38. class BsonInt32 {
  39. constructor(value) {
  40. this.value = value;
  41. }
  42. }
  43. exports.BsonInt32 = BsonInt32;
  44. class BsonInt64 {
  45. constructor(value) {
  46. this.value = value;
  47. }
  48. }
  49. exports.BsonInt64 = BsonInt64;
  50. class BsonFloat {
  51. constructor(value) {
  52. this.value = value;
  53. }
  54. }
  55. exports.BsonFloat = BsonFloat;
  56. class BsonTimestamp {
  57. constructor(increment, timestamp) {
  58. this.increment = increment;
  59. this.timestamp = timestamp;
  60. }
  61. }
  62. exports.BsonTimestamp = BsonTimestamp;
  63. class BsonDecimal128 {
  64. constructor(data) {
  65. this.data = data;
  66. }
  67. }
  68. exports.BsonDecimal128 = BsonDecimal128;
  69. class BsonMinKey {
  70. }
  71. exports.BsonMinKey = BsonMinKey;
  72. class BsonMaxKey {
  73. }
  74. exports.BsonMaxKey = BsonMaxKey;
  75. class BsonBinary {
  76. constructor(subtype, data) {
  77. this.subtype = subtype;
  78. this.data = data;
  79. }
  80. }
  81. exports.BsonBinary = BsonBinary;
  82. //# sourceMappingURL=values.js.map