@candesk/contracts 6.49.0 → 6.50.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 +1 -0
- package/dist/gen/treatment.d.ts +21 -3
- package/dist/gen/treatment.js +8 -1
- package/dist/nest/catalog.d.ts +1 -0
- package/dist/nest/treatment.d.ts +21 -3
- package/dist/nest/treatment.js +8 -1
- package/package.json +1 -1
- package/proto/catalog.proto +1 -0
- package/proto/treatment.proto +22 -3
package/dist/gen/catalog.d.ts
CHANGED
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
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
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 {
|