@candesk/contracts 6.49.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.
- package/dist/gen/catalog.d.ts +11 -0
- package/dist/gen/catalog.js +11 -1
- package/dist/gen/treatment.d.ts +21 -3
- package/dist/gen/treatment.js +8 -1
- package/dist/nest/catalog.d.ts +11 -0
- package/dist/nest/catalog.js +11 -1
- package/dist/nest/treatment.d.ts +21 -3
- package/dist/nest/treatment.js +8 -1
- package/package.json +1 -1
- package/proto/catalog.proto +11 -0
- package/proto/treatment.proto +22 -3
package/dist/gen/catalog.d.ts
CHANGED
|
@@ -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,
|
|
@@ -118,6 +127,8 @@ export interface ListProductsRequest {
|
|
|
118
127
|
status?: ProductStatus | undefined;
|
|
119
128
|
cursor?: string | undefined;
|
|
120
129
|
limit: number;
|
|
130
|
+
ids: string[];
|
|
131
|
+
sort?: ProductSort | undefined;
|
|
121
132
|
}
|
|
122
133
|
export interface ListProductsResponse {
|
|
123
134
|
products: Product[];
|
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.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";
|
package/dist/gen/treatment.d.ts
CHANGED
|
@@ -33,6 +33,12 @@ export declare enum IntakeMethod {
|
|
|
33
33
|
INTAKE_METHOD_INHALATION = 2,
|
|
34
34
|
UNRECOGNIZED = -1
|
|
35
35
|
}
|
|
36
|
+
export declare enum ProductType {
|
|
37
|
+
PRODUCT_TYPE_UNSPECIFIED = 0,
|
|
38
|
+
PRODUCT_TYPE_FLOWER = 1,
|
|
39
|
+
PRODUCT_TYPE_EXTRACT = 2,
|
|
40
|
+
UNRECOGNIZED = -1
|
|
41
|
+
}
|
|
36
42
|
export declare enum TreatmentType {
|
|
37
43
|
TREATMENT_TYPE_UNSPECIFIED = 0,
|
|
38
44
|
TREATMENT_TYPE_ONLINE = 1,
|
|
@@ -46,6 +52,13 @@ export declare enum TreatmentRequestStatus {
|
|
|
46
52
|
TREATMENT_REQUEST_STATUS_PAID = 3,
|
|
47
53
|
UNRECOGNIZED = -1
|
|
48
54
|
}
|
|
55
|
+
export interface MedicationProduct {
|
|
56
|
+
productId: string;
|
|
57
|
+
amount: number;
|
|
58
|
+
number: number;
|
|
59
|
+
name: string;
|
|
60
|
+
type: ProductType;
|
|
61
|
+
}
|
|
49
62
|
export interface QuestionnaireAnswers {
|
|
50
63
|
symptoms: Symptom[];
|
|
51
64
|
otherSymptoms?: string | undefined;
|
|
@@ -67,6 +80,7 @@ export interface QuestionnaireAnswers {
|
|
|
67
80
|
confirmsTruthfulness?: boolean | undefined;
|
|
68
81
|
intakeMethods: IntakeMethod[];
|
|
69
82
|
medicationWish?: string | undefined;
|
|
83
|
+
medicationProducts: MedicationProduct[];
|
|
70
84
|
}
|
|
71
85
|
export interface Questionnaire {
|
|
72
86
|
status: QuestionnaireStatus;
|
|
@@ -89,10 +103,12 @@ export interface TreatmentRequest {
|
|
|
89
103
|
currency: string;
|
|
90
104
|
expiresAt?: string | undefined;
|
|
91
105
|
createdAt: string;
|
|
92
|
-
medicationWish
|
|
106
|
+
medicationWish?: string | undefined;
|
|
93
107
|
paidAt?: string | undefined;
|
|
94
108
|
userId: string;
|
|
95
109
|
withdrawalWaiverAt?: string | undefined;
|
|
110
|
+
medicationProducts: MedicationProduct[];
|
|
111
|
+
intakeMethods: IntakeMethod[];
|
|
96
112
|
}
|
|
97
113
|
export interface GetQuestionnaireRequest {
|
|
98
114
|
userId: string;
|
|
@@ -160,14 +176,16 @@ export interface ListAllTreatmentRequestsResponse {
|
|
|
160
176
|
export interface UpdateTreatmentRequestRequest {
|
|
161
177
|
userId: string;
|
|
162
178
|
id: string;
|
|
163
|
-
medicationWish
|
|
179
|
+
medicationWish?: string | undefined;
|
|
180
|
+
medicationProducts: MedicationProduct[];
|
|
164
181
|
}
|
|
165
182
|
export interface UpdateTreatmentRequestResponse {
|
|
166
183
|
request: TreatmentRequest | undefined;
|
|
167
184
|
}
|
|
168
185
|
export interface ChangeMedicationWishRequest {
|
|
169
186
|
id: string;
|
|
170
|
-
medicationWish
|
|
187
|
+
medicationWish?: string | undefined;
|
|
188
|
+
medicationProducts: MedicationProduct[];
|
|
171
189
|
}
|
|
172
190
|
export interface ChangeMedicationWishResponse {
|
|
173
191
|
request: TreatmentRequest | undefined;
|
package/dist/gen/treatment.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: treatment.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TreatmentRequestStatus = exports.TreatmentType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
8
|
+
exports.TreatmentRequestStatus = exports.TreatmentType = exports.ProductType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
exports.protobufPackage = "treatment.v1";
|
|
11
11
|
exports.protobufFileName = "treatment.proto";
|
|
@@ -46,6 +46,13 @@ var IntakeMethod;
|
|
|
46
46
|
IntakeMethod[IntakeMethod["INTAKE_METHOD_INHALATION"] = 2] = "INTAKE_METHOD_INHALATION";
|
|
47
47
|
IntakeMethod[IntakeMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
48
48
|
})(IntakeMethod || (exports.IntakeMethod = IntakeMethod = {}));
|
|
49
|
+
var ProductType;
|
|
50
|
+
(function (ProductType) {
|
|
51
|
+
ProductType[ProductType["PRODUCT_TYPE_UNSPECIFIED"] = 0] = "PRODUCT_TYPE_UNSPECIFIED";
|
|
52
|
+
ProductType[ProductType["PRODUCT_TYPE_FLOWER"] = 1] = "PRODUCT_TYPE_FLOWER";
|
|
53
|
+
ProductType[ProductType["PRODUCT_TYPE_EXTRACT"] = 2] = "PRODUCT_TYPE_EXTRACT";
|
|
54
|
+
ProductType[ProductType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
55
|
+
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
49
56
|
var TreatmentType;
|
|
50
57
|
(function (TreatmentType) {
|
|
51
58
|
TreatmentType[TreatmentType["TREATMENT_TYPE_UNSPECIFIED"] = 0] = "TREATMENT_TYPE_UNSPECIFIED";
|
package/dist/nest/catalog.d.ts
CHANGED
|
@@ -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,
|
|
@@ -119,6 +128,8 @@ export interface ListProductsRequest {
|
|
|
119
128
|
status?: ProductStatus | undefined;
|
|
120
129
|
cursor?: string | undefined;
|
|
121
130
|
limit: number;
|
|
131
|
+
ids: string[];
|
|
132
|
+
sort?: ProductSort | undefined;
|
|
122
133
|
}
|
|
123
134
|
export interface ListProductsResponse {
|
|
124
135
|
products: Product[];
|
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.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/dist/nest/treatment.d.ts
CHANGED
|
@@ -34,6 +34,12 @@ export declare enum IntakeMethod {
|
|
|
34
34
|
INTAKE_METHOD_INHALATION = 2,
|
|
35
35
|
UNRECOGNIZED = -1
|
|
36
36
|
}
|
|
37
|
+
export declare enum ProductType {
|
|
38
|
+
PRODUCT_TYPE_UNSPECIFIED = 0,
|
|
39
|
+
PRODUCT_TYPE_FLOWER = 1,
|
|
40
|
+
PRODUCT_TYPE_EXTRACT = 2,
|
|
41
|
+
UNRECOGNIZED = -1
|
|
42
|
+
}
|
|
37
43
|
export declare enum TreatmentType {
|
|
38
44
|
TREATMENT_TYPE_UNSPECIFIED = 0,
|
|
39
45
|
TREATMENT_TYPE_ONLINE = 1,
|
|
@@ -47,6 +53,13 @@ export declare enum TreatmentRequestStatus {
|
|
|
47
53
|
TREATMENT_REQUEST_STATUS_PAID = 3,
|
|
48
54
|
UNRECOGNIZED = -1
|
|
49
55
|
}
|
|
56
|
+
export interface MedicationProduct {
|
|
57
|
+
productId: string;
|
|
58
|
+
amount: number;
|
|
59
|
+
number: number;
|
|
60
|
+
name: string;
|
|
61
|
+
type: ProductType;
|
|
62
|
+
}
|
|
50
63
|
export interface QuestionnaireAnswers {
|
|
51
64
|
symptoms: Symptom[];
|
|
52
65
|
otherSymptoms?: string | undefined;
|
|
@@ -68,6 +81,7 @@ export interface QuestionnaireAnswers {
|
|
|
68
81
|
confirmsTruthfulness?: boolean | undefined;
|
|
69
82
|
intakeMethods: IntakeMethod[];
|
|
70
83
|
medicationWish?: string | undefined;
|
|
84
|
+
medicationProducts: MedicationProduct[];
|
|
71
85
|
}
|
|
72
86
|
export interface Questionnaire {
|
|
73
87
|
status: QuestionnaireStatus;
|
|
@@ -90,10 +104,12 @@ export interface TreatmentRequest {
|
|
|
90
104
|
currency: string;
|
|
91
105
|
expiresAt?: string | undefined;
|
|
92
106
|
createdAt: string;
|
|
93
|
-
medicationWish
|
|
107
|
+
medicationWish?: string | undefined;
|
|
94
108
|
paidAt?: string | undefined;
|
|
95
109
|
userId: string;
|
|
96
110
|
withdrawalWaiverAt?: string | undefined;
|
|
111
|
+
medicationProducts: MedicationProduct[];
|
|
112
|
+
intakeMethods: IntakeMethod[];
|
|
97
113
|
}
|
|
98
114
|
export interface GetQuestionnaireRequest {
|
|
99
115
|
userId: string;
|
|
@@ -161,14 +177,16 @@ export interface ListAllTreatmentRequestsResponse {
|
|
|
161
177
|
export interface UpdateTreatmentRequestRequest {
|
|
162
178
|
userId: string;
|
|
163
179
|
id: string;
|
|
164
|
-
medicationWish
|
|
180
|
+
medicationWish?: string | undefined;
|
|
181
|
+
medicationProducts: MedicationProduct[];
|
|
165
182
|
}
|
|
166
183
|
export interface UpdateTreatmentRequestResponse {
|
|
167
184
|
request: TreatmentRequest | undefined;
|
|
168
185
|
}
|
|
169
186
|
export interface ChangeMedicationWishRequest {
|
|
170
187
|
id: string;
|
|
171
|
-
medicationWish
|
|
188
|
+
medicationWish?: string | undefined;
|
|
189
|
+
medicationProducts: MedicationProduct[];
|
|
172
190
|
}
|
|
173
191
|
export interface ChangeMedicationWishResponse {
|
|
174
192
|
request: TreatmentRequest | undefined;
|
package/dist/nest/treatment.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: treatment.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TREATMENT_SERVICE_NAME = exports.TREATMENT_V1_PACKAGE_NAME = exports.TreatmentRequestStatus = exports.TreatmentType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
8
|
+
exports.TREATMENT_SERVICE_NAME = exports.TREATMENT_V1_PACKAGE_NAME = exports.TreatmentRequestStatus = exports.TreatmentType = exports.ProductType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
exports.TreatmentServiceControllerMethods = TreatmentServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -48,6 +48,13 @@ var IntakeMethod;
|
|
|
48
48
|
IntakeMethod[IntakeMethod["INTAKE_METHOD_INHALATION"] = 2] = "INTAKE_METHOD_INHALATION";
|
|
49
49
|
IntakeMethod[IntakeMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
50
50
|
})(IntakeMethod || (exports.IntakeMethod = IntakeMethod = {}));
|
|
51
|
+
var ProductType;
|
|
52
|
+
(function (ProductType) {
|
|
53
|
+
ProductType[ProductType["PRODUCT_TYPE_UNSPECIFIED"] = 0] = "PRODUCT_TYPE_UNSPECIFIED";
|
|
54
|
+
ProductType[ProductType["PRODUCT_TYPE_FLOWER"] = 1] = "PRODUCT_TYPE_FLOWER";
|
|
55
|
+
ProductType[ProductType["PRODUCT_TYPE_EXTRACT"] = 2] = "PRODUCT_TYPE_EXTRACT";
|
|
56
|
+
ProductType[ProductType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
57
|
+
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
51
58
|
var TreatmentType;
|
|
52
59
|
(function (TreatmentType) {
|
|
53
60
|
TreatmentType[TreatmentType["TREATMENT_TYPE_UNSPECIFIED"] = 0] = "TREATMENT_TYPE_UNSPECIFIED";
|
package/package.json
CHANGED
package/proto/catalog.proto
CHANGED
|
@@ -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;
|
|
@@ -151,6 +160,8 @@ message ListProductsRequest {
|
|
|
151
160
|
optional ProductStatus status = 3;
|
|
152
161
|
optional string cursor = 4;
|
|
153
162
|
int32 limit = 5;
|
|
163
|
+
repeated string ids = 6;
|
|
164
|
+
optional ProductSort sort = 7;
|
|
154
165
|
}
|
|
155
166
|
|
|
156
167
|
message ListProductsResponse {
|
package/proto/treatment.proto
CHANGED
|
@@ -50,6 +50,12 @@ enum IntakeMethod {
|
|
|
50
50
|
INTAKE_METHOD_INHALATION = 2;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
enum ProductType {
|
|
54
|
+
PRODUCT_TYPE_UNSPECIFIED = 0;
|
|
55
|
+
PRODUCT_TYPE_FLOWER = 1;
|
|
56
|
+
PRODUCT_TYPE_EXTRACT = 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
enum TreatmentType {
|
|
54
60
|
TREATMENT_TYPE_UNSPECIFIED = 0;
|
|
55
61
|
TREATMENT_TYPE_ONLINE = 1;
|
|
@@ -63,6 +69,14 @@ enum TreatmentRequestStatus {
|
|
|
63
69
|
TREATMENT_REQUEST_STATUS_PAID = 3;
|
|
64
70
|
}
|
|
65
71
|
|
|
72
|
+
message MedicationProduct {
|
|
73
|
+
string product_id = 1;
|
|
74
|
+
int32 amount = 2;
|
|
75
|
+
int32 number = 3;
|
|
76
|
+
string name = 4;
|
|
77
|
+
ProductType type = 5;
|
|
78
|
+
}
|
|
79
|
+
|
|
66
80
|
message QuestionnaireAnswers {
|
|
67
81
|
repeated Symptom symptoms = 1;
|
|
68
82
|
optional string other_symptoms = 2;
|
|
@@ -84,6 +98,7 @@ message QuestionnaireAnswers {
|
|
|
84
98
|
optional bool confirms_truthfulness = 18;
|
|
85
99
|
repeated IntakeMethod intake_methods = 19;
|
|
86
100
|
optional string medication_wish = 20;
|
|
101
|
+
repeated MedicationProduct medication_products = 21;
|
|
87
102
|
}
|
|
88
103
|
|
|
89
104
|
message Questionnaire {
|
|
@@ -109,10 +124,12 @@ message TreatmentRequest {
|
|
|
109
124
|
string currency = 6;
|
|
110
125
|
optional string expires_at = 7;
|
|
111
126
|
string created_at = 8;
|
|
112
|
-
string medication_wish = 9;
|
|
127
|
+
optional string medication_wish = 9;
|
|
113
128
|
optional string paid_at = 10;
|
|
114
129
|
string user_id = 11;
|
|
115
130
|
optional string withdrawal_waiver_at = 12;
|
|
131
|
+
repeated MedicationProduct medication_products = 13;
|
|
132
|
+
repeated IntakeMethod intake_methods = 14;
|
|
116
133
|
}
|
|
117
134
|
|
|
118
135
|
message GetQuestionnaireRequest {
|
|
@@ -198,7 +215,8 @@ message ListAllTreatmentRequestsResponse {
|
|
|
198
215
|
message UpdateTreatmentRequestRequest {
|
|
199
216
|
string user_id = 1;
|
|
200
217
|
string id = 2;
|
|
201
|
-
string medication_wish = 3;
|
|
218
|
+
optional string medication_wish = 3;
|
|
219
|
+
repeated MedicationProduct medication_products = 4;
|
|
202
220
|
}
|
|
203
221
|
|
|
204
222
|
message UpdateTreatmentRequestResponse {
|
|
@@ -207,7 +225,8 @@ message UpdateTreatmentRequestResponse {
|
|
|
207
225
|
|
|
208
226
|
message ChangeMedicationWishRequest {
|
|
209
227
|
string id = 1;
|
|
210
|
-
string medication_wish = 2;
|
|
228
|
+
optional string medication_wish = 2;
|
|
229
|
+
repeated MedicationProduct medication_products = 3;
|
|
211
230
|
}
|
|
212
231
|
|
|
213
232
|
message ChangeMedicationWishResponse {
|