@candesk/contracts 6.66.0 → 6.67.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/audit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: audit.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -42,6 +42,9 @@ export declare enum ProductSort {
42
42
  PRODUCT_SORT_THC_ASC = 4,
43
43
  PRODUCT_SORT_CBD_DESC = 5,
44
44
  PRODUCT_SORT_RATING = 6,
45
+ PRODUCT_SORT_PRICE_ASC = 7,
46
+ PRODUCT_SORT_PRICE_DESC = 8,
47
+ PRODUCT_SORT_AVAILABILITY = 9,
45
48
  UNRECOGNIZED = -1
46
49
  }
47
50
  export declare enum PotencyLevel {
@@ -146,6 +149,8 @@ export interface ProductFilter {
146
149
  cbdLevels: PotencyLevel[];
147
150
  price?: PriceRange | undefined;
148
151
  minRating?: number | undefined;
152
+ hideSoldOut?: boolean | undefined;
153
+ hideUnpriced?: boolean | undefined;
149
154
  }
150
155
  export interface ListProductsRequest {
151
156
  query?: string | undefined;
@@ -215,6 +220,8 @@ export interface GetProductFacetsResponse {
215
220
  cbdLevels: PotencyLevelFacet[];
216
221
  price?: PriceBounds | undefined;
217
222
  ratings: RatingFacet[];
223
+ soldOutCount: number;
224
+ unpricedCount: number;
218
225
  }
219
226
  export interface GetProductRequest {
220
227
  id: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: catalog.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,6 +57,9 @@ var ProductSort;
57
57
  ProductSort[ProductSort["PRODUCT_SORT_THC_ASC"] = 4] = "PRODUCT_SORT_THC_ASC";
58
58
  ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
59
59
  ProductSort[ProductSort["PRODUCT_SORT_RATING"] = 6] = "PRODUCT_SORT_RATING";
60
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_ASC"] = 7] = "PRODUCT_SORT_PRICE_ASC";
61
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_DESC"] = 8] = "PRODUCT_SORT_PRICE_DESC";
62
+ ProductSort[ProductSort["PRODUCT_SORT_AVAILABILITY"] = 9] = "PRODUCT_SORT_AVAILABILITY";
60
63
  ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
61
64
  })(ProductSort || (exports.ProductSort = ProductSort = {}));
62
65
  var PotencyLevel;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/media.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: payment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: review.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/staff.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: staff.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: audit.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -43,6 +43,9 @@ export declare enum ProductSort {
43
43
  PRODUCT_SORT_THC_ASC = 4,
44
44
  PRODUCT_SORT_CBD_DESC = 5,
45
45
  PRODUCT_SORT_RATING = 6,
46
+ PRODUCT_SORT_PRICE_ASC = 7,
47
+ PRODUCT_SORT_PRICE_DESC = 8,
48
+ PRODUCT_SORT_AVAILABILITY = 9,
46
49
  UNRECOGNIZED = -1
47
50
  }
48
51
  export declare enum PotencyLevel {
@@ -147,6 +150,8 @@ export interface ProductFilter {
147
150
  cbdLevels: PotencyLevel[];
148
151
  price?: PriceRange | undefined;
149
152
  minRating?: number | undefined;
153
+ hideSoldOut?: boolean | undefined;
154
+ hideUnpriced?: boolean | undefined;
150
155
  }
151
156
  export interface ListProductsRequest {
152
157
  query?: string | undefined;
@@ -216,6 +221,8 @@ export interface GetProductFacetsResponse {
216
221
  cbdLevels: PotencyLevelFacet[];
217
222
  price?: PriceBounds | undefined;
218
223
  ratings: RatingFacet[];
224
+ soldOutCount: number;
225
+ unpricedCount: number;
219
226
  }
220
227
  export interface GetProductRequest {
221
228
  id: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: catalog.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -59,6 +59,9 @@ var ProductSort;
59
59
  ProductSort[ProductSort["PRODUCT_SORT_THC_ASC"] = 4] = "PRODUCT_SORT_THC_ASC";
60
60
  ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
61
61
  ProductSort[ProductSort["PRODUCT_SORT_RATING"] = 6] = "PRODUCT_SORT_RATING";
62
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_ASC"] = 7] = "PRODUCT_SORT_PRICE_ASC";
63
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_DESC"] = 8] = "PRODUCT_SORT_PRICE_DESC";
64
+ ProductSort[ProductSort["PRODUCT_SORT_AVAILABILITY"] = 9] = "PRODUCT_SORT_AVAILABILITY";
62
65
  ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
63
66
  })(ProductSort || (exports.ProductSort = ProductSort = {}));
64
67
  var PotencyLevel;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: payment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: review.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: staff.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.66.0",
3
+ "version": "6.67.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -73,6 +73,9 @@ enum ProductSort {
73
73
  PRODUCT_SORT_THC_ASC = 4;
74
74
  PRODUCT_SORT_CBD_DESC = 5;
75
75
  PRODUCT_SORT_RATING = 6;
76
+ PRODUCT_SORT_PRICE_ASC = 7;
77
+ PRODUCT_SORT_PRICE_DESC = 8;
78
+ PRODUCT_SORT_AVAILABILITY = 9;
76
79
  }
77
80
 
78
81
  enum PotencyLevel {
@@ -184,6 +187,8 @@ message ProductFilter {
184
187
  repeated PotencyLevel cbd_levels = 9;
185
188
  optional PriceRange price = 10;
186
189
  optional int32 min_rating = 11;
190
+ optional bool hide_sold_out = 12;
191
+ optional bool hide_unpriced = 13;
187
192
  }
188
193
 
189
194
  message ListProductsRequest {
@@ -267,6 +272,8 @@ message GetProductFacetsResponse {
267
272
  repeated PotencyLevelFacet cbd_levels = 10;
268
273
  optional PriceBounds price = 11;
269
274
  repeated RatingFacet ratings = 12;
275
+ int32 sold_out_count = 13;
276
+ int32 unpriced_count = 14;
270
277
  }
271
278
 
272
279
  message GetProductRequest {