@kenji71089/evaluation 0.0.1

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.
Files changed (209) hide show
  1. package/.release-please-manifest.json +3 -0
  2. package/README.md +9 -0
  3. package/eslint.config.mjs +27 -0
  4. package/lib/clauseEvaluator.d.ts +22 -0
  5. package/lib/clauseEvaluator.js +299 -0
  6. package/lib/clauseEvaluator.mjs +214 -0
  7. package/lib/dependencyEvaluator.d.ts +6 -0
  8. package/lib/dependencyEvaluator.js +46 -0
  9. package/lib/dependencyEvaluator.mjs +19 -0
  10. package/lib/errors.d.ts +9 -0
  11. package/lib/errors.js +15 -0
  12. package/lib/errors.mjs +12 -0
  13. package/lib/evaluation.d.ts +25 -0
  14. package/lib/evaluation.js +503 -0
  15. package/lib/evaluation.mjs +328 -0
  16. package/lib/google/api/annotations_pb.d.ts +8 -0
  17. package/lib/google/api/annotations_pb.js +40 -0
  18. package/lib/google/api/annotations_pb.mjs +54 -0
  19. package/lib/google/api/annotations_pb_service.d.ts +3 -0
  20. package/lib/google/api/annotations_pb_service.js +3 -0
  21. package/lib/google/api/annotations_pb_service.mjs +3 -0
  22. package/lib/google/api/http_pb.d.ts +132 -0
  23. package/lib/google/api/http_pb.js +860 -0
  24. package/lib/google/api/http_pb.mjs +982 -0
  25. package/lib/google/api/http_pb_service.d.ts +3 -0
  26. package/lib/google/api/http_pb_service.js +3 -0
  27. package/lib/google/api/http_pb_service.mjs +3 -0
  28. package/lib/google/rpc/code_pb.d.ts +26 -0
  29. package/lib/google/rpc/code_pb.js +44 -0
  30. package/lib/google/rpc/code_pb.mjs +48 -0
  31. package/lib/google/rpc/code_pb_service.d.ts +3 -0
  32. package/lib/google/rpc/code_pb_service.js +3 -0
  33. package/lib/google/rpc/code_pb_service.mjs +3 -0
  34. package/lib/google/rpc/error_details_pb.d.ts +322 -0
  35. package/lib/google/rpc/error_details_pb.js +2220 -0
  36. package/lib/google/rpc/error_details_pb.mjs +2499 -0
  37. package/lib/google/rpc/error_details_pb_service.d.ts +3 -0
  38. package/lib/google/rpc/error_details_pb_service.js +3 -0
  39. package/lib/google/rpc/error_details_pb_service.mjs +3 -0
  40. package/lib/google/rpc/status_pb.d.ts +36 -0
  41. package/lib/google/rpc/status_pb.js +235 -0
  42. package/lib/google/rpc/status_pb.mjs +268 -0
  43. package/lib/google/rpc/status_pb_service.d.ts +3 -0
  44. package/lib/google/rpc/status_pb_service.js +3 -0
  45. package/lib/google/rpc/status_pb_service.mjs +3 -0
  46. package/lib/index.d.ts +20 -0
  47. package/lib/index.js +199 -0
  48. package/lib/index.mjs +46 -0
  49. package/lib/modelFactory.d.ts +64 -0
  50. package/lib/modelFactory.js +206 -0
  51. package/lib/modelFactory.mjs +176 -0
  52. package/lib/proto/event/client/event_pb.d.ts +761 -0
  53. package/lib/proto/event/client/event_pb.js +5195 -0
  54. package/lib/proto/event/client/event_pb.mjs +5865 -0
  55. package/lib/proto/event/client/event_pb_service.d.ts +3 -0
  56. package/lib/proto/event/client/event_pb_service.js +3 -0
  57. package/lib/proto/event/client/event_pb_service.mjs +3 -0
  58. package/lib/proto/event/domain/event_pb.d.ts +4518 -0
  59. package/lib/proto/event/domain/event_pb.js +10834 -0
  60. package/lib/proto/event/domain/event_pb.mjs +33315 -0
  61. package/lib/proto/event/domain/event_pb_service.d.ts +3 -0
  62. package/lib/proto/event/domain/event_pb_service.js +3 -0
  63. package/lib/proto/event/domain/event_pb_service.mjs +3 -0
  64. package/lib/proto/event/domain/localized_message_pb.d.ts +29 -0
  65. package/lib/proto/event/domain/localized_message_pb.js +183 -0
  66. package/lib/proto/event/domain/localized_message_pb.mjs +206 -0
  67. package/lib/proto/event/domain/localized_message_pb_service.d.ts +3 -0
  68. package/lib/proto/event/domain/localized_message_pb_service.js +3 -0
  69. package/lib/proto/event/domain/localized_message_pb_service.mjs +3 -0
  70. package/lib/proto/event/service/feature_pb.d.ts +44 -0
  71. package/lib/proto/event/service/feature_pb.js +277 -0
  72. package/lib/proto/event/service/feature_pb.mjs +319 -0
  73. package/lib/proto/event/service/feature_pb_service.d.ts +3 -0
  74. package/lib/proto/event/service/feature_pb_service.js +3 -0
  75. package/lib/proto/event/service/feature_pb_service.mjs +3 -0
  76. package/lib/proto/event/service/segment_pb.d.ts +51 -0
  77. package/lib/proto/event/service/segment_pb.js +324 -0
  78. package/lib/proto/event/service/segment_pb.mjs +375 -0
  79. package/lib/proto/event/service/segment_pb_service.d.ts +3 -0
  80. package/lib/proto/event/service/segment_pb_service.js +3 -0
  81. package/lib/proto/event/service/segment_pb_service.mjs +3 -0
  82. package/lib/proto/event/service/user_pb.d.ts +49 -0
  83. package/lib/proto/event/service/user_pb.js +315 -0
  84. package/lib/proto/event/service/user_pb.mjs +362 -0
  85. package/lib/proto/event/service/user_pb_service.d.ts +3 -0
  86. package/lib/proto/event/service/user_pb_service.js +3 -0
  87. package/lib/proto/event/service/user_pb_service.mjs +3 -0
  88. package/lib/proto/feature/clause_pb.d.ts +57 -0
  89. package/lib/proto/feature/clause_pb.js +277 -0
  90. package/lib/proto/feature/clause_pb.mjs +312 -0
  91. package/lib/proto/feature/clause_pb_service.d.ts +3 -0
  92. package/lib/proto/feature/clause_pb_service.js +3 -0
  93. package/lib/proto/feature/clause_pb_service.mjs +3 -0
  94. package/lib/proto/feature/command_pb.d.ts +1213 -0
  95. package/lib/proto/feature/command_pb.js +8260 -0
  96. package/lib/proto/feature/command_pb.mjs +9275 -0
  97. package/lib/proto/feature/command_pb_service.d.ts +3 -0
  98. package/lib/proto/feature/command_pb_service.js +3 -0
  99. package/lib/proto/feature/command_pb_service.mjs +3 -0
  100. package/lib/proto/feature/evaluation_pb.d.ts +111 -0
  101. package/lib/proto/feature/evaluation_pb.js +685 -0
  102. package/lib/proto/feature/evaluation_pb.mjs +793 -0
  103. package/lib/proto/feature/evaluation_pb_service.d.ts +3 -0
  104. package/lib/proto/feature/evaluation_pb_service.js +3 -0
  105. package/lib/proto/feature/evaluation_pb_service.mjs +3 -0
  106. package/lib/proto/feature/feature_last_used_info_pb.d.ts +45 -0
  107. package/lib/proto/feature/feature_last_used_info_pb.js +283 -0
  108. package/lib/proto/feature/feature_last_used_info_pb.mjs +326 -0
  109. package/lib/proto/feature/feature_last_used_info_pb_service.d.ts +3 -0
  110. package/lib/proto/feature/feature_last_used_info_pb_service.js +3 -0
  111. package/lib/proto/feature/feature_last_used_info_pb_service.mjs +3 -0
  112. package/lib/proto/feature/feature_pb.d.ts +192 -0
  113. package/lib/proto/feature/feature_pb.js +1210 -0
  114. package/lib/proto/feature/feature_pb.mjs +1413 -0
  115. package/lib/proto/feature/feature_pb_service.d.ts +3 -0
  116. package/lib/proto/feature/feature_pb_service.js +3 -0
  117. package/lib/proto/feature/feature_pb_service.mjs +3 -0
  118. package/lib/proto/feature/flag_trigger_pb.d.ts +84 -0
  119. package/lib/proto/feature/flag_trigger_pb.js +452 -0
  120. package/lib/proto/feature/flag_trigger_pb.mjs +525 -0
  121. package/lib/proto/feature/flag_trigger_pb_service.d.ts +3 -0
  122. package/lib/proto/feature/flag_trigger_pb_service.js +3 -0
  123. package/lib/proto/feature/flag_trigger_pb_service.mjs +3 -0
  124. package/lib/proto/feature/prerequisite_pb.d.ts +29 -0
  125. package/lib/proto/feature/prerequisite_pb.js +183 -0
  126. package/lib/proto/feature/prerequisite_pb.mjs +206 -0
  127. package/lib/proto/feature/prerequisite_pb_service.d.ts +3 -0
  128. package/lib/proto/feature/prerequisite_pb_service.js +3 -0
  129. package/lib/proto/feature/prerequisite_pb_service.mjs +3 -0
  130. package/lib/proto/feature/reason_pb.d.ts +40 -0
  131. package/lib/proto/feature/reason_pb.js +196 -0
  132. package/lib/proto/feature/reason_pb.mjs +219 -0
  133. package/lib/proto/feature/reason_pb_service.d.ts +3 -0
  134. package/lib/proto/feature/reason_pb_service.js +3 -0
  135. package/lib/proto/feature/reason_pb_service.mjs +3 -0
  136. package/lib/proto/feature/rule_pb.d.ts +39 -0
  137. package/lib/proto/feature/rule_pb.js +254 -0
  138. package/lib/proto/feature/rule_pb.mjs +291 -0
  139. package/lib/proto/feature/rule_pb_service.d.ts +3 -0
  140. package/lib/proto/feature/rule_pb_service.js +3 -0
  141. package/lib/proto/feature/rule_pb_service.mjs +3 -0
  142. package/lib/proto/feature/segment_pb.d.ts +161 -0
  143. package/lib/proto/feature/segment_pb.js +974 -0
  144. package/lib/proto/feature/segment_pb.mjs +1127 -0
  145. package/lib/proto/feature/segment_pb_service.d.ts +3 -0
  146. package/lib/proto/feature/segment_pb_service.js +3 -0
  147. package/lib/proto/feature/segment_pb_service.mjs +3 -0
  148. package/lib/proto/feature/service_pb.d.ts +2158 -0
  149. package/lib/proto/feature/service_pb.js +5363 -0
  150. package/lib/proto/feature/service_pb.mjs +16348 -0
  151. package/lib/proto/feature/service_pb_service.d.ts +747 -0
  152. package/lib/proto/feature/service_pb_service.js +1424 -0
  153. package/lib/proto/feature/service_pb_service.mjs +1501 -0
  154. package/lib/proto/feature/strategy_pb.d.ts +110 -0
  155. package/lib/proto/feature/strategy_pb.js +712 -0
  156. package/lib/proto/feature/strategy_pb.mjs +803 -0
  157. package/lib/proto/feature/strategy_pb_service.d.ts +3 -0
  158. package/lib/proto/feature/strategy_pb_service.js +3 -0
  159. package/lib/proto/feature/strategy_pb_service.mjs +3 -0
  160. package/lib/proto/feature/target_pb.d.ts +31 -0
  161. package/lib/proto/feature/target_pb.js +207 -0
  162. package/lib/proto/feature/target_pb.mjs +232 -0
  163. package/lib/proto/feature/target_pb_service.d.ts +3 -0
  164. package/lib/proto/feature/target_pb_service.js +3 -0
  165. package/lib/proto/feature/target_pb_service.mjs +3 -0
  166. package/lib/proto/feature/variation_pb.d.ts +37 -0
  167. package/lib/proto/feature/variation_pb.js +233 -0
  168. package/lib/proto/feature/variation_pb.mjs +266 -0
  169. package/lib/proto/feature/variation_pb_service.d.ts +3 -0
  170. package/lib/proto/feature/variation_pb_service.js +3 -0
  171. package/lib/proto/feature/variation_pb_service.mjs +3 -0
  172. package/lib/proto/gateway/service_pb.d.ts +772 -0
  173. package/lib/proto/gateway/service_pb.js +5249 -0
  174. package/lib/proto/gateway/service_pb.mjs +6001 -0
  175. package/lib/proto/gateway/service_pb_service.d.ts +253 -0
  176. package/lib/proto/gateway/service_pb_service.js +436 -0
  177. package/lib/proto/gateway/service_pb_service.mjs +461 -0
  178. package/lib/proto/user/user_pb.d.ts +58 -0
  179. package/lib/proto/user/user_pb.js +410 -0
  180. package/lib/proto/user/user_pb.mjs +460 -0
  181. package/lib/proto/user/user_pb_service.d.ts +3 -0
  182. package/lib/proto/user/user_pb_service.js +3 -0
  183. package/lib/proto/user/user_pb_service.mjs +3 -0
  184. package/lib/protoc-gen-openapiv2/options/annotations_pb.d.ts +16 -0
  185. package/lib/protoc-gen-openapiv2/options/annotations_pb.js +100 -0
  186. package/lib/protoc-gen-openapiv2/options/annotations_pb.mjs +158 -0
  187. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  188. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  189. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.mjs +3 -0
  190. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +834 -0
  191. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.js +5456 -0
  192. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.mjs +6256 -0
  193. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  194. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  195. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.mjs +3 -0
  196. package/lib/ruleEvaluator.d.ts +13 -0
  197. package/lib/ruleEvaluator.js +80 -0
  198. package/lib/ruleEvaluator.mjs +41 -0
  199. package/lib/segmentEvaluator.d.ts +7 -0
  200. package/lib/segmentEvaluator.js +74 -0
  201. package/lib/segmentEvaluator.mjs +34 -0
  202. package/lib/strategyEvaluator.d.ts +10 -0
  203. package/lib/strategyEvaluator.js +135 -0
  204. package/lib/strategyEvaluator.mjs +83 -0
  205. package/lib/userEvaluation.d.ts +8 -0
  206. package/lib/userEvaluation.js +70 -0
  207. package/lib/userEvaluation.mjs +60 -0
  208. package/package.json +46 -0
  209. package/release-please-config.json +22 -0
