@teemill/website 0.6.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.6.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
@@ -262,6 +386,25 @@ export interface Image {
262
386
  */
263
387
  'updatedAt'?: string;
264
388
  }
389
+ /**
390
+ *
391
+ * @export
392
+ * @interface ListRoutesResponse
393
+ */
394
+ export interface ListRoutesResponse {
395
+ /**
396
+ *
397
+ * @type {Array<Route>}
398
+ * @memberof ListRoutesResponse
399
+ */
400
+ 'routes': Array<Route>;
401
+ /**
402
+ *
403
+ * @type {number}
404
+ * @memberof ListRoutesResponse
405
+ */
406
+ 'nextPageToken': number;
407
+ }
265
408
  /**
266
409
  *
267
410
  * @export
@@ -331,6 +474,68 @@ export interface MetaField {
331
474
  */
332
475
  'value': string;
333
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
+ }
334
539
  /**
335
540
  *
336
541
  * @export
@@ -604,6 +809,43 @@ export interface ProductWarehouseProduct {
604
809
  */
605
810
  'gfnProductRef'?: string;
606
811
  }
812
+ /**
813
+ *
814
+ * @export
815
+ * @interface Route
816
+ */
817
+ export interface Route {
818
+ /**
819
+ *
820
+ * @type {string}
821
+ * @memberof Route
822
+ */
823
+ 'url': string;
824
+ /**
825
+ *
826
+ * @type {string}
827
+ * @memberof Route
828
+ */
829
+ 'title': string;
830
+ /**
831
+ *
832
+ * @type {string}
833
+ * @memberof Route
834
+ */
835
+ 'image': string | null;
836
+ /**
837
+ *
838
+ * @type {string}
839
+ * @memberof Route
840
+ */
841
+ 'type': string;
842
+ /**
843
+ *
844
+ * @type {boolean}
845
+ * @memberof Route
846
+ */
847
+ 'published': boolean;
848
+ }
607
849
  /**
608
850
  * SEO metadata for the product
609
851
  * @export
@@ -707,315 +949,1826 @@ export interface SubmenuItem {
707
949
  /**
708
950
  *
709
951
  * @export
710
- * @interface UpdateMenuRequest
952
+ * @interface TargetSearchPhraseData
711
953
  */
