@teemill/website 0.7.0 → 0.8.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/api.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Website API
5
- * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.7.0
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.8.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -207,6 +207,130 @@ export interface AuthorizeStripe200Response {
207
207
  */
208
208
  'redirect_url': string;
209
209
  }
210
+ /**
211
+ *
212
+ * @export
213
+ * @interface Blog
214
+ */
215
+ export interface Blog {
216
+ /**
217
+ * Unique object identifier
218
+ * @type {string}
219
+ * @memberof Blog
220
+ */
221
+ 'id'?: string;
222
+ /**
223
+ *
224
+ * @type {string}
225
+ * @memberof Blog
226
+ */
227
+ 'title'?: string;
228
+ /**
229
+ *
230
+ * @type {string}
231
+ * @memberof Blog
232
+ */
233
+ 'description'?: string;
234
+ /**
235
+ *
236
+ * @type {string}
237
+ * @memberof Blog
238
+ */
239
+ 'slug'?: string;
240
+ /**
241
+ *
242
+ * @type {SeoMetadata}
243
+ * @memberof Blog
244
+ */
245
+ 'seoMetadata'?: SeoMetadata;
246
+ /**
247
+ *
248
+ * @type {TargetSearchPhraseData}
249
+ * @memberof Blog
250
+ */
251
+ 'targetSearchPhraseData'?: TargetSearchPhraseData;
252
+ }
253
+ /**
254
+ *
255
+ * @export
256
+ * @interface BlogsResponse
257
+ */
258
+ export interface BlogsResponse {
259
+ /**
260
+ *
261
+ * @type {Array<Blog>}
262
+ * @memberof BlogsResponse
263
+ */
264
+ 'blogs'?: Array<Blog>;
265
+ /**
266
+ * The token referencing the next page number
267
+ * @type {number}
268
+ * @memberof BlogsResponse
269
+ */
270
+ 'nextPageToken'?: number | null;
271
+ }
272
+ /**
273
+ *
274
+ * @export
275
+ * @interface Collection
276
+ */
277
+ export interface Collection {
278
+ /**
279
+ * Unique object identifier
280
+ * @type {string}
281
+ * @memberof Collection
282
+ */
283
+ 'id'?: string;
284
+ /**
285
+ *
286
+ * @type {string}
287
+ * @memberof Collection
288
+ */
289
+ 'title'?: string;
290
+ /**
291
+ *
292
+ * @type {string}
293
+ * @memberof Collection
294
+ */
295
+ 'description'?: string;
296
+ /**
297
+ *
298
+ * @type {string}
299
+ * @memberof Collection
300
+ */
301
+ 'slug'?: string;
302
+ /**
303
+ *
304
+ * @type {SeoMetadata}
305
+ * @memberof Collection
306
+ */
307
+ 'seoMetadata'?: SeoMetadata;
308
+ /**
309
+ *
310
+ * @type {TargetSearchPhraseData}
311
+ * @memberof Collection
312
+ */
313
+ 'targetSearchPhraseData'?: TargetSearchPhraseData;
314
+ }
315
+ /**
316
+ *
317
+ * @export
318
+ * @interface CollectionsResponse
319
+ */
320
+ export interface CollectionsResponse {
321
+ /**
322
+ *
323
+ * @type {Array<Collection>}
324
+ * @memberof CollectionsResponse
325
+ */
326
+ 'collections'?: Array<Collection>;
327
+ /**
328
+ * The token referencing the next page number
329
+ * @type {number}
330
+ * @memberof CollectionsResponse
331
+ */
332
+ 'nextPageToken'?: number | null;
333
+ }
210
334
  /**
211
335
  * Image description
212
336
  * @export
@@ -350,6 +474,68 @@ export interface MetaField {
350
474
  */
351
475
  'value': string;
352
476
  }
477
+ /**
478
+ *
479
+ * @export
480
+ * @interface Page
481
+ */
482
+ export interface Page {
483
+ /**
484
+ * Unique object identifier
485
+ * @type {string}
486
+ * @memberof Page
487
+ */
488
+ 'id'?: string;
489
+ /**
490
+ *
491
+ * @type {string}
492
+ * @memberof Page
493
+ */
494
+ 'title'?: string;
495
+ /**
496
+ *
497
+ * @type {string}
498
+ * @memberof Page
499
+ */
500
+ 'description'?: string;
501
+ /**
502
+ *
503
+ * @type {string}
504
+ * @memberof Page
505
+ */
506
+ 'slug'?: string;
507
+ /**
508
+ *
509
+ * @type {SeoMetadata}
510
+ * @memberof Page
511
+ */
512
+ 'seoMetadata'?: SeoMetadata;
513
+ /**
514
+ *
515
+ * @type {TargetSearchPhraseData}
516
+ * @memberof Page
517
+ */
518
+ 'targetSearchPhraseData'?: TargetSearchPhraseData;
519
+ }
520
+ /**
521
+ *
522
+ * @export
523
+ * @interface PagesResponse
524
+ */
525
+ export interface PagesResponse {
526
+ /**
527
+ *
528
+ * @type {Array<Page>}
529
+ * @memberof PagesResponse
530
+ */
531
+ 'pages'?: Array<Page>;
532
+ /**
533
+ * The token referencing the next page number
534
+ * @type {number}
535
+ * @memberof PagesResponse
536
+ */
537
+ 'nextPageToken'?: number | null;
538
+ }
353
539
  /**
354
540
  *
355
541
  * @export
@@ -763,293 +949,1548 @@ export interface SubmenuItem {
763
949
  /**
764
950
  *
765
951
  * @export
766
- * @interface UpdateMenuRequest
952
+ * @interface TargetSearchPhraseData
767
953
  */
