@mamindom/contracts 1.0.62 → 1.0.63

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.
@@ -144,10 +144,11 @@ export interface CreateBannerSlidePayload {
144
144
  subtitle: {
145
145
  [key: string]: string;
146
146
  };
147
- buttonText: {
148
- [key: string]: string;
149
- };
150
- buttonLink?: string | undefined;
147
+ buttons: BannerSlideButton[];
148
+ buttonsPosition?: ElementPosition | undefined;
149
+ links: BannerSlideLink[];
150
+ linksPosition?: ElementPosition | undefined;
151
+ linksLayout?: string | undefined;
151
152
  styling: string;
152
153
  sortOrder: number;
153
154
  }
@@ -159,10 +160,6 @@ export interface CreateBannerSlidePayload_SubtitleEntry {
159
160
  key: string;
160
161
  value: string;
161
162
  }
162
- export interface CreateBannerSlidePayload_ButtonTextEntry {
163
- key: string;
164
- value: string;
165
- }
166
163
  export interface CreateBannerSlideRequest {
167
164
  bannerId: string;
168
165
  image: string;
@@ -175,10 +172,11 @@ export interface CreateBannerSlideRequest {
175
172
  subtitle: {
176
173
  [key: string]: string;
177
174
  };
178
- buttonText: {
179
- [key: string]: string;
180
- };
181
- buttonLink?: string | undefined;
175
+ buttons: BannerSlideButton[];
176
+ buttonsPosition?: ElementPosition | undefined;
177
+ links: BannerSlideLink[];
178
+ linksPosition?: ElementPosition | undefined;
179
+ linksLayout?: string | undefined;
182
180
  styling: string;
183
181
  sortOrder: number;
184
182
  }
@@ -190,10 +188,6 @@ export interface CreateBannerSlideRequest_SubtitleEntry {
190
188
  key: string;
191
189
  value: string;
192
190
  }
193
- export interface CreateBannerSlideRequest_ButtonTextEntry {
194
- key: string;
195
- value: string;
196
- }
197
191
  export interface UpdateBannerSlideRequest {
198
192
  id: string;
199
193
  image?: string | undefined;
@@ -206,10 +200,11 @@ export interface UpdateBannerSlideRequest {
206
200
  subtitle: {
207
201
  [key: string]: string;
208
202
  };
209
- buttonText: {
210
- [key: string]: string;
211
- };
212
- buttonLink?: string | undefined;
203
+ buttons: BannerSlideButton[];
204
+ buttonsPosition?: ElementPosition | undefined;
205
+ links: BannerSlideLink[];
206
+ linksPosition?: ElementPosition | undefined;
207
+ linksLayout?: string | undefined;
213
208
  styling?: string | undefined;
214
209
  sortOrder?: number | undefined;
215
210
  }
@@ -221,10 +216,6 @@ export interface UpdateBannerSlideRequest_SubtitleEntry {
221
216
  key: string;
222
217
  value: string;
223
218
  }
224
- export interface UpdateBannerSlideRequest_ButtonTextEntry {
225
- key: string;
226
- value: string;
227
- }
228
219
  export interface DeleteBannerSlideRequest {
229
220
  id: string;
230
221
  }
@@ -138,10 +138,16 @@ message CreateBannerSlidePayload {
138
138
  optional string mobile_image_id = 4;
139
139
  map<string, string> title = 5;
140
140
  map<string, string> subtitle = 6;
141
- map<string, string> button_text = 7;
142
- optional string button_link = 8;
143
- string styling = 9;
144
- int32 sort_order = 10;
141
+
142
+
143
+ repeated BannerSlideButton buttons = 7;
144
+ optional ElementPosition buttons_position = 8;
145
+ repeated BannerSlideLink links = 9;
146
+ optional ElementPosition links_position = 10;
147
+ optional string links_layout = 11;
148
+
149
+ string styling = 12;
150
+ int32 sort_order = 13;
145
151
  }
146
152
 
147
153
  message CreateBannerSlideRequest {
@@ -152,10 +158,16 @@ message CreateBannerSlideRequest {
152
158
  optional string mobile_image_id = 5;
153
159
  map<string, string> title = 6;
154
160
  map<string, string> subtitle = 7;
155
- map<string, string> button_text = 8;
156
- optional string button_link = 9;
157
- string styling = 10;
158
- int32 sort_order = 11;
161
+
162
+
163
+ repeated BannerSlideButton buttons = 8;
164
+ optional ElementPosition buttons_position = 9;
165
+ repeated BannerSlideLink links = 10;
166
+ optional ElementPosition links_position = 11;
167
+ optional string links_layout = 12;
168
+
169
+ string styling = 13;
170
+ int32 sort_order = 14;
159
171
  }
160
172
 
161
173
  message UpdateBannerSlideRequest {
@@ -166,10 +178,16 @@ message UpdateBannerSlideRequest {
166
178
  optional string mobile_image_id = 5;
167
179
  map<string, string> title = 6;
168
180
  map<string, string> subtitle = 7;
169
- map<string, string> button_text = 8;
170
- optional string button_link = 9;
171
- optional string styling = 10;
172
- optional int32 sort_order = 11;
181
+
182
+
183
+ repeated BannerSlideButton buttons = 8;
184
+ optional ElementPosition buttons_position = 9;
185
+ repeated BannerSlideLink links = 10;
186
+ optional ElementPosition links_position = 11;
187
+ optional string links_layout = 12;
188
+
189
+ optional string styling = 13;
190
+ optional int32 sort_order = 14;
173
191
  }
174
192
 
175
193
  message DeleteBannerSlideRequest {
package/gen/banner.ts CHANGED
@@ -154,8 +154,11 @@ export interface CreateBannerSlidePayload {
154
154
  mobileImageId?: string | undefined;
155
155
  title: { [key: string]: string };
156
156
  subtitle: { [key: string]: string };
157
- buttonText: { [key: string]: string };
158
- buttonLink?: string | undefined;
157
+ buttons: BannerSlideButton[];
158
+ buttonsPosition?: ElementPosition | undefined;
159
+ links: BannerSlideLink[];
160
+ linksPosition?: ElementPosition | undefined;
161
+ linksLayout?: string | undefined;
159
162
  styling: string;
160
163
  sortOrder: number;
161
164
  }
@@ -170,11 +173,6 @@ export interface CreateBannerSlidePayload_SubtitleEntry {
170
173
  value: string;
171
174
  }
172
175
 
173
- export interface CreateBannerSlidePayload_ButtonTextEntry {
174
- key: string;
175
- value: string;
176
- }
177
-
178
176
  export interface CreateBannerSlideRequest {
179
177
  bannerId: string;
180
178
  image: string;
@@ -183,8 +181,11 @@ export interface CreateBannerSlideRequest {
183
181
  mobileImageId?: string | undefined;
184
182
  title: { [key: string]: string };
185
183
  subtitle: { [key: string]: string };
186
- buttonText: { [key: string]: string };
187
- buttonLink?: string | undefined;
184
+ buttons: BannerSlideButton[];
185
+ buttonsPosition?: ElementPosition | undefined;
186
+ links: BannerSlideLink[];
187
+ linksPosition?: ElementPosition | undefined;
188
+ linksLayout?: string | undefined;
188
189
  styling: string;
189
190
  sortOrder: number;
190
191
  }
@@ -199,11 +200,6 @@ export interface CreateBannerSlideRequest_SubtitleEntry {
199
200
  value: string;
200
201
  }
201
202
 
202
- export interface CreateBannerSlideRequest_ButtonTextEntry {
203
- key: string;
204
- value: string;
205
- }
206
-
207
203
  export interface UpdateBannerSlideRequest {
208
204
  id: string;
209
205
  image?: string | undefined;
@@ -212,8 +208,11 @@ export interface UpdateBannerSlideRequest {
212
208
  mobileImageId?: string | undefined;
213
209
  title: { [key: string]: string };
214
210
  subtitle: { [key: string]: string };
215
- buttonText: { [key: string]: string };
216
- buttonLink?: string | undefined;
211
+ buttons: BannerSlideButton[];
212
+ buttonsPosition?: ElementPosition | undefined;
213
+ links: BannerSlideLink[];
214
+ linksPosition?: ElementPosition | undefined;
215
+ linksLayout?: string | undefined;
217
216
  styling?: string | undefined;
218
217
  sortOrder?: number | undefined;
219
218
  }
@@ -228,11 +227,6 @@ export interface UpdateBannerSlideRequest_SubtitleEntry {
228
227
  value: string;
229
228
  }
230
229
 
231
- export interface UpdateBannerSlideRequest_ButtonTextEntry {
232
- key: string;
233
- value: string;
234
- }
235
-
236
230
  export interface DeleteBannerSlideRequest {
237
231
  id: string;
238
232
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.62",
4
+ "version": "1.0.63",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -138,10 +138,16 @@ message CreateBannerSlidePayload {
138
138
  optional string mobile_image_id = 4;
139
139
  map<string, string> title = 5;
140
140
  map<string, string> subtitle = 6;
141
- map<string, string> button_text = 7;
142
- optional string button_link = 8;
143
- string styling = 9;
144
- int32 sort_order = 10;
141
+
142
+
143
+ repeated BannerSlideButton buttons = 7;
144
+ optional ElementPosition buttons_position = 8;
145
+ repeated BannerSlideLink links = 9;
146
+ optional ElementPosition links_position = 10;
147
+ optional string links_layout = 11;
148
+
149
+ string styling = 12;
150
+ int32 sort_order = 13;
145
151
  }
146
152
 
147
153
  message CreateBannerSlideRequest {
@@ -152,10 +158,16 @@ message CreateBannerSlideRequest {
152
158
  optional string mobile_image_id = 5;
153
159
  map<string, string> title = 6;
154
160
  map<string, string> subtitle = 7;
155
- map<string, string> button_text = 8;
156
- optional string button_link = 9;
157
- string styling = 10;
158
- int32 sort_order = 11;
161
+
162
+
163
+ repeated BannerSlideButton buttons = 8;
164
+ optional ElementPosition buttons_position = 9;
165
+ repeated BannerSlideLink links = 10;
166
+ optional ElementPosition links_position = 11;
167
+ optional string links_layout = 12;
168
+
169
+ string styling = 13;
170
+ int32 sort_order = 14;
159
171
  }
160
172
 
161
173
  message UpdateBannerSlideRequest {
@@ -166,10 +178,16 @@ message UpdateBannerSlideRequest {
166
178
  optional string mobile_image_id = 5;
167
179
  map<string, string> title = 6;
168
180
  map<string, string> subtitle = 7;
169
- map<string, string> button_text = 8;
170
- optional string button_link = 9;
171
- optional string styling = 10;
172
- optional int32 sort_order = 11;
181
+
182
+
183
+ repeated BannerSlideButton buttons = 8;
184
+ optional ElementPosition buttons_position = 9;
185
+ repeated BannerSlideLink links = 10;
186
+ optional ElementPosition links_position = 11;
187
+ optional string links_layout = 12;
188
+
189
+ optional string styling = 13;
190
+ optional int32 sort_order = 14;
173
191
  }
174
192
 
175
193
  message DeleteBannerSlideRequest {