@candesk/contracts 6.53.0 → 6.54.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.
- package/dist/gen/catalog.d.ts +20 -6
- package/dist/gen/catalog.js +10 -1
- package/dist/nest/catalog.d.ts +20 -6
- package/dist/nest/catalog.js +10 -1
- package/package.json +1 -1
- package/proto/catalog.proto +27 -10
package/dist/gen/catalog.d.ts
CHANGED
|
@@ -43,6 +43,14 @@ export declare enum ProductSort {
|
|
|
43
43
|
PRODUCT_SORT_CBD_DESC = 5,
|
|
44
44
|
UNRECOGNIZED = -1
|
|
45
45
|
}
|
|
46
|
+
export declare enum PotencyLevel {
|
|
47
|
+
POTENCY_LEVEL_UNSPECIFIED = 0,
|
|
48
|
+
POTENCY_LEVEL_LOW = 1,
|
|
49
|
+
POTENCY_LEVEL_MEDIUM = 2,
|
|
50
|
+
POTENCY_LEVEL_HIGH = 3,
|
|
51
|
+
POTENCY_LEVEL_VERY_HIGH = 4,
|
|
52
|
+
UNRECOGNIZED = -1
|
|
53
|
+
}
|
|
46
54
|
export declare enum Flavor {
|
|
47
55
|
FLAVOR_UNSPECIFIED = 0,
|
|
48
56
|
FLAVOR_EARTHY = 1,
|
|
@@ -121,7 +129,7 @@ export interface ProductInput {
|
|
|
121
129
|
price?: number | undefined;
|
|
122
130
|
availability: Availability;
|
|
123
131
|
}
|
|
124
|
-
export interface
|
|
132
|
+
export interface PriceRange {
|
|
125
133
|
min?: number | undefined;
|
|
126
134
|
max?: number | undefined;
|
|
127
135
|
}
|
|
@@ -129,10 +137,11 @@ export interface ProductFilter {
|
|
|
129
137
|
genetics: Genetics[];
|
|
130
138
|
manufacturerSlugs: string[];
|
|
131
139
|
countries: string[];
|
|
132
|
-
thc?: PotencyRange | undefined;
|
|
133
|
-
cbd?: PotencyRange | undefined;
|
|
134
140
|
isIrradiated?: boolean | undefined;
|
|
135
141
|
strainSlugs: string[];
|
|
142
|
+
thcLevels: PotencyLevel[];
|
|
143
|
+
cbdLevels: PotencyLevel[];
|
|
144
|
+
price?: PriceRange | undefined;
|
|
136
145
|
}
|
|
137
146
|
export interface ListProductsRequest {
|
|
138
147
|
query?: string | undefined;
|
|
@@ -179,7 +188,11 @@ export interface IrradiationFacet {
|
|
|
179
188
|
isIrradiated: boolean;
|
|
180
189
|
count: number;
|
|
181
190
|
}
|
|
182
|
-
export interface
|
|
191
|
+
export interface PotencyLevelFacet {
|
|
192
|
+
level: PotencyLevel;
|
|
193
|
+
count: number;
|
|
194
|
+
}
|
|
195
|
+
export interface PriceBounds {
|
|
183
196
|
min: number;
|
|
184
197
|
max: number;
|
|
185
198
|
}
|
|
@@ -189,9 +202,10 @@ export interface GetProductFacetsResponse {
|
|
|
189
202
|
manufacturers: ManufacturerFacet[];
|
|
190
203
|
countries: CountryFacet[];
|
|
191
204
|
irradiation: IrradiationFacet[];
|
|
192
|
-
thc?: PotencyBounds | undefined;
|
|
193
|
-
cbd?: PotencyBounds | undefined;
|
|
194
205
|
strains: StrainFacet[];
|
|
206
|
+
thcLevels: PotencyLevelFacet[];
|
|
207
|
+
cbdLevels: PotencyLevelFacet[];
|
|
208
|
+
price?: PriceBounds | undefined;
|
|
195
209
|
}
|
|
196
210
|
export interface GetProductRequest {
|
|
197
211
|
id: string;
|
package/dist/gen/catalog.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: catalog.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Flavor = exports.ProductSort = exports.Availability = exports.PotencyUnit = exports.Genetics = exports.ProductStatus = exports.ProductType = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Flavor = exports.PotencyLevel = exports.ProductSort = exports.Availability = exports.PotencyUnit = exports.Genetics = exports.ProductStatus = exports.ProductType = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
exports.protobufPackage = "catalog.v1";
|
|
11
11
|
exports.protobufFileName = "catalog.proto";
|
|
@@ -58,6 +58,15 @@ var ProductSort;
|
|
|
58
58
|
ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
|
|
59
59
|
ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
60
60
|
})(ProductSort || (exports.ProductSort = ProductSort = {}));
|
|
61
|
+
var PotencyLevel;
|
|
62
|
+
(function (PotencyLevel) {
|
|
63
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_UNSPECIFIED"] = 0] = "POTENCY_LEVEL_UNSPECIFIED";
|
|
64
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_LOW"] = 1] = "POTENCY_LEVEL_LOW";
|
|
65
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_MEDIUM"] = 2] = "POTENCY_LEVEL_MEDIUM";
|
|
66
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_HIGH"] = 3] = "POTENCY_LEVEL_HIGH";
|
|
67
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_VERY_HIGH"] = 4] = "POTENCY_LEVEL_VERY_HIGH";
|
|
68
|
+
PotencyLevel[PotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
69
|
+
})(PotencyLevel || (exports.PotencyLevel = PotencyLevel = {}));
|
|
61
70
|
var Flavor;
|
|
62
71
|
(function (Flavor) {
|
|
63
72
|
Flavor[Flavor["FLAVOR_UNSPECIFIED"] = 0] = "FLAVOR_UNSPECIFIED";
|
package/dist/nest/catalog.d.ts
CHANGED
|
@@ -44,6 +44,14 @@ export declare enum ProductSort {
|
|
|
44
44
|
PRODUCT_SORT_CBD_DESC = 5,
|
|
45
45
|
UNRECOGNIZED = -1
|
|
46
46
|
}
|
|
47
|
+
export declare enum PotencyLevel {
|
|
48
|
+
POTENCY_LEVEL_UNSPECIFIED = 0,
|
|
49
|
+
POTENCY_LEVEL_LOW = 1,
|
|
50
|
+
POTENCY_LEVEL_MEDIUM = 2,
|
|
51
|
+
POTENCY_LEVEL_HIGH = 3,
|
|
52
|
+
POTENCY_LEVEL_VERY_HIGH = 4,
|
|
53
|
+
UNRECOGNIZED = -1
|
|
54
|
+
}
|
|
47
55
|
export declare enum Flavor {
|
|
48
56
|
FLAVOR_UNSPECIFIED = 0,
|
|
49
57
|
FLAVOR_EARTHY = 1,
|
|
@@ -122,7 +130,7 @@ export interface ProductInput {
|
|
|
122
130
|
price?: number | undefined;
|
|
123
131
|
availability: Availability;
|
|
124
132
|
}
|
|
125
|
-
export interface
|
|
133
|
+
export interface PriceRange {
|
|
126
134
|
min?: number | undefined;
|
|
127
135
|
max?: number | undefined;
|
|
128
136
|
}
|
|
@@ -130,10 +138,11 @@ export interface ProductFilter {
|
|
|
130
138
|
genetics: Genetics[];
|
|
131
139
|
manufacturerSlugs: string[];
|
|
132
140
|
countries: string[];
|
|
133
|
-
thc?: PotencyRange | undefined;
|
|
134
|
-
cbd?: PotencyRange | undefined;
|
|
135
141
|
isIrradiated?: boolean | undefined;
|
|
136
142
|
strainSlugs: string[];
|
|
143
|
+
thcLevels: PotencyLevel[];
|
|
144
|
+
cbdLevels: PotencyLevel[];
|
|
145
|
+
price?: PriceRange | undefined;
|
|
137
146
|
}
|
|
138
147
|
export interface ListProductsRequest {
|
|
139
148
|
query?: string | undefined;
|
|
@@ -180,7 +189,11 @@ export interface IrradiationFacet {
|
|
|
180
189
|
isIrradiated: boolean;
|
|
181
190
|
count: number;
|
|
182
191
|
}
|
|
183
|
-
export interface
|
|
192
|
+
export interface PotencyLevelFacet {
|
|
193
|
+
level: PotencyLevel;
|
|
194
|
+
count: number;
|
|
195
|
+
}
|
|
196
|
+
export interface PriceBounds {
|
|
184
197
|
min: number;
|
|
185
198
|
max: number;
|
|
186
199
|
}
|
|
@@ -190,9 +203,10 @@ export interface GetProductFacetsResponse {
|
|
|
190
203
|
manufacturers: ManufacturerFacet[];
|
|
191
204
|
countries: CountryFacet[];
|
|
192
205
|
irradiation: IrradiationFacet[];
|
|
193
|
-
thc?: PotencyBounds | undefined;
|
|
194
|
-
cbd?: PotencyBounds | undefined;
|
|
195
206
|
strains: StrainFacet[];
|
|
207
|
+
thcLevels: PotencyLevelFacet[];
|
|
208
|
+
cbdLevels: PotencyLevelFacet[];
|
|
209
|
+
price?: PriceBounds | undefined;
|
|
196
210
|
}
|
|
197
211
|
export interface GetProductRequest {
|
|
198
212
|
id: string;
|
package/dist/nest/catalog.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: catalog.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CATALOG_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.Flavor = exports.ProductSort = exports.Availability = exports.PotencyUnit = exports.Genetics = exports.ProductStatus = exports.ProductType = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
8
|
+
exports.CATALOG_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.Flavor = exports.PotencyLevel = exports.ProductSort = exports.Availability = exports.PotencyUnit = exports.Genetics = exports.ProductStatus = exports.ProductType = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
exports.CatalogServiceControllerMethods = CatalogServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -60,6 +60,15 @@ var ProductSort;
|
|
|
60
60
|
ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
|
|
61
61
|
ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
62
62
|
})(ProductSort || (exports.ProductSort = ProductSort = {}));
|
|
63
|
+
var PotencyLevel;
|
|
64
|
+
(function (PotencyLevel) {
|
|
65
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_UNSPECIFIED"] = 0] = "POTENCY_LEVEL_UNSPECIFIED";
|
|
66
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_LOW"] = 1] = "POTENCY_LEVEL_LOW";
|
|
67
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_MEDIUM"] = 2] = "POTENCY_LEVEL_MEDIUM";
|
|
68
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_HIGH"] = 3] = "POTENCY_LEVEL_HIGH";
|
|
69
|
+
PotencyLevel[PotencyLevel["POTENCY_LEVEL_VERY_HIGH"] = 4] = "POTENCY_LEVEL_VERY_HIGH";
|
|
70
|
+
PotencyLevel[PotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
71
|
+
})(PotencyLevel || (exports.PotencyLevel = PotencyLevel = {}));
|
|
63
72
|
var Flavor;
|
|
64
73
|
(function (Flavor) {
|
|
65
74
|
Flavor[Flavor["FLAVOR_UNSPECIFIED"] = 0] = "FLAVOR_UNSPECIFIED";
|
package/package.json
CHANGED
package/proto/catalog.proto
CHANGED
|
@@ -72,6 +72,14 @@ enum ProductSort {
|
|
|
72
72
|
PRODUCT_SORT_CBD_DESC = 5;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
enum PotencyLevel {
|
|
76
|
+
POTENCY_LEVEL_UNSPECIFIED = 0;
|
|
77
|
+
POTENCY_LEVEL_LOW = 1;
|
|
78
|
+
POTENCY_LEVEL_MEDIUM = 2;
|
|
79
|
+
POTENCY_LEVEL_HIGH = 3;
|
|
80
|
+
POTENCY_LEVEL_VERY_HIGH = 4;
|
|
81
|
+
}
|
|
82
|
+
|
|
75
83
|
enum Flavor {
|
|
76
84
|
FLAVOR_UNSPECIFIED = 0;
|
|
77
85
|
FLAVOR_EARTHY = 1;
|
|
@@ -155,19 +163,21 @@ message ProductInput {
|
|
|
155
163
|
Availability availability = 15;
|
|
156
164
|
}
|
|
157
165
|
|
|
158
|
-
message
|
|
159
|
-
optional
|
|
160
|
-
optional
|
|
166
|
+
message PriceRange {
|
|
167
|
+
optional int32 min = 1;
|
|
168
|
+
optional int32 max = 2;
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
message ProductFilter {
|
|
164
172
|
repeated Genetics genetics = 1;
|
|
165
173
|
repeated string manufacturer_slugs = 2;
|
|
166
174
|
repeated string countries = 3;
|
|
167
|
-
|
|
168
|
-
optional PotencyRange cbd = 5;
|
|
175
|
+
reserved 4, 5;
|
|
169
176
|
optional bool is_irradiated = 6;
|
|
170
177
|
repeated string strain_slugs = 7;
|
|
178
|
+
repeated PotencyLevel thc_levels = 8;
|
|
179
|
+
repeated PotencyLevel cbd_levels = 9;
|
|
180
|
+
optional PriceRange price = 10;
|
|
171
181
|
}
|
|
172
182
|
|
|
173
183
|
message ListProductsRequest {
|
|
@@ -224,9 +234,14 @@ message IrradiationFacet {
|
|
|
224
234
|
int32 count = 2;
|
|
225
235
|
}
|
|
226
236
|
|
|
227
|
-
message
|
|
228
|
-
|
|
229
|
-
|
|
237
|
+
message PotencyLevelFacet {
|
|
238
|
+
PotencyLevel level = 1;
|
|
239
|
+
int32 count = 2;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
message PriceBounds {
|
|
243
|
+
int32 min = 1;
|
|
244
|
+
int32 max = 2;
|
|
230
245
|
}
|
|
231
246
|
|
|
232
247
|
message GetProductFacetsResponse {
|
|
@@ -235,9 +250,11 @@ message GetProductFacetsResponse {
|
|
|
235
250
|
repeated ManufacturerFacet manufacturers = 3;
|
|
236
251
|
repeated CountryFacet countries = 4;
|
|
237
252
|
repeated IrradiationFacet irradiation = 5;
|
|
238
|
-
|
|
239
|
-
optional PotencyBounds cbd = 7;
|
|
253
|
+
reserved 6, 7;
|
|
240
254
|
repeated StrainFacet strains = 8;
|
|
255
|
+
repeated PotencyLevelFacet thc_levels = 9;
|
|
256
|
+
repeated PotencyLevelFacet cbd_levels = 10;
|
|
257
|
+
optional PriceBounds price = 11;
|
|
241
258
|
}
|
|
242
259
|
|
|
243
260
|
message GetProductRequest {
|