@candesk/contracts 6.50.0 → 6.51.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.
@@ -34,6 +34,15 @@ export declare enum Availability {
34
34
  AVAILABILITY_SOLD_OUT = 3,
35
35
  UNRECOGNIZED = -1
36
36
  }
37
+ export declare enum ProductSort {
38
+ PRODUCT_SORT_UNSPECIFIED = 0,
39
+ PRODUCT_SORT_NEWEST = 1,
40
+ PRODUCT_SORT_NAME = 2,
41
+ PRODUCT_SORT_THC_DESC = 3,
42
+ PRODUCT_SORT_THC_ASC = 4,
43
+ PRODUCT_SORT_CBD_DESC = 5,
44
+ UNRECOGNIZED = -1
45
+ }
37
46
  export declare enum Flavor {
38
47
  FLAVOR_UNSPECIFIED = 0,
39
48
  FLAVOR_EARTHY = 1,
@@ -119,6 +128,7 @@ export interface ListProductsRequest {
119
128
  cursor?: string | undefined;
120
129
  limit: number;
121
130
  ids: string[];
131
+ sort?: ProductSort | undefined;
122
132
  }
123
133
  export interface ListProductsResponse {
124
134
  products: Product[];
@@ -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.Availability = exports.PotencyUnit = exports.Genetics = exports.ProductStatus = exports.ProductType = exports.protobufFileName = exports.protobufPackage = void 0;
8
+ exports.Flavor = 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";
@@ -48,6 +48,16 @@ var Availability;
48
48
  Availability[Availability["AVAILABILITY_SOLD_OUT"] = 3] = "AVAILABILITY_SOLD_OUT";
49
49
  Availability[Availability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
50
50
  })(Availability || (exports.Availability = Availability = {}));
51
+ var ProductSort;
52
+ (function (ProductSort) {
53
+ ProductSort[ProductSort["PRODUCT_SORT_UNSPECIFIED"] = 0] = "PRODUCT_SORT_UNSPECIFIED";
54
+ ProductSort[ProductSort["PRODUCT_SORT_NEWEST"] = 1] = "PRODUCT_SORT_NEWEST";
55
+ ProductSort[ProductSort["PRODUCT_SORT_NAME"] = 2] = "PRODUCT_SORT_NAME";
56
+ ProductSort[ProductSort["PRODUCT_SORT_THC_DESC"] = 3] = "PRODUCT_SORT_THC_DESC";
57
+ ProductSort[ProductSort["PRODUCT_SORT_THC_ASC"] = 4] = "PRODUCT_SORT_THC_ASC";
58
+ ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
59
+ ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
60
+ })(ProductSort || (exports.ProductSort = ProductSort = {}));
51
61
  var Flavor;
52
62
  (function (Flavor) {
53
63
  Flavor[Flavor["FLAVOR_UNSPECIFIED"] = 0] = "FLAVOR_UNSPECIFIED";
@@ -35,6 +35,15 @@ export declare enum Availability {
35
35
  AVAILABILITY_SOLD_OUT = 3,
36
36
  UNRECOGNIZED = -1
37
37
  }
38
+ export declare enum ProductSort {
39
+ PRODUCT_SORT_UNSPECIFIED = 0,
40
+ PRODUCT_SORT_NEWEST = 1,
41
+ PRODUCT_SORT_NAME = 2,
42
+ PRODUCT_SORT_THC_DESC = 3,
43
+ PRODUCT_SORT_THC_ASC = 4,
44
+ PRODUCT_SORT_CBD_DESC = 5,
45
+ UNRECOGNIZED = -1
46
+ }
38
47
  export declare enum Flavor {
39
48
  FLAVOR_UNSPECIFIED = 0,
40
49
  FLAVOR_EARTHY = 1,
@@ -120,6 +129,7 @@ export interface ListProductsRequest {
120
129
  cursor?: string | undefined;
121
130
  limit: number;
122
131
  ids: string[];
132
+ sort?: ProductSort | undefined;
123
133
  }
124
134
  export interface ListProductsResponse {
125
135
  products: Product[];
@@ -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.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.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");
@@ -50,6 +50,16 @@ var Availability;
50
50
  Availability[Availability["AVAILABILITY_SOLD_OUT"] = 3] = "AVAILABILITY_SOLD_OUT";
51
51
  Availability[Availability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
52
52
  })(Availability || (exports.Availability = Availability = {}));
53
+ var ProductSort;
54
+ (function (ProductSort) {
55
+ ProductSort[ProductSort["PRODUCT_SORT_UNSPECIFIED"] = 0] = "PRODUCT_SORT_UNSPECIFIED";
56
+ ProductSort[ProductSort["PRODUCT_SORT_NEWEST"] = 1] = "PRODUCT_SORT_NEWEST";
57
+ ProductSort[ProductSort["PRODUCT_SORT_NAME"] = 2] = "PRODUCT_SORT_NAME";
58
+ ProductSort[ProductSort["PRODUCT_SORT_THC_DESC"] = 3] = "PRODUCT_SORT_THC_DESC";
59
+ ProductSort[ProductSort["PRODUCT_SORT_THC_ASC"] = 4] = "PRODUCT_SORT_THC_ASC";
60
+ ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
61
+ ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
62
+ })(ProductSort || (exports.ProductSort = ProductSort = {}));
53
63
  var Flavor;
54
64
  (function (Flavor) {
55
65
  Flavor[Flavor["FLAVOR_UNSPECIFIED"] = 0] = "FLAVOR_UNSPECIFIED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.50.0",
3
+ "version": "6.51.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -62,6 +62,15 @@ enum Availability {
62
62
  AVAILABILITY_SOLD_OUT = 3;
63
63
  }
64
64
 
65
+ enum ProductSort {
66
+ PRODUCT_SORT_UNSPECIFIED = 0;
67
+ PRODUCT_SORT_NEWEST = 1;
68
+ PRODUCT_SORT_NAME = 2;
69
+ PRODUCT_SORT_THC_DESC = 3;
70
+ PRODUCT_SORT_THC_ASC = 4;
71
+ PRODUCT_SORT_CBD_DESC = 5;
72
+ }
73
+
65
74
  enum Flavor {
66
75
  FLAVOR_UNSPECIFIED = 0;
67
76
  FLAVOR_EARTHY = 1;
@@ -152,6 +161,7 @@ message ListProductsRequest {
152
161
  optional string cursor = 4;
153
162
  int32 limit = 5;
154
163
  repeated string ids = 6;
164
+ optional ProductSort sort = 7;
155
165
  }
156
166
 
157
167
  message ListProductsResponse {