@mamindom/contracts 1.0.201 → 1.0.203

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.
@@ -15,6 +15,44 @@ export interface PickupPointResponse {
15
15
  showOnContacts: boolean;
16
16
  isPickup: boolean;
17
17
  sortOrder: number;
18
+ slug?: string | undefined;
19
+ pagePublished: boolean;
20
+ description: {
21
+ [key: string]: string;
22
+ };
23
+ heroImage?: string | undefined;
24
+ heroImageId?: string | undefined;
25
+ pageBlocks?: string | undefined;
26
+ metaTitle: {
27
+ [key: string]: string;
28
+ };
29
+ metaDescription: {
30
+ [key: string]: string;
31
+ };
32
+ }
33
+ export interface PickupPointResponse_DescriptionEntry {
34
+ key: string;
35
+ value: string;
36
+ }
37
+ export interface PickupPointResponse_MetaTitleEntry {
38
+ key: string;
39
+ value: string;
40
+ }
41
+ export interface PickupPointResponse_MetaDescriptionEntry {
42
+ key: string;
43
+ value: string;
44
+ }
45
+ export interface StorePageResponse {
46
+ point: PickupPointResponse | undefined;
47
+ }
48
+ export interface GetStorePagesRequest {
49
+ city?: string | undefined;
50
+ }
51
+ export interface GetStorePagesResponse {
52
+ items: PickupPointResponse[];
53
+ }
54
+ export interface GetStorePageRequest {
55
+ slug: string;
18
56
  }
