Skip to content

Commit

Permalink
feat: support BigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian committed Apr 17, 2020
1 parent 7d6888d commit 6b847b6
Show file tree
Hide file tree
Showing 18 changed files with 196 additions and 121 deletions.
4 changes: 0 additions & 4 deletions codecov.yaml

This file was deleted.

32 changes: 16 additions & 16 deletions dev/protos/firestore_admin_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1451,10 +1451,10 @@ export namespace google {
interface IProgress {

/** Progress estimatedWork */
estimatedWork?: (number|null);
estimatedWork?: (number|string|null);

/** Progress completedWork */
completedWork?: (number|null);
completedWork?: (number|string|null);
}

/** Represents a Progress. */
Expand All @@ -1467,10 +1467,10 @@ export namespace google {
constructor(properties?: google.firestore.admin.v1.IProgress);

/** Progress estimatedWork. */
public estimatedWork: number;
public estimatedWork: (number|string);

/** Progress completedWork. */
public completedWork: number;
public completedWork: (number|string);

/**
* Creates a Progress message from a plain object. Also converts values to their respective internal types.
Expand Down Expand Up @@ -3097,10 +3097,10 @@ export namespace google {
identifierValue?: (string|null);

/** UninterpretedOption positiveIntValue */
positiveIntValue?: (number|null);
positiveIntValue?: (number|string|null);

/** UninterpretedOption negativeIntValue */
negativeIntValue?: (number|null);
negativeIntValue?: (number|string|null);

/** UninterpretedOption doubleValue */
doubleValue?: (number|null);
Expand Down Expand Up @@ -3128,10 +3128,10 @@ export namespace google {
public identifierValue: string;

/** UninterpretedOption positiveIntValue. */
public positiveIntValue: number;
public positiveIntValue: (number|string);

/** UninterpretedOption negativeIntValue. */
public negativeIntValue: number;
public negativeIntValue: (number|string);

/** UninterpretedOption doubleValue. */
public doubleValue: number;
Expand Down Expand Up @@ -3506,7 +3506,7 @@ export namespace google {
interface ITimestamp {

/** Timestamp seconds */
seconds?: (number|null);
seconds?: (number|string|null);

/** Timestamp nanos */
nanos?: (number|null);
Expand All @@ -3522,7 +3522,7 @@ export namespace google {
constructor(properties?: google.protobuf.ITimestamp);

/** Timestamp seconds. */
public seconds: number;
public seconds: (number|string);

/** Timestamp nanos. */
public nanos: number;
Expand Down Expand Up @@ -3842,7 +3842,7 @@ export namespace google {
interface IInt64Value {

/** Int64Value value */
value?: (number|null);
value?: (number|string|null);
}

/** Represents an Int64Value. */
Expand All @@ -3855,7 +3855,7 @@ export namespace google {
constructor(properties?: google.protobuf.IInt64Value);

/** Int64Value value. */
public value: number;
public value: (number|string);

/**
* Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
Expand Down Expand Up @@ -3883,7 +3883,7 @@ export namespace google {
interface IUInt64Value {

/** UInt64Value value */
value?: (number|null);
value?: (number|string|null);
}

/** Represents a UInt64Value. */
Expand All @@ -3896,7 +3896,7 @@ export namespace google {
constructor(properties?: google.protobuf.IUInt64Value);

/** UInt64Value value. */
public value: number;
public value: (number|string);

/**
* Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
Expand Down Expand Up @@ -4129,7 +4129,7 @@ export namespace google {
interface IDuration {

/** Duration seconds */
seconds?: (number|null);
seconds?: (number|string|null);

/** Duration nanos */
nanos?: (number|null);
Expand All @@ -4145,7 +4145,7 @@ export namespace google {
constructor(properties?: google.protobuf.IDuration);

/** Duration seconds. */
public seconds: number;
public seconds: (number|string);

/** Duration nanos. */
public nanos: number;
Expand Down
32 changes: 16 additions & 16 deletions dev/protos/firestore_admin_v1_proto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3325,8 +3325,8 @@
* Properties of a Progress.
* @memberof google.firestore.admin.v1
* @interface IProgress
* @property {number|null} [estimatedWork] Progress estimatedWork
* @property {number|null} [completedWork] Progress completedWork
* @property {number|string|null} [estimatedWork] Progress estimatedWork
* @property {number|string|null} [completedWork] Progress completedWork
*/

/**
Expand All @@ -3346,15 +3346,15 @@

/**
* Progress estimatedWork.
* @member {number} estimatedWork
* @member {number|string} estimatedWork
* @memberof google.firestore.admin.v1.Progress
* @instance
*/
Progress.prototype.estimatedWork = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

/**
* Progress completedWork.
* @member {number} completedWork
* @member {number|string} completedWork
* @memberof google.firestore.admin.v1.Progress
* @instance
*/
Expand Down Expand Up @@ -7620,8 +7620,8 @@
* @interface IUninterpretedOption
* @property {Array.<google.protobuf.UninterpretedOption.INamePart>|null} [name] UninterpretedOption name
* @property {string|null} [identifierValue] UninterpretedOption identifierValue
* @property {number|null} [positiveIntValue] UninterpretedOption positiveIntValue
* @property {number|null} [negativeIntValue] UninterpretedOption negativeIntValue
* @property {number|string|null} [positiveIntValue] UninterpretedOption positiveIntValue
* @property {number|string|null} [negativeIntValue] UninterpretedOption negativeIntValue
* @property {number|null} [doubleValue] UninterpretedOption doubleValue
* @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue
* @property {string|null} [aggregateValue] UninterpretedOption aggregateValue
Expand Down Expand Up @@ -7661,15 +7661,15 @@

/**
* UninterpretedOption positiveIntValue.
* @member {number} positiveIntValue
* @member {number|string} positiveIntValue
* @memberof google.protobuf.UninterpretedOption
* @instance
*/
UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0;

/**
* UninterpretedOption negativeIntValue.
* @member {number} negativeIntValue
* @member {number|string} negativeIntValue
* @memberof google.protobuf.UninterpretedOption
* @instance
*/
Expand Down Expand Up @@ -8585,7 +8585,7 @@
* Properties of a Timestamp.
* @memberof google.protobuf
* @interface ITimestamp
* @property {number|null} [seconds] Timestamp seconds
* @property {number|string|null} [seconds] Timestamp seconds
* @property {number|null} [nanos] Timestamp nanos
*/

Expand All @@ -8606,7 +8606,7 @@

/**
* Timestamp seconds.
* @member {number} seconds
* @member {number|string} seconds
* @memberof google.protobuf.Timestamp
* @instance
*/
Expand Down Expand Up @@ -9361,7 +9361,7 @@
* Properties of an Int64Value.
* @memberof google.protobuf
* @interface IInt64Value
* @property {number|null} [value] Int64Value value
* @property {number|string|null} [value] Int64Value value
*/

/**
Expand All @@ -9381,7 +9381,7 @@

/**
* Int64Value value.
* @member {number} value
* @member {number|string} value
* @memberof google.protobuf.Int64Value
* @instance
*/
Expand Down Expand Up @@ -9458,7 +9458,7 @@
* Properties of a UInt64Value.
* @memberof google.protobuf
* @interface IUInt64Value
* @property {number|null} [value] UInt64Value value
* @property {number|string|null} [value] UInt64Value value
*/

/**
Expand All @@ -9478,7 +9478,7 @@

/**
* UInt64Value value.
* @member {number} value
* @member {number|string} value
* @memberof google.protobuf.UInt64Value
* @instance
*/
Expand Down Expand Up @@ -9979,7 +9979,7 @@
* Properties of a Duration.
* @memberof google.protobuf
* @interface IDuration
* @property {number|null} [seconds] Duration seconds
* @property {number|string|null} [seconds] Duration seconds
* @property {number|null} [nanos] Duration nanos
*/

Expand All @@ -10000,7 +10000,7 @@

/**
* Duration seconds.
* @member {number} seconds
* @member {number|string} seconds
* @memberof google.protobuf.Duration
* @instance
*/
Expand Down
28 changes: 14 additions & 14 deletions dev/protos/firestore_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export namespace google {
interface ITimestamp {

/** Timestamp seconds */
seconds?: (number|null);
seconds?: (number|string|null);

/** Timestamp nanos */
nanos?: (number|null);
Expand All @@ -41,7 +41,7 @@ export namespace google {
constructor(properties?: google.protobuf.ITimestamp);

/** Timestamp seconds. */
public seconds: number;
public seconds: (number|string);

/** Timestamp nanos. */
public nanos: number;
Expand Down Expand Up @@ -1348,10 +1348,10 @@ export namespace google {
identifierValue?: (string|null);

/** UninterpretedOption positiveIntValue */
positiveIntValue?: (number|null);
positiveIntValue?: (number|string|null);

/** UninterpretedOption negativeIntValue */
negativeIntValue?: (number|null);
negativeIntValue?: (number|string|null);

/** UninterpretedOption doubleValue */
doubleValue?: (number|null);
Expand Down Expand Up @@ -1379,10 +1379,10 @@ export namespace google {
public identifierValue: string;

/** UninterpretedOption positiveIntValue. */
public positiveIntValue: number;
public positiveIntValue: (number|string);

/** UninterpretedOption negativeIntValue. */
public negativeIntValue: number;
public negativeIntValue: (number|string);

/** UninterpretedOption doubleValue. */
public doubleValue: number;
Expand Down Expand Up @@ -1958,7 +1958,7 @@ export namespace google {
interface IInt64Value {

/** Int64Value value */
value?: (number|null);
value?: (number|string|null);
}

/** Represents an Int64Value. */
Expand All @@ -1971,7 +1971,7 @@ export namespace google {
constructor(properties?: google.protobuf.IInt64Value);

/** Int64Value value. */
public value: number;
public value: (number|string);

/**
* Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
Expand Down Expand Up @@ -1999,7 +1999,7 @@ export namespace google {
interface IUInt64Value {

/** UInt64Value value */
value?: (number|null);
value?: (number|string|null);
}

/** Represents a UInt64Value. */
Expand All @@ -2012,7 +2012,7 @@ export namespace google {
constructor(properties?: google.protobuf.IUInt64Value);

/** UInt64Value value. */
public value: number;
public value: (number|string);

/**
* Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
Expand Down Expand Up @@ -2333,7 +2333,7 @@ export namespace google {
interface IDuration {

/** Duration seconds */
seconds?: (number|null);
seconds?: (number|string|null);

/** Duration nanos */
nanos?: (number|null);
Expand All @@ -2349,7 +2349,7 @@ export namespace google {
constructor(properties?: google.protobuf.IDuration);

/** Duration seconds. */
public seconds: number;
public seconds: (number|string);

/** Duration nanos. */
public nanos: number;
Expand Down Expand Up @@ -2681,7 +2681,7 @@ export namespace google {
booleanValue?: (boolean|null);

/** Value integerValue */
integerValue?: (number|null);
integerValue?: (number|string|null);

/** Value doubleValue */
doubleValue?: (number|null);
Expand Down Expand Up @@ -2724,7 +2724,7 @@ export namespace google {
public booleanValue: boolean;

/** Value integerValue. */
public integerValue: number;
public integerValue: (number|string);

/** Value doubleValue. */
public doubleValue: number;
Expand Down
Loading

0 comments on commit 6b847b6

Please sign in to comment.