712
- export interface UpdateMenuRequest {
954
+ export interface TargetSearchPhraseData {
713
955
  /**
714
- *
715
- * @type {Array<UpdateMenuRequestItem>}
716
- * @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
717
959
  */
718
- '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>;
719
967
  }
720
968
  /**
721
969
  *
722
970
  * @export
723
- * @interface UpdateMenuRequestItem
971
+ * @interface UpdateBlogRequest
724
972
  */
725
- export interface UpdateMenuRequestItem {
973
+ export interface UpdateBlogRequest {
726
974
  /**
727
- *
975
+ * Blog title
728
976
  * @type {string}
729
- * @memberof UpdateMenuRequestItem
977
+ * @memberof UpdateBlogRequest
730
978
  */
731
- 'id': string | null;
979
+ 'title'?: string;
732
980
  /**
733
- *
981
+ * Blog description
734
982
  * @type {string}
735
- * @memberof UpdateMenuRequestItem
983
+ * @memberof UpdateBlogRequest
736
984
  */
737
- 'text': string;
985
+ 'description'?: string;
738
986
  /**
739
- *
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.
740
988
  * @type {string}
741
- * @memberof UpdateMenuRequestItem
989
+ * @memberof UpdateBlogRequest
742
990
  */
743
- 'link': string;
991
+ 'slug'?: string;
744
992
  /**
745
993
  *
746
- * @type {number}
747
- * @memberof UpdateMenuRequestItem
994
+ * @type {UpdateBlogsRequestBlogsInnerSeoMetadata}
995
+ * @memberof UpdateBlogRequest
748
996
  */
749
- 'order': number;
997
+ 'seoMetadata'?: UpdateBlogsRequestBlogsInnerSeoMetadata;
750
998
  /**
751
- *
752
- * @type {Array<UpdateMenuRequestItemSubmenuInner>}
753
- * @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
754
1002
  */
755
- '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>;
756
1010
  }
757
1011
  /**
758
1012
  *
759
1013
  * @export
760
- * @interface UpdateMenuRequestItemSubmenuInner
1014
+ * @interface UpdateBlogsRequest
761
1015
  */
762
- export interface UpdateMenuRequestItemSubmenuInner {
763
- /**
764
- *
765
- * @type {string}
766
- * @memberof UpdateMenuRequestItemSubmenuInner
767
- */
768
- 'id': string | null;
1016
+ export interface UpdateBlogsRequest {
769
1017
  /**
770
1018
  *
771
- * @type {string}
772
- * @memberof UpdateMenuRequestItemSubmenuInner
1019
+ * @type {Array<UpdateBlogsRequestBlogsInner>}
1020
+ * @memberof UpdateBlogsRequest
773
1021
  */
774
- 'title': string;
1022
+ 'blogs'?: Array<UpdateBlogsRequestBlogsInner>;
775
1023
  /**
776
- *
1024
+ * The primary target search phrase for the blog post that you wish to rank for in search engine results.
777
1025
  * @type {string}
778
- * @memberof UpdateMenuRequestItemSubmenuInner
1026
+ * @memberof UpdateBlogsRequest
779
1027
  */
780
- 'image': string | null;
781
- /**
782
- *
783
- * @type {number}
784
- * @memberof UpdateMenuRequestItemSubmenuInner
785
- */
786
- 'order': number;
1028
+ 'targetSearchPhrase'?: string;
787
1029
  /**
788
- *
789
- * @type {Array<UpdateMenuRequestSubmenuItem>}
790
- * @memberof UpdateMenuRequestItemSubmenuInner
1030
+ * Synonyms for the target search phrase.
1031
+ * @type {Array<string>}
1032
+ * @memberof UpdateBlogsRequest
791
1033
  */
792
- 'items': Array<UpdateMenuRequestSubmenuItem>;
1034
+ 'targetSearchPhraseSynonyms'?: Array<string>;
793
1035
  }
794
1036
  /**
795
1037
  *
796
1038
  * @export
797
- * @interface UpdateMenuRequestSubmenuItem
1039
+ * @interface UpdateBlogsRequestBlogsInner
798
1040
  */
799
- export interface UpdateMenuRequestSubmenuItem {
1041
+ export interface UpdateBlogsRequestBlogsInner {
800
1042
  /**
801
- *
1043
+ * Unique object identifier
802
1044
  * @type {string}
803
- * @memberof UpdateMenuRequestSubmenuItem
1045
+ * @memberof UpdateBlogsRequestBlogsInner
804
1046
  */
805
- 'id': string | null;
1047
+ 'id': string;
806
1048
  /**
807
- *
1049
+ * Blog title
808
1050
  * @type {string}
809
- * @memberof UpdateMenuRequestSubmenuItem
1051
+ * @memberof UpdateBlogsRequestBlogsInner
810
1052
  */
811
- 'text': string;
1053
+ 'title'?: string;
812
1054
  /**
813
- *
1055
+ * Blog description
814
1056
  * @type {string}
815
- * @memberof UpdateMenuRequestSubmenuItem
1057
+ * @memberof UpdateBlogsRequestBlogsInner
816
1058
  */
817
- '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;
818
1066
  /**
819
1067
  *
820
- * @type {number}
821
- * @memberof UpdateMenuRequestSubmenuItem
1068
+ * @type {UpdateBlogsRequestBlogsInnerSeoMetadata}
1069
+ * @memberof UpdateBlogsRequestBlogsInner
822
1070
  */
823
- 'order': number;
1071
+ 'seoMetadata'?: UpdateBlogsRequestBlogsInnerSeoMetadata;
824
1072
  }
825
1073
  /**
826
1074
  *
827
1075
  * @export
828
- * @interface Variant
1076
+ * @interface UpdateBlogsRequestBlogsInnerSeoMetadata
829
1077
  */
830
- export interface Variant {
1078
+ export interface UpdateBlogsRequestBlogsInnerSeoMetadata {
831
1079
  /**
832
- * 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.
833
1081
  * @type {string}
834
- * @memberof Variant
1082
+ * @memberof UpdateBlogsRequestBlogsInnerSeoMetadata
835
1083
  */
836
- 'id'?: string;
1084
+ 'title'?: string | null;
837
1085
  /**
838
- * 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.
839
- * @type {Array<Attribute>}
840
- * @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
841
1089
  */
842
- 'attributes': Array<Attribute>;
1090
+ 'description'?: string | null;
1091
+ }
1092
+ /**
1093
+ *
1094
+ * @export
1095
+ * @interface UpdateCollectionRequest
1096
+ */
1097
+ export interface UpdateCollectionRequest {
1098
+ /**
1099
+ * Collection title
1100
+ * @type {string}
1101
+ * @memberof UpdateCollectionRequest
1102
+ */
1103
+ 'title'?: string;
1104
+ /**
1105
+ * Collection description
1106
+ * @type {string}
1107
+ * @memberof UpdateCollectionRequest
1108
+ */
1109
+ 'description'?: string;
1110
+ /**
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
1114
+ */
1115
+ 'slug'?: string;
843
1116
  /**
844
1117
  *
1118
+ * @type {UpdateCollectionsRequestCollectionsInnerSeoMetadata}
1119
+ * @memberof UpdateCollectionRequest
1120
+ */
1121
+ 'seoMetadata'?: UpdateCollectionsRequestCollectionsInnerSeoMetadata;
1122
+ /**
1123
+ * The primary target search phrase for the collection that you wish to rank for in search engine results.
845
1124
  * @type {string}
846
- * @memberof Variant
1125
+ * @memberof UpdateCollectionRequest
847
1126
  */
848
- 'sku': string;
1127
+ 'targetSearchPhrase'?: string;
849
1128
  /**
850
- * A reference to the resource location
1129
+ * Synonyms for the target search phrase.
1130
+ * @type {Array<string>}
1131
+ * @memberof UpdateCollectionRequest
1132
+ */
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
1145
+ */
1146
+ 'collections'?: Array<UpdateCollectionsRequestCollectionsInner>;
1147
+ }
1148
+ /**
1149
+ *
1150
+ * @export
1151
+ * @interface UpdateCollectionsRequestCollectionsInner
1152
+ */
1153
+ export interface UpdateCollectionsRequestCollectionsInner {
1154
+ /**
1155
+ * Unique object identifier
851
1156
  * @type {string}
852
- * @memberof Variant
1157
+ * @memberof UpdateCollectionsRequestCollectionsInner
853
1158
  */
854
- 'ref'?: string;
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;
855
1178
  /**
856
1179
  *
857
- * @type {VariantProduct}
858
- * @memberof Variant
1180
+ * @type {UpdateCollectionsRequestCollectionsInnerSeoMetadata}
1181
+ * @memberof UpdateCollectionsRequestCollectionsInner
859
1182
  */
860
- 'product'?: VariantProduct;
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 {
861
1222
  /**
862
1223
  *
863
- * @type {number}
864
- * @memberof Variant
1224
+ * @type {Array<UpdateMenuRequestItem>}
1225
+ * @memberof UpdateMenuRequest
865
1226
  */
866
- 'sortOrder'?: number;
1227
+ 'items'?: Array<UpdateMenuRequestItem>;
1228
+ }
1229
+ /**
1230
+ *
1231
+ * @export
1232
+ * @interface UpdateMenuRequestItem
1233
+ */
1234
+ export interface UpdateMenuRequestItem {
867
1235
  /**
868
1236
  *
869
- * @type {Price}
870
- * @memberof Variant
1237
+ * @type {string}
1238
+ * @memberof UpdateMenuRequestItem
871
1239
  */
872
- 'retailPrice'?: Price;
1240
+ 'id': string | null;
873
1241
  /**
874
1242
  *
875
- * @type {Price}
876
- * @memberof Variant
1243
+ * @type {string}
1244
+ * @memberof UpdateMenuRequestItem
877
1245
  */
878
- 'salePrice'?: Price;
1246
+ 'text': string;
879
1247
  /**
880
1248
  *
881
- * @type {Price}
882
- * @memberof Variant
1249
+ * @type {string}
1250
+ * @memberof UpdateMenuRequestItem
883
1251
  */
884
- 'price'?: Price;
1252
+ 'link': string;
885
1253
  /**
886
1254
  *
887
- * @type {Stock}
888
- * @memberof Variant
1255
+ * @type {number}
1256
+ * @memberof UpdateMenuRequestItem
889
1257
  */
890
- 'stock'?: Stock;
1258
+ 'order': number;
1259
+ /**
1260
+ *
1261
+ * @type {Array<UpdateMenuRequestItemSubmenuInner>}
1262
+ * @memberof UpdateMenuRequestItem
1263
+ */
1264
+ 'submenu': Array<UpdateMenuRequestItemSubmenuInner>;
1265
+ }
1266
+ /**
1267
+ *
1268
+ * @export
1269
+ * @interface UpdateMenuRequestItemSubmenuInner
1270
+ */
1271
+ export interface UpdateMenuRequestItemSubmenuInner {
891
1272
  /**
892
1273
  *
893
1274
  * @type {string}
894
- * @memberof Variant
1275
+ * @memberof UpdateMenuRequestItemSubmenuInner
895
1276
  */
896
- 'createdAt'?: string;
1277
+ 'id': string | null;
897
1278
  /**
898
1279
  *
899
1280
  * @type {string}
900
- * @memberof Variant
1281
+ * @memberof UpdateMenuRequestItemSubmenuInner
901
1282
  */
902
- 'updatedAt'?: string;
1283
+ 'title': string;
903
1284
  /**
904
1285
  *
905
1286
  * @type {string}
906
- * @memberof Variant
1287
+ * @memberof UpdateMenuRequestItemSubmenuInner
907
1288
  */
908
- 'publishedAt'?: string;
1289
+ 'image': string | null;
909
1290
  /**
910
- * Images
911
- * @type {Array<Image>}
912
- * @memberof Variant
1291
+ *
1292
+ * @type {number}
1293
+ * @memberof UpdateMenuRequestItemSubmenuInner
913
1294
  */
914
- 'images'?: Array<Image>;
1295
+ 'order': number;
915
1296
  /**
916
- * Design applications. If not provided, the product will be blank.
917
- * @type {Array<Application>}
918
- * @memberof Variant
1297
+ *
1298
+ * @type {Array<UpdateMenuRequestSubmenuItem>}
1299
+ * @memberof UpdateMenuRequestItemSubmenuInner
919
1300
  */
920
- 'applications'?: Array<Application>;
1301
+ 'items': Array<UpdateMenuRequestSubmenuItem>;
1302
+ }
1303
+ /**
1304
+ *
1305
+ * @export
1306
+ * @interface UpdateMenuRequestSubmenuItem
1307
+ */
1308
+ export interface UpdateMenuRequestSubmenuItem {
921
1309
  /**
922
- * Global Trade Item Number
1310
+ *
923
1311
  * @type {string}
924
- * @memberof Variant
1312
+ * @memberof UpdateMenuRequestSubmenuItem
925
1313
  */
926
- 'gtin'?: string | null;
1314
+ 'id': string | null;
927
1315
  /**
928
1316
  *
929
- * @type {Array<MetaField>}
930
- * @memberof Variant
1317
+ * @type {string}
1318
+ * @memberof UpdateMenuRequestSubmenuItem
931
1319
  */
932
- 'metafields'?: Array<MetaField>;
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;
933
1333
  }
934
1334
  /**
935
1335
  *
936
1336
  * @export
937
- * @interface VariantProduct
1337
+ * @interface UpdatePageRequest
938
1338
  */
939
- export interface VariantProduct {
1339
+ export interface UpdatePageRequest {
940
1340
  /**
941
- * Unique object identifier
1341
+ * Page title
942
1342
  * @type {string}
943
- * @memberof VariantProduct
1343
+ * @memberof UpdatePageRequest
944
1344
  */
945
- 'id'?: string;
1345
+ 'title'?: string;
946
1346
  /**
947
- * A reference to the resource location
1347
+ * Page description
948
1348
  * @type {string}
949
- * @memberof VariantProduct
1349
+ * @memberof UpdatePageRequest
950
1350
  */
951
- 'ref'?: string;
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;
1358
+ /**
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.
1366
+ * @type {string}
1367
+ * @memberof UpdatePageRequest
1368
+ */
1369
+ 'targetSearchPhrase'?: string;
1370
+ /**
1371
+ * Synonyms for the target search phrase.
1372
+ * @type {Array<string>}
1373
+ * @memberof UpdatePageRequest
1374
+ */
1375
+ 'targetSearchPhraseSynonyms'?: Array<string>;
952
1376
  }
953
1377
  /**
954
- * Video object
1378
+ *
955
1379
  * @export
956
- * @interface Video
1380
+ * @interface UpdatePagesRequest
957
1381
  */
958
- export interface Video {
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 {
959
1396
  /**
960
1397
  * Unique object identifier
961
1398
  * @type {string}
962
- * @memberof Video
1399
+ * @memberof UpdatePagesRequestPagesInner
963
1400
  */
964
- 'id'?: string;
1401
+ 'id': string;
965
1402
  /**
966
- *
1403
+ * Page title
967
1404
  * @type {string}
968
- * @memberof Video
1405
+ * @memberof UpdatePagesRequestPagesInner
969
1406
  */
970
- 'src'?: string;
1407
+ 'title'?: string;
971
1408
  /**
972
- *
1409
+ * Page description
973
1410
  * @type {string}
974
- * @memberof Video
1411
+ * @memberof UpdatePagesRequestPagesInner
975
1412
  */
976
- 'alt'?: string;
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;
977
1420
  /**
978
1421
  *
979
- * @type {number}
980
- * @memberof Video
1422
+ * @type {UpdatePagesRequestPagesInnerSeoMetadata}
1423
+ * @memberof UpdatePagesRequestPagesInner
981
1424
  */
982
- 'sortOrder'?: number;
1425
+ 'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
1426
+ /**
1427
+ * The primary target search phrase for the page that you wish to rank for in search engine results.
1428
+ * @type {string}
1429
+ * @memberof UpdatePagesRequestPagesInner
1430
+ */
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>;
1476
+ /**
1477
+ *
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
2462
+ */
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
+
2467
+ /**
2468
+ *
2469
+ * @summary Update website collection
2470
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
2471
+ * @param {*} [options] Override http request option.
2472
+ * @throws {RequiredError}
2473
+ * @memberof CollectionsApi
2474
+ */
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
+
2479
+ /**
2480
+ *
2481
+ * @summary Update website collections
2482
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
2483
+ * @param {*} [options] Override http request option.
2484
+ * @throws {RequiredError}
2485
+ * @memberof CollectionsApi
2486
+ */
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
+ }
2490
+ }
2491
+
2492
+
2493
+
2494
+ /**
2495
+ * CrossSellApi - axios parameter creator
2496
+ * @export
2497
+ */
2498
+ export const CrossSellApiAxiosParamCreator = function (configuration?: Configuration) {
2499
+ return {
2500
+ /**
2501
+ * Attaches a list of products to the given product as cross-sell products.
2502
+ * @summary Attach cross-sell products
2503
+ * @param {string} project What project it is
2504
+ * @param {string} productId Product\&#39;s unique identifier
2505
+ * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
2506
+ * @param {*} [options] Override http request option.
2507
+ * @throws {RequiredError}
2508
+ */
2509
+ attachCrossSellProducts: async (project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2510
+ // verify required parameter 'project' is not null or undefined
2511
+ assertParamExists('attachCrossSellProducts', 'project', project)
2512
+ // verify required parameter 'productId' is not null or undefined
2513
+ assertParamExists('attachCrossSellProducts', 'productId', productId)
2514
+ const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
2515
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2518
+ let baseOptions;
2519
+ if (configuration) {
2520
+ baseOptions = configuration.baseOptions;
2521
+ }
2522
+
2523
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2524
+ const localVarHeaderParameter = {} as any;
2525
+ const localVarQueryParameter = {} as any;
2526
+
2527
+ // authentication session-oauth required
2528
+ // oauth required
2529
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2530
+
2531
+ // authentication api-key required
2532
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2533
+
2534
+ if (project !== undefined) {
2535
+ localVarQueryParameter['project'] = project;
2536
+ }
2537
+
2538
+
2539
+
2540
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2541
+
2542
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2543
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2544
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2545
+ localVarRequestOptions.data = serializeDataIfNeeded(attachCrossSellProductsRequest, localVarRequestOptions, configuration)
2546
+
2547
+ return {
2548
+ url: toPathString(localVarUrlObj),
2549
+ options: localVarRequestOptions,
2550
+ };
2551
+ },
2552
+ /**
2553
+ *
2554
+ * @summary Get cross-sell products linked to a product
2555
+ * @param {string} project What project it is
2556
+ * @param {string} productId Product\&#39;s unique identifier
2557
+ * @param {*} [options] Override http request option.
2558
+ * @throws {RequiredError}
2559
+ */
2560
+ getCrossSellProducts: async (project: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2561
+ // verify required parameter 'project' is not null or undefined
2562
+ assertParamExists('getCrossSellProducts', 'project', project)
2563
+ // verify required parameter 'productId' is not null or undefined
2564
+ assertParamExists('getCrossSellProducts', 'productId', productId)
2565
+ const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
2566
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2567
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2568
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2569
+ let baseOptions;
2570
+ if (configuration) {
2571
+ baseOptions = configuration.baseOptions;
2572
+ }
2573
+
2574
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2575
+ const localVarHeaderParameter = {} as any;
2576
+ const localVarQueryParameter = {} as any;
2577
+
2578
+ // authentication session-oauth required
2579
+ // oauth required
2580
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2581
+
2582
+ // authentication api-key required
2583
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2584
+
2585
+ if (project !== undefined) {
2586
+ localVarQueryParameter['project'] = project;
2587
+ }
2588
+
2589
+
2590
+
2591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2593
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2594
+
2595
+ return {
2596
+ url: toPathString(localVarUrlObj),
2597
+ options: localVarRequestOptions,
2598
+ };
2599
+ },
2600
+ }
2601
+ };
2602
+
2603
+ /**
2604
+ * CrossSellApi - functional programming interface
2605
+ * @export
2606
+ */
2607
+ export const CrossSellApiFp = function(configuration?: Configuration) {
2608
+ const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration)
2609
+ return {
2610
+ /**
2611
+ * Attaches a list of products to the given product as cross-sell products.
2612
+ * @summary Attach cross-sell products
2613
+ * @param {string} project What project it is
2614
+ * @param {string} productId Product\&#39;s unique identifier
2615
+ * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
2616
+ * @param {*} [options] Override http request option.
2617
+ * @throws {RequiredError}
2618
+ */
2619
+ async attachCrossSellProducts(project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
2620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
2621
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2622
+ const localVarOperationServerBasePath = operationServerMap['CrossSellApi.attachCrossSellProducts']?.[localVarOperationServerIndex]?.url;
2623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2624
+ },
2625
+ /**
2626
+ *
2627
+ * @summary Get cross-sell products linked to a product
2628
+ * @param {string} project What project it is
2629
+ * @param {string} productId Product\&#39;s unique identifier
2630
+ * @param {*} [options] Override http request option.
2631
+ * @throws {RequiredError}
2632
+ */
2633
+ async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
2634
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
2635
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2636
+ const localVarOperationServerBasePath = operationServerMap['CrossSellApi.getCrossSellProducts']?.[localVarOperationServerIndex]?.url;
2637
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2638
+ },
2639
+ }
2640
+ };
2641
+
2642
+ /**
2643
+ * CrossSellApi - factory interface
2644
+ * @export
2645
+ */
2646
+ export const CrossSellApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2647
+ const localVarFp = CrossSellApiFp(configuration)
2648
+ return {
2649
+ /**
2650
+ * Attaches a list of products to the given product as cross-sell products.
2651
+ * @summary Attach cross-sell products
2652
+ * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
2653
+ * @param {*} [options] Override http request option.
2654
+ * @throws {RequiredError}
2655
+ */
2656
+ attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
2657
+ return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
2658
+ },
2659
+ /**
2660
+ *
2661
+ * @summary Get cross-sell products linked to a product
2662
+ * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
2663
+ * @param {*} [options] Override http request option.
2664
+ * @throws {RequiredError}
2665
+ */
2666
+ getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
2667
+ return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
2668
+ },
2669
+ };
2670
+ };
2671
+
2672
+ /**
2673
+ * Request parameters for attachCrossSellProducts operation in CrossSellApi.
2674
+ * @export
2675
+ * @interface CrossSellApiAttachCrossSellProductsRequest
2676
+ */
2677
+ export interface CrossSellApiAttachCrossSellProductsRequest {
2678
+ /**
2679
+ * What project it is
2680
+ * @type {string}
2681
+ * @memberof CrossSellApiAttachCrossSellProducts
2682
+ */
2683
+ readonly project: string
2684
+
2685
+ /**
2686
+ * Product\&#39;s unique identifier
2687
+ * @type {string}
2688
+ * @memberof CrossSellApiAttachCrossSellProducts
2689
+ */
2690
+ readonly productId: string
2691
+
2692
+ /**
2693
+ *
2694
+ * @type {AttachCrossSellProductsRequest}
2695
+ * @memberof CrossSellApiAttachCrossSellProducts
2696
+ */
2697
+ readonly attachCrossSellProductsRequest?: AttachCrossSellProductsRequest
2698
+ }
2699
+
2700
+ /**
2701
+ * Request parameters for getCrossSellProducts operation in CrossSellApi.
2702
+ * @export
2703
+ * @interface CrossSellApiGetCrossSellProductsRequest
2704
+ */
2705
+ export interface CrossSellApiGetCrossSellProductsRequest {
2706
+ /**
2707
+ * What project it is
2708
+ * @type {string}
2709
+ * @memberof CrossSellApiGetCrossSellProducts
2710
+ */
2711
+ readonly project: string
2712
+
2713
+ /**
2714
+ * Product\&#39;s unique identifier
2715
+ * @type {string}
2716
+ * @memberof CrossSellApiGetCrossSellProducts
2717
+ */
2718
+ readonly productId: string
2719
+ }
2720
+
2721
+ /**
2722
+ * CrossSellApi - object-oriented interface
2723
+ * @export
2724
+ * @class CrossSellApi
2725
+ * @extends {BaseAPI}
2726
+ */
2727
+ export class CrossSellApi extends BaseAPI {
983
2728
  /**
984
- *
985
- * @type {string}
986
- * @memberof Video
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
987
2735
  */
988
- 'createdAt'?: string;
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
+
989
2740
  /**
990
2741
  *
991
- * @type {string}
992
- * @memberof Video
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
993
2747
  */
994
- 'updatedAt'?: string;
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
+ }
995
2751
  }
996
2752
 
2753
+
2754
+
997
2755
  /**
998
- * CrossSellApi - axios parameter creator
2756
+ * MenuApi - axios parameter creator
999
2757
  * @export
1000
2758
  */
1001
- export const CrossSellApiAxiosParamCreator = function (configuration?: Configuration) {
2759
+ export const MenuApiAxiosParamCreator = function (configuration?: Configuration) {
1002
2760
  return {
1003
2761
  /**
1004
- * Attaches a list of products to the given product as cross-sell products.
1005
- * @summary Attach cross-sell products
2762
+ * Get menu
2763
+ * @summary Get menu
1006
2764
  * @param {string} project What project it is
1007
- * @param {string} productId Product\&#39;s unique identifier
1008
- * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
1009
2765
  * @param {*} [options] Override http request option.
1010
2766
  * @throws {RequiredError}
1011
2767
  */
1012
- attachCrossSellProducts: async (project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2768
+ getMenu: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1013
2769
  // verify required parameter 'project' is not null or undefined
1014
- assertParamExists('attachCrossSellProducts', 'project', project)
1015
- // verify required parameter 'productId' is not null or undefined
1016
- assertParamExists('attachCrossSellProducts', 'productId', productId)
1017
- const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
1018
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2770
+ assertParamExists('getMenu', 'project', project)
2771
+ const localVarPath = `/v1/website/menu`;
1019
2772
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1020
2773
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1021
2774
  let baseOptions;
@@ -1023,7 +2776,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
1023
2776
  baseOptions = configuration.baseOptions;
1024
2777
  }
1025
2778
 
1026
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2779
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1027
2780
  const localVarHeaderParameter = {} as any;
1028
2781
  const localVarQueryParameter = {} as any;
1029
2782
 
@@ -1040,12 +2793,9 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
1040
2793
 
1041
2794
 
1042
2795
 
1043
- localVarHeaderParameter['Content-Type'] = 'application/json';
1044
-
1045
2796
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1046
2797
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1047
2798
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1048
- localVarRequestOptions.data = serializeDataIfNeeded(attachCrossSellProductsRequest, localVarRequestOptions, configuration)
1049
2799
 
1050
2800
  return {
1051
2801
  url: toPathString(localVarUrlObj),
@@ -1053,20 +2803,17 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
1053
2803
  };
1054
2804
  },
1055
2805
  /**
1056
- *
1057
- * @summary Get cross-sell products linked to a product
2806
+ * Update menu
2807
+ * @summary Update menu
1058
2808
  * @param {string} project What project it is
1059
- * @param {string} productId Product\&#39;s unique identifier
2809
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
1060
2810
  * @param {*} [options] Override http request option.
1061
2811
  * @throws {RequiredError}
1062
2812
  */
1063
- getCrossSellProducts: async (project: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2813
+ updateMenu: async (project: string, updateMenuRequest?: UpdateMenuRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1064
2814
  // verify required parameter 'project' is not null or undefined
1065
- assertParamExists('getCrossSellProducts', 'project', project)
1066
- // verify required parameter 'productId' is not null or undefined
1067
- assertParamExists('getCrossSellProducts', 'productId', productId)
1068
- const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
1069
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2815
+ assertParamExists('updateMenu', 'project', project)
2816
+ const localVarPath = `/v1/website/menu`;
1070
2817
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1071
2818
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1072
2819
  let baseOptions;
@@ -1074,7 +2821,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
1074
2821
  baseOptions = configuration.baseOptions;
1075
2822
  }
1076
2823
 
1077
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2824
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1078
2825
  const localVarHeaderParameter = {} as any;
1079
2826
  const localVarQueryParameter = {} as any;
1080
2827
 
@@ -1091,9 +2838,12 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
1091
2838
 
1092
2839
 
1093
2840
 
2841
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2842
+
1094
2843
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1095
2844
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1096
2845
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2846
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration)
1097
2847
 
1098
2848
  return {
1099
2849
  url: toPathString(localVarUrlObj),
@@ -1104,174 +2854,161 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
1104
2854
  };
1105
2855
 
1106
2856
  /**
1107
- * CrossSellApi - functional programming interface
2857
+ * MenuApi - functional programming interface
1108
2858
  * @export
1109
2859
  */
1110
- export const CrossSellApiFp = function(configuration?: Configuration) {
1111
- const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration)
2860
+ export const MenuApiFp = function(configuration?: Configuration) {
2861
+ const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration)
1112
2862
  return {
1113
2863
  /**
1114
- * Attaches a list of products to the given product as cross-sell products.
1115
- * @summary Attach cross-sell products
2864
+ * Get menu
2865
+ * @summary Get menu
1116
2866
  * @param {string} project What project it is
1117
- * @param {string} productId Product\&#39;s unique identifier
1118
- * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
1119
2867
  * @param {*} [options] Override http request option.
1120
2868
  * @throws {RequiredError}
1121
2869
  */
1122
- async attachCrossSellProducts(project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
1123
- const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
2870
+ async getMenu(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
2871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMenu(project, options);
1124
2872
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1125
- const localVarOperationServerBasePath = operationServerMap['CrossSellApi.attachCrossSellProducts']?.[localVarOperationServerIndex]?.url;
2873
+ const localVarOperationServerBasePath = operationServerMap['MenuApi.getMenu']?.[localVarOperationServerIndex]?.url;
1126
2874
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1127
2875
  },
1128
2876
  /**
1129
- *
1130
- * @summary Get cross-sell products linked to a product
2877
+ * Update menu
2878
+ * @summary Update menu
1131
2879
  * @param {string} project What project it is
1132
- * @param {string} productId Product\&#39;s unique identifier
2880
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
1133
2881
  * @param {*} [options] Override http request option.
1134
2882
  * @throws {RequiredError}
1135
2883
  */
1136
- async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
1137
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
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);
1138
2886
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1139
- const localVarOperationServerBasePath = operationServerMap['CrossSellApi.getCrossSellProducts']?.[localVarOperationServerIndex]?.url;
2887
+ const localVarOperationServerBasePath = operationServerMap['MenuApi.updateMenu']?.[localVarOperationServerIndex]?.url;
1140
2888
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1141
2889
  },
1142
2890
  }
1143
2891
  };
1144
2892
 
1145
2893
  /**
1146
- * CrossSellApi - factory interface
2894
+ * MenuApi - factory interface
1147
2895
  * @export
1148
2896
  */
1149
- export const CrossSellApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1150
- const localVarFp = CrossSellApiFp(configuration)
2897
+ export const MenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2898
+ const localVarFp = MenuApiFp(configuration)
1151
2899
  return {
1152
2900
  /**
1153
- * Attaches a list of products to the given product as cross-sell products.
1154
- * @summary Attach cross-sell products
1155
- * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
2901
+ * Get menu
2902
+ * @summary Get menu
2903
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
1156
2904
  * @param {*} [options] Override http request option.
1157
2905
  * @throws {RequiredError}
1158
2906
  */
1159
- attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
1160
- return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
2907
+ getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
2908
+ return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
1161
2909
  },
1162
2910
  /**
1163
- *
1164
- * @summary Get cross-sell products linked to a product
1165
- * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
2911
+ * Update menu
2912
+ * @summary Update menu
2913
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
1166
2914
  * @param {*} [options] Override http request option.
1167
2915
  * @throws {RequiredError}
1168
2916
  */
1169
- getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
1170
- return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
2917
+ updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
2918
+ return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
1171
2919
  },
