Skip to content

Commit

Permalink
feat: Use Rest
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian committed Apr 8, 2022
1 parent 73de37a commit 6166aa3
Show file tree
Hide file tree
Showing 15 changed files with 2,206 additions and 2,060 deletions.
328 changes: 164 additions & 164 deletions dev/protos/firestore_v1_proto_api.d.ts
Expand Up @@ -374,6 +374,166 @@ export namespace google {
public toJSON(): { [k: string]: any };
}

/** Properties of a Struct. */
interface IStruct {

/** Struct fields */
fields?: ({ [k: string]: google.protobuf.IValue }|null);
}

/** Represents a Struct. */
class Struct implements IStruct {

/**
* Constructs a new Struct.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IStruct);

/** Struct fields. */
public fields: { [k: string]: google.protobuf.IValue };

/**
* Creates a Struct message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Struct
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;

/**
* Creates a plain object from a Struct message. Also converts values to other types if specified.
* @param message Struct
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this Struct to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** Properties of a Value. */
interface IValue {

/** Value nullValue */
nullValue?: (google.protobuf.NullValue|null);

/** Value numberValue */
numberValue?: (number|null);

/** Value stringValue */
stringValue?: (string|null);

/** Value boolValue */
boolValue?: (boolean|null);

/** Value structValue */
structValue?: (google.protobuf.IStruct|null);

/** Value listValue */
listValue?: (google.protobuf.IListValue|null);
}

/** Represents a Value. */
class Value implements IValue {

/**
* Constructs a new Value.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IValue);

/** Value nullValue. */
public nullValue?: (google.protobuf.NullValue|null);

/** Value numberValue. */
public numberValue?: (number|null);

/** Value stringValue. */
public stringValue?: (string|null);

/** Value boolValue. */
public boolValue?: (boolean|null);

/** Value structValue. */
public structValue?: (google.protobuf.IStruct|null);

/** Value listValue. */
public listValue?: (google.protobuf.IListValue|null);

/** Value kind. */
public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");

/**
* Creates a Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Value
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.Value;

/**
* Creates a plain object from a Value message. Also converts values to other types if specified.
* @param message Value
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** NullValue enum. */
type NullValue =
"NULL_VALUE";

/** Properties of a ListValue. */
interface IListValue {

/** ListValue values */
values?: (google.protobuf.IValue[]|null);
}

/** Represents a ListValue. */
class ListValue implements IListValue {

/**
* Constructs a new ListValue.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IListValue);

/** ListValue values. */
public values: google.protobuf.IValue[];

/**
* Creates a ListValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListValue
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;

/**
* Creates a plain object from a ListValue message. Also converts values to other types if specified.
* @param message ListValue
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this ListValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** Properties of a FileDescriptorSet. */
interface IFileDescriptorSet {

Expand Down Expand Up @@ -1983,166 +2143,6 @@ export namespace google {
}
}

/** Properties of a Struct. */
interface IStruct {

/** Struct fields */
fields?: ({ [k: string]: google.protobuf.IValue }|null);
}

/** Represents a Struct. */
class Struct implements IStruct {

/**
* Constructs a new Struct.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IStruct);

/** Struct fields. */
public fields: { [k: string]: google.protobuf.IValue };

/**
* Creates a Struct message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Struct
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;

/**
* Creates a plain object from a Struct message. Also converts values to other types if specified.
* @param message Struct
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this Struct to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** Properties of a Value. */
interface IValue {

/** Value nullValue */
nullValue?: (google.protobuf.NullValue|null);

/** Value numberValue */
numberValue?: (number|null);

/** Value stringValue */
stringValue?: (string|null);

/** Value boolValue */
boolValue?: (boolean|null);

/** Value structValue */
structValue?: (google.protobuf.IStruct|null);

/** Value listValue */
listValue?: (google.protobuf.IListValue|null);
}

/** Represents a Value. */
class Value implements IValue {

/**
* Constructs a new Value.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IValue);

/** Value nullValue. */
public nullValue?: (google.protobuf.NullValue|null);

/** Value numberValue. */
public numberValue?: (number|null);

/** Value stringValue. */
public stringValue?: (string|null);

/** Value boolValue. */
public boolValue?: (boolean|null);

/** Value structValue. */
public structValue?: (google.protobuf.IStruct|null);

/** Value listValue. */
public listValue?: (google.protobuf.IListValue|null);

/** Value kind. */
public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");

/**
* Creates a Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Value
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.Value;

/**
* Creates a plain object from a Value message. Also converts values to other types if specified.
* @param message Value
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** NullValue enum. */
type NullValue =
"NULL_VALUE";

/** Properties of a ListValue. */
interface IListValue {

/** ListValue values */
values?: (google.protobuf.IValue[]|null);
}

/** Represents a ListValue. */
class ListValue implements IListValue {

/**
* Constructs a new ListValue.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IListValue);

/** ListValue values. */
public values: google.protobuf.IValue[];

/**
* Creates a ListValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListValue
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;

/**
* Creates a plain object from a ListValue message. Also converts values to other types if specified.
* @param message ListValue
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this ListValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** Properties of an Empty. */
interface IEmpty {
}
Expand Down Expand Up @@ -5584,6 +5584,10 @@ export namespace google {
public toJSON(): { [k: string]: any };
}

/** Direction enum. */
type Direction =
"DIRECTION_UNSPECIFIED"| "ASCENDING"| "DESCENDING";

/** Properties of a FieldReference. */
interface IFieldReference {

Expand Down Expand Up @@ -5665,10 +5669,6 @@ export namespace google {
*/
public toJSON(): { [k: string]: any };
}

/** Direction enum. */
type Direction =
"DIRECTION_UNSPECIFIED"| "ASCENDING"| "DESCENDING";
}

/** Properties of a Cursor. */
Expand Down

0 comments on commit 6166aa3

Please sign in to comment.