768
- export interface UpdateMenuRequest {
954
+ export interface TargetSearchPhraseData {
769
955
  /**
770
- *
771
- * @type {Array<UpdateMenuRequestItem>}
772
- * @memberof UpdateMenuRequest
956
+ * The primary target search phrase for a page that you wish to rank for in search engine results.
957
+ * @type {string}
958
+ * @memberof TargetSearchPhraseData
773
959
  */
774
- 'items'?: Array<UpdateMenuRequestItem>;
960
+ 'targetSearchPhrase'?: string;
961
+ /**
962
+ * Synonyms for the target search phrase.
963
+ * @type {Array<string>}
964
+ * @memberof TargetSearchPhraseData
965
+ */
966
+ 'targetSearchPhraseSynonyms'?: Array<string>;
775
967
  }
776
968
  /**
777
969
  *
778
970
  * @export
779
- * @interface UpdateMenuRequestItem
971
+ * @interface UpdateBlogRequest
780
972
  */
781
- export interface UpdateMenuRequestItem {
973
+ export interface UpdateBlogRequest {
782
974
  /**
783
- *
975
+ * Blog title
784
976
  * @type {string}
785
- * @memberof UpdateMenuRequestItem
977
+ * @memberof UpdateBlogRequest
786
978
  */
787
- 'id': string | null;
979
+ 'title'?: string;
788
980
  /**
789
- *
981
+ * Blog description
790
982
  * @type {string}
791
- * @memberof UpdateMenuRequestItem
983
+ * @memberof UpdateBlogRequest
792
984
  */
793
- 'text': string;
985
+ 'description'?: string;
794
986
  /**
795
- *
987
+ * URL slug. This must be unique for each blog post on the website. Updating this will also break any existing links to this blog post.
796
988
  * @type {string}
797
- * @memberof UpdateMenuRequestItem
989
+ * @memberof UpdateBlogRequest
798
990
  */
799
- 'link': string;
991
+ 'slug'?: string;
800
992
  /**
801
993
  *
802
- * @type {number}
803
- * @memberof UpdateMenuRequestItem
994
+ * @type {UpdateBlogsRequestBlogsInnerSeoMetadata}
995
+ * @memberof UpdateBlogRequest
804
996
  */
805
- 'order': number;
997
+ 'seoMetadata'?: UpdateBlogsRequestBlogsInnerSeoMetadata;
806
998
  /**
807
- *
808
- * @type {Array<UpdateMenuRequestItemSubmenuInner>}
809
- * @memberof UpdateMenuRequestItem
999
+ * The primary target search phrase for the blog post that you wish to rank for in search engine results.
1000
+ * @type {string}
1001
+ * @memberof UpdateBlogRequest
810
1002
  */
811
- 'submenu': Array<UpdateMenuRequestItemSubmenuInner>;
1003
+ 'targetSearchPhrase'?: string;
1004
+ /**
1005
+ * Synonyms for the target search phrase.
1006
+ * @type {Array<string>}
1007
+ * @memberof UpdateBlogRequest
1008
+ */
1009
+ 'targetSearchPhraseSynonyms'?: Array<string>;
812
1010
  }
813
1011
  /**
814
1012
  *
815
1013
  * @export
816
- * @interface UpdateMenuRequestItemSubmenuInner
1014
+ * @interface UpdateBlogsRequest
817
1015
  */
818
- export interface UpdateMenuRequestItemSubmenuInner {
819
- /**
820
- *
821
- * @type {string}
822
- * @memberof UpdateMenuRequestItemSubmenuInner
823
- */
824
- 'id': string | null;
1016
+ export interface UpdateBlogsRequest {
825
1017
  /**
826
1018
  *
827
- * @type {string}
828
- * @memberof UpdateMenuRequestItemSubmenuInner
1019
+ * @type {Array<UpdateBlogsRequestBlogsInner>}
1020
+ * @memberof UpdateBlogsRequest
829
1021
  */
830
- 'title': string;
1022
+ 'blogs'?: Array<UpdateBlogsRequestBlogsInner>;
831
1023
  /**
832
- *
1024
+ * The primary target search phrase for the blog post that you wish to rank for in search engine results.
833
1025
  * @type {string}
834
- * @memberof UpdateMenuRequestItemSubmenuInner
835
- */
836
- 'image': string | null;
837
- /**
838
- *
839
- * @type {number}
840
- * @memberof UpdateMenuRequestItemSubmenuInner
1026
+ * @memberof UpdateBlogsRequest
841
1027
  */
842
- 'order': number;
1028
+ 'targetSearchPhrase'?: string;
843
1029
  /**
844
- *
845
- * @type {Array<UpdateMenuRequestSubmenuItem>}
846
- * @memberof UpdateMenuRequestItemSubmenuInner
1030
+ * Synonyms for the target search phrase.
1031
+ * @type {Array<string>}
1032
+ * @memberof UpdateBlogsRequest
847
1033
  */
848
- 'items': Array<UpdateMenuRequestSubmenuItem>;
1034
+ 'targetSearchPhraseSynonyms'?: Array<string>;
849
1035
  }
850
1036
  /**
851
1037
  *
852
1038
  * @export
853
- * @interface UpdateMenuRequestSubmenuItem
1039
+ * @interface UpdateBlogsRequestBlogsInner
854
1040
  */
855
- export interface UpdateMenuRequestSubmenuItem {
1041
+ export interface UpdateBlogsRequestBlogsInner {
856
1042
  /**
857
- *
1043
+ * Unique object identifier
858
1044
  * @type {string}
859
- * @memberof UpdateMenuRequestSubmenuItem
1045
+ * @memberof UpdateBlogsRequestBlogsInner
860
1046
  */
861
- 'id': string | null;
1047
+ 'id': string;
862
1048
  /**
863
- *
1049
+ * Blog title
864
1050
  * @type {string}
865
- * @memberof UpdateMenuRequestSubmenuItem
1051
+ * @memberof UpdateBlogsRequestBlogsInner
866
1052
  */
867
- 'text': string;
1053
+ 'title'?: string;
868
1054
  /**
869
- *
1055
+ * Blog description
870
1056
  * @type {string}
871
- * @memberof UpdateMenuRequestSubmenuItem
1057
+ * @memberof UpdateBlogsRequestBlogsInner
872
1058
  */
873
- 'link': string;
1059
+ 'description'?: string;
1060
+ /**
1061
+ * URL slug. This must be unique for each blog post on the website. Updating this will also break any existing links to this blog post.
1062
+ * @type {string}
1063
+ * @memberof UpdateBlogsRequestBlogsInner
1064
+ */
1065
+ 'slug'?: string;
874
1066
  /**
875
1067
  *
876
- * @type {number}
877
- * @memberof UpdateMenuRequestSubmenuItem
1068
+ * @type {UpdateBlogsRequestBlogsInnerSeoMetadata}
1069
+ * @memberof UpdateBlogsRequestBlogsInner
878
1070
  */
879
- 'order': number;
1071
+ 'seoMetadata'?: UpdateBlogsRequestBlogsInnerSeoMetadata;
880
1072
  }
881
1073
  /**
882
1074
  *
883
1075
  * @export
884
- * @interface Variant
1076
+ * @interface UpdateBlogsRequestBlogsInnerSeoMetadata
885
1077
  */
886
- export interface Variant {
1078
+ export interface UpdateBlogsRequestBlogsInnerSeoMetadata {
887
1079
  /**
888
- * Unique object identifier
1080
+ * Meta title for the blog post. This appears in search engine results and social shares. If not provided, the blog post title will be used.
889
1081
  * @type {string}
890
- * @memberof Variant
1082
+ * @memberof UpdateBlogsRequestBlogsInnerSeoMetadata
891
1083
  */
892
- 'id'?: string;
1084
+ 'title'?: string | null;
893
1085
  /**
894
- * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
895
- * @type {Array<Attribute>}
896
- * @memberof Variant
1086
+ * Meta description for the blog post. This appears in search engine results and social shares. If not provided, the blog post description will be used.
1087
+ * @type {string}
1088
+ * @memberof UpdateBlogsRequestBlogsInnerSeoMetadata
897
1089
  */
898
- 'attributes': Array<Attribute>;
1090
+ 'description'?: string | null;
1091
+ }
1092
+ /**
1093
+ *
1094
+ * @export
1095
+ * @interface UpdateCollectionRequest
1096
+ */
1097
+ export interface UpdateCollectionRequest {
899
1098
  /**
900
- *
1099
+ * Collection title
901
1100
  * @type {string}
902
- * @memberof Variant
1101
+ * @memberof UpdateCollectionRequest
903
1102
  */
904
- 'sku': string;
1103
+ 'title'?: string;
905
1104
  /**
906
- * A reference to the resource location
1105
+ * Collection description
907
1106
  * @type {string}
908
- * @memberof Variant
1107
+ * @memberof UpdateCollectionRequest
909
1108
  */
910
- 'ref'?: string;
1109
+ 'description'?: string;
911
1110
  /**
912
- *
913
- * @type {VariantProduct}
914
- * @memberof Variant
1111
+ * URL slug. This must be unique for each collection on the website. Updating this will also break any existing links to this collection.
1112
+ * @type {string}
1113
+ * @memberof UpdateCollectionRequest
915
1114
  */
916
- 'product'?: VariantProduct;
1115
+ 'slug'?: string;
917
1116
  /**
918
1117
  *
919
- * @type {number}
920
- * @memberof Variant
1118
+ * @type {UpdateCollectionsRequestCollectionsInnerSeoMetadata}
1119
+ * @memberof UpdateCollectionRequest
921
1120
  */
922
- 'sortOrder'?: number;
1121
+ 'seoMetadata'?: UpdateCollectionsRequestCollectionsInnerSeoMetadata;
923
1122
  /**
924
- *
925
- * @type {Price}
926
- * @memberof Variant
1123
+ * The primary target search phrase for the collection that you wish to rank for in search engine results.
1124
+ * @type {string}
1125
+ * @memberof UpdateCollectionRequest
927
1126
  */
928
- 'retailPrice'?: Price;
1127
+ 'targetSearchPhrase'?: string;
929
1128
  /**
930
- *
931
- * @type {Price}
932
- * @memberof Variant
1129
+ * Synonyms for the target search phrase.
1130
+ * @type {Array<string>}
1131
+ * @memberof UpdateCollectionRequest
933
1132
  */
934
- 'salePrice'?: Price;
935
- /**
936
- *
937
- * @type {Price}
938
- * @memberof Variant
1133
+ 'targetSearchPhraseSynonyms'?: Array<string>;
1134
+ }
1135
+ /**
1136
+ *
1137
+ * @export
1138
+ * @interface UpdateCollectionsRequest
1139
+ */
1140
+ export interface UpdateCollectionsRequest {
1141
+ /**
1142
+ *
1143
+ * @type {Array<UpdateCollectionsRequestCollectionsInner>}
1144
+ * @memberof UpdateCollectionsRequest
939
1145
  */
940
- 'price'?: Price;
1146
+ 'collections'?: Array<UpdateCollectionsRequestCollectionsInner>;
1147
+ }
1148
+ /**
1149
+ *
1150
+ * @export
1151
+ * @interface UpdateCollectionsRequestCollectionsInner
1152
+ */
1153
+ export interface UpdateCollectionsRequestCollectionsInner {
1154
+ /**
1155
+ * Unique object identifier
1156
+ * @type {string}
1157
+ * @memberof UpdateCollectionsRequestCollectionsInner
1158
+ */
1159
+ 'id': string;
1160
+ /**
1161
+ * Collection title
1162
+ * @type {string}
1163
+ * @memberof UpdateCollectionsRequestCollectionsInner
1164
+ */
1165
+ 'title'?: string;
1166
+ /**
1167
+ * Collection description
1168
+ * @type {string}
1169
+ * @memberof UpdateCollectionsRequestCollectionsInner
1170
+ */
1171
+ 'description'?: string;
1172
+ /**
1173
+ * URL slug. This must be unique for each collection on the website. Updating this will also break any existing links to this collection.
1174
+ * @type {string}
1175
+ * @memberof UpdateCollectionsRequestCollectionsInner
1176
+ */
1177
+ 'slug'?: string;
941
1178
  /**
942
1179
  *
943
- * @type {Stock}
944
- * @memberof Variant
1180
+ * @type {UpdateCollectionsRequestCollectionsInnerSeoMetadata}
1181
+ * @memberof UpdateCollectionsRequestCollectionsInner
945
1182
  */
946
- 'stock'?: Stock;
1183
+ 'seoMetadata'?: UpdateCollectionsRequestCollectionsInnerSeoMetadata;
1184
+ /**
1185
+ * The primary target search phrase for the collection that you wish to rank for in search engine results.
1186
+ * @type {string}
1187
+ * @memberof UpdateCollectionsRequestCollectionsInner
1188
+ */
1189
+ 'targetSearchPhrase'?: string;
1190
+ /**
1191
+ * Synonyms for the target search phrase.
1192
+ * @type {Array<string>}
1193
+ * @memberof UpdateCollectionsRequestCollectionsInner
1194
+ */
1195
+ 'targetSearchPhraseSynonyms'?: Array<string>;
1196
+ }
1197
+ /**
1198
+ *
1199
+ * @export
1200
+ * @interface UpdateCollectionsRequestCollectionsInnerSeoMetadata
1201
+ */
1202
+ export interface UpdateCollectionsRequestCollectionsInnerSeoMetadata {
1203
+ /**
1204
+ * Meta title for the collection. This appears in search engine results and social shares. If not provided, the collection title will be used.
1205
+ * @type {string}
1206
+ * @memberof UpdateCollectionsRequestCollectionsInnerSeoMetadata
1207
+ */
1208
+ 'title'?: string | null;
1209
+ /**
1210
+ * Meta description for the collection. This appears in search engine results and social shares. If not provided, the collection description will be used.
1211
+ * @type {string}
1212
+ * @memberof UpdateCollectionsRequestCollectionsInnerSeoMetadata
1213
+ */
1214
+ 'description'?: string | null;
1215
+ }
1216
+ /**
1217
+ *
1218
+ * @export
1219
+ * @interface UpdateMenuRequest
1220
+ */
1221
+ export interface UpdateMenuRequest {
1222
+ /**
1223
+ *
1224
+ * @type {Array<UpdateMenuRequestItem>}
1225
+ * @memberof UpdateMenuRequest
1226
+ */
1227
+ 'items'?: Array<UpdateMenuRequestItem>;
1228
+ }
1229
+ /**
1230
+ *
1231
+ * @export
1232
+ * @interface UpdateMenuRequestItem
1233
+ */
1234
+ export interface UpdateMenuRequestItem {
947
1235
  /**
948
1236
  *
949
1237
  * @type {string}
950
- * @memberof Variant
1238
+ * @memberof UpdateMenuRequestItem
951
1239
  */
952
- 'createdAt'?: string;
1240
+ 'id': string | null;
953
1241
  /**
954
1242
  *
955
1243
  * @type {string}
956
- * @memberof Variant
1244
+ * @memberof UpdateMenuRequestItem
957
1245
  */
958
- 'updatedAt'?: string;
1246
+ 'text': string;
959
1247
  /**
960
1248
  *
961
1249
  * @type {string}
962
- * @memberof Variant
1250
+ * @memberof UpdateMenuRequestItem
963
1251
  */
964
- 'publishedAt'?: string;
1252
+ 'link': string;
965
1253
  /**
966
- * Images
967
- * @type {Array<Image>}
968
- * @memberof Variant
1254
+ *
1255
+ * @type {number}
1256
+ * @memberof UpdateMenuRequestItem
969
1257
  */
970
- 'images'?: Array<Image>;
1258
+ 'order': number;
971
1259
  /**
972
- * Design applications. If not provided, the product will be blank.
973
- * @type {Array<Application>}
974
- * @memberof Variant
1260
+ *
1261
+ * @type {Array<UpdateMenuRequestItemSubmenuInner>}
1262
+ * @memberof UpdateMenuRequestItem
975
1263
  */
976
- 'applications'?: Array<Application>;
1264
+ 'submenu': Array<UpdateMenuRequestItemSubmenuInner>;
1265
+ }
1266
+ /**
1267
+ *
1268
+ * @export
1269
+ * @interface UpdateMenuRequestItemSubmenuInner
1270
+ */
1271
+ export interface UpdateMenuRequestItemSubmenuInner {
977
1272
  /**
978
- * Global Trade Item Number
1273
+ *
979
1274
  * @type {string}
980
- * @memberof Variant
1275
+ * @memberof UpdateMenuRequestItemSubmenuInner
981
1276
  */
982
- 'gtin'?: string | null;
1277
+ 'id': string | null;
983
1278
  /**
984
1279
  *
985
- * @type {Array<MetaField>}
986
- * @memberof Variant
1280
+ * @type {string}
1281
+ * @memberof UpdateMenuRequestItemSubmenuInner
987
1282
  */
988
- 'metafields'?: Array<MetaField>;
1283
+ 'title': string;
1284
+ /**
1285
+ *
1286
+ * @type {string}
1287
+ * @memberof UpdateMenuRequestItemSubmenuInner
1288
+ */
1289
+ 'image': string | null;
1290
+ /**
1291
+ *
1292
+ * @type {number}
1293
+ * @memberof UpdateMenuRequestItemSubmenuInner
1294
+ */
1295
+ 'order': number;
1296
+ /**
1297
+ *
1298
+ * @type {Array<UpdateMenuRequestSubmenuItem>}
1299
+ * @memberof UpdateMenuRequestItemSubmenuInner
1300
+ */
1301
+ 'items': Array<UpdateMenuRequestSubmenuItem>;
989
1302
  }
990
1303
  /**
991
1304
  *
992
1305
  * @export
993
- * @interface VariantProduct
1306
+ * @interface UpdateMenuRequestSubmenuItem
994
1307
  */
995
- export interface VariantProduct {
1308
+ export interface UpdateMenuRequestSubmenuItem {
996
1309
  /**
997
- * Unique object identifier
1310
+ *
998
1311
  * @type {string}
999
- * @memberof VariantProduct
1312
+ * @memberof UpdateMenuRequestSubmenuItem
1000
1313
  */
1001
- 'id'?: string;
1314
+ 'id': string | null;
1002
1315
  /**
1003
- * A reference to the resource location
1316
+ *
1004
1317
  * @type {string}
1005
- * @memberof VariantProduct
1318
+ * @memberof UpdateMenuRequestSubmenuItem
1006
1319
  */
1007
- 'ref'?: string;
1320
+ 'text': string;
1321
+ /**
1322
+ *
1323
+ * @type {string}
1324
+ * @memberof UpdateMenuRequestSubmenuItem
1325
+ */
1326
+ 'link': string;
1327
+ /**
1328
+ *
1329
+ * @type {number}
1330
+ * @memberof UpdateMenuRequestSubmenuItem
1331
+ */
1332
+ 'order': number;
1008
1333
  }
1009
1334
  /**
1010
- * Video object
1335
+ *
1011
1336
  * @export
1012
- * @interface Video
1337
+ * @interface UpdatePageRequest
1013
1338
  */
1014
- export interface Video {
1339
+ export interface UpdatePageRequest {
1015
1340
  /**
1016
- * Unique object identifier
1341
+ * Page title
1017
1342
  * @type {string}
1018
- * @memberof Video
1343
+ * @memberof UpdatePageRequest
1019
1344
  */
1020
- 'id'?: string;
1345
+ 'title'?: string;
1346
+ /**
1347
+ * Page description
1348
+ * @type {string}
1349
+ * @memberof UpdatePageRequest
1350
+ */
1351
+ 'description'?: string;
1352
+ /**
1353
+ * URL slug. This must be unique for each page on the website. Updating this will also break any existing links to this page.
1354
+ * @type {string}
1355
+ * @memberof UpdatePageRequest
1356
+ */
1357
+ 'slug'?: string;
1021
1358
  /**
1022
1359
  *
1360
+ * @type {UpdatePagesRequestPagesInnerSeoMetadata}
1361
+ * @memberof UpdatePageRequest
1362
+ */
1363
+ 'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
1364
+ /**
1365
+ * The primary target search phrase for the page that you wish to rank for in search engine results.
1023
1366
  * @type {string}
1024
- * @memberof Video
1367
+ * @memberof UpdatePageRequest
1025
1368
  */
1026
- 'src'?: string;
1369
+ 'targetSearchPhrase'?: string;
1370
+ /**
1371
+ * Synonyms for the target search phrase.
1372
+ * @type {Array<string>}
1373
+ * @memberof UpdatePageRequest
1374
+ */
1375
+ 'targetSearchPhraseSynonyms'?: Array<string>;
1376
+ }
1377
+ /**
1378
+ *
1379
+ * @export
1380
+ * @interface UpdatePagesRequest
1381
+ */
1382
+ export interface UpdatePagesRequest {
1383
+ /**
1384
+ *
1385
+ * @type {Array<UpdatePagesRequestPagesInner>}
1386
+ * @memberof UpdatePagesRequest
1387
+ */
1388
+ 'pages'?: Array<UpdatePagesRequestPagesInner>;
1389
+ }
1390
+ /**
1391
+ *
1392
+ * @export
1393
+ * @interface UpdatePagesRequestPagesInner
1394
+ */
1395
+ export interface UpdatePagesRequestPagesInner {
1396
+ /**
1397
+ * Unique object identifier
1398
+ * @type {string}
1399
+ * @memberof UpdatePagesRequestPagesInner
1400
+ */
1401
+ 'id': string;
1402
+ /**
1403
+ * Page title
1404
+ * @type {string}
1405
+ * @memberof UpdatePagesRequestPagesInner
1406
+ */
1407
+ 'title'?: string;
1408
+ /**
1409
+ * Page description
1410
+ * @type {string}
1411
+ * @memberof UpdatePagesRequestPagesInner
1412
+ */
1413
+ 'description'?: string;
1414
+ /**
1415
+ * URL slug. This must be unique for each page on the website. Updating this will also break any existing links to this page.
1416
+ * @type {string}
1417
+ * @memberof UpdatePagesRequestPagesInner
1418
+ */
1419
+ 'slug'?: string;
1027
1420
  /**
1028
1421
  *
1422
+ * @type {UpdatePagesRequestPagesInnerSeoMetadata}
1423
+ * @memberof UpdatePagesRequestPagesInner
1424
+ */
1425
+ 'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
1426
+ /**
1427
+ * The primary target search phrase for the page that you wish to rank for in search engine results.
1029
1428
  * @type {string}
1030
- * @memberof Video
1429
+ * @memberof UpdatePagesRequestPagesInner
1031
1430
  */
1032
- 'alt'?: string;
1431
+ 'targetSearchPhrase'?: string;
1432
+ /**
1433
+ * Synonyms for the target search phrase.
1434
+ * @type {Array<string>}
1435
+ * @memberof UpdatePagesRequestPagesInner
1436
+ */
1437
+ 'targetSearchPhraseSynonyms'?: Array<string>;
1438
+ }
1439
+ /**
1440
+ *
1441
+ * @export
1442
+ * @interface UpdatePagesRequestPagesInnerSeoMetadata
1443
+ */
1444
+ export interface UpdatePagesRequestPagesInnerSeoMetadata {
1445
+ /**
1446
+ * Meta title for the page. This appears in search engine results and social shares. If not provided, the page title will be used.
1447
+ * @type {string}
1448
+ * @memberof UpdatePagesRequestPagesInnerSeoMetadata
1449
+ */
1450
+ 'title'?: string | null;
1451
+ /**
1452
+ * Meta description for the page. This appears in search engine results and social shares. If not provided, the page description will be used.
1453
+ * @type {string}
1454
+ * @memberof UpdatePagesRequestPagesInnerSeoMetadata
1455
+ */
1456
+ 'description'?: string | null;
1457
+ }
1458
+ /**
1459
+ *
1460
+ * @export
1461
+ * @interface Variant
1462
+ */
1463
+ export interface Variant {
1464
+ /**
1465
+ * Unique object identifier
1466
+ * @type {string}
1467
+ * @memberof Variant
1468
+ */
1469
+ 'id'?: string;
1470
+ /**
1471
+ * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
1472
+ * @type {Array<Attribute>}
1473
+ * @memberof Variant
1474
+ */
1475
+ 'attributes': Array<Attribute>;
1033
1476
  /**
1034
1477
  *
1035
- * @type {number}
1036
- * @memberof Video
1478
+ * @type {string}
1479
+ * @memberof Variant
1480
+ */
1481
+ 'sku': string;
1482
+ /**
1483
+ * A reference to the resource location
1484
+ * @type {string}
1485
+ * @memberof Variant
1486
+ */
1487
+ 'ref'?: string;
1488
+ /**
1489
+ *
1490
+ * @type {VariantProduct}
1491
+ * @memberof Variant
1492
+ */
1493
+ 'product'?: VariantProduct;
1494
+ /**
1495
+ *
1496
+ * @type {number}
1497
+ * @memberof Variant
1498
+ */
1499
+ 'sortOrder'?: number;
1500
+ /**
1501
+ *
1502
+ * @type {Price}
1503
+ * @memberof Variant
1504
+ */
1505
+ 'retailPrice'?: Price;
1506
+ /**
1507
+ *
1508
+ * @type {Price}
1509
+ * @memberof Variant
1510
+ */
1511
+ 'salePrice'?: Price;
1512
+ /**
1513
+ *
1514
+ * @type {Price}
1515
+ * @memberof Variant
1516
+ */
1517
+ 'price'?: Price;
1518
+ /**
1519
+ *
1520
+ * @type {Stock}
1521
+ * @memberof Variant
1522
+ */
1523
+ 'stock'?: Stock;
1524
+ /**
1525
+ *
1526
+ * @type {string}
1527
+ * @memberof Variant
1528
+ */
1529
+ 'createdAt'?: string;
1530
+ /**
1531
+ *
1532
+ * @type {string}
1533
+ * @memberof Variant
1534
+ */
1535
+ 'updatedAt'?: string;
1536
+ /**
1537
+ *
1538
+ * @type {string}
1539
+ * @memberof Variant
1540
+ */
1541
+ 'publishedAt'?: string;
1542
+ /**
1543
+ * Images
1544
+ * @type {Array<Image>}
1545
+ * @memberof Variant
1546
+ */
1547
+ 'images'?: Array<Image>;
1548
+ /**
1549
+ * Design applications. If not provided, the product will be blank.
1550
+ * @type {Array<Application>}
1551
+ * @memberof Variant
1552
+ */
1553
+ 'applications'?: Array<Application>;
1554
+ /**
1555
+ * Global Trade Item Number
1556
+ * @type {string}
1557
+ * @memberof Variant
1558
+ */
1559
+ 'gtin'?: string | null;
1560
+ /**
1561
+ *
1562
+ * @type {Array<MetaField>}
1563
+ * @memberof Variant
1564
+ */
1565
+ 'metafields'?: Array<MetaField>;
1566
+ }
1567
+ /**
1568
+ *
1569
+ * @export
1570
+ * @interface VariantProduct
1571
+ */
1572
+ export interface VariantProduct {
1573
+ /**
1574
+ * Unique object identifier
1575
+ * @type {string}
1576
+ * @memberof VariantProduct
1577
+ */
1578
+ 'id'?: string;
1579
+ /**
1580
+ * A reference to the resource location
1581
+ * @type {string}
1582
+ * @memberof VariantProduct
1583
+ */
1584
+ 'ref'?: string;
1585
+ }
1586
+ /**
1587
+ * Video object
1588
+ * @export
1589
+ * @interface Video
1590
+ */
1591
+ export interface Video {
1592
+ /**
1593
+ * Unique object identifier
1594
+ * @type {string}
1595
+ * @memberof Video
1596
+ */
1597
+ 'id'?: string;
1598
+ /**
1599
+ *
1600
+ * @type {string}
1601
+ * @memberof Video
1602
+ */
1603
+ 'src'?: string;
1604
+ /**
1605
+ *
1606
+ * @type {string}
1607
+ * @memberof Video
1608
+ */
1609
+ 'alt'?: string;
1610
+ /**
1611
+ *
1612
+ * @type {number}
1613
+ * @memberof Video
1614
+ */
1615
+ 'sortOrder'?: number;
1616
+ /**
1617
+ *
1618
+ * @type {string}
1619
+ * @memberof Video
1620
+ */
1621
+ 'createdAt'?: string;
1622
+ /**
1623
+ *
1624
+ * @type {string}
1625
+ * @memberof Video
1626
+ */
1627
+ 'updatedAt'?: string;
1628
+ }
1629
+
1630
+ /**
1631
+ * BlogsApi - axios parameter creator
1632
+ * @export
1633
+ */
1634
+ export const BlogsApiAxiosParamCreator = function (configuration?: Configuration) {
1635
+ return {
1636
+ /**
1637
+ *
1638
+ * @summary List website blog posts
1639
+ * @param {string} project What project it is
1640
+ * @param {number} [pageToken] Page reference token
1641
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1642
+ * @param {string} [search] Search term to filter results
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ */
1646
+ listBlogs: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1647
+ // verify required parameter 'project' is not null or undefined
1648
+ assertParamExists('listBlogs', 'project', project)
1649
+ const localVarPath = `/v1/website/blogs`;
1650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1652
+ let baseOptions;
1653
+ if (configuration) {
1654
+ baseOptions = configuration.baseOptions;
1655
+ }
1656
+
1657
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1658
+ const localVarHeaderParameter = {} as any;
1659
+ const localVarQueryParameter = {} as any;
1660
+
1661
+ // authentication session-oauth required
1662
+ // oauth required
1663
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1664
+
1665
+ // authentication api-key required
1666
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1667
+
1668
+ if (project !== undefined) {
1669
+ localVarQueryParameter['project'] = project;
1670
+ }
1671
+
1672
+ if (pageToken !== undefined) {
1673
+ localVarQueryParameter['pageToken'] = pageToken;
1674
+ }
1675
+
1676
+ if (pageSize !== undefined) {
1677
+ localVarQueryParameter['pageSize'] = pageSize;
1678
+ }
1679
+
1680
+ if (search !== undefined) {
1681
+ localVarQueryParameter['search'] = search;
1682
+ }
1683
+
1684
+
1685
+
1686
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1688
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1689
+
1690
+ return {
1691
+ url: toPathString(localVarUrlObj),
1692
+ options: localVarRequestOptions,
1693
+ };
1694
+ },
1695
+ /**
1696
+ *
1697
+ * @summary Update website blog post
1698
+ * @param {string} project What project it is
1699
+ * @param {string} blogId Blog\&#39;s unique identifier
1700
+ * @param {UpdateBlogRequest} [updateBlogRequest]
1701
+ * @param {*} [options] Override http request option.
1702
+ * @throws {RequiredError}
1703
+ */
1704
+ updateBlog: async (project: string, blogId: string, updateBlogRequest?: UpdateBlogRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1705
+ // verify required parameter 'project' is not null or undefined
1706
+ assertParamExists('updateBlog', 'project', project)
1707
+ // verify required parameter 'blogId' is not null or undefined
1708
+ assertParamExists('updateBlog', 'blogId', blogId)
1709
+ const localVarPath = `/v1/website/blogs/{blogId}`
1710
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
1711
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1712
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1713
+ let baseOptions;
1714
+ if (configuration) {
1715
+ baseOptions = configuration.baseOptions;
1716
+ }
1717
+
1718
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1719
+ const localVarHeaderParameter = {} as any;
1720
+ const localVarQueryParameter = {} as any;
1721
+
1722
+ // authentication session-oauth required
1723
+ // oauth required
1724
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1725
+
1726
+ // authentication api-key required
1727
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1728
+
1729
+ if (project !== undefined) {
1730
+ localVarQueryParameter['project'] = project;
1731
+ }
1732
+
1733
+
1734
+
1735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1736
+
1737
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1738
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1739
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1740
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogRequest, localVarRequestOptions, configuration)
1741
+
1742
+ return {
1743
+ url: toPathString(localVarUrlObj),
1744
+ options: localVarRequestOptions,
1745
+ };
1746
+ },
1747
+ /**
1748
+ *
1749
+ * @summary Update website blog posts
1750
+ * @param {string} project What project it is
1751
+ * @param {number} [pageToken] Page reference token
1752
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1753
+ * @param {string} [search] Search term to filter results
1754
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
1755
+ * @param {*} [options] Override http request option.
1756
+ * @throws {RequiredError}
1757
+ */
1758
+ updateBlogs: async (project: string, pageToken?: number, pageSize?: number, search?: string, updateBlogsRequest?: UpdateBlogsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1759
+ // verify required parameter 'project' is not null or undefined
1760
+ assertParamExists('updateBlogs', 'project', project)
1761
+ const localVarPath = `/v1/website/blogs`;
1762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1763
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1764
+ let baseOptions;
1765
+ if (configuration) {
1766
+ baseOptions = configuration.baseOptions;
1767
+ }
1768
+
1769
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1770
+ const localVarHeaderParameter = {} as any;
1771
+ const localVarQueryParameter = {} as any;
1772
+
1773
+ // authentication session-oauth required
1774
+ // oauth required
1775
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1776
+
1777
+ // authentication api-key required
1778
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1779
+
1780
+ if (project !== undefined) {
1781
+ localVarQueryParameter['project'] = project;
1782
+ }
1783
+
1784
+ if (pageToken !== undefined) {
1785
+ localVarQueryParameter['pageToken'] = pageToken;
1786
+ }
1787
+
1788
+ if (pageSize !== undefined) {
1789
+ localVarQueryParameter['pageSize'] = pageSize;
1790
+ }
1791
+
1792
+ if (search !== undefined) {
1793
+ localVarQueryParameter['search'] = search;
1794
+ }
1795
+
1796
+
1797
+
1798
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1799
+
1800
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1801
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1802
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1803
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogsRequest, localVarRequestOptions, configuration)
1804
+
1805
+ return {
1806
+ url: toPathString(localVarUrlObj),
1807
+ options: localVarRequestOptions,
1808
+ };
1809
+ },
1810
+ }
1811
+ };
1812
+
1813
+ /**
1814
+ * BlogsApi - functional programming interface
1815
+ * @export
1816
+ */
1817
+ export const BlogsApiFp = function(configuration?: Configuration) {
1818
+ const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration)
1819
+ return {
1820
+ /**
1821
+ *
1822
+ * @summary List website blog posts
1823
+ * @param {string} project What project it is
1824
+ * @param {number} [pageToken] Page reference token
1825
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1826
+ * @param {string} [search] Search term to filter results
1827
+ * @param {*} [options] Override http request option.
1828
+ * @throws {RequiredError}
1829
+ */
1830
+ async listBlogs(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlogsResponse>> {
1831
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBlogs(project, pageToken, pageSize, search, options);
1832
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1833
+ const localVarOperationServerBasePath = operationServerMap['BlogsApi.listBlogs']?.[localVarOperationServerIndex]?.url;
1834
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1835
+ },
1836
+ /**
1837
+ *
1838
+ * @summary Update website blog post
1839
+ * @param {string} project What project it is
1840
+ * @param {string} blogId Blog\&#39;s unique identifier
1841
+ * @param {UpdateBlogRequest} [updateBlogRequest]
1842
+ * @param {*} [options] Override http request option.
1843
+ * @throws {RequiredError}
1844
+ */
1845
+ async updateBlog(project: string, blogId: string, updateBlogRequest?: UpdateBlogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Blog>> {
1846
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBlog(project, blogId, updateBlogRequest, options);
1847
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1848
+ const localVarOperationServerBasePath = operationServerMap['BlogsApi.updateBlog']?.[localVarOperationServerIndex]?.url;
1849
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1850
+ },
1851
+ /**
1852
+ *
1853
+ * @summary Update website blog posts
1854
+ * @param {string} project What project it is
1855
+ * @param {number} [pageToken] Page reference token
1856
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1857
+ * @param {string} [search] Search term to filter results
1858
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
1859
+ * @param {*} [options] Override http request option.
1860
+ * @throws {RequiredError}
1861
+ */
1862
+ async updateBlogs(project: string, pageToken?: number, pageSize?: number, search?: string, updateBlogsRequest?: UpdateBlogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlogsResponse>> {
1863
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options);
1864
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1865
+ const localVarOperationServerBasePath = operationServerMap['BlogsApi.updateBlogs']?.[localVarOperationServerIndex]?.url;
1866
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1867
+ },
1868
+ }
1869
+ };
1870
+
1871
+ /**
1872
+ * BlogsApi - factory interface
1873
+ * @export
1874
+ */
1875
+ export const BlogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1876
+ const localVarFp = BlogsApiFp(configuration)
1877
+ return {
1878
+ /**
1879
+ *
1880
+ * @summary List website blog posts
1881
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
1882
+ * @param {*} [options] Override http request option.
1883
+ * @throws {RequiredError}
1884
+ */
1885
+ listBlogs(requestParameters: BlogsApiListBlogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BlogsResponse> {
1886
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1887
+ },
1888
+ /**
1889
+ *
1890
+ * @summary Update website blog post
1891
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
1892
+ * @param {*} [options] Override http request option.
1893
+ * @throws {RequiredError}
1894
+ */
1895
+ updateBlog(requestParameters: BlogsApiUpdateBlogRequest, options?: RawAxiosRequestConfig): AxiosPromise<Blog> {
1896
+ return localVarFp.updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(axios, basePath));
1897
+ },
1898
+ /**
1899
+ *
1900
+ * @summary Update website blog posts
1901
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
1902
+ * @param {*} [options] Override http request option.
1903
+ * @throws {RequiredError}
1904
+ */
1905
+ updateBlogs(requestParameters: BlogsApiUpdateBlogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BlogsResponse> {
1906
+ return localVarFp.updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(axios, basePath));
1907
+ },
1908
+ };
1909
+ };
1910
+
1911
+ /**
1912
+ * Request parameters for listBlogs operation in BlogsApi.
1913
+ * @export
1914
+ * @interface BlogsApiListBlogsRequest
1915
+ */
1916
+ export interface BlogsApiListBlogsRequest {
1917
+ /**
1918
+ * What project it is
1919
+ * @type {string}
1920
+ * @memberof BlogsApiListBlogs
1921
+ */
1922
+ readonly project: string
1923
+
1924
+ /**
1925
+ * Page reference token
1926
+ * @type {number}
1927
+ * @memberof BlogsApiListBlogs
1928
+ */
1929
+ readonly pageToken?: number
1930
+
1931
+ /**
1932
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1933
+ * @type {number}
1934
+ * @memberof BlogsApiListBlogs
1935
+ */
1936
+ readonly pageSize?: number
1937
+
1938
+ /**
1939
+ * Search term to filter results
1940
+ * @type {string}
1941
+ * @memberof BlogsApiListBlogs
1942
+ */
1943
+ readonly search?: string
1944
+ }
1945
+
1946
+ /**
1947
+ * Request parameters for updateBlog operation in BlogsApi.
1948
+ * @export
1949
+ * @interface BlogsApiUpdateBlogRequest
1950
+ */
1951
+ export interface BlogsApiUpdateBlogRequest {
1952
+ /**
1953
+ * What project it is
1954
+ * @type {string}
1955
+ * @memberof BlogsApiUpdateBlog
1956
+ */
1957
+ readonly project: string
1958
+
1959
+ /**
1960
+ * Blog\&#39;s unique identifier
1961
+ * @type {string}
1962
+ * @memberof BlogsApiUpdateBlog
1963
+ */
1964
+ readonly blogId: string
1965
+
1966
+ /**
1967
+ *
1968
+ * @type {UpdateBlogRequest}
1969
+ * @memberof BlogsApiUpdateBlog
1970
+ */
1971
+ readonly updateBlogRequest?: UpdateBlogRequest
1972
+ }
1973
+
1974
+ /**
1975
+ * Request parameters for updateBlogs operation in BlogsApi.
1976
+ * @export
1977
+ * @interface BlogsApiUpdateBlogsRequest
1978
+ */
1979
+ export interface BlogsApiUpdateBlogsRequest {
1980
+ /**
1981
+ * What project it is
1982
+ * @type {string}
1983
+ * @memberof BlogsApiUpdateBlogs
1984
+ */
1985
+ readonly project: string
1986
+
1987
+ /**
1988
+ * Page reference token
1989
+ * @type {number}
1990
+ * @memberof BlogsApiUpdateBlogs
1991
+ */
1992
+ readonly pageToken?: number
1993
+
1994
+ /**
1995
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1996
+ * @type {number}
1997
+ * @memberof BlogsApiUpdateBlogs
1998
+ */
1999
+ readonly pageSize?: number
2000
+
2001
+ /**
2002
+ * Search term to filter results
2003
+ * @type {string}
2004
+ * @memberof BlogsApiUpdateBlogs
2005
+ */
2006
+ readonly search?: string
2007
+
2008
+ /**
2009
+ * Update blogs in bulk.
2010
+ * @type {UpdateBlogsRequest}
2011
+ * @memberof BlogsApiUpdateBlogs
2012
+ */
2013
+ readonly updateBlogsRequest?: UpdateBlogsRequest
2014
+ }
2015
+
2016
+ /**
2017
+ * BlogsApi - object-oriented interface
2018
+ * @export
2019
+ * @class BlogsApi
2020
+ * @extends {BaseAPI}
2021
+ */
2022
+ export class BlogsApi extends BaseAPI {
2023
+ /**
2024
+ *
2025
+ * @summary List website blog posts
2026
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
2027
+ * @param {*} [options] Override http request option.
2028
+ * @throws {RequiredError}
2029
+ * @memberof BlogsApi
2030
+ */
2031
+ public listBlogs(requestParameters: BlogsApiListBlogsRequest, options?: RawAxiosRequestConfig) {
2032
+ return BlogsApiFp(this.configuration).listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2033
+ }
2034
+
2035
+ /**
2036
+ *
2037
+ * @summary Update website blog post
2038
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
2039
+ * @param {*} [options] Override http request option.
2040
+ * @throws {RequiredError}
2041
+ * @memberof BlogsApi
2042
+ */
2043
+ public updateBlog(requestParameters: BlogsApiUpdateBlogRequest, options?: RawAxiosRequestConfig) {
2044
+ return BlogsApiFp(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));
2045
+ }
2046
+
2047
+ /**
2048
+ *
2049
+ * @summary Update website blog posts
2050
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ * @memberof BlogsApi
2054
+ */
2055
+ public updateBlogs(requestParameters: BlogsApiUpdateBlogsRequest, options?: RawAxiosRequestConfig) {
2056
+ return BlogsApiFp(this.configuration).updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(this.axios, this.basePath));
2057
+ }
2058
+ }
2059
+
2060
+
2061
+
2062
+ /**
2063
+ * CollectionsApi - axios parameter creator
2064
+ * @export
2065
+ */
2066
+ export const CollectionsApiAxiosParamCreator = function (configuration?: Configuration) {
2067
+ return {
2068
+ /**
2069
+ *
2070
+ * @summary List website collections
2071
+ * @param {string} project What project it is
2072
+ * @param {number} [pageToken] Page reference token
2073
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2074
+ * @param {string} [search] Search term to filter results
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ */
2078
+ listCollections: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2079
+ // verify required parameter 'project' is not null or undefined
2080
+ assertParamExists('listCollections', 'project', project)
2081
+ const localVarPath = `/v1/website/collections`;
2082
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2083
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2084
+ let baseOptions;
2085
+ if (configuration) {
2086
+ baseOptions = configuration.baseOptions;
2087
+ }
2088
+
2089
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2090
+ const localVarHeaderParameter = {} as any;
2091
+ const localVarQueryParameter = {} as any;
2092
+
2093
+ // authentication session-oauth required
2094
+ // oauth required
2095
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2096
+
2097
+ // authentication api-key required
2098
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2099
+
2100
+ if (project !== undefined) {
2101
+ localVarQueryParameter['project'] = project;
2102
+ }
2103
+
2104
+ if (pageToken !== undefined) {
2105
+ localVarQueryParameter['pageToken'] = pageToken;
2106
+ }
2107
+
2108
+ if (pageSize !== undefined) {
2109
+ localVarQueryParameter['pageSize'] = pageSize;
2110
+ }
2111
+
2112
+ if (search !== undefined) {
2113
+ localVarQueryParameter['search'] = search;
2114
+ }
2115
+
2116
+
2117
+
2118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2120
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2121
+
2122
+ return {
2123
+ url: toPathString(localVarUrlObj),
2124
+ options: localVarRequestOptions,
2125
+ };
2126
+ },
2127
+ /**
2128
+ *
2129
+ * @summary Update website collection
2130
+ * @param {string} project What project it is
2131
+ * @param {string} collectionId Collection\&#39;s unique identifier
2132
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ */
2136
+ updateCollection: async (project: string, collectionId: string, updateCollectionRequest?: UpdateCollectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2137
+ // verify required parameter 'project' is not null or undefined
2138
+ assertParamExists('updateCollection', 'project', project)
2139
+ // verify required parameter 'collectionId' is not null or undefined
2140
+ assertParamExists('updateCollection', 'collectionId', collectionId)
2141
+ const localVarPath = `/v1/website/collections/{collectionId}`
2142
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
2143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2144
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2145
+ let baseOptions;
2146
+ if (configuration) {
2147
+ baseOptions = configuration.baseOptions;
2148
+ }
2149
+
2150
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2151
+ const localVarHeaderParameter = {} as any;
2152
+ const localVarQueryParameter = {} as any;
2153
+
2154
+ // authentication session-oauth required
2155
+ // oauth required
2156
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2157
+
2158
+ // authentication api-key required
2159
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2160
+
2161
+ if (project !== undefined) {
2162
+ localVarQueryParameter['project'] = project;
2163
+ }
2164
+
2165
+
2166
+
2167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2168
+
2169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2172
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCollectionRequest, localVarRequestOptions, configuration)
2173
+
2174
+ return {
2175
+ url: toPathString(localVarUrlObj),
2176
+ options: localVarRequestOptions,
2177
+ };
2178
+ },
2179
+ /**
2180
+ *
2181
+ * @summary Update website collections
2182
+ * @param {string} project What project it is
2183
+ * @param {number} [pageToken] Page reference token
2184
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2185
+ * @param {string} [search] Search term to filter results
2186
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
2187
+ * @param {*} [options] Override http request option.
2188
+ * @throws {RequiredError}
2189
+ */
2190
+ updateCollections: async (project: string, pageToken?: number, pageSize?: number, search?: string, updateCollectionsRequest?: UpdateCollectionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2191
+ // verify required parameter 'project' is not null or undefined
2192
+ assertParamExists('updateCollections', 'project', project)
2193
+ const localVarPath = `/v1/website/collections`;
2194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2196
+ let baseOptions;
2197
+ if (configuration) {
2198
+ baseOptions = configuration.baseOptions;
2199
+ }
2200
+
2201
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2202
+ const localVarHeaderParameter = {} as any;
2203
+ const localVarQueryParameter = {} as any;
2204
+
2205
+ // authentication session-oauth required
2206
+ // oauth required
2207
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2208
+
2209
+ // authentication api-key required
2210
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2211
+
2212
+ if (project !== undefined) {
2213
+ localVarQueryParameter['project'] = project;
2214
+ }
2215
+
2216
+ if (pageToken !== undefined) {
2217
+ localVarQueryParameter['pageToken'] = pageToken;
2218
+ }
2219
+
2220
+ if (pageSize !== undefined) {
2221
+ localVarQueryParameter['pageSize'] = pageSize;
2222
+ }
2223
+
2224
+ if (search !== undefined) {
2225
+ localVarQueryParameter['search'] = search;
2226
+ }
2227
+
2228
+
2229
+
2230
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2231
+
2232
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2234
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2235
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCollectionsRequest, localVarRequestOptions, configuration)
2236
+
2237
+ return {
2238
+ url: toPathString(localVarUrlObj),
2239
+ options: localVarRequestOptions,
2240
+ };
2241
+ },
2242
+ }
2243
+ };
2244
+
2245
+ /**
2246
+ * CollectionsApi - functional programming interface
2247
+ * @export
2248
+ */
2249
+ export const CollectionsApiFp = function(configuration?: Configuration) {
2250
+ const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration)
2251
+ return {
2252
+ /**
2253
+ *
2254
+ * @summary List website collections
2255
+ * @param {string} project What project it is
2256
+ * @param {number} [pageToken] Page reference token
2257
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2258
+ * @param {string} [search] Search term to filter results
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ async listCollections(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionsResponse>> {
2263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(project, pageToken, pageSize, search, options);
2264
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2265
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.listCollections']?.[localVarOperationServerIndex]?.url;
2266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2267
+ },
2268
+ /**
2269
+ *
2270
+ * @summary Update website collection
2271
+ * @param {string} project What project it is
2272
+ * @param {string} collectionId Collection\&#39;s unique identifier
2273
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
2274
+ * @param {*} [options] Override http request option.
2275
+ * @throws {RequiredError}
2276
+ */
2277
+ async updateCollection(project: string, collectionId: string, updateCollectionRequest?: UpdateCollectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Collection>> {
2278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCollection(project, collectionId, updateCollectionRequest, options);
2279
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2280
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.updateCollection']?.[localVarOperationServerIndex]?.url;
2281
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2282
+ },
2283
+ /**
2284
+ *
2285
+ * @summary Update website collections
2286
+ * @param {string} project What project it is
2287
+ * @param {number} [pageToken] Page reference token
2288
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2289
+ * @param {string} [search] Search term to filter results
2290
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
2291
+ * @param {*} [options] Override http request option.
2292
+ * @throws {RequiredError}
2293
+ */
2294
+ async updateCollections(project: string, pageToken?: number, pageSize?: number, search?: string, updateCollectionsRequest?: UpdateCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionsResponse>> {
2295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options);
2296
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2297
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.updateCollections']?.[localVarOperationServerIndex]?.url;
2298
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2299
+ },
2300
+ }
2301
+ };
2302
+
2303
+ /**
2304
+ * CollectionsApi - factory interface
2305
+ * @export
2306
+ */
2307
+ export const CollectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2308
+ const localVarFp = CollectionsApiFp(configuration)
2309
+ return {
2310
+ /**
2311
+ *
2312
+ * @summary List website collections
2313
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ */
2317
+ listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CollectionsResponse> {
2318
+ return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2319
+ },
2320
+ /**
2321
+ *
2322
+ * @summary Update website collection
2323
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
2324
+ * @param {*} [options] Override http request option.
2325
+ * @throws {RequiredError}
2326
+ */
2327
+ updateCollection(requestParameters: CollectionsApiUpdateCollectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Collection> {
2328
+ return localVarFp.updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(axios, basePath));
2329
+ },
2330
+ /**
2331
+ *
2332
+ * @summary Update website collections
2333
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
2334
+ * @param {*} [options] Override http request option.
2335
+ * @throws {RequiredError}
2336
+ */
2337
+ updateCollections(requestParameters: CollectionsApiUpdateCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CollectionsResponse> {
2338
+ return localVarFp.updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(axios, basePath));
2339
+ },
2340
+ };
2341
+ };
2342
+
2343
+ /**
2344
+ * Request parameters for listCollections operation in CollectionsApi.
2345
+ * @export
2346
+ * @interface CollectionsApiListCollectionsRequest
2347
+ */
2348
+ export interface CollectionsApiListCollectionsRequest {
2349
+ /**
2350
+ * What project it is
2351
+ * @type {string}
2352
+ * @memberof CollectionsApiListCollections
2353
+ */
2354
+ readonly project: string
2355
+
2356
+ /**
2357
+ * Page reference token
2358
+ * @type {number}
2359
+ * @memberof CollectionsApiListCollections
2360
+ */
2361
+ readonly pageToken?: number
2362
+
2363
+ /**
2364
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
2365
+ * @type {number}
2366
+ * @memberof CollectionsApiListCollections
2367
+ */
2368
+ readonly pageSize?: number
2369
+
2370
+ /**
2371
+ * Search term to filter results
2372
+ * @type {string}
2373
+ * @memberof CollectionsApiListCollections
2374
+ */
2375
+ readonly search?: string
2376
+ }
2377
+
2378
+ /**
2379
+ * Request parameters for updateCollection operation in CollectionsApi.
2380
+ * @export
2381
+ * @interface CollectionsApiUpdateCollectionRequest
2382
+ */
2383
+ export interface CollectionsApiUpdateCollectionRequest {
2384
+ /**
2385
+ * What project it is
2386
+ * @type {string}
2387
+ * @memberof CollectionsApiUpdateCollection
2388
+ */
2389
+ readonly project: string
2390
+
2391
+ /**
2392
+ * Collection\&#39;s unique identifier
2393
+ * @type {string}
2394
+ * @memberof CollectionsApiUpdateCollection
2395
+ */
2396
+ readonly collectionId: string
2397
+
2398
+ /**
2399
+ *
2400
+ * @type {UpdateCollectionRequest}
2401
+ * @memberof CollectionsApiUpdateCollection
2402
+ */
2403
+ readonly updateCollectionRequest?: UpdateCollectionRequest
2404
+ }
2405
+
2406
+ /**
2407
+ * Request parameters for updateCollections operation in CollectionsApi.
2408
+ * @export
2409
+ * @interface CollectionsApiUpdateCollectionsRequest
2410
+ */
2411
+ export interface CollectionsApiUpdateCollectionsRequest {
2412
+ /**
2413
+ * What project it is
2414
+ * @type {string}
2415
+ * @memberof CollectionsApiUpdateCollections
2416
+ */
2417
+ readonly project: string
2418
+
2419
+ /**
2420
+ * Page reference token
2421
+ * @type {number}
2422
+ * @memberof CollectionsApiUpdateCollections
2423
+ */
2424
+ readonly pageToken?: number
2425
+
2426
+ /**
2427
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
2428
+ * @type {number}
2429
+ * @memberof CollectionsApiUpdateCollections
2430
+ */
2431
+ readonly pageSize?: number
2432
+
2433
+ /**
2434
+ * Search term to filter results
2435
+ * @type {string}
2436
+ * @memberof CollectionsApiUpdateCollections
2437
+ */
2438
+ readonly search?: string
2439
+
2440
+ /**
2441
+ * Update collections in bulk.
2442
+ * @type {UpdateCollectionsRequest}
2443
+ * @memberof CollectionsApiUpdateCollections
2444
+ */
2445
+ readonly updateCollectionsRequest?: UpdateCollectionsRequest
2446
+ }
2447
+
2448
+ /**
2449
+ * CollectionsApi - object-oriented interface
2450
+ * @export
2451
+ * @class CollectionsApi
2452
+ * @extends {BaseAPI}
2453
+ */
2454
+ export class CollectionsApi extends BaseAPI {
2455
+ /**
2456
+ *
2457
+ * @summary List website collections
2458
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
2459
+ * @param {*} [options] Override http request option.
2460
+ * @throws {RequiredError}
2461
+ * @memberof CollectionsApi
1037
2462
  */
1038
- 'sortOrder'?: number;
2463
+ public listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig) {
2464
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2465
+ }
2466
+
1039
2467
  /**
1040
2468
  *
1041
- * @type {string}
1042
- * @memberof Video
2469
+ * @summary Update website collection
2470
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
2471
+ * @param {*} [options] Override http request option.
2472
+ * @throws {RequiredError}
2473
+ * @memberof CollectionsApi
1043
2474
  */