1172
2920
  };
1173
2921
  };
1174
2922
 
1175
2923
  /**
1176
- * Request parameters for attachCrossSellProducts operation in CrossSellApi.
2924
+ * Request parameters for getMenu operation in MenuApi.
1177
2925
  * @export
1178
- * @interface CrossSellApiAttachCrossSellProductsRequest
2926
+ * @interface MenuApiGetMenuRequest
1179
2927
  */
1180
- export interface CrossSellApiAttachCrossSellProductsRequest {
2928
+ export interface MenuApiGetMenuRequest {
1181
2929
  /**
1182
2930
  * What project it is
1183
2931
  * @type {string}
1184
- * @memberof CrossSellApiAttachCrossSellProducts
2932
+ * @memberof MenuApiGetMenu
1185
2933
  */
1186
2934
  readonly project: string
1187
-
1188
- /**
1189
- * Product\&#39;s unique identifier
1190
- * @type {string}
1191
- * @memberof CrossSellApiAttachCrossSellProducts
1192
- */
1193
- readonly productId: string
1194
-
1195
- /**
1196
- *
1197
- * @type {AttachCrossSellProductsRequest}
1198
- * @memberof CrossSellApiAttachCrossSellProducts
1199
- */
1200
- readonly attachCrossSellProductsRequest?: AttachCrossSellProductsRequest
1201
2935
  }
1202
2936
 
1203
2937
  /**
1204
- * Request parameters for getCrossSellProducts operation in CrossSellApi.
2938
+ * Request parameters for updateMenu operation in MenuApi.
1205
2939
  * @export
1206
- * @interface CrossSellApiGetCrossSellProductsRequest
2940
+ * @interface MenuApiUpdateMenuRequest
1207
2941
  */
1208
- export interface CrossSellApiGetCrossSellProductsRequest {
2942
+ export interface MenuApiUpdateMenuRequest {
1209
2943
  /**
1210
2944
  * What project it is
1211
2945
  * @type {string}
1212
- * @memberof CrossSellApiGetCrossSellProducts
2946
+ * @memberof MenuApiUpdateMenu
1213
2947
  */
1214
2948
  readonly project: string
1215
2949
 
1216
2950
  /**
1217
- * Product\&#39;s unique identifier
1218
- * @type {string}
1219
- * @memberof CrossSellApiGetCrossSellProducts
2951
+ * Update menu request
2952
+ * @type {UpdateMenuRequest}
2953
+ * @memberof MenuApiUpdateMenu
1220
2954
  */
1221
- readonly productId: string
2955
+ readonly updateMenuRequest?: UpdateMenuRequest
1222
2956
  }
1223
2957
 
1224
2958
  /**
1225
- * CrossSellApi - object-oriented interface
2959
+ * MenuApi - object-oriented interface
1226
2960
  * @export
1227
- * @class CrossSellApi
2961
+ * @class MenuApi
1228
2962
  * @extends {BaseAPI}
1229
2963
  */
1230
- export class CrossSellApi extends BaseAPI {
2964
+ export class MenuApi extends BaseAPI {
1231
2965
  /**
1232
- * Attaches a list of products to the given product as cross-sell products.
1233
- * @summary Attach cross-sell products
1234
- * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
2966
+ * Get menu
2967
+ * @summary Get menu
2968
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
1235
2969
  * @param {*} [options] Override http request option.
1236
2970
  * @throws {RequiredError}
1237
- * @memberof CrossSellApi
2971
+ * @memberof MenuApi
1238
2972
  */
1239
- public attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
1240
- 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));
1241
2975
  }
1242
2976
 
1243
2977
  /**
1244
- *
1245
- * @summary Get cross-sell products linked to a product
1246
- * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
2978
+ * Update menu
2979
+ * @summary Update menu
2980
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
1247
2981
  * @param {*} [options] Override http request option.
1248
2982
  * @throws {RequiredError}
1249
- * @memberof CrossSellApi
2983
+ * @memberof MenuApi
1250
2984
  */
1251
- public getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
1252
- 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));
1253
2987
  }
