@uniswap/client-platform-service 0.0.24 → 0.0.25
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.
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3, Struct } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single experiment result, as sent in the x-experiments header.
|
|
5
|
+
*
|
|
6
|
+
* @generated from message uniswap.platformservice.v1.Experiment
|
|
7
|
+
*/
|
|
8
|
+
export declare class Experiment extends Message<Experiment> {
|
|
9
|
+
/**
|
|
10
|
+
* The experiment group the user is assigned to (e.g. "treatment", "control").
|
|
11
|
+
*
|
|
12
|
+
* @generated from field: string group_name = 1;
|
|
13
|
+
*/
|
|
14
|
+
groupName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Parameter values for this experiment (e.g. {"param_1": "data_1"}).
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: google.protobuf.Struct value = 2;
|
|
19
|
+
*/
|
|
20
|
+
value?: Struct;
|
|
21
|
+
constructor(data?: PartialMessage<Experiment>);
|
|
22
|
+
static readonly runtime: typeof proto3;
|
|
23
|
+
static readonly typeName = "uniswap.platformservice.v1.Experiment";
|
|
24
|
+
static readonly fields: FieldList;
|
|
25
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Experiment;
|
|
26
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Experiment;
|
|
27
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Experiment;
|
|
28
|
+
static equals(a: Experiment | PlainMessage<Experiment> | undefined, b: Experiment | PlainMessage<Experiment> | undefined): boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Map of experiment name → result, representing the full x-experiments header payload.
|
|
32
|
+
*
|
|
33
|
+
* @generated from message uniswap.platformservice.v1.Experiments
|
|
34
|
+
*/
|
|
35
|
+
export declare class Experiments extends Message<Experiments> {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: map<string, uniswap.platformservice.v1.Experiment> experiments = 1;
|
|
38
|
+
*/
|
|
39
|
+
experiments: {
|
|
40
|
+
[key: string]: Experiment;
|
|
41
|
+
};
|
|
42
|
+
constructor(data?: PartialMessage<Experiments>);
|
|
43
|
+
static readonly runtime: typeof proto3;
|
|
44
|
+
static readonly typeName = "uniswap.platformservice.v1.Experiments";
|
|
45
|
+
static readonly fields: FieldList;
|
|
46
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Experiments;
|
|
47
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Experiments;
|
|
48
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Experiments;
|
|
49
|
+
static equals(a: Experiments | PlainMessage<Experiments> | undefined, b: Experiments | PlainMessage<Experiments> | undefined): boolean;
|
|
50
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/experimentHeader.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, Struct } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Represents a single experiment result, as sent in the x-experiments header.
|
|
8
|
+
*
|
|
9
|
+
* @generated from message uniswap.platformservice.v1.Experiment
|
|
10
|
+
*/
|
|
11
|
+
export class Experiment extends Message {
|
|
12
|
+
constructor(data) {
|
|
13
|
+
super();
|
|
14
|
+
/**
|
|
15
|
+
* The experiment group the user is assigned to (e.g. "treatment", "control").
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string group_name = 1;
|
|
18
|
+
*/
|
|
19
|
+
this.groupName = "";
|
|
20
|
+
proto3.util.initPartial(data, this);
|
|
21
|
+
}
|
|
22
|
+
static fromBinary(bytes, options) {
|
|
23
|
+
return new Experiment().fromBinary(bytes, options);
|
|
24
|
+
}
|
|
25
|
+
static fromJson(jsonValue, options) {
|
|
26
|
+
return new Experiment().fromJson(jsonValue, options);
|
|
27
|
+
}
|
|
28
|
+
static fromJsonString(jsonString, options) {
|
|
29
|
+
return new Experiment().fromJsonString(jsonString, options);
|
|
30
|
+
}
|
|
31
|
+
static equals(a, b) {
|
|
32
|
+
return proto3.util.equals(Experiment, a, b);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
Experiment.runtime = proto3;
|
|
36
|
+
Experiment.typeName = "uniswap.platformservice.v1.Experiment";
|
|
37
|
+
Experiment.fields = proto3.util.newFieldList(() => [
|
|
38
|
+
{ no: 1, name: "group_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
39
|
+
{ no: 2, name: "value", kind: "message", T: Struct },
|
|
40
|
+
]);
|
|
41
|
+
/**
|
|
42
|
+
* Map of experiment name → result, representing the full x-experiments header payload.
|
|
43
|
+
*
|
|
44
|
+
* @generated from message uniswap.platformservice.v1.Experiments
|
|
45
|
+
*/
|
|
46
|
+
export class Experiments extends Message {
|
|
47
|
+
constructor(data) {
|
|
48
|
+
super();
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: map<string, uniswap.platformservice.v1.Experiment> experiments = 1;
|
|
51
|
+
*/
|
|
52
|
+
this.experiments = {};
|
|
53
|
+
proto3.util.initPartial(data, this);
|
|
54
|
+
}
|
|
55
|
+
static fromBinary(bytes, options) {
|
|
56
|
+
return new Experiments().fromBinary(bytes, options);
|
|
57
|
+
}
|
|
58
|
+
static fromJson(jsonValue, options) {
|
|
59
|
+
return new Experiments().fromJson(jsonValue, options);
|
|
60
|
+
}
|
|
61
|
+
static fromJsonString(jsonString, options) {
|
|
62
|
+
return new Experiments().fromJsonString(jsonString, options);
|
|
63
|
+
}
|
|
64
|
+
static equals(a, b) {
|
|
65
|
+
return proto3.util.equals(Experiments, a, b);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
Experiments.runtime = proto3;
|
|
69
|
+
Experiments.typeName = "uniswap.platformservice.v1.Experiments";
|
|
70
|
+
Experiments.fields = proto3.util.newFieldList(() => [
|
|
71
|
+
{ no: 1, name: "experiments", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Experiment } },
|
|
72
|
+
]);
|