1044
- 'createdAt'?: string;
2475
+ public updateCollection(requestParameters: CollectionsApiUpdateCollectionRequest, options?: RawAxiosRequestConfig) {
2476
+ return CollectionsApiFp(this.configuration).updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
2477
+ }
2478
+
1045
2479
  /**
1046
2480
  *
1047
- * @type {string}
1048
- * @memberof Video
2481
+ * @summary Update website collections
2482
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
2483
+ * @param {*} [options] Override http request option.
2484
+ * @throws {RequiredError}
2485
+ * @memberof CollectionsApi
1049
2486
  */
1050
- 'updatedAt'?: string;
2487
+ public updateCollections(requestParameters: CollectionsApiUpdateCollectionsRequest, options?: RawAxiosRequestConfig) {
2488
+ return CollectionsApiFp(this.configuration).updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
2489
+ }
1051
2490
  }
1052
2491
 
2492
+
2493
+
1053
2494
  /**
1054
2495
  * CrossSellApi - axios parameter creator
1055
2496
  * @export
@@ -1283,51 +2724,291 @@ export interface CrossSellApiGetCrossSellProductsRequest {
1283
2724
  * @class CrossSellApi
1284
2725
  * @extends {BaseAPI}
1285
2726
  */
1286
- export class CrossSellApi extends BaseAPI {
2727
+ export class CrossSellApi extends BaseAPI {
2728
+ /**
2729
+ * Attaches a list of products to the given product as cross-sell products.
2730
+ * @summary Attach cross-sell products
2731
+ * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
2732
+ * @param {*} [options] Override http request option.
2733
+ * @throws {RequiredError}
2734
+ * @memberof CrossSellApi
2735
+ */
2736
+ public attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
2737
+ return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
2738
+ }
2739
+
2740
+ /**
2741
+ *
2742
+ * @summary Get cross-sell products linked to a product
2743
+ * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
2744
+ * @param {*} [options] Override http request option.
2745
+ * @throws {RequiredError}
2746
+ * @memberof CrossSellApi
2747
+ */
2748
+ public getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
2749
+ return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2750
+ }
2751
+ }
2752
+
2753
+
2754
+
2755
+ /**
2756
+ * MenuApi - axios parameter creator
2757
+ * @export
2758
+ */
2759
+ export const MenuApiAxiosParamCreator = function (configuration?: Configuration) {
2760
+ return {
2761
+ /**
2762
+ * Get menu
2763
+ * @summary Get menu
2764
+ * @param {string} project What project it is
2765
+ * @param {*} [options] Override http request option.
2766
+ * @throws {RequiredError}
2767
+ */
2768
+ getMenu: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2769
+ // verify required parameter 'project' is not null or undefined
2770
+ assertParamExists('getMenu', 'project', project)
2771
+ const localVarPath = `/v1/website/menu`;
2772
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2773
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2774
+ let baseOptions;
2775
+ if (configuration) {
2776
+ baseOptions = configuration.baseOptions;
2777
+ }
2778
+
2779
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2780
+ const localVarHeaderParameter = {} as any;
2781
+ const localVarQueryParameter = {} as any;
2782
+
2783
+ // authentication session-oauth required
2784
+ // oauth required
2785
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2786
+
2787
+ // authentication api-key required
2788
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2789
+
2790
+ if (project !== undefined) {
2791
+ localVarQueryParameter['project'] = project;
2792
+ }
2793
+
2794
+
2795
+
2796
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2797
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2798
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2799
+
2800
+ return {
2801
+ url: toPathString(localVarUrlObj),
2802
+ options: localVarRequestOptions,
2803
+ };
2804
+ },
2805
+ /**
2806
+ * Update menu
2807
+ * @summary Update menu
2808
+ * @param {string} project What project it is
2809
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
2810
+ * @param {*} [options] Override http request option.
2811
+ * @throws {RequiredError}
2812
+ */
2813
+ updateMenu: async (project: string, updateMenuRequest?: UpdateMenuRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2814
+ // verify required parameter 'project' is not null or undefined
2815
+ assertParamExists('updateMenu', 'project', project)
2816
+ const localVarPath = `/v1/website/menu`;
2817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2818
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2819
+ let baseOptions;
2820
+ if (configuration) {
2821
+ baseOptions = configuration.baseOptions;
2822
+ }
2823
+
2824
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2825
+ const localVarHeaderParameter = {} as any;
2826
+ const localVarQueryParameter = {} as any;
2827
+
2828
+ // authentication session-oauth required
2829
+ // oauth required
2830
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2831
+
2832
+ // authentication api-key required
2833
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2834
+
2835
+ if (project !== undefined) {
2836
+ localVarQueryParameter['project'] = project;
2837
+ }
2838
+
2839
+
2840
+
2841
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2842
+
2843
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2845
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2846
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration)
2847
+
2848
+ return {
2849
+ url: toPathString(localVarUrlObj),
2850
+ options: localVarRequestOptions,
2851
+ };
2852
+ },
2853
+ }
2854
+ };
2855
+
2856
+ /**
2857
+ * MenuApi - functional programming interface
2858
+ * @export
2859
+ */
2860
+ export const MenuApiFp = function(configuration?: Configuration) {
2861
+ const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration)
2862
+ return {
2863
+ /**
2864
+ * Get menu
2865
+ * @summary Get menu
2866
+ * @param {string} project What project it is
2867
+ * @param {*} [options] Override http request option.
2868
+ * @throws {RequiredError}
2869
+ */
2870
+ async getMenu(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
2871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMenu(project, options);
2872
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2873
+ const localVarOperationServerBasePath = operationServerMap['MenuApi.getMenu']?.[localVarOperationServerIndex]?.url;
2874
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2875
+ },
2876
+ /**
2877
+ * Update menu
2878
+ * @summary Update menu
2879
+ * @param {string} project What project it is
2880
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
2881
+ * @param {*} [options] Override http request option.
2882
+ * @throws {RequiredError}
2883
+ */
2884
+ async updateMenu(project: string, updateMenuRequest?: UpdateMenuRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
2885
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
2886
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2887
+ const localVarOperationServerBasePath = operationServerMap['MenuApi.updateMenu']?.[localVarOperationServerIndex]?.url;
2888
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2889
+ },
2890
+ }
2891
+ };
2892
+
2893
+ /**
2894
+ * MenuApi - factory interface
2895
+ * @export
2896
+ */
2897
+ export const MenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2898
+ const localVarFp = MenuApiFp(configuration)
2899
+ return {
2900
+ /**
2901
+ * Get menu
2902
+ * @summary Get menu
2903
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
2904
+ * @param {*} [options] Override http request option.
2905
+ * @throws {RequiredError}
2906
+ */
2907
+ getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
2908
+ return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
2909
+ },
2910
+ /**
2911
+ * Update menu
2912
+ * @summary Update menu
2913
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ */
2917
+ updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
2918
+ return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
2919
+ },
2920
+ };
2921
+ };
2922
+
2923
+ /**
2924
+ * Request parameters for getMenu operation in MenuApi.
2925
+ * @export
2926
+ * @interface MenuApiGetMenuRequest
2927
+ */
2928
+ export interface MenuApiGetMenuRequest {
2929
+ /**
2930
+ * What project it is
2931
+ * @type {string}
2932
+ * @memberof MenuApiGetMenu
2933
+ */
2934
+ readonly project: string
2935
+ }
2936
+
2937
+ /**
2938
+ * Request parameters for updateMenu operation in MenuApi.
2939
+ * @export
2940
+ * @interface MenuApiUpdateMenuRequest
2941
+ */
2942
+ export interface MenuApiUpdateMenuRequest {
2943
+ /**
2944
+ * What project it is
2945
+ * @type {string}
2946
+ * @memberof MenuApiUpdateMenu
2947
+ */
2948
+ readonly project: string
2949
+
2950
+ /**
2951
+ * Update menu request
2952
+ * @type {UpdateMenuRequest}
2953
+ * @memberof MenuApiUpdateMenu
2954
+ */
2955
+ readonly updateMenuRequest?: UpdateMenuRequest
2956
+ }
2957
+
2958
+ /**
2959
+ * MenuApi - object-oriented interface
2960
+ * @export
2961
+ * @class MenuApi
2962
+ * @extends {BaseAPI}
2963
+ */
2964
+ export class MenuApi extends BaseAPI {
1287
2965
  /**
1288
- * Attaches a list of products to the given product as cross-sell products.
1289
- * @summary Attach cross-sell products
1290
- * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
2966
+ * Get menu
2967
+ * @summary Get menu
2968
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
1291
2969
  * @param {*} [options] Override http request option.
1292
2970
  * @throws {RequiredError}
1293
- * @memberof CrossSellApi
2971
+ * @memberof MenuApi
1294
2972
  */
1295
- public attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
1296
- return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
2973
+ public getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig) {
2974
+ return MenuApiFp(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1297
2975
  }
1298
2976
 
1299
2977
  /**
1300
- *
1301
- * @summary Get cross-sell products linked to a product
1302
- * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
2978
+ * Update menu
2979
+ * @summary Update menu
2980
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
1303
2981
  * @param {*} [options] Override http request option.
1304
2982
  * @throws {RequiredError}
1305
- * @memberof CrossSellApi
2983
+ * @memberof MenuApi
1306
2984
  */
1307
- public getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
1308
- return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2985
+ public updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig) {
2986
+ return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
1309
2987
  }