1254
2988
  }
1255
2989
 
1256
2990
 
1257
2991
 
1258
2992
  /**
1259
- * MenuApi - axios parameter creator
2993
+ * PagesApi - axios parameter creator
1260
2994
  * @export
1261
2995
  */
1262
- export const MenuApiAxiosParamCreator = function (configuration?: Configuration) {
2996
+ export const PagesApiAxiosParamCreator = function (configuration?: Configuration) {
1263
2997
  return {
1264
2998
  /**
1265
- * Get menu
1266
- * @summary Get menu
2999
+ *
3000
+ * @summary List website pages
1267
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
1268
3005
  * @param {*} [options] Override http request option.
1269
3006
  * @throws {RequiredError}
1270
3007
  */
1271
- getMenu: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3008
+ listPages: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1272
3009
  // verify required parameter 'project' is not null or undefined
1273
- assertParamExists('getMenu', 'project', project)
1274
- const localVarPath = `/v1/website/menu`;
3010
+ assertParamExists('listPages', 'project', project)
3011
+ const localVarPath = `/v1/website/pages`;
1275
3012
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1276
3013
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1277
3014
  let baseOptions;
@@ -1294,6 +3031,18 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1294
3031
  localVarQueryParameter['project'] = project;
1295
3032
  }
1296
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
+
1297
3046
 
1298
3047
 
1299
3048
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1306,17 +3055,72 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1306
3055
  };
1307
3056
  },
