@candesk/contracts 6.52.0 → 6.53.0

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.
@@ -132,6 +132,7 @@ export interface ProductFilter {
132
132
  thc?: PotencyRange | undefined;
133
133
  cbd?: PotencyRange | undefined;
134
134
  isIrradiated?: boolean | undefined;
135
+ strainSlugs: string[];
135
136
  }
136
137
  export interface ListProductsRequest {
137
138
  query?: string | undefined;
@@ -166,6 +167,10 @@ export interface ManufacturerFacet {
166
167
  manufacturer: Manufacturer | undefined;
167
168
  count: number;
168
169
  }
170
+ export interface StrainFacet {
171
+ strain: Strain | undefined;
172
+ count: number;
173
+ }
169
174
  export interface CountryFacet {
170
175
  country: string;
171
176
  count: number;
@@ -186,6 +191,7 @@ export interface GetProductFacetsResponse {
186
191
  irradiation: IrradiationFacet[];
187
192
  thc?: PotencyBounds | undefined;
188
193
  cbd?: PotencyBounds | undefined;
194
+ strains: StrainFacet[];
189
195
  }
190
196
  export interface GetProductRequest {
191
197
  id: string;
@@ -133,6 +133,7 @@ export interface ProductFilter {
133
133
  thc?: PotencyRange | undefined;
134
134
  cbd?: PotencyRange | undefined;
135
135
  isIrradiated?: boolean | undefined;
136
+ strainSlugs: string[];
136
137
  }
137
138
  export interface ListProductsRequest {
138
139
  query?: string | undefined;
@@ -167,6 +168,10 @@ export interface ManufacturerFacet {
167
168
  manufacturer: Manufacturer | undefined;
168
169
  count: number;
169
170
  }
171
+ export interface StrainFacet {
172
+ strain: Strain | undefined;
173
+ count: number;
174
+ }
170
175
  export interface CountryFacet {
171
176
  country: string;
172
177
  count: number;
@@ -187,6 +192,7 @@ export interface GetProductFacetsResponse {
187
192
  irradiation: IrradiationFacet[];
188
193
  thc?: PotencyBounds | undefined;
189
194
  cbd?: PotencyBounds | undefined;
195
+ strains: StrainFacet[];
190
196
  }
191
197
  export interface GetProductRequest {
192
198
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.52.0",
3
+ "version": "6.53.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -167,6 +167,7 @@ message ProductFilter {
167
167
  optional PotencyRange thc = 4;
168
168
  optional PotencyRange cbd = 5;
169
169
  optional bool is_irradiated = 6;
170
+ repeated string strain_slugs = 7;
170
171
  }
171
172
 
172
173
  message ListProductsRequest {
@@ -208,6 +209,11 @@ message ManufacturerFacet {
208
209
  int32 count = 2;
209
210
  }
210
211
 
212
+ message StrainFacet {
213
+ Strain strain = 1;
214
+ int32 count = 2;
215
+ }
216
+
211
217
  message CountryFacet {
212
218
  string country = 1;
213
219
  int32 count = 2;
@@ -231,6 +237,7 @@ message GetProductFacetsResponse {
231
237
  repeated IrradiationFacet irradiation = 5;
232
238
  optional PotencyBounds thc = 6;
233
239
  optional PotencyBounds cbd = 7;
240
+ repeated StrainFacet strains = 8;
234
241
  }
235
242
 
236
243
  message GetProductRequest {