1310
2988
  }
1311
2989
 
1312
2990
 
1313
2991
 
1314
2992
  /**
1315
- * MenuApi - axios parameter creator
2993
+ * PagesApi - axios parameter creator
1316
2994
  * @export
1317
2995
  */
1318
- export const MenuApiAxiosParamCreator = function (configuration?: Configuration) {
2996
+ export const PagesApiAxiosParamCreator = function (configuration?: Configuration) {
1319
2997
  return {
1320
2998
  /**
1321
- * Get menu
1322
- * @summary Get menu
2999
+ *
3000
+ * @summary List website pages
1323
3001
  * @param {string} project What project it is
3002
+ * @param {number} [pageToken] Page reference token
3003
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3004
+ * @param {string} [search] Search term to filter results
1324
3005
  * @param {*} [options] Override http request option.
1325
3006
  * @throws {RequiredError}
1326
3007
  */
1327
- getMenu: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3008
+ listPages: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1328
3009
  // verify required parameter 'project' is not null or undefined
1329
- assertParamExists('getMenu', 'project', project)
1330
- const localVarPath = `/v1/website/menu`;
3010
+ assertParamExists('listPages', 'project', project)
3011
+ const localVarPath = `/v1/website/pages`;
1331
3012
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1332
3013
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1333
3014
  let baseOptions;
@@ -1350,6 +3031,18 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1350
3031
  localVarQueryParameter['project'] = project;
1351
3032
  }
1352
3033
 
3034
+ if (pageToken !== undefined) {
3035
+ localVarQueryParameter['pageToken'] = pageToken;
3036
+ }
3037
+
3038
+ if (pageSize !== undefined) {
3039
+ localVarQueryParameter['pageSize'] = pageSize;
3040
+ }
3041
+
3042
+ if (search !== undefined) {
3043
+ localVarQueryParameter['search'] = search;
3044
+ }
3045
+
1353
3046
 
1354
3047
 
1355
3048
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1362,17 +3055,21 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1362
3055
  };
1363
3056
  },