1308
3057
  /**
1309
- * Update menu
1310
- * @summary Update menu
3058
+ *
3059
+ * @summary Update website page
3060
+ * @param {string} project What project it is
3061
+ * @param {string} pageId Page\&#39;s unique identifier
3062
+ * @param {UpdatePageRequest} [updatePageRequest]
3063
+ * @param {*} [options] Override http request option.
3064
+ * @throws {RequiredError}
3065
+ */
3066
+ updatePage: async (project: string, pageId: string, updatePageRequest?: UpdatePageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3067
+ // verify required parameter 'project' is not null or undefined
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)));
3073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3074
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3075
+ let baseOptions;
3076
+ if (configuration) {
3077
+ baseOptions = configuration.baseOptions;
3078
+ }
3079
+
3080
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3081
+ const localVarHeaderParameter = {} as any;
3082
+ const localVarQueryParameter = {} as any;
3083
+
3084
+ // authentication session-oauth required
3085
+ // oauth required
3086
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3087
+
3088
+ // authentication api-key required
3089
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3090
+
3091
+ if (project !== undefined) {
3092
+ localVarQueryParameter['project'] = project;
3093
+ }
3094
+
3095
+
3096
+
3097
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3098
+
3099
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3101
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
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
1311
3112
  * @param {string} project What project it is
