@mamindom/contracts 1.0.174 → 1.0.176
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/auth.d.ts +1 -0
- package/dist/gen/users.d.ts +27 -0
- package/dist/gen/users.js +1 -0
- package/dist/proto/account.proto +1 -0
- package/dist/proto/auth.proto +1 -0
- package/dist/proto/users.proto +34 -0
- package/gen/auth.ts +1 -0
- package/gen/users.ts +36 -0
- package/package.json +1 -1
- package/proto/account.proto +1 -0
- package/proto/auth.proto +1 -0
- package/proto/users.proto +34 -0
package/dist/gen/auth.d.ts
CHANGED
package/dist/gen/users.d.ts
CHANGED
|
@@ -208,6 +208,31 @@ export interface RemoveChildRequest {
|
|
|
208
208
|
export interface RemoveChildResponse {
|
|
209
209
|
ok: boolean;
|
|
210
210
|
}
|
|
211
|
+
export interface ApplyCrmSnapshotChild {
|
|
212
|
+
planfixTaskId: string;
|
|
213
|
+
childId?: string | undefined;
|
|
214
|
+
name: string;
|
|
215
|
+
birthDate: string;
|
|
216
|
+
gender: Gender;
|
|
217
|
+
}
|
|
218
|
+
export interface ApplyCrmSnapshotRequest {
|
|
219
|
+
userId: string;
|
|
220
|
+
firstName?: string | undefined;
|
|
221
|
+
lastName?: string | undefined;
|
|
222
|
+
email?: string | undefined;
|
|
223
|
+
phone?: string | undefined;
|
|
224
|
+
expectedDeliveryDate?: string | undefined;
|
|
225
|
+
children: ApplyCrmSnapshotChild[];
|
|
226
|
+
}
|
|
227
|
+
export interface ApplyCrmSnapshotChildLink {
|
|
228
|
+
planfixTaskId: string;
|
|
229
|
+
childId: string;
|
|
230
|
+
}
|
|
231
|
+
export interface ApplyCrmSnapshotResponse {
|
|
232
|
+
profileChanged: boolean;
|
|
233
|
+
familyChanged: boolean;
|
|
234
|
+
links: ApplyCrmSnapshotChildLink[];
|
|
235
|
+
}
|
|
211
236
|
export interface GetPregnancyRequest {
|
|
212
237
|
userId: string;
|
|
213
238
|
}
|
|
@@ -296,6 +321,7 @@ export interface UsersServiceClient {
|
|
|
296
321
|
removeChild(request: RemoveChildRequest): Observable<RemoveChildResponse>;
|
|
297
322
|
getPregnancy(request: GetPregnancyRequest): Observable<GetPregnancyResponse>;
|
|
298
323
|
updatePregnancy(request: UpdatePregnancyRequest): Observable<GetPregnancyResponse>;
|
|
324
|
+
applyCrmSnapshot(request: ApplyCrmSnapshotRequest): Observable<ApplyCrmSnapshotResponse>;
|
|
299
325
|
setPlanfixContactId(request: SetPlanfixContactIdRequest): Observable<SetPlanfixContactIdResponse>;
|
|
300
326
|
getCart(request: GetCartRequest): Observable<GetCartResponse>;
|
|
301
327
|
upsertCartItem(request: UpsertCartItemRequest): Observable<GetCartResponse>;
|
|
@@ -328,6 +354,7 @@ export interface UsersServiceController {
|
|
|
328
354
|
removeChild(request: RemoveChildRequest): Promise<RemoveChildResponse> | Observable<RemoveChildResponse> | RemoveChildResponse;
|
|
329
355
|
getPregnancy(request: GetPregnancyRequest): Promise<GetPregnancyResponse> | Observable<GetPregnancyResponse> | GetPregnancyResponse;
|
|
330
356
|
updatePregnancy(request: UpdatePregnancyRequest): Promise<GetPregnancyResponse> | Observable<GetPregnancyResponse> | GetPregnancyResponse;
|
|
357
|
+
applyCrmSnapshot(request: ApplyCrmSnapshotRequest): Promise<ApplyCrmSnapshotResponse> | Observable<ApplyCrmSnapshotResponse> | ApplyCrmSnapshotResponse;
|
|
331
358
|
setPlanfixContactId(request: SetPlanfixContactIdRequest): Promise<SetPlanfixContactIdResponse> | Observable<SetPlanfixContactIdResponse> | SetPlanfixContactIdResponse;
|
|
332
359
|
getCart(request: GetCartRequest): Promise<GetCartResponse> | Observable<GetCartResponse> | GetCartResponse;
|
|
333
360
|
upsertCartItem(request: UpsertCartItemRequest): Promise<GetCartResponse> | Observable<GetCartResponse> | GetCartResponse;
|
package/dist/gen/users.js
CHANGED
package/dist/proto/account.proto
CHANGED
package/dist/proto/auth.proto
CHANGED
package/dist/proto/users.proto
CHANGED
|
@@ -42,6 +42,9 @@ service UsersService {
|
|
|
42
42
|
rpc GetPregnancy(GetPregnancyRequest) returns (GetPregnancyResponse);
|
|
43
43
|
rpc UpdatePregnancy(UpdatePregnancyRequest) returns (GetPregnancyResponse);
|
|
44
44
|
|
|
45
|
+
|
|
46
|
+
rpc ApplyCrmSnapshot(ApplyCrmSnapshotRequest) returns (ApplyCrmSnapshotResponse);
|
|
47
|
+
|
|
45
48
|
|
|
46
49
|
rpc SetPlanfixContactId(SetPlanfixContactIdRequest) returns (SetPlanfixContactIdResponse);
|
|
47
50
|
|
|
@@ -314,6 +317,37 @@ message RemoveChildResponse {
|
|
|
314
317
|
}
|
|
315
318
|
|
|
316
319
|
|
|
320
|
+
message ApplyCrmSnapshotChild {
|
|
321
|
+
string planfix_task_id = 1;
|
|
322
|
+
optional string child_id = 2;
|
|
323
|
+
string name = 3;
|
|
324
|
+
string birth_date = 4;
|
|
325
|
+
Gender gender = 5;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
message ApplyCrmSnapshotRequest {
|
|
329
|
+
string user_id = 1;
|
|
330
|
+
optional string first_name = 2;
|
|
331
|
+
optional string last_name = 3;
|
|
332
|
+
optional string email = 4;
|
|
333
|
+
optional string phone = 5;
|
|
334
|
+
optional string expected_delivery_date = 6;
|
|
335
|
+
repeated ApplyCrmSnapshotChild children = 7;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
message ApplyCrmSnapshotChildLink {
|
|
340
|
+
string planfix_task_id = 1;
|
|
341
|
+
string child_id = 2;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
message ApplyCrmSnapshotResponse {
|
|
345
|
+
bool profile_changed = 1;
|
|
346
|
+
bool family_changed = 2;
|
|
347
|
+
repeated ApplyCrmSnapshotChildLink links = 3;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
|
|
317
351
|
message GetPregnancyRequest {
|
|
318
352
|
string user_id = 1;
|
|
319
353
|
}
|
package/gen/auth.ts
CHANGED
package/gen/users.ts
CHANGED
|
@@ -264,6 +264,35 @@ export interface RemoveChildResponse {
|
|
|
264
264
|
ok: boolean;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
export interface ApplyCrmSnapshotChild {
|
|
268
|
+
planfixTaskId: string;
|
|
269
|
+
childId?: string | undefined;
|
|
270
|
+
name: string;
|
|
271
|
+
birthDate: string;
|
|
272
|
+
gender: Gender;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface ApplyCrmSnapshotRequest {
|
|
276
|
+
userId: string;
|
|
277
|
+
firstName?: string | undefined;
|
|
278
|
+
lastName?: string | undefined;
|
|
279
|
+
email?: string | undefined;
|
|
280
|
+
phone?: string | undefined;
|
|
281
|
+
expectedDeliveryDate?: string | undefined;
|
|
282
|
+
children: ApplyCrmSnapshotChild[];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface ApplyCrmSnapshotChildLink {
|
|
286
|
+
planfixTaskId: string;
|
|
287
|
+
childId: string;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface ApplyCrmSnapshotResponse {
|
|
291
|
+
profileChanged: boolean;
|
|
292
|
+
familyChanged: boolean;
|
|
293
|
+
links: ApplyCrmSnapshotChildLink[];
|
|
294
|
+
}
|
|
295
|
+
|
|
267
296
|
export interface GetPregnancyRequest {
|
|
268
297
|
userId: string;
|
|
269
298
|
}
|
|
@@ -393,6 +422,8 @@ export interface UsersServiceClient {
|
|
|
393
422
|
|
|
394
423
|
updatePregnancy(request: UpdatePregnancyRequest): Observable<GetPregnancyResponse>;
|
|
395
424
|
|
|
425
|
+
applyCrmSnapshot(request: ApplyCrmSnapshotRequest): Observable<ApplyCrmSnapshotResponse>;
|
|
426
|
+
|
|
396
427
|
setPlanfixContactId(request: SetPlanfixContactIdRequest): Observable<SetPlanfixContactIdResponse>;
|
|
397
428
|
|
|
398
429
|
getCart(request: GetCartRequest): Observable<GetCartResponse>;
|
|
@@ -494,6 +525,10 @@ export interface UsersServiceController {
|
|
|
494
525
|
request: UpdatePregnancyRequest,
|
|
495
526
|
): Promise<GetPregnancyResponse> | Observable<GetPregnancyResponse> | GetPregnancyResponse;
|
|
496
527
|
|
|
528
|
+
applyCrmSnapshot(
|
|
529
|
+
request: ApplyCrmSnapshotRequest,
|
|
530
|
+
): Promise<ApplyCrmSnapshotResponse> | Observable<ApplyCrmSnapshotResponse> | ApplyCrmSnapshotResponse;
|
|
531
|
+
|
|
497
532
|
setPlanfixContactId(
|
|
498
533
|
request: SetPlanfixContactIdRequest,
|
|
499
534
|
): Promise<SetPlanfixContactIdResponse> | Observable<SetPlanfixContactIdResponse> | SetPlanfixContactIdResponse;
|
|
@@ -543,6 +578,7 @@ export function UsersServiceControllerMethods() {
|
|
|
543
578
|
"removeChild",
|
|
544
579
|
"getPregnancy",
|
|
545
580
|
"updatePregnancy",
|
|
581
|
+
"applyCrmSnapshot",
|
|
546
582
|
"setPlanfixContactId",
|
|
547
583
|
"getCart",
|
|
548
584
|
"upsertCartItem",
|
package/package.json
CHANGED
package/proto/account.proto
CHANGED
package/proto/auth.proto
CHANGED
package/proto/users.proto
CHANGED
|
@@ -42,6 +42,9 @@ service UsersService {
|
|
|
42
42
|
rpc GetPregnancy(GetPregnancyRequest) returns (GetPregnancyResponse);
|
|
43
43
|
rpc UpdatePregnancy(UpdatePregnancyRequest) returns (GetPregnancyResponse);
|
|
44
44
|
|
|
45
|
+
|
|
46
|
+
rpc ApplyCrmSnapshot(ApplyCrmSnapshotRequest) returns (ApplyCrmSnapshotResponse);
|
|
47
|
+
|
|
45
48
|
|
|
46
49
|
rpc SetPlanfixContactId(SetPlanfixContactIdRequest) returns (SetPlanfixContactIdResponse);
|
|
47
50
|
|
|
@@ -314,6 +317,37 @@ message RemoveChildResponse {
|
|
|
314
317
|
}
|
|
315
318
|
|
|
316
319
|
|
|
320
|
+
message ApplyCrmSnapshotChild {
|
|
321
|
+
string planfix_task_id = 1;
|
|
322
|
+
optional string child_id = 2;
|
|
323
|
+
string name = 3;
|
|
324
|
+
string birth_date = 4;
|
|
325
|
+
Gender gender = 5;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
message ApplyCrmSnapshotRequest {
|
|
329
|
+
string user_id = 1;
|
|
330
|
+
optional string first_name = 2;
|
|
331
|
+
optional string last_name = 3;
|
|
332
|
+
optional string email = 4;
|
|
333
|
+
optional string phone = 5;
|
|
334
|
+
optional string expected_delivery_date = 6;
|
|
335
|
+
repeated ApplyCrmSnapshotChild children = 7;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
message ApplyCrmSnapshotChildLink {
|
|
340
|
+
string planfix_task_id = 1;
|
|
341
|
+
string child_id = 2;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
message ApplyCrmSnapshotResponse {
|
|
345
|
+
bool profile_changed = 1;
|
|
346
|
+
bool family_changed = 2;
|
|
347
|
+
repeated ApplyCrmSnapshotChildLink links = 3;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
|
|
317
351
|
message GetPregnancyRequest {
|
|
318
352
|
string user_id = 1;
|
|
319
353
|
}
|