@candesk/contracts 6.52.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 +26 -6
- package/dist/gen/catalog.js +10 -1
- package/dist/nest/catalog.d.ts +26 -6
- package/dist/nest/catalog.js +10 -1
- package/package.json +1 -1
- package/proto/catalog.proto +34 -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,9 +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;
|
|
141
|
+
strainSlugs: string[];
|
|
142
|
+
thcLevels: PotencyLevel[];
|
|
143
|
+
cbdLevels: PotencyLevel[];
|
|
144
|
+
price?: PriceRange | undefined;
|
|
135
145
|
}
|
|
136
146
|
export interface ListProductsRequest {
|
|
137
147
|
query?: string | undefined;
|
|
@@ -166,6 +176,10 @@ export interface ManufacturerFacet {
|
|
|
166
176
|
manufacturer: Manufacturer | undefined;
|
|
167
177
|
count: number;
|
|
168
178
|
}
|
|
179
|
+
export interface StrainFacet {
|
|
180
|
+
strain: Strain | undefined;
|
|
181
|
+
count: number;
|
|
182
|
+
}
|
|
169
183
|
export interface CountryFacet {
|
|
170
184
|
country: string;
|
|
171
185
|
count: number;
|
|
@@ -174,7 +188,11 @@ export interface IrradiationFacet {
|
|
|
174
188
|
isIrradiated: boolean;
|
|
175
189
|
count: number;
|
|
176
190
|
}
|
|
177
|
-
export interface
|
|
191
|
+
export interface PotencyLevelFacet {
|
|
192
|
+
level: PotencyLevel;
|
|
193
|
+
count: number;
|
|
194
|
+
}
|
|
195
|
+
export interface PriceBounds {
|
|
178
196
|
min: number;
|
|
179
197
|
max: number;
|
|
180
198
|
}
|
|
@@ -184,8 +202,10 @@ export interface GetProductFacetsResponse {
|
|
|
184
202
|
manufacturers: ManufacturerFacet[];
|
|
185
203
|
countries: CountryFacet[];
|
|
186
204
|
irradiation: IrradiationFacet[];
|
|
187
|
-
|
|
188
|
-
|
|
205
|
+
strains: StrainFacet[];
|
|
206
|
+
thcLevels: PotencyLevelFacet[];
|
|
207
|
+
cbdLevels: PotencyLevelFacet[];
|
|
208
|
+
price?: PriceBounds | undefined;
|
|
189
209
|
}
|
|
190
210
|
export interface GetProductRequest {
|
|
191
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,9 +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;
|
|
142
|
+
strainSlugs: string[];
|
|
143
|
+
thcLevels: PotencyLevel[];
|
|
144
|
+
cbdLevels: PotencyLevel[];
|
|
145
|
+
price?: PriceRange | undefined;
|
|
136
146
|
}
|
|
137
147
|
export interface ListProductsRequest {
|
|
138
148
|
query?: string | undefined;
|
|
@@ -167,6 +177,10 @@ export interface ManufacturerFacet {
|
|
|
167
177
|
manufacturer: Manufacturer | undefined;
|
|
168
178
|
count: number;
|
|
169
179
|
}
|
|
180
|
+
export interface StrainFacet {
|
|
181
|
+
strain: Strain | undefined;
|
|
182
|
+
count: number;
|
|
183
|
+
}
|
|
170
184
|
export interface CountryFacet {
|
|
171
185
|
country: string;
|
|
172
186
|
count: number;
|
|
@@ -175,7 +189,11 @@ export interface IrradiationFacet {
|
|
|
175
189
|
isIrradiated: boolean;
|
|
176
190
|
count: number;
|
|
177
191
|
}
|
|
178
|
-
export interface
|
|
192
|
+
export interface PotencyLevelFacet {
|
|
193
|
+
level: PotencyLevel;
|
|
194
|
+
count: number;
|
|
195
|
+
}
|
|
196
|
+
export interface PriceBounds {
|
|
179
197
|
min: number;
|
|
180
198
|
max: number;
|
|
181
199
|
}
|
|
@@ -185,8 +203,10 @@ export interface GetProductFacetsResponse {
|
|
|
185
203
|
manufacturers: ManufacturerFacet[];
|
|
186
204
|
countries: CountryFacet[];
|
|
187
205
|
irradiation: IrradiationFacet[];
|
|
188
|
-
|
|
189
|
-
|
|
206
|
+
strains: StrainFacet[];
|
|
207
|
+
thcLevels: PotencyLevelFacet[];
|
|
208
|
+
cbdLevels: PotencyLevelFacet[];
|
|
209
|
+
price?: PriceBounds | undefined;
|
|
190
210
|
}
|
|
191
211
|
export interface GetProductRequest {
|
|
192
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,18 +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;
|
|
177
|
+
repeated string strain_slugs = 7;
|
|
178
|
+
repeated PotencyLevel thc_levels = 8;
|
|
179
|
+
repeated PotencyLevel cbd_levels = 9;
|
|
180
|
+
optional PriceRange price = 10;
|
|
170
181
|
}
|
|
171
182
|
|
|
172
183
|
message ListProductsRequest {
|
|
@@ -208,6 +219,11 @@ message ManufacturerFacet {
|
|
|
208
219
|
int32 count = 2;
|
|
209
220
|
}
|
|
210
221
|
|
|
222
|
+
message StrainFacet {
|
|
223
|
+
Strain strain = 1;
|
|
224
|
+
int32 count = 2;
|
|
225
|
+
}
|
|
226
|
+
|
|
211
227
|
message CountryFacet {
|
|
212
228
|
string country = 1;
|
|
213
229
|
int32 count = 2;
|
|
@@ -218,9 +234,14 @@ message IrradiationFacet {
|
|
|
218
234
|
int32 count = 2;
|
|
219
235
|
}
|
|
220
236
|
|
|
221
|
-
message
|
|
222
|
-
|
|
223
|
-
|
|
237
|
+
message PotencyLevelFacet {
|
|
238
|
+
PotencyLevel level = 1;
|
|
239
|
+
int32 count = 2;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
message PriceBounds {
|
|
243
|
+
int32 min = 1;
|
|
244
|
+
int32 max = 2;
|
|
224
245
|
}
|
|
225
246
|
|
|
226
247
|
message GetProductFacetsResponse {
|
|
@@ -229,8 +250,11 @@ message GetProductFacetsResponse {
|
|
|
229
250
|
repeated ManufacturerFacet manufacturers = 3;
|
|
230
251
|
repeated CountryFacet countries = 4;
|
|
231
252
|
repeated IrradiationFacet irradiation = 5;
|
|
232
|
-
|
|
233
|
-
|
|
253
|
+
reserved 6, 7;
|
|
254
|
+
repeated StrainFacet strains = 8;
|
|
255
|
+
repeated PotencyLevelFacet thc_levels = 9;
|
|
256
|
+
repeated PotencyLevelFacet cbd_levels = 10;
|
|
257
|
+
optional PriceBounds price = 11;
|
|
234
258
|
}
|
|
235
259
|
|
|
236
260
|
message GetProductRequest {
|