19
57
  export interface GetPickupPointsRequest {
20
58
  isActive?: boolean | undefined;
@@ -41,6 +79,32 @@ export interface CreatePickupPointRequest {
41
79
  showOnContacts?: boolean | undefined;
42
80
  isPickup?: boolean | undefined;
43
81
  sortOrder?: number | undefined;
82
+ slug?: string | undefined;
83
+ pagePublished?: boolean | undefined;
84
+ description: {
85
+ [key: string]: string;
86
+ };
87
+ heroImage?: string | undefined;
88
+ heroImageId?: string | undefined;
89
+ pageBlocks?: string | undefined;
90
+ metaTitle: {
91
+ [key: string]: string;
92
+ };
93
+ metaDescription: {
94
+ [key: string]: string;
95
+ };
96
+ }
97
+ export interface CreatePickupPointRequest_DescriptionEntry {
98
+ key: string;
99
+ value: string;
100
+ }
101
+ export interface CreatePickupPointRequest_MetaTitleEntry {
102
+ key: string;
103
+ value: string;
104
+ }
105
+ export interface CreatePickupPointRequest_MetaDescriptionEntry {
106
+ key: string;
107
+ value: string;
44
108
  }
45
109
  export interface UpdatePickupPointRequest {
46
110
  id: string;
@@ -56,6 +120,32 @@ export interface UpdatePickupPointRequest {
56
120
  showOnContacts?: boolean | undefined;
57
121
  isPickup?: boolean | undefined;
58
122
  sortOrder?: number | undefined;
123
+ slug?: string | undefined;
124
+ pagePublished?: boolean | undefined;
125
+ description: {
126
+ [key: string]: string;
127
+ };
128
+ heroImage?: string | undefined;
129
+ heroImageId?: string | undefined;
130
+ pageBlocks?: string | undefined;
131
+ metaTitle: {
132
+ [key: string]: string;
133
+ };
134
+ metaDescription: {
135
+ [key: string]: string;
136
+ };
137
+ }
138
+ export interface UpdatePickupPointRequest_DescriptionEntry {
139
+ key: string;
140
+ value: string;
141
+ }
142
+ export interface UpdatePickupPointRequest_MetaTitleEntry {
143
+ key: string;
144
+ value: string;
145
+ }
146
+ export interface UpdatePickupPointRequest_MetaDescriptionEntry {
147
+ key: string;
148
+ value: string;
59
149
  }
60
150
  export interface DeletePickupPointRequest {
61
151
  id: string;
@@ -109,6 +199,8 @@ export interface PickupPointServiceClient {
109
199
  createPickupPoint(request: CreatePickupPointRequest): Observable<PickupPointResponse>;
110
200
  updatePickupPoint(request: UpdatePickupPointRequest): Observable<PickupPointResponse>;
111
201
  deletePickupPoint(request: DeletePickupPointRequest): Observable<DeleteResponse>;
202
+ getStorePages(request: GetStorePagesRequest): Observable<GetStorePagesResponse>;
203
+ getStorePage(request: GetStorePageRequest): Observable<StorePageResponse>;
112
204
  getPickupStock(request: GetPickupStockRequest): Observable<GetPickupStockResponse>;
113
205
  setPickupStock(request: SetPickupStockRequest): Observable<PickupStockItemResponse>;
114
206
  adjustPickupStock(request: AdjustPickupStockRequest): Observable<PickupStockItemResponse>;
@@ -121,6 +213,8 @@ export interface PickupPointServiceController {
121
213
  createPickupPoint(request: CreatePickupPointRequest): Promise<PickupPointResponse> | Observable<PickupPointResponse> | PickupPointResponse;
122
214
  updatePickupPoint(request: UpdatePickupPointRequest): Promise<PickupPointResponse> | Observable<PickupPointResponse> | PickupPointResponse;
123
215
  deletePickupPoint(request: DeletePickupPointRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
216
+ getStorePages(request: GetStorePagesRequest): Promise<GetStorePagesResponse> | Observable<GetStorePagesResponse> | GetStorePagesResponse;
217
+ getStorePage(request: GetStorePageRequest): Promise<StorePageResponse> | Observable<StorePageResponse> | StorePageResponse;
124
218
  getPickupStock(request: GetPickupStockRequest): Promise<GetPickupStockResponse> | Observable<GetPickupStockResponse> | GetPickupStockResponse;
125
219
  setPickupStock(request: SetPickupStockRequest): Promise<PickupStockItemResponse> | Observable<PickupStockItemResponse> | PickupStockItemResponse;
126
220
  adjustPickupStock(request: AdjustPickupStockRequest): Promise<PickupStockItemResponse> | Observable<PickupStockItemResponse> | PickupStockItemResponse;
@@ -19,6 +19,8 @@ function PickupPointServiceControllerMethods() {
19
19
  "createPickupPoint",
20
20
  "updatePickupPoint",
21
21
  "deletePickupPoint",
22
+ "getStorePages",
23
+ "getStorePage",
22
24
  "getPickupStock",
23
25
  "setPickupStock",
24
26
  "adjustPickupStock",
@@ -13,6 +13,10 @@ service PickupPointService {
13
13
  rpc DeletePickupPoint (DeletePickupPointRequest) returns (DeleteResponse);
14
14
 
15
15
 
16
+ rpc GetStorePages (GetStorePagesRequest) returns (GetStorePagesResponse);
17
+ rpc GetStorePage (GetStorePageRequest) returns (StorePageResponse);
18
+
19
+
16
20
  rpc GetPickupStock (GetPickupStockRequest) returns (GetPickupStockResponse);
17
21
  rpc SetPickupStock (SetPickupStockRequest) returns (PickupStockItemResponse);
18
22
  rpc AdjustPickupStock (AdjustPickupStockRequest) returns (PickupStockItemResponse);
@@ -35,6 +39,33 @@ message PickupPointResponse {
35
39
  bool show_on_contacts = 11;
36
40
  bool is_pickup = 12;
37
41
  int32 sort_order = 13;
42
+
43
+
44
+ optional string slug = 14;
45
+ bool page_published = 15;
46
+ map<string, string> description = 16;
47
+ optional string hero_image = 17;
48
+ optional string hero_image_id = 18;
49
+
50
+ optional string page_blocks = 19;
51
+ map<string, string> meta_title = 20;
52
+ map<string, string> meta_description = 21;
53
+ }
54
+
55
+ message StorePageResponse {
56
+ PickupPointResponse point = 1;
57
+ }
58
+
59
+ message GetStorePagesRequest {
60
+ optional string city = 1;
61
+ }
62
+
63
+ message GetStorePagesResponse {
64
+ repeated PickupPointResponse items = 1;
65
+ }
66
+
67
+ message GetStorePageRequest {
68
+ string slug = 1;
38
69
  }
39
70
 
40
71
  message GetPickupPointsRequest {
@@ -65,6 +96,15 @@ message CreatePickupPointRequest {
65
96
  optional bool show_on_contacts = 10;
66
97
  optional bool is_pickup = 11;
67
98
  optional int32 sort_order = 12;
99
+
100
+ optional string slug = 13;
101
+ optional bool page_published = 14;
102
+ map<string, string> description = 15;
103
+ optional string hero_image = 16;
104
+ optional string hero_image_id = 17;
105
+ optional string page_blocks = 18;
106
+ map<string, string> meta_title = 19;
107
+ map<string, string> meta_description = 20;
68
108
  }
69
109
 
70
110
  message UpdatePickupPointRequest {
@@ -81,6 +121,15 @@ message UpdatePickupPointRequest {
81
121
  optional bool show_on_contacts = 11;
82
122
  optional bool is_pickup = 12;
83
123
  optional int32 sort_order = 13;
124
+
125
+ optional string slug = 14;
126
+ optional bool page_published = 15;
127
+ map<string, string> description = 16;
128
+ optional string hero_image = 17;
129
+ optional string hero_image_id = 18;
130
+ optional string page_blocks = 19;
131
+ map<string, string> meta_title = 20;
132
+ map<string, string> meta_description = 21;
84
133
  }
85
134
 
86
135
  message DeletePickupPointRequest {
package/gen/pickup.ts CHANGED
@@ -25,6 +25,45 @@ export interface PickupPointResponse {
25
25
  showOnContacts: boolean;
26
26
  isPickup: boolean;
27
27
  sortOrder: number;
28
+ slug?: string | undefined;
29
+ pagePublished: boolean;
30
+ description: { [key: string]: string };
31
+ heroImage?: string | undefined;
32
+ heroImageId?: string | undefined;
33
+ pageBlocks?: string | undefined;
34
+ metaTitle: { [key: string]: string };
35
+ metaDescription: { [key: string]: string };
36
+ }
37
+
38
+ export interface PickupPointResponse_DescriptionEntry {
39
+ key: string;
40
+ value: string;
41
+ }
42
+
43
+ export interface PickupPointResponse_MetaTitleEntry {
44
+ key: string;
45
+ value: string;
46
+ }
47
+
48
+ export interface PickupPointResponse_MetaDescriptionEntry {
49
+ key: string;
50
+ value: string;
51
+ }
52
+
53
+ export interface StorePageResponse {
54
+ point: PickupPointResponse | undefined;
55
+ }
56
+
57
+ export interface GetStorePagesRequest {
58
+ city?: string | undefined;
59
+ }
60
+
61
+ export interface GetStorePagesResponse {
62
+ items: PickupPointResponse[];
63
+ }
64
+
65
+ export interface GetStorePageRequest {
66
+ slug: string;
28
67
  }
29
68
 
30
69
  export interface GetPickupPointsRequest {
@@ -55,6 +94,29 @@ export interface CreatePickupPointRequest {
55
94
  showOnContacts?: boolean | undefined;
56
95
  isPickup?: boolean | undefined;
57
96
  sortOrder?: number | undefined;
97
+ slug?: string | undefined;
98
+ pagePublished?: boolean | undefined;
99
+ description: { [key: string]: string };
100
+ heroImage?: string | undefined;
101
+ heroImageId?: string | undefined;
102
+ pageBlocks?: string | undefined;
103
+ metaTitle: { [key: string]: string };
104
+ metaDescription: { [key: string]: string };
105
+ }
106
+
107
+ export interface CreatePickupPointRequest_DescriptionEntry {
108
+ key: string;
109
+ value: string;
110
+ }
111
+
112
+ export interface CreatePickupPointRequest_MetaTitleEntry {
113
+ key: string;
114
+ value: string;
115
+ }
116
+
117
+ export interface CreatePickupPointRequest_MetaDescriptionEntry {
118
+ key: string;
119
+ value: string;
58
120
  }
59
121
 
60
122
  export interface UpdatePickupPointRequest {
@@ -71,6 +133,29 @@ export interface UpdatePickupPointRequest {
71
133
  showOnContacts?: boolean | undefined;
72
134
  isPickup?: boolean | undefined;
73
135
  sortOrder?: number | undefined;
136
+ slug?: string | undefined;
137
+ pagePublished?: boolean | undefined;
138
+ description: { [key: string]: string };
139
+ heroImage?: string | undefined;
140
+ heroImageId?: string | undefined;
141
+ pageBlocks?: string | undefined;
142
+ metaTitle: { [key: string]: string };
143
+ metaDescription: { [key: string]: string };
144
+ }
145
+
146
+ export interface UpdatePickupPointRequest_DescriptionEntry {
147
+ key: string;
148
+ value: string;
149
+ }
150
+
151
+ export interface UpdatePickupPointRequest_MetaTitleEntry {
152
+ key: string;
153
+ value: string;
154
+ }
155
+
156
+ export interface UpdatePickupPointRequest_MetaDescriptionEntry {
157
+ key: string;
158
+ value: string;
74
159
  }
75
160
 
76
161
  export interface DeletePickupPointRequest {
@@ -140,6 +225,10 @@ export interface PickupPointServiceClient {
140
225
 
141
226
  deletePickupPoint(request: DeletePickupPointRequest): Observable<DeleteResponse>;
142
227
 
228
+ getStorePages(request: GetStorePagesRequest): Observable<GetStorePagesResponse>;
229
+
230
+ getStorePage(request: GetStorePageRequest): Observable<StorePageResponse>;
231
+
143
232
  getPickupStock(request: GetPickupStockRequest): Observable<GetPickupStockResponse>;
144
233
 
145
234
  setPickupStock(request: SetPickupStockRequest): Observable<PickupStockItemResponse>;
@@ -172,6 +261,14 @@ export interface PickupPointServiceController {
172
261
  request: DeletePickupPointRequest,
173
262
  ): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
174
263
 
264
+ getStorePages(
265
+ request: GetStorePagesRequest,
266
+ ): Promise<GetStorePagesResponse> | Observable<GetStorePagesResponse> | GetStorePagesResponse;
267
+
268
+ getStorePage(
269
+ request: GetStorePageRequest,
270
+ ): Promise<StorePageResponse> | Observable<StorePageResponse> | StorePageResponse;
271
+
175
272
  getPickupStock(
176
273
  request: GetPickupStockRequest,
177
274
  ): Promise<GetPickupStockResponse> | Observable<GetPickupStockResponse> | GetPickupStockResponse;
@@ -201,6 +298,8 @@ export function PickupPointServiceControllerMethods() {
201
298
  "createPickupPoint",
202
299
  "updatePickupPoint",
203
300
  "deletePickupPoint",
301
+ "getStorePages",
302
+ "getStorePage",
204
303
  "getPickupStock",
205
304
  "setPickupStock",
206
305
  "adjustPickupStock",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.201",
4
+ "version": "1.0.203",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -13,6 +13,10 @@ service PickupPointService {
13
13
  rpc DeletePickupPoint (DeletePickupPointRequest) returns (DeleteResponse);
14
14
 
15
15
 
16
+ rpc GetStorePages (GetStorePagesRequest) returns (GetStorePagesResponse);
17
+ rpc GetStorePage (GetStorePageRequest) returns (StorePageResponse);
18
+
19
+
16
20
  rpc GetPickupStock (GetPickupStockRequest) returns (GetPickupStockResponse);
17
21
  rpc SetPickupStock (SetPickupStockRequest) returns (PickupStockItemResponse);
18
22
  rpc AdjustPickupStock (AdjustPickupStockRequest) returns (PickupStockItemResponse);
@@ -35,6 +39,33 @@ message PickupPointResponse {
35
39
  bool show_on_contacts = 11;
36
40
  bool is_pickup = 12;
37
41
  int32 sort_order = 13;
42
+
43
+
44
+ optional string slug = 14;
45
+ bool page_published = 15;
46
+ map<string, string> description = 16;
47
+ optional string hero_image = 17;
48
+ optional string hero_image_id = 18;
49
+
50
+ optional string page_blocks = 19;
51
+ map<string, string> meta_title = 20;
52
+ map<string, string> meta_description = 21;
53
+ }
54
+
55
+ message StorePageResponse {
56
+ PickupPointResponse point = 1;
57
+ }
58
+
59
+ message GetStorePagesRequest {
60
+ optional string city = 1;
61
+ }
62
+
63
+ message GetStorePagesResponse {
64
+ repeated PickupPointResponse items = 1;
65
+ }
66
+
67
+ message GetStorePageRequest {
68
+ string slug = 1;
38
69
  }
39
70
 
40
71
  message GetPickupPointsRequest {
@@ -65,6 +96,15 @@ message CreatePickupPointRequest {
65
96
  optional bool show_on_contacts = 10;
66
97
  optional bool is_pickup = 11;
67
98
  optional int32 sort_order = 12;
99
+
100
+ optional string slug = 13;
101
+ optional bool page_published = 14;
102
+ map<string, string> description = 15;
103
+ optional string hero_image = 16;
104
+ optional string hero_image_id = 17;
105
+ optional string page_blocks = 18;
106
+ map<string, string> meta_title = 19;
107
+ map<string, string> meta_description = 20;
68
108
  }
69
109
 
70
110
  message UpdatePickupPointRequest {
@@ -81,6 +121,15 @@ message UpdatePickupPointRequest {
81
121
  optional bool show_on_contacts = 11;
82
122
  optional bool is_pickup = 12;
83
123
  optional int32 sort_order = 13;
124
+
125
+ optional string slug = 14;
126
+ optional bool page_published = 15;
127
+ map<string, string> description = 16;
128
+ optional string hero_image = 17;
129
+ optional string hero_image_id = 18;
130
+ optional string page_blocks = 19;
131
+ map<string, string> meta_title = 20;
132
+ map<string, string> meta_description = 21;
84
133
  }
85
134
 
86
135
  message DeletePickupPointRequest {