@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.
@@ -22,6 +22,7 @@ export interface LoginRequest {
22
22
  identifier: string;
23
23
  type: string;
24
24
  password: string;
25
+ audience?: string | undefined;
25
26
  }
26
27
  export interface RegisterRequest {
27
28
  firstName: string;
@@ -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
@@ -51,6 +51,7 @@ function UsersServiceControllerMethods() {
51
51
  "removeChild",
52
52
  "getPregnancy",
53
53
  "updatePregnancy",
54
+ "applyCrmSnapshot",
54
55
  "setPlanfixContactId",
55
56
  "getCart",
56
57
  "upsertCartItem",
@@ -16,6 +16,7 @@ service AccountService {
16
16
  rpc AdminCreateAccount(AdminCreateAccountRequest) returns (AdminCreateAccountResponse);
17
17
 
18
18
  rpc AdminGetAccounts(AdminGetAccountsRequest) returns (AdminGetAccountsResponse);
19
+
19
20
  }
20
21
 
21
22
  message GetAccountRequest {
@@ -40,6 +40,7 @@ message LoginRequest {
40
40
  string identifier = 1;
41
41
  string type = 2;
42
42
  string password = 3;
43
+ optional string audience = 4;
43
44
  }
44
45
 
45
46
  message RegisterRequest {
@@ -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
@@ -37,6 +37,7 @@ export interface LoginRequest {
37
37
  identifier: string;
38
38
  type: string;
39
39
  password: string;
40
+ audience?: string | undefined;
40
41
  }
41
42
 
42
43
  export interface RegisterRequest {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.174",
4
+ "version": "1.0.176",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -16,6 +16,7 @@ service AccountService {
16
16
  rpc AdminCreateAccount(AdminCreateAccountRequest) returns (AdminCreateAccountResponse);
17
17
 
18
18
  rpc AdminGetAccounts(AdminGetAccountsRequest) returns (AdminGetAccountsResponse);
19
+
19
20
  }
20
21
 
21
22
  message GetAccountRequest {
package/proto/auth.proto CHANGED
@@ -40,6 +40,7 @@ message LoginRequest {
40
40
  string identifier = 1;
41
41
  string type = 2;
42
42
  string password = 3;
43
+ optional string audience = 4;
43
44
  }
44
45
 
45
46
  message RegisterRequest {
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
  }