1312
- * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
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.
1313
3117
  * @param {*} [options] Override http request option.
1314
3118
  * @throws {RequiredError}
1315
3119
  */
1316
- updateMenu: async (project: string, updateMenuRequest?: UpdateMenuRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3120
+ updatePages: async (project: string, pageToken?: number, pageSize?: number, search?: string, updatePagesRequest?: UpdatePagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1317
3121
  // verify required parameter 'project' is not null or undefined
1318
- assertParamExists('updateMenu', 'project', project)
1319
- const localVarPath = `/v1/website/menu`;
3122
+ assertParamExists('updatePages', 'project', project)
3123
+ const localVarPath = `/v1/website/pages`;
1320
3124
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1321
3125
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1322
3126
  let baseOptions;
@@ -1324,7 +3128,7 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1324
3128
  baseOptions = configuration.baseOptions;
1325
3129
  }
1326
3130
 
1327
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3131
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1328
3132
  const localVarHeaderParameter = {} as any;
1329
3133
  const localVarQueryParameter = {} as any;
1330
3134
 
@@ -1339,6 +3143,18 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1339
3143
  localVarQueryParameter['project'] = project;
1340
3144
  }
1341
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
+
1342
3158
 
1343
3159
 
1344
3160
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1346,7 +3162,7 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1346
3162
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1347
3163
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1348
3164
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1349
- localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration)
3165
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePagesRequest, localVarRequestOptions, configuration)
1350
3166
 