@@ -0,0 +1,192 @@
1
+ // package: bucketeer.feature
2
+ // file: proto/feature/feature.proto
3
+
4
+ import * as jspb from 'google-protobuf';
5
+ import * as proto_feature_rule_pb from '../../proto/feature/rule_pb';
6
+ import * as proto_feature_target_pb from '../../proto/feature/target_pb';
7
+ import * as proto_feature_variation_pb from '../../proto/feature/variation_pb';
8
+ import * as proto_feature_strategy_pb from '../../proto/feature/strategy_pb';
9
+ import * as proto_feature_feature_last_used_info_pb from '../../proto/feature/feature_last_used_info_pb';
10
+ import * as proto_feature_prerequisite_pb from '../../proto/feature/prerequisite_pb';
11
+
12
+ export class Feature extends jspb.Message {
13
+ getId(): string;
14
+ setId(value: string): void;
15
+
16
+ getName(): string;
17
+ setName(value: string): void;
18
+
19
+ getDescription(): string;
20
+ setDescription(value: string): void;
21
+
22
+ getEnabled(): boolean;
23
+ setEnabled(value: boolean): void;
24
+
25
+ getDeleted(): boolean;
26
+ setDeleted(value: boolean): void;
27
+
28
+ getEvaluationUndelayable(): boolean;
29
+ setEvaluationUndelayable(value: boolean): void;
30
+
31
+ getTtl(): number;
32
+ setTtl(value: number): void;
33
+
34
+ getVersion(): number;
35
+ setVersion(value: number): void;
36
+
37
+ getCreatedAt(): number;
38
+ setCreatedAt(value: number): void;
39
+
40
+ getUpdatedAt(): number;
41
+ setUpdatedAt(value: number): void;
42
+
43
+ clearVariationsList(): void;
44
+ getVariationsList(): Array<proto_feature_variation_pb.Variation>;
45
+ setVariationsList(value: Array<proto_feature_variation_pb.Variation>): void;
46
+ addVariations(value?: proto_feature_variation_pb.Variation, index?: number): proto_feature_variation_pb.Variation;
47
+
48
+ clearTargetsList(): void;
49
+ getTargetsList(): Array<proto_feature_target_pb.Target>;
50
+ setTargetsList(value: Array<proto_feature_target_pb.Target>): void;
51
+ addTargets(value?: proto_feature_target_pb.Target, index?: number): proto_feature_target_pb.Target;
52
+
53
+ clearRulesList(): void;
54
+ getRulesList(): Array<proto_feature_rule_pb.Rule>;
55
+ setRulesList(value: Array<proto_feature_rule_pb.Rule>): void;
56
+ addRules(value?: proto_feature_rule_pb.Rule, index?: number): proto_feature_rule_pb.Rule;
57
+
58
+ hasDefaultStrategy(): boolean;
59
+ clearDefaultStrategy(): void;
60
+ getDefaultStrategy(): proto_feature_strategy_pb.Strategy | undefined;
61
+ setDefaultStrategy(value?: proto_feature_strategy_pb.Strategy): void;
62
+
63
+ getOffVariation(): string;
64
+ setOffVariation(value: string): void;
65
+
66
+ clearTagsList(): void;
67
+ getTagsList(): Array<string>;
68
+ setTagsList(value: Array<string>): void;
69
+ addTags(value: string, index?: number): string;
70
+
71
+ hasLastUsedInfo(): boolean;
72
+ clearLastUsedInfo(): void;
73
+ getLastUsedInfo(): proto_feature_feature_last_used_info_pb.FeatureLastUsedInfo | undefined;
74
+ setLastUsedInfo(value?: proto_feature_feature_last_used_info_pb.FeatureLastUsedInfo): void;
75
+
76
+ getMaintainer(): string;
77
+ setMaintainer(value: string): void;
78
+
79
+ getVariationType(): Feature.VariationTypeMap[keyof Feature.VariationTypeMap];
80
+ setVariationType(value: Feature.VariationTypeMap[keyof Feature.VariationTypeMap]): void;
81
+
82
+ getArchived(): boolean;
83
+ setArchived(value: boolean): void;
84
+
85
+ clearPrerequisitesList(): void;
86
+ getPrerequisitesList(): Array<proto_feature_prerequisite_pb.Prerequisite>;
87
+ setPrerequisitesList(value: Array<proto_feature_prerequisite_pb.Prerequisite>): void;
88
+ addPrerequisites(value?: proto_feature_prerequisite_pb.Prerequisite, index?: number): proto_feature_prerequisite_pb.Prerequisite;
89
+
90
+ getSamplingSeed(): string;
91
+ setSamplingSeed(value: string): void;
92
+
93
+ serializeBinary(): Uint8Array;
94
+ toObject(includeInstance?: boolean): Feature.AsObject;
95
+ static toObject(includeInstance: boolean, msg: Feature): Feature.AsObject;
96
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
97
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
98
+ static serializeBinaryToWriter(message: Feature, writer: jspb.BinaryWriter): void;
99
+ static deserializeBinary(bytes: Uint8Array): Feature;
100
+ static deserializeBinaryFromReader(message: Feature, reader: jspb.BinaryReader): Feature;
101
+ }
102
+
103
+ export namespace Feature {
104
+ export type AsObject = {
105
+ id: string,
106
+ name: string,
107
+ description: string,
108
+ enabled: boolean,
109
+ deleted: boolean,
110
+ evaluationUndelayable: boolean,
111
+ ttl: number,
112
+ version: number,
113
+ createdAt: number,
114
+ updatedAt: number,
115
+ variationsList: Array<proto_feature_variation_pb.Variation.AsObject>,
116
+ targetsList: Array<proto_feature_target_pb.Target.AsObject>,
117
+ rulesList: Array<proto_feature_rule_pb.Rule.AsObject>,
118
+ defaultStrategy?: proto_feature_strategy_pb.Strategy.AsObject,
119
+ offVariation: string,
120
+ tagsList: Array<string>,
121
+ lastUsedInfo?: proto_feature_feature_last_used_info_pb.FeatureLastUsedInfo.AsObject,
122
+ maintainer: string,
123
+ variationType: Feature.VariationTypeMap[keyof Feature.VariationTypeMap],
124
+ archived: boolean,
125
+ prerequisitesList: Array<proto_feature_prerequisite_pb.Prerequisite.AsObject>,
126
+ samplingSeed: string,
127
+ }
128
+
129
+ export interface VariationTypeMap {
130
+ STRING: 0;
131
+ BOOLEAN: 1;
132
+ NUMBER: 2;
133
+ JSON: 3;
134
+ }
135
+
136
+ export const VariationType: VariationTypeMap;
137
+ }
138
+
139
+ export class Features extends jspb.Message {
140
+ clearFeaturesList(): void;
141
+ getFeaturesList(): Array<Feature>;
142
+ setFeaturesList(value: Array<Feature>): void;
143
+ addFeatures(value?: Feature, index?: number): Feature;
144
+
145
+ getId(): string;
146
+ setId(value: string): void;
147
+
148
+ serializeBinary(): Uint8Array;
149
+ toObject(includeInstance?: boolean): Features.AsObject;
150
+ static toObject(includeInstance: boolean, msg: Features): Features.AsObject;
151
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
152
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
153
+ static serializeBinaryToWriter(message: Features, writer: jspb.BinaryWriter): void;
154
+ static deserializeBinary(bytes: Uint8Array): Features;
155
+ static deserializeBinaryFromReader(message: Features, reader: jspb.BinaryReader): Features;
156
+ }
157
+
158
+ export namespace Features {
159
+ export type AsObject = {
160
+ featuresList: Array<Feature.AsObject>,
161
+ id: string,
162
+ }
163
+ }
164
+
165
+ export class Tag extends jspb.Message {
166
+ getId(): string;
167
+ setId(value: string): void;
168
+
169
+ getCreatedAt(): number;
170
+ setCreatedAt(value: number): void;
171
+
172
+ getUpdatedAt(): number;
173
+ setUpdatedAt(value: number): void;
174
+
175
+ serializeBinary(): Uint8Array;
176
+ toObject(includeInstance?: boolean): Tag.AsObject;
177
+ static toObject(includeInstance: boolean, msg: Tag): Tag.AsObject;
178
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
179
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
180
+ static serializeBinaryToWriter(message: Tag, writer: jspb.BinaryWriter): void;
181
+ static deserializeBinary(bytes: Uint8Array): Tag;
182
+ static deserializeBinaryFromReader(message: Tag, reader: jspb.BinaryReader): Tag;
183
+ }
184
+
185
+ export namespace Tag {
186
+ export type AsObject = {
187
+ id: string,
188
+ createdAt: number,
189
+ updatedAt: number,
190
+ }
191
+ }
192
+