1364
3057
  /**
1365
- * Update menu
1366
- * @summary Update menu
3058
+ *
3059
+ * @summary Update website page
1367
3060
  * @param {string} project What project it is
1368
- * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
3061
+ * @param {string} pageId Page\&#39;s unique identifier
3062
+ * @param {UpdatePageRequest} [updatePageRequest]
1369
3063
  * @param {*} [options] Override http request option.
1370
3064
  * @throws {RequiredError}
1371
3065
  */
1372
- updateMenu: async (project: string, updateMenuRequest?: UpdateMenuRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3066
+ updatePage: async (project: string, pageId: string, updatePageRequest?: UpdatePageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1373
3067
  // verify required parameter 'project' is not null or undefined
1374
- assertParamExists('updateMenu', 'project', project)
1375
- const localVarPath = `/v1/website/menu`;
3068
+ assertParamExists('updatePage', 'project', project)
3069
+ // verify required parameter 'pageId' is not null or undefined
3070
+ assertParamExists('updatePage', 'pageId', pageId)
3071
+ const localVarPath = `/v1/website/pages/{pageId}`
3072
+ .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
1376
3073
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1377
3074
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1378
3075
  let baseOptions;
@@ -1380,7 +3077,7 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1380
3077
  baseOptions = configuration.baseOptions;
1381
3078
  }
1382
3079
 
1383
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3080
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1384
3081
  const localVarHeaderParameter = {} as any;
1385
3082
  const localVarQueryParameter = {} as any;
1386
3083
 
@@ -1402,7 +3099,70 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1402
3099
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1403
3100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1404
3101
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1405
- localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration)
3102
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePageRequest, localVarRequestOptions, configuration)
3103
+
3104
+ return {
3105
+ url: toPathString(localVarUrlObj),
3106
+ options: localVarRequestOptions,
3107
+ };
3108
+ },
3109
+ /**
3110
+ *
3111
+ * @summary Update website pages
3112
+ * @param {string} project What project it is
3113
+ * @param {number} [pageToken] Page reference token
3114
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3115
+ * @param {string} [search] Search term to filter results
3116
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
3117
+ * @param {*} [options] Override http request option.
3118
+ * @throws {RequiredError}
3119
+ */
3120
+ updatePages: async (project: string, pageToken?: number, pageSize?: number, search?: string, updatePagesRequest?: UpdatePagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3121
+ // verify required parameter 'project' is not null or undefined
3122
+ assertParamExists('updatePages', 'project', project)
3123
+ const localVarPath = `/v1/website/pages`;
3124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3126
+ let baseOptions;
3127
+ if (configuration) {
3128
+ baseOptions = configuration.baseOptions;
3129
+ }
3130
+
3131
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3132
+ const localVarHeaderParameter = {} as any;
3133
+ const localVarQueryParameter = {} as any;
3134
+
3135
+ // authentication session-oauth required
3136
+ // oauth required
3137
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3138
+
3139
+ // authentication api-key required
3140
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3141
+
3142
+ if (project !== undefined) {
3143
+ localVarQueryParameter['project'] = project;
3144
+ }
3145
+
3146
+ if (pageToken !== undefined) {
3147
+ localVarQueryParameter['pageToken'] = pageToken;
3148
+ }
3149
+
3150
+ if (pageSize !== undefined) {
3151
+ localVarQueryParameter['pageSize'] = pageSize;
3152
+ }
3153
+
3154
+ if (search !== undefined) {
3155
+ localVarQueryParameter['search'] = search;
3156
+ }
3157
+
3158
+
3159
+
3160
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3161
+
3162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3164
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3165
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePagesRequest, localVarRequestOptions, configuration)
1406
3166
 
1407
3167
  return {
1408
3168
  url: toPathString(localVarUrlObj),
@@ -1413,136 +3173,249 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1413
3173
  };
1414
3174
 
1415
3175
  /**
1416
- * MenuApi - functional programming interface
3176
+ * PagesApi - functional programming interface
1417
3177
  * @export
1418
3178
  */
1419
- export const MenuApiFp = function(configuration?: Configuration) {
1420
- const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration)
3179
+ export const PagesApiFp = function(configuration?: Configuration) {
3180
+ const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration)
1421
3181
  return {
1422
3182
  /**
1423
- * Get menu
1424
- * @summary Get menu
3183
+ *
3184
+ * @summary List website pages
1425
3185
  * @param {string} project What project it is
3186
+ * @param {number} [pageToken] Page reference token
3187
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3188
+ * @param {string} [search] Search term to filter results
1426
3189
  * @param {*} [options] Override http request option.
1427
3190
  * @throws {RequiredError}
1428
3191
  */
1429
- async getMenu(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
1430
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMenu(project, options);
3192
+ async listPages(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PagesResponse>> {
3193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPages(project, pageToken, pageSize, search, options);
1431
3194
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1432
- const localVarOperationServerBasePath = operationServerMap['MenuApi.getMenu']?.[localVarOperationServerIndex]?.url;
3195
+ const localVarOperationServerBasePath = operationServerMap['PagesApi.listPages']?.[localVarOperationServerIndex]?.url;
1433
3196
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1434
3197
  },
1435
3198
  /**
1436
- * Update menu
1437
- * @summary Update menu
3199
+ *
3200
+ * @summary Update website page
1438
3201
  * @param {string} project What project it is
1439
- * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
3202
+ * @param {string} pageId Page\&#39;s unique identifier
3203
+ * @param {UpdatePageRequest} [updatePageRequest]
1440
3204
  * @param {*} [options] Override http request option.
1441
3205
  * @throws {RequiredError}
1442
3206
  */
1443
- async updateMenu(project: string, updateMenuRequest?: UpdateMenuRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
1444
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
3207
+ async updatePage(project: string, pageId: string, updatePageRequest?: UpdatePageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Page>> {
3208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePage(project, pageId, updatePageRequest, options);
1445
3209
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1446
- const localVarOperationServerBasePath = operationServerMap['MenuApi.updateMenu']?.[localVarOperationServerIndex]?.url;
3210
+ const localVarOperationServerBasePath = operationServerMap['PagesApi.updatePage']?.[localVarOperationServerIndex]?.url;
3211
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3212
+ },
3213
+ /**
3214
+ *
3215
+ * @summary Update website pages
3216
+ * @param {string} project What project it is
3217
+ * @param {number} [pageToken] Page reference token
3218
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3219
+ * @param {string} [search] Search term to filter results
3220
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
3221
+ * @param {*} [options] Override http request option.
3222
+ * @throws {RequiredError}
3223
+ */
3224
+ async updatePages(project: string, pageToken?: number, pageSize?: number, search?: string, updatePagesRequest?: UpdatePagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PagesResponse>> {
3225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePages(project, pageToken, pageSize, search, updatePagesRequest, options);
3226
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3227
+ const localVarOperationServerBasePath = operationServerMap['PagesApi.updatePages']?.[localVarOperationServerIndex]?.url;
1447
3228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1448
3229
  },
1449
3230
  }
1450
3231
  };
1451
3232
 
1452
3233
  /**
1453
- * MenuApi - factory interface
3234
+ * PagesApi - factory interface
1454
3235
  * @export
1455
3236
  */
1456
- export const MenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1457
- const localVarFp = MenuApiFp(configuration)
3237
+ export const PagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3238
+ const localVarFp = PagesApiFp(configuration)
1458
3239
  return {
1459
3240
  /**
1460
- * Get menu
1461
- * @summary Get menu
1462
- * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
3241
+ *
3242
+ * @summary List website pages
3243
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1463
3244
  * @param {*} [options] Override http request option.
1464
3245
  * @throws {RequiredError}
1465
3246
  */
1466
- getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
1467
- return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
3247
+ listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PagesResponse> {
3248
+ return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1468
3249
  },
1469
3250
  /**
1470
- * Update menu
1471
- * @summary Update menu
1472
- * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
3251
+ *
3252
+ * @summary Update website page
3253
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1473
3254
  * @param {*} [options] Override http request option.
1474
3255
  * @throws {RequiredError}
1475
3256
  */
1476
- updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
1477
- return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
3257
+ updatePage(requestParameters: PagesApiUpdatePageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Page> {
3258
+ return localVarFp.updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(axios, basePath));
3259
+ },
3260
+ /**
3261
+ *
3262
+ * @summary Update website pages
3263
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
3264
+ * @param {*} [options] Override http request option.
3265
+ * @throws {RequiredError}
3266
+ */
3267
+ updatePages(requestParameters: PagesApiUpdatePagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PagesResponse> {
3268
+ return localVarFp.updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(axios, basePath));
1478
3269
  },
1479
3270
  };
1480
3271
  };
1481
3272
 
1482
3273
  /**
1483
- * Request parameters for getMenu operation in MenuApi.
3274
+ * Request parameters for listPages operation in PagesApi.
1484
3275
  * @export
1485
- * @interface MenuApiGetMenuRequest
3276
+ * @interface PagesApiListPagesRequest
1486
3277
  */
1487
- export interface MenuApiGetMenuRequest {
3278
+ export interface PagesApiListPagesRequest {
1488
3279
  /**
1489
3280
  * What project it is
1490
3281
  * @type {string}
1491
- * @memberof MenuApiGetMenu
3282
+ * @memberof PagesApiListPages
1492
3283
  */
1493
3284
  readonly project: string
3285
+
3286
+ /**
3287
+ * Page reference token
3288
+ * @type {number}
3289
+ * @memberof PagesApiListPages
3290
+ */
3291
+ readonly pageToken?: number
3292
+
3293
+ /**
3294
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
3295
+ * @type {number}
3296
+ * @memberof PagesApiListPages
3297
+ */
3298
+ readonly pageSize?: number
3299
+
3300
+ /**
3301
+ * Search term to filter results
3302
+ * @type {string}
3303
+ * @memberof PagesApiListPages
3304
+ */
3305
+ readonly search?: string
1494
3306
  }
1495
3307
 
1496
3308
  /**
1497
- * Request parameters for updateMenu operation in MenuApi.
3309
+ * Request parameters for updatePage operation in PagesApi.
1498
3310
  * @export
1499
- * @interface MenuApiUpdateMenuRequest
3311
+ * @interface PagesApiUpdatePageRequest
1500
3312
  */
1501
- export interface MenuApiUpdateMenuRequest {
3313
+ export interface PagesApiUpdatePageRequest {
1502
3314
  /**
1503
3315
  * What project it is
1504
3316
  * @type {string}
1505
- * @memberof MenuApiUpdateMenu
3317
+ * @memberof PagesApiUpdatePage
1506
3318
  */
1507
3319
  readonly project: string
1508
3320
 
1509
3321
  /**
1510
- * Update menu request
1511
- * @type {UpdateMenuRequest}
1512
- * @memberof MenuApiUpdateMenu
3322
+ * Page\&#39;s unique identifier
3323
+ * @type {string}
3324
+ * @memberof PagesApiUpdatePage
1513
3325
  */
1514
- readonly updateMenuRequest?: UpdateMenuRequest
3326
+ readonly pageId: string
3327
+
3328
+ /**
3329
+ *
3330
+ * @type {UpdatePageRequest}
3331
+ * @memberof PagesApiUpdatePage
3332
+ */
3333
+ readonly updatePageRequest?: UpdatePageRequest
1515
3334
  }
1516
3335
 
1517
3336
  /**
1518
- * MenuApi - object-oriented interface
3337
+ * Request parameters for updatePages operation in PagesApi.
1519
3338
  * @export
1520
- * @class MenuApi
3339
+ * @interface PagesApiUpdatePagesRequest
3340
+ */
3341
+ export interface PagesApiUpdatePagesRequest {
3342
+ /**
3343
+ * What project it is
3344
+ * @type {string}
3345
+ * @memberof PagesApiUpdatePages
3346
+ */
3347
+ readonly project: string
3348
+
3349
+ /**
3350
+ * Page reference token
3351
+ * @type {number}
3352
+ * @memberof PagesApiUpdatePages
3353
+ */
3354
+ readonly pageToken?: number
3355
+
3356
+ /**
3357
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
3358
+ * @type {number}
3359
+ * @memberof PagesApiUpdatePages
3360
+ */
3361
+ readonly pageSize?: number
3362
+
3363
+ /**
3364
+ * Search term to filter results
3365
+ * @type {string}
3366
+ * @memberof PagesApiUpdatePages
3367
+ */
3368
+ readonly search?: string
3369
+
3370
+ /**
3371
+ * Update pages in bulk.
3372
+ * @type {UpdatePagesRequest}
3373
+ * @memberof PagesApiUpdatePages
3374
+ */
3375
+ readonly updatePagesRequest?: UpdatePagesRequest
3376
+ }
3377
+
3378
+ /**
3379
+ * PagesApi - object-oriented interface
3380
+ * @export
3381
+ * @class PagesApi
1521
3382
  * @extends {BaseAPI}
1522
3383
  */
1523
- export class MenuApi extends BaseAPI {
3384
+ export class PagesApi extends BaseAPI {
1524
3385
  /**
1525
- * Get menu
1526
- * @summary Get menu
1527
- * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
3386
+ *
3387
+ * @summary List website pages
3388
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1528
3389
  * @param {*} [options] Override http request option.
1529
3390
  * @throws {RequiredError}
1530
- * @memberof MenuApi
3391
+ * @memberof PagesApi
1531
3392
  */
1532
- public getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig) {
1533
- return MenuApiFp(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3393
+ public listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig) {
3394
+ return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1534
3395
  }
1535
3396
 
1536
3397
  /**
1537
- * Update menu
1538
- * @summary Update menu
1539
- * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
3398
+ *
3399
+ * @summary Update website page
3400
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1540
3401
  * @param {*} [options] Override http request option.
1541
3402
  * @throws {RequiredError}
1542
- * @memberof MenuApi
3403
+ * @memberof PagesApi
1543
3404
  */
1544
- public updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig) {
1545
- return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
3405
+ public updatePage(requestParameters: PagesApiUpdatePageRequest, options?: RawAxiosRequestConfig) {
3406
+ return PagesApiFp(this.configuration).updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(this.axios, this.basePath));
3407
+ }
3408
+
3409
+ /**
3410
+ *
3411
+ * @summary Update website pages
3412
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
3413
+ * @param {*} [options] Override http request option.
3414
+ * @throws {RequiredError}
3415
+ * @memberof PagesApi
3416
+ */
3417
+ public updatePages(requestParameters: PagesApiUpdatePagesRequest, options?: RawAxiosRequestConfig) {
3418
+ return PagesApiFp(this.configuration).updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(this.axios, this.basePath));
1546
3419
  }
1547
3420
  }
1548
3421