1351
3167
  return {
1352
3168
  url: toPathString(localVarUrlObj),
@@ -1357,136 +3173,249 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
1357
3173
  };
1358
3174
 
1359
3175
  /**
1360
- * MenuApi - functional programming interface
3176
+ * PagesApi - functional programming interface
1361
3177
  * @export
1362
3178
  */
1363
- export const MenuApiFp = function(configuration?: Configuration) {
1364
- const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration)
3179
+ export const PagesApiFp = function(configuration?: Configuration) {
3180
+ const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration)
1365
3181
  return {
1366
3182
  /**
1367
- * Get menu
1368
- * @summary Get menu
3183
+ *
3184
+ * @summary List website pages
1369
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
1370
3189
  * @param {*} [options] Override http request option.
1371
3190
  * @throws {RequiredError}
1372
3191
  */
1373
- async getMenu(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
1374
- 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);
1375
3194
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1376
- const localVarOperationServerBasePath = operationServerMap['MenuApi.getMenu']?.[localVarOperationServerIndex]?.url;
3195
+ const localVarOperationServerBasePath = operationServerMap['PagesApi.listPages']?.[localVarOperationServerIndex]?.url;
1377
3196
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1378
3197
  },
1379
3198
  /**
1380
- * Update menu
1381
- * @summary Update menu
3199
+ *
3200
+ * @summary Update website page
1382
3201
  * @param {string} project What project it is
1383
- * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
3202
+ * @param {string} pageId Page\&#39;s unique identifier
3203
+ * @param {UpdatePageRequest} [updatePageRequest]
1384
3204
  * @param {*} [options] Override http request option.
1385
3205
  * @throws {RequiredError}
1386
3206
  */
1387
- async updateMenu(project: string, updateMenuRequest?: UpdateMenuRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
1388
- 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);
1389
3209
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1390
- 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;
1391
3228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1392
3229
  },
1393
3230
  }
1394
3231
  };
1395
3232
 
1396
3233
  /**
1397
- * MenuApi - factory interface
3234
+ * PagesApi - factory interface
1398
3235
  * @export
1399
3236
  */
1400
- export const MenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1401
- const localVarFp = MenuApiFp(configuration)
3237
+ export const PagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3238
+ const localVarFp = PagesApiFp(configuration)
1402
3239
  return {
1403
3240
  /**
1404
- * Get menu
1405
- * @summary Get menu
1406
- * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
3241
+ *
3242
+ * @summary List website pages
3243
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1407
3244
  * @param {*} [options] Override http request option.
1408
3245
  * @throws {RequiredError}
1409
3246
  */
1410
- getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
1411
- 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));
1412
3249
  },
1413
3250
  /**
1414
- * Update menu
1415
- * @summary Update menu
1416
- * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
3251
+ *
3252
+ * @summary Update website page
3253
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1417
3254
  * @param {*} [options] Override http request option.
1418
3255
  * @throws {RequiredError}
1419
3256
  */
1420
- updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig): AxiosPromise<Menu> {
1421
- 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));
1422
3269
  },
1423
3270
  };
1424
3271
  };
1425
3272
 
1426
3273
  /**
1427
- * Request parameters for getMenu operation in MenuApi.
3274
+ * Request parameters for listPages operation in PagesApi.
1428
3275
  * @export
1429
- * @interface MenuApiGetMenuRequest
3276
+ * @interface PagesApiListPagesRequest
1430
3277
  */
1431
- export interface MenuApiGetMenuRequest {
3278
+ export interface PagesApiListPagesRequest {
1432
3279
  /**
1433
3280
  * What project it is
1434
3281
  * @type {string}
1435
- * @memberof MenuApiGetMenu
3282
+ * @memberof PagesApiListPages
1436
3283
  */
1437
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
1438
3306
  }
1439
3307
 
1440
3308
  /**
1441
- * Request parameters for updateMenu operation in MenuApi.
3309
+ * Request parameters for updatePage operation in PagesApi.
1442
3310
  * @export
1443
- * @interface MenuApiUpdateMenuRequest
3311
+ * @interface PagesApiUpdatePageRequest
1444
3312
  */
1445
- export interface MenuApiUpdateMenuRequest {
3313
+ export interface PagesApiUpdatePageRequest {
1446
3314
  /**
1447
3315
  * What project it is
1448
3316
  * @type {string}
1449
- * @memberof MenuApiUpdateMenu
3317
+ * @memberof PagesApiUpdatePage
1450
3318
  */
1451
3319
  readonly project: string
1452
3320
 
1453
3321
  /**
1454
- * Update menu request
1455
- * @type {UpdateMenuRequest}
1456
- * @memberof MenuApiUpdateMenu
3322
+ * Page\&#39;s unique identifier
3323
+ * @type {string}
3324
+ * @memberof PagesApiUpdatePage
1457
3325
  */
1458
- readonly updateMenuRequest?: UpdateMenuRequest
3326
+ readonly pageId: string
3327
+
3328
+ /**
3329
+ *
3330
+ * @type {UpdatePageRequest}
3331
+ * @memberof PagesApiUpdatePage
3332
+ */
3333
+ readonly updatePageRequest?: UpdatePageRequest
1459
3334
  }
1460
3335
 
1461
3336
  /**
1462
- * MenuApi - object-oriented interface
3337
+ * Request parameters for updatePages operation in PagesApi.
1463
3338
  * @export
1464
- * @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
1465
3382
  * @extends {BaseAPI}
1466
3383
  */
1467
- export class MenuApi extends BaseAPI {
3384
+ export class PagesApi extends BaseAPI {
1468
3385
  /**
1469
- * Get menu
1470
- * @summary Get menu
1471
- * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
3386
+ *
3387
+ * @summary List website pages
3388
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1472
3389
  * @param {*} [options] Override http request option.
1473
3390
  * @throws {RequiredError}
1474
- * @memberof MenuApi
3391
+ * @memberof PagesApi
1475
3392
  */
1476
- public getMenu(requestParameters: MenuApiGetMenuRequest, options?: RawAxiosRequestConfig) {
1477
- 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));
1478
3395
  }
1479
3396
 
1480
3397
  /**
1481
- * Update menu
1482
- * @summary Update menu
1483
- * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
3398
+ *
3399
+ * @summary Update website page
3400
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1484
3401
  * @param {*} [options] Override http request option.
1485
3402
  * @throws {RequiredError}
1486
- * @memberof MenuApi
3403
+ * @memberof PagesApi
1487
3404
  */
1488
- public updateMenu(requestParameters: MenuApiUpdateMenuRequest, options?: RawAxiosRequestConfig) {
1489
- 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));
1490
3419
  }
1491
3420
  }
1492
3421
 
@@ -1810,3 +3739,174 @@ export class PaymentApi extends BaseAPI {
1810
3739
 
1811
3740
 
1812
3741
 
3742
+ /**
3743
+ * RoutesApi - axios parameter creator
3744
+ * @export
3745
+ */
3746
+ export const RoutesApiAxiosParamCreator = function (configuration?: Configuration) {
3747
+ return {
3748
+ /**
3749
+ *
3750
+ * @summary List routes
3751
+ * @param {string} project What project it is
3752
+ * @param {number} [pageToken] Page reference token
3753
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3754
+ * @param {string} [search] Search term to filter results
3755
+ * @param {*} [options] Override http request option.
3756
+ * @throws {RequiredError}
3757
+ */
3758
+ listRoutes: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3759
+ // verify required parameter 'project' is not null or undefined
3760
+ assertParamExists('listRoutes', 'project', project)
3761
+ const localVarPath = `/v1/website/routes`;
3762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3763
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3764
+ let baseOptions;
3765
+ if (configuration) {
3766
+ baseOptions = configuration.baseOptions;
3767
+ }
3768
+
3769
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3770
+ const localVarHeaderParameter = {} as any;
3771
+ const localVarQueryParameter = {} as any;
3772
+
3773
+ // authentication session-oauth required
3774
+ // oauth required
3775
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3776
+
3777
+ // authentication api-key required
3778
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3779
+
3780
+ if (project !== undefined) {
3781
+ localVarQueryParameter['project'] = project;
3782
+ }
3783
+
3784
+ if (pageToken !== undefined) {
3785
+ localVarQueryParameter['pageToken'] = pageToken;
3786
+ }
3787
+
3788
+ if (pageSize !== undefined) {
3789
+ localVarQueryParameter['pageSize'] = pageSize;
3790
+ }
3791
+
3792
+ if (search !== undefined) {
3793
+ localVarQueryParameter['search'] = search;
3794
+ }
3795
+
3796
+
3797
+
3798
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3799
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3800
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3801
+
3802
+ return {
3803
+ url: toPathString(localVarUrlObj),
3804
+ options: localVarRequestOptions,
3805
+ };
3806
+ },
3807
+ }
3808
+ };
3809
+
3810
+ /**
3811
+ * RoutesApi - functional programming interface
3812
+ * @export
3813
+ */
3814
+ export const RoutesApiFp = function(configuration?: Configuration) {
3815
+ const localVarAxiosParamCreator = RoutesApiAxiosParamCreator(configuration)
3816
+ return {
3817
+ /**
3818
+ *
3819
+ * @summary List routes
3820
+ * @param {string} project What project it is
3821
+ * @param {number} [pageToken] Page reference token
3822
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3823
+ * @param {string} [search] Search term to filter results
3824
+ * @param {*} [options] Override http request option.
3825
+ * @throws {RequiredError}
3826
+ */
3827
+ async listRoutes(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRoutesResponse>> {
3828
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoutes(project, pageToken, pageSize, search, options);
3829
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3830
+ const localVarOperationServerBasePath = operationServerMap['RoutesApi.listRoutes']?.[localVarOperationServerIndex]?.url;
3831
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3832
+ },
3833
+ }
3834
+ };
3835
+
3836
+ /**
3837
+ * RoutesApi - factory interface
3838
+ * @export
3839
+ */
3840
+ export const RoutesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3841
+ const localVarFp = RoutesApiFp(configuration)
3842
+ return {
3843
+ /**
3844
+ *
3845
+ * @summary List routes
3846
+ * @param {RoutesApiListRoutesRequest} requestParameters Request parameters.
3847
+ * @param {*} [options] Override http request option.
3848
+ * @throws {RequiredError}
3849
+ */
3850
+ listRoutes(requestParameters: RoutesApiListRoutesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListRoutesResponse> {
3851
+ return localVarFp.listRoutes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
3852
+ },
3853
+ };
3854
+ };
3855
+
3856
+ /**
3857
+ * Request parameters for listRoutes operation in RoutesApi.
3858
+ * @export
3859
+ * @interface RoutesApiListRoutesRequest
3860
+ */
3861
+ export interface RoutesApiListRoutesRequest {
3862
+ /**
3863
+ * What project it is
3864
+ * @type {string}
3865
+ * @memberof RoutesApiListRoutes
3866
+ */
3867
+ readonly project: string
3868
+
3869
+ /**
3870
+ * Page reference token
3871
+ * @type {number}
3872
+ * @memberof RoutesApiListRoutes
3873
+ */
3874
+ readonly pageToken?: number
3875
+
3876
+ /**
3877
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
3878
+ * @type {number}
3879
+ * @memberof RoutesApiListRoutes
3880
+ */
3881
+ readonly pageSize?: number
3882
+
3883
+ /**
3884
+ * Search term to filter results
3885
+ * @type {string}
3886
+ * @memberof RoutesApiListRoutes
3887
+ */
3888
+ readonly search?: string
3889
+ }
3890
+
3891
+ /**
3892
+ * RoutesApi - object-oriented interface
3893
+ * @export
3894
+ * @class RoutesApi
3895
+ * @extends {BaseAPI}
3896
+ */
3897
+ export class RoutesApi extends BaseAPI {
3898
+ /**
3899
+ *
3900
+ * @summary List routes
3901
+ * @param {RoutesApiListRoutesRequest} requestParameters Request parameters.
3902
+ * @param {*} [options] Override http request option.
3903
+ * @throws {RequiredError}
3904
+ * @memberof RoutesApi
3905
+ */
3906
+ public listRoutes(requestParameters: RoutesApiListRoutesRequest, options?: RawAxiosRequestConfig) {
3907
+ return RoutesApiFp(this.configuration).listRoutes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
3908
+ }
3909
+ }
3910
+
3911
+
3912
+