@infisale-client/api 1.3.0 → 1.3.1

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/dist/api/api.d.ts CHANGED
@@ -13,20 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @enum {string}
20
- */
21
- export declare const ButtonVariantEnum: {
22
- readonly LINK: "link";
23
- readonly DEFAULT: "default";
24
- readonly OUTLINE: "outline";
25
- readonly DESTRUCTIVE: "destructive";
26
- readonly SECONDARY: "secondary";
27
- readonly GHOST: "ghost";
28
- };
29
- export type ButtonVariantEnum = typeof ButtonVariantEnum[keyof typeof ButtonVariantEnum];
30
16
  /**
31
17
  *
32
18
  * @export
@@ -61,32 +47,6 @@ export declare const CompanyUserStatusEnum: {
61
47
  readonly DELETED: "deleted";
62
48
  };
63
49
  export type CompanyUserStatusEnum = typeof CompanyUserStatusEnum[keyof typeof CompanyUserStatusEnum];
64
- /**
65
- *
66
- * @export
67
- * @enum {string}
68
- */
69
- export declare const ComponentContentTypeEnum: {
70
- readonly HEADING: "heading";
71
- readonly TEXT: "text";
72
- readonly CAPTION: "caption";
73
- readonly BUTTONS: "buttons";
74
- readonly PRICE: "price";
75
- readonly VARIANT_PICKER: "variant-picker";
76
- readonly BUY_BUTTON: "buy-button";
77
- readonly SHARE: "share";
78
- readonly PRODUCT_RATING: "product-rating";
79
- readonly CAROUSEL_ITEM: "carousel-item";
80
- readonly GRID_ITEM: "grid-item";
81
- readonly ANNOUNCEMENT_ITEM: "announcement-item";
82
- readonly ACCORDION_ITEM: "accordion-item";
83
- readonly PRODUCT_DESCRIPTION: "product-description";
84
- readonly PRODUCT_REVIEWS: "product-reviews";
85
- readonly PRODUCT_ATTRIBUTES: "product-attributes";
86
- readonly IMAGE: "image";
87
- readonly CONTENT: "content";
88
- };
89
- export type ComponentContentTypeEnum = typeof ComponentContentTypeEnum[keyof typeof ComponentContentTypeEnum];
90
50
  /**
91
51
  *
92
52
  * @export
@@ -118,60 +78,6 @@ export declare const ComponentProductTypeEnum: {
118
78
  readonly BRAND: "brand";
119
79
  };
120
80
  export type ComponentProductTypeEnum = typeof ComponentProductTypeEnum[keyof typeof ComponentProductTypeEnum];
121
- /**
122
- *
123
- * @export
124
- * @enum {string}
125
- */
126
- export declare const ComponentTypeEnum: {
127
- readonly CAROUSEL: "carousel";
128
- readonly BANNER: "banner";
129
- readonly GRID: "grid";
130
- readonly PRODUCT_LIST: "product-list";
131
- readonly PAGE_DETAIL: "page-detail";
132
- readonly PRODUCT_DETAIL: "product-detail";
133
- readonly PRODUCT_MORE_DETAIL: "product-more-detail";
134
- readonly COLLECTION_LIST: "collection-list";
135
- readonly CATEGORY_LIST: "category-list";
136
- readonly BRAND_LIST: "brand-list";
137
- readonly BLOG_LIST: "blog-list";
138
- readonly RICH_TEXT: "rich-text";
139
- readonly BANNER_WITH_TEXT: "banner-with-text";
140
- readonly ACCORDION: "accordion";
141
- readonly HEADER: "header";
142
- readonly ANNOUNCEMENT: "announcement";
143
- readonly FOOTER: "footer";
144
- readonly CONTACT_FORM: "contact-form";
145
- readonly CART_DETAIL: "cart-detail";
146
- readonly CHECKOUT_DETAIL: "checkout-detail";
147
- readonly NOT_FOUND_DETAIL: "not-found-detail";
148
- readonly SEARCH_DETAIL: "search-detail";
149
- readonly BLOG_LIST_DETAIL: "blog-list-detail";
150
- readonly COLLECTION_LIST_DETAIL: "collection-list-detail";
151
- };
152
- export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
153
- /**
154
- *
155
- * @export
156
- * @enum {string}
157
- */
158
- export declare const ContentPositionXEnum: {
159
- readonly CENTER: "center";
160
- readonly LEFT: "left";
161
- readonly RIGHT: "right";
162
- };
163
- export type ContentPositionXEnum = typeof ContentPositionXEnum[keyof typeof ContentPositionXEnum];
164
- /**
165
- *
166
- * @export
167
- * @enum {string}
168
- */
169
- export declare const ContentPositionYEnum: {
170
- readonly CENTER: "center";
171
- readonly TOP: "top";
172
- readonly BOTTOM: "bottom";
173
- };
174
- export type ContentPositionYEnum = typeof ContentPositionYEnum[keyof typeof ContentPositionYEnum];
175
81
  /**
176
82
  *
177
83
  * @export
@@ -553,22 +459,6 @@ export declare const FileTypeEnum: {
553
459
  readonly OTHER: "other";
554
460
  };
555
461
  export type FileTypeEnum = typeof FileTypeEnum[keyof typeof FileTypeEnum];
556
- /**
557
- *
558
- * @export
559
- * @enum {string}
560
- */
561
- export declare const FontSizeEnum: {
562
- readonly XS: "text-xs";
563
- readonly SM: "text-sm";
564
- readonly BASE: "text-base";
565
- readonly LG: "text-lg";
566
- readonly XL: "text-xl";
567
- readonly _2XL: "text-2xl";
568
- readonly _4XL: "text-4xl";
569
- readonly _6XL: "text-6xl";
570
- };
571
- export type FontSizeEnum = typeof FontSizeEnum[keyof typeof FontSizeEnum];
572
462
  /**
573
463
  *
574
464
  * @export
@@ -8070,16 +7960,18 @@ export interface IState {
8070
7960
  export interface ITemplateComponentContentResponse {
8071
7961
  /**
8072
7962
  *
8073
- * @type {ComponentContentTypeEnum}
7963
+ * @type {string}
8074
7964
  * @memberof ITemplateComponentContentResponse
8075
7965
  */
8076
- 'contentType': ComponentContentTypeEnum;
7966
+ 'contentType': string;
8077
7967
  /**
8078
- *
8079
- * @type {ITemplateComponentContentResponseConfig}
7968
+ * Construct a type with a set of properties K of type T
7969
+ * @type {{ [key: string]: any; }}
8080
7970
  * @memberof ITemplateComponentContentResponse
8081
7971
  */
8082
- 'config': ITemplateComponentContentResponseConfig;
7972
+ 'config': {
7973
+ [key: string]: any;
7974
+ };
8083
7975
  /**
8084
7976
  *
8085
7977
  * @type {string}
@@ -8087,145 +7979,6 @@ export interface ITemplateComponentContentResponse {
8087
7979
  */
8088
7980
  '_id': string;
8089
7981
  }
8090
- /**
8091
- *
8092
- * @export
8093
- * @interface ITemplateComponentContentResponseConfig
8094
- */
8095
- export interface ITemplateComponentContentResponseConfig {
8096
- /**
8097
- *
8098
- * @type {string}
8099
- * @memberof ITemplateComponentContentResponseConfig
8100
- */
8101
- 'desktopVariant'?: string;
8102
- /**
8103
- *
8104
- * @type {string}
8105
- * @memberof ITemplateComponentContentResponseConfig
8106
- */
8107
- 'mobileVariant'?: string;
8108
- /**
8109
- *
8110
- * @type {string}
8111
- * @memberof ITemplateComponentContentResponseConfig
8112
- */
8113
- 'url'?: string;
8114
- /**
8115
- *
8116
- * @type {ButtonVariantEnum}
8117
- * @memberof ITemplateComponentContentResponseConfig
8118
- */
8119
- 'buttonTwoVariant'?: ButtonVariantEnum;
8120
- /**
8121
- *
8122
- * @type {string}
8123
- * @memberof ITemplateComponentContentResponseConfig
8124
- */
8125
- 'buttonTwoUrl'?: string;
8126
- /**
8127
- *
8128
- * @type {string}
8129
- * @memberof ITemplateComponentContentResponseConfig
8130
- */
8131
- 'buttonTwoText'?: string;
8132
- /**
8133
- *
8134
- * @type {ButtonVariantEnum}
8135
- * @memberof ITemplateComponentContentResponseConfig
8136
- */
8137
- 'buttonOneVariant'?: ButtonVariantEnum;
8138
- /**
8139
- *
8140
- * @type {string}
8141
- * @memberof ITemplateComponentContentResponseConfig
8142
- */
8143
- 'buttonOneUrl'?: string;
8144
- /**
8145
- *
8146
- * @type {string}
8147
- * @memberof ITemplateComponentContentResponseConfig
8148
- */
8149
- 'buttonOneText'?: string;
8150
- /**
8151
- *
8152
- * @type {IImage}
8153
- * @memberof ITemplateComponentContentResponseConfig
8154
- */
8155
- 'imageMobile'?: IImage;
8156
- /**
8157
- *
8158
- * @type {IImage}
8159
- * @memberof ITemplateComponentContentResponseConfig
8160
- */
8161
- 'image'?: IImage;
8162
- /**
8163
- *
8164
- * @type {string}
8165
- * @memberof ITemplateComponentContentResponseConfig
8166
- */
8167
- 'description'?: string;
8168
- /**
8169
- *
8170
- * @type {string}
8171
- * @memberof ITemplateComponentContentResponseConfig
8172
- */
8173
- 'title'?: string;
8174
- /**
8175
- *
8176
- * @type {ContentPositionYEnum}
8177
- * @memberof ITemplateComponentContentResponseConfig
8178
- */
8179
- 'contentMobilePositionY'?: ContentPositionYEnum;
8180
- /**
8181
- *
8182
- * @type {ContentPositionYEnum}
8183
- * @memberof ITemplateComponentContentResponseConfig
8184
- */
8185
- 'contentPositionY'?: ContentPositionYEnum;
8186
- /**
8187
- *
8188
- * @type {ContentPositionXEnum}
8189
- * @memberof ITemplateComponentContentResponseConfig
8190
- */
8191
- 'contentMobilePositionX'?: ContentPositionXEnum;
8192
- /**
8193
- *
8194
- * @type {ContentPositionXEnum}
8195
- * @memberof ITemplateComponentContentResponseConfig
8196
- */
8197
- 'contentPositionX'?: ContentPositionXEnum;
8198
- /**
8199
- *
8200
- * @type {string}
8201
- * @memberof ITemplateComponentContentResponseConfig
8202
- */
8203
- 'customStyles'?: string;
8204
- /**
8205
- *
8206
- * @type {Array<string>}
8207
- * @memberof ITemplateComponentContentResponseConfig
8208
- */
8209
- 'customClasses'?: Array<string>;
8210
- /**
8211
- *
8212
- * @type {string}
8213
- * @memberof ITemplateComponentContentResponseConfig
8214
- */
8215
- 'backgroundColor'?: string;
8216
- /**
8217
- *
8218
- * @type {string}
8219
- * @memberof ITemplateComponentContentResponseConfig
8220
- */
8221
- 'textColor'?: string;
8222
- /**
8223
- *
8224
- * @type {boolean}
8225
- * @memberof ITemplateComponentContentResponseConfig
8226
- */
8227
- 'display': boolean;
8228
- }
8229
7982
  /**
8230
7983
  *
8231
7984
  * @export
@@ -8234,16 +7987,18 @@ export interface ITemplateComponentContentResponseConfig {
8234
7987
  export interface ITemplateComponentResponse {
8235
7988
  /**
8236
7989
  *
8237
- * @type {ComponentTypeEnum}
7990
+ * @type {string}
8238
7991
  * @memberof ITemplateComponentResponse
8239
7992
  */
8240
- 'type': ComponentTypeEnum;
7993
+ 'type': string;
8241
7994
  /**
8242
- *
8243
- * @type {ITemplateComponentResponseConfig}
7995
+ * Construct a type with a set of properties K of type T
7996
+ * @type {{ [key: string]: any; }}
8244
7997
  * @memberof ITemplateComponentResponse
8245
7998
  */
8246
- 'config': ITemplateComponentResponseConfig;
7999
+ 'config': {
8000
+ [key: string]: any;
8001
+ };
8247
8002
  /**
8248
8003
  *
8249
8004
  * @type {string}
@@ -8287,295 +8042,6 @@ export interface ITemplateComponentResponse {
8287
8042
  */
8288
8043
  'pages'?: ITemplateComponentResponsePages;
8289
8044
  }
8290
- /**
8291
- *
8292
- * @export
8293
- * @interface ITemplateComponentResponseConfig
8294
- */
8295
- export interface ITemplateComponentResponseConfig {
8296
- /**
8297
- *
8298
- * @type {string}
8299
- * @memberof ITemplateComponentResponseConfig
8300
- */
8301
- 'desktopVariant'?: string;
8302
- /**
8303
- *
8304
- * @type {string}
8305
- * @memberof ITemplateComponentResponseConfig
8306
- */
8307
- 'mobileVariant'?: string;
8308
- /**
8309
- *
8310
- * @type {string}
8311
- * @memberof ITemplateComponentResponseConfig
8312
- */
8313
- 'buttonTwoUrl'?: string;
8314
- /**
8315
- *
8316
- * @type {string}
8317
- * @memberof ITemplateComponentResponseConfig
8318
- */
8319
- 'buttonTwoText'?: string;
8320
- /**
8321
- *
8322
- * @type {string}
8323
- * @memberof ITemplateComponentResponseConfig
8324
- */
8325
- 'buttonOneUrl'?: string;
8326
- /**
8327
- *
8328
- * @type {string}
8329
- * @memberof ITemplateComponentResponseConfig
8330
- */
8331
- 'buttonOneText'?: string;
8332
- /**
8333
- *
8334
- * @type {string}
8335
- * @memberof ITemplateComponentResponseConfig
8336
- */
8337
- 'url'?: string;
8338
- /**
8339
- *
8340
- * @type {IImage}
8341
- * @memberof ITemplateComponentResponseConfig
8342
- */
8343
- 'imageMobile'?: IImage;
8344
- /**
8345
- *
8346
- * @type {IImage}
8347
- * @memberof ITemplateComponentResponseConfig
8348
- */
8349
- 'image'?: IImage;
8350
- /**
8351
- *
8352
- * @type {string}
8353
- * @memberof ITemplateComponentResponseConfig
8354
- */
8355
- 'description'?: string;
8356
- /**
8357
- *
8358
- * @type {string}
8359
- * @memberof ITemplateComponentResponseConfig
8360
- */
8361
- 'title'?: string;
8362
- /**
8363
- *
8364
- * @type {boolean}
8365
- * @memberof ITemplateComponentResponseConfig
8366
- */
8367
- 'legalDocuments'?: boolean;
8368
- /**
8369
- *
8370
- * @type {boolean}
8371
- * @memberof ITemplateComponentResponseConfig
8372
- */
8373
- 'policyLinks'?: boolean;
8374
- /**
8375
- *
8376
- * @type {boolean}
8377
- * @memberof ITemplateComponentResponseConfig
8378
- */
8379
- 'paymentGatewayPictures'?: boolean;
8380
- /**
8381
- *
8382
- * @type {boolean}
8383
- * @memberof ITemplateComponentResponseConfig
8384
- */
8385
- 'languageSwitcher'?: boolean;
8386
- /**
8387
- *
8388
- * @type {boolean}
8389
- * @memberof ITemplateComponentResponseConfig
8390
- */
8391
- 'socialButtons'?: boolean;
8392
- /**
8393
- *
8394
- * @type {boolean}
8395
- * @memberof ITemplateComponentResponseConfig
8396
- */
8397
- 'isInnerContainer'?: boolean;
8398
- /**
8399
- *
8400
- * @type {number}
8401
- * @memberof ITemplateComponentResponseConfig
8402
- */
8403
- 'contentMobileMaxWidth'?: number;
8404
- /**
8405
- *
8406
- * @type {number}
8407
- * @memberof ITemplateComponentResponseConfig
8408
- */
8409
- 'contentMaxWidth'?: number;
8410
- /**
8411
- *
8412
- * @type {number}
8413
- * @memberof ITemplateComponentResponseConfig
8414
- */
8415
- 'contentMobileHeight'?: number;
8416
- /**
8417
- *
8418
- * @type {number}
8419
- * @memberof ITemplateComponentResponseConfig
8420
- */
8421
- 'contentHeight'?: number;
8422
- /**
8423
- *
8424
- * @type {number}
8425
- * @memberof ITemplateComponentResponseConfig
8426
- */
8427
- 'containerMobileHeight'?: number;
8428
- /**
8429
- *
8430
- * @type {number}
8431
- * @memberof ITemplateComponentResponseConfig
8432
- */
8433
- 'containerHeight'?: number;
8434
- /**
8435
- *
8436
- * @type {number}
8437
- * @memberof ITemplateComponentResponseConfig
8438
- */
8439
- 'containerWidth'?: number;
8440
- /**
8441
- *
8442
- * @type {ContentPositionYEnum}
8443
- * @memberof ITemplateComponentResponseConfig
8444
- */
8445
- 'contentMobilePositionY'?: ContentPositionYEnum;
8446
- /**
8447
- *
8448
- * @type {ContentPositionYEnum}
8449
- * @memberof ITemplateComponentResponseConfig
8450
- */
8451
- 'contentPositionY'?: ContentPositionYEnum;
8452
- /**
8453
- *
8454
- * @type {ContentPositionXEnum}
8455
- * @memberof ITemplateComponentResponseConfig
8456
- */
8457
- 'contentMobilePositionX'?: ContentPositionXEnum;
8458
- /**
8459
- *
8460
- * @type {ContentPositionXEnum}
8461
- * @memberof ITemplateComponentResponseConfig
8462
- */
8463
- 'contentPositionX'?: ContentPositionXEnum;
8464
- /**
8465
- *
8466
- * @type {number}
8467
- * @memberof ITemplateComponentResponseConfig
8468
- */
8469
- 'imageAspectRatio'?: number;
8470
- /**
8471
- *
8472
- * @type {ProductDetailImageZoomTypeEnum}
8473
- * @memberof ITemplateComponentResponseConfig
8474
- */
8475
- 'productDetailImageZoomType'?: ProductDetailImageZoomTypeEnum;
8476
- /**
8477
- *
8478
- * @type {FontSizeEnum}
8479
- * @memberof ITemplateComponentResponseConfig
8480
- */
8481
- 'contentDescriptionFontSize'?: FontSizeEnum;
8482
- /**
8483
- *
8484
- * @type {FontSizeEnum}
8485
- * @memberof ITemplateComponentResponseConfig
8486
- */
8487
- 'contentTitleFontSize'?: FontSizeEnum;
8488
- /**
8489
- *
8490
- * @type {FontSizeEnum}
8491
- * @memberof ITemplateComponentResponseConfig
8492
- */
8493
- 'descriptionFontSize'?: FontSizeEnum;
8494
- /**
8495
- *
8496
- * @type {FontSizeEnum}
8497
- * @memberof ITemplateComponentResponseConfig
8498
- */
8499
- 'titleFontSize'?: FontSizeEnum;
8500
- /**
8501
- *
8502
- * @type {string}
8503
- * @memberof ITemplateComponentResponseConfig
8504
- */
8505
- 'textColor'?: string;
8506
- /**
8507
- *
8508
- * @type {string}
8509
- * @memberof ITemplateComponentResponseConfig
8510
- */
8511
- 'customStyles'?: string;
8512
- /**
8513
- *
8514
- * @type {Array<string>}
8515
- * @memberof ITemplateComponentResponseConfig
8516
- */
8517
- 'customClasses'?: Array<string>;
8518
- /**
8519
- *
8520
- * @type {string}
8521
- * @memberof ITemplateComponentResponseConfig
8522
- */
8523
- 'backgroundColor'?: string;
8524
- /**
8525
- *
8526
- * @type {boolean}
8527
- * @memberof ITemplateComponentResponseConfig
8528
- */
8529
- 'slide'?: boolean;
8530
- /**
8531
- *
8532
- * @type {boolean}
8533
- * @memberof ITemplateComponentResponseConfig
8534
- */
8535
- 'cardContainer'?: boolean;
8536
- /**
8537
- *
8538
- * @type {boolean}
8539
- * @memberof ITemplateComponentResponseConfig
8540
- */
8541
- 'grid'?: boolean;
8542
- /**
8543
- *
8544
- * @type {boolean}
8545
- * @memberof ITemplateComponentResponseConfig
8546
- */
8547
- 'display': boolean;
8548
- /**
8549
- *
8550
- * @type {number}
8551
- * @memberof ITemplateComponentResponseConfig
8552
- */
8553
- 'interval'?: number;
8554
- /**
8555
- *
8556
- * @type {number}
8557
- * @memberof ITemplateComponentResponseConfig
8558
- */
8559
- 'mobilePerViewCount'?: number;
8560
- /**
8561
- *
8562
- * @type {number}
8563
- * @memberof ITemplateComponentResponseConfig
8564
- */
8565
- 'perViewCount'?: number;
8566
- /**
8567
- *
8568
- * @type {boolean}
8569
- * @memberof ITemplateComponentResponseConfig
8570
- */
8571
- 'autoPlay'?: boolean;
8572
- /**
8573
- *
8574
- * @type {boolean}
8575
- * @memberof ITemplateComponentResponseConfig
8576
- */
8577
- 'addName'?: boolean;
8578
- }
8579
8045
  /**
8580
8046
  *
8581
8047
  * @export
@@ -8847,6 +8313,14 @@ export interface IThemePatchRequest {
8847
8313
  * @memberof IThemePatchRequest
8848
8314
  */
8849
8315
  'demoUrl'?: string;
8316
+ /**
8317
+ * Construct a type with a set of properties K of type T
8318
+ * @type {{ [key: string]: RecordStringStringOrAnyValue; }}
8319
+ * @memberof IThemePatchRequest
8320
+ */
8321
+ 'files'?: {
8322
+ [key: string]: RecordStringStringOrAnyValue;
8323
+ };
8850
8324
  }
8851
8325
  /**
8852
8326
  *
@@ -8878,6 +8352,14 @@ export interface IThemePostRequest {
8878
8352
  * @memberof IThemePostRequest
8879
8353
  */
8880
8354
  'demoUrl'?: string;
8355
+ /**
8356
+ * Construct a type with a set of properties K of type T
8357
+ * @type {{ [key: string]: RecordStringStringOrAnyValue; }}
8358
+ * @memberof IThemePostRequest
8359
+ */
8360
+ 'files'?: {
8361
+ [key: string]: RecordStringStringOrAnyValue;
8362
+ };
8881
8363
  /**
8882
8364
  *
8883
8365
  * @type {IThemeResponseTemplate}
@@ -8957,6 +8439,14 @@ export interface IThemeResponse {
8957
8439
  * @memberof IThemeResponse
8958
8440
  */
8959
8441
  'creator'?: string;
8442
+ /**
8443
+ * Construct a type with a set of properties K of type T
8444
+ * @type {{ [key: string]: RecordStringStringOrAnyValue; }}
8445
+ * @memberof IThemeResponse
8446
+ */
8447
+ 'files'?: {
8448
+ [key: string]: RecordStringStringOrAnyValue;
8449
+ };
8960
8450
  /**
8961
8451
  *
8962
8452
  * @type {IThemeResponseTemplate}
@@ -11518,6 +11008,14 @@ export interface PickIThemeExcludeKeyofIThemeTemplate {
11518
11008
  * @memberof PickIThemeExcludeKeyofIThemeTemplate
11519
11009
  */
11520
11010
  'creator'?: string;
11011
+ /**
11012
+ * Construct a type with a set of properties K of type T
11013
+ * @type {{ [key: string]: RecordStringStringOrAnyValue; }}
11014
+ * @memberof PickIThemeExcludeKeyofIThemeTemplate
11015
+ */
11016
+ 'files'?: {
11017
+ [key: string]: RecordStringStringOrAnyValue;
11018
+ };
11521
11019
  }
11522
11020
  /**
11523
11021
  *
@@ -11804,6 +11302,14 @@ export interface PickIThemeResponseExcludeKeyofIThemeResponseKeyofMongoResponseO
11804
11302
  * @memberof PickIThemeResponseExcludeKeyofIThemeResponseKeyofMongoResponseOrTemplateOrMainOrCompanyOrCreator
11805
11303
  */
11806
11304
  'demoUrl'?: string;
11305
+ /**
11306
+ * Construct a type with a set of properties K of type T
11307
+ * @type {{ [key: string]: RecordStringStringOrAnyValue; }}
11308
+ * @memberof PickIThemeResponseExcludeKeyofIThemeResponseKeyofMongoResponseOrTemplateOrMainOrCompanyOrCreator
11309
+ */
11310
+ 'files'?: {
11311
+ [key: string]: RecordStringStringOrAnyValue;
11312
+ };
11807
11313
  }
11808
11314
  /**
11809
11315
  * From T, pick a set of properties whose keys are in the union K
@@ -12054,19 +11560,6 @@ export interface PriceType {
12054
11560
  */
12055
11561
  'price': number;
12056
11562
  }
12057
- /**
12058
- *
12059
- * @export
12060
- * @enum {string}
12061
- */
12062
- export declare const ProductDetailImageZoomTypeEnum: {
12063
- readonly MOVE: "move";
12064
- readonly CLICK: "click";
12065
- readonly HOVER: "hover";
12066
- readonly DIALOG: "dialog";
12067
- readonly NONE: "none";
12068
- };
12069
- export type ProductDetailImageZoomTypeEnum = typeof ProductDetailImageZoomTypeEnum[keyof typeof ProductDetailImageZoomTypeEnum];
12070
11563
  /**
12071
11564
  * Construct a type with a set of properties K of type T
12072
11565
  * @export
@@ -12216,6 +11709,13 @@ export interface RecordLanguageEnumTitleStringTr {
12216
11709
  */
12217
11710
  'title': string;
12218
11711
  }
11712
+ /**
11713
+ *
11714
+ * @export
11715
+ * @interface RecordStringStringOrAnyValue
11716
+ */
11717
+ export interface RecordStringStringOrAnyValue {
11718
+ }
12219
11719
  /**
12220
11720
  *
12221
11721
  * @export
@@ -21092,6 +20592,14 @@ export declare const ThemeApiAxiosParamCreator: (configuration?: Configuration)
21092
20592
  * @throws {RequiredError}
21093
20593
  */
21094
20594
  updateTheme: (id: string, iThemePatchRequest: IThemePatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20595
+ /**
20596
+ *
20597
+ * @param {string} id
20598
+ * @param {File} file
20599
+ * @param {*} [options] Override http request option.
20600
+ * @throws {RequiredError}
20601
+ */
20602
+ updateThemeFiles: (id: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21095
20603
  };
21096
20604
  /**
21097
20605
  * ThemeApi - functional programming interface
@@ -21147,6 +20655,14 @@ export declare const ThemeApiFp: (configuration?: Configuration) => {
21147
20655
  * @throws {RequiredError}
21148
20656
  */
21149
20657
  updateTheme(id: string, iThemePatchRequest: IThemePatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IThemeResponse>>;
20658
+ /**
20659
+ *
20660
+ * @param {string} id
20661
+ * @param {File} file
20662
+ * @param {*} [options] Override http request option.
20663
+ * @throws {RequiredError}
20664
+ */
20665
+ updateThemeFiles(id: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
21150
20666
  };
21151
20667
  /**
21152
20668
  * ThemeApi - factory interface
@@ -21201,6 +20717,13 @@ export declare const ThemeApiFactory: (configuration?: Configuration, basePath?:
21201
20717
  * @throws {RequiredError}
21202
20718
  */
21203
20719
  updateTheme(requestParameters: ThemeApiUpdateThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise<IThemeResponse>;
20720
+ /**
20721
+ *
20722
+ * @param {ThemeApiUpdateThemeFilesRequest} requestParameters Request parameters.
20723
+ * @param {*} [options] Override http request option.
20724
+ * @throws {RequiredError}
20725
+ */
20726
+ updateThemeFiles(requestParameters: ThemeApiUpdateThemeFilesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
21204
20727
  };
21205
20728
  /**
21206
20729
  * Request parameters for cloneTheme operation in ThemeApi.
@@ -21286,6 +20809,25 @@ export interface ThemeApiUpdateThemeRequest {
21286
20809
  */
21287
20810
  readonly iThemePatchRequest: IThemePatchRequest;
21288
20811
  }
20812
+ /**
20813
+ * Request parameters for updateThemeFiles operation in ThemeApi.
20814
+ * @export
20815
+ * @interface ThemeApiUpdateThemeFilesRequest
20816
+ */
20817
+ export interface ThemeApiUpdateThemeFilesRequest {
20818
+ /**
20819
+ *
20820
+ * @type {string}
20821
+ * @memberof ThemeApiUpdateThemeFiles
20822
+ */
20823
+ readonly id: string;
20824
+ /**
20825
+ *
20826
+ * @type {File}
20827
+ * @memberof ThemeApiUpdateThemeFiles
20828
+ */
20829
+ readonly file: File;
20830
+ }
21289
20831
  /**
21290
20832
  * ThemeApi - object-oriented interface
21291
20833
  * @export
@@ -21348,6 +20890,14 @@ export declare class ThemeApi extends BaseAPI {
21348
20890
  * @memberof ThemeApi
21349
20891
  */
21350
20892
  updateTheme(requestParameters: ThemeApiUpdateThemeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IThemeResponse, any>>;
20893
+ /**
20894
+ *
20895
+ * @param {ThemeApiUpdateThemeFilesRequest} requestParameters Request parameters.
20896
+ * @param {*} [options] Override http request option.
20897
+ * @throws {RequiredError}
20898
+ * @memberof ThemeApi
20899
+ */
20900
+ updateThemeFiles(requestParameters: ThemeApiUpdateThemeFilesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
21351
20901
  }
21352
20902
  /**
21353
20903
  * UserApi - axios parameter creator
package/dist/api/api.js CHANGED
@@ -16,29 +16,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
20
- exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickIThemeExcludeKeyofIThemeTemplateConfigBlogCardTextAlignEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = void 0;
21
- exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = void 0;
22
- exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = void 0;
19
+ exports.PickIThemeExcludeKeyofIThemeTemplateConfigBlogCardTextAlignEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
20
+ exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = void 0;
21
+ exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = void 0;
22
+ exports.GetUsersDateFieldEnum = exports.UserApi = void 0;
23
23
  const axios_1 = __importDefault(require("axios"));
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
26
  const common_1 = require("./common.js");
27
27
  // @ts-ignore
28
28
  const base_1 = require("./base.js");
29
- /**
30
- *
31
- * @export
32
- * @enum {string}
33
- */
34
- exports.ButtonVariantEnum = {
35
- LINK: 'link',
36
- DEFAULT: 'default',
37
- OUTLINE: 'outline',
38
- DESTRUCTIVE: 'destructive',
39
- SECONDARY: 'secondary',
40
- GHOST: 'ghost'
41
- };
42
29
  /**
43
30
  *
44
31
  * @export
@@ -70,31 +57,6 @@ exports.CompanyUserStatusEnum = {
70
57
  UNEMPLOYED: 'unemployed',
71
58
  DELETED: 'deleted'
72
59
  };
73
- /**
74
- *
75
- * @export
76
- * @enum {string}
77
- */
78
- exports.ComponentContentTypeEnum = {
79
- HEADING: 'heading',
80
- TEXT: 'text',
81
- CAPTION: 'caption',
82
- BUTTONS: 'buttons',
83
- PRICE: 'price',
84
- VARIANT_PICKER: 'variant-picker',
85
- BUY_BUTTON: 'buy-button',
86
- SHARE: 'share',
87
- PRODUCT_RATING: 'product-rating',
88
- CAROUSEL_ITEM: 'carousel-item',
89
- GRID_ITEM: 'grid-item',
90
- ANNOUNCEMENT_ITEM: 'announcement-item',
91
- ACCORDION_ITEM: 'accordion-item',
92
- PRODUCT_DESCRIPTION: 'product-description',
93
- PRODUCT_REVIEWS: 'product-reviews',
94
- PRODUCT_ATTRIBUTES: 'product-attributes',
95
- IMAGE: 'image',
96
- CONTENT: 'content'
97
- };
98
60
  /**
99
61
  *
100
62
  * @export
@@ -123,57 +85,6 @@ exports.ComponentProductTypeEnum = {
123
85
  COLLECTION: 'collection',
124
86
  BRAND: 'brand'
125
87
  };
126
- /**
127
- *
128
- * @export
129
- * @enum {string}
130
- */
131
- exports.ComponentTypeEnum = {
132
- CAROUSEL: 'carousel',
133
- BANNER: 'banner',
134
- GRID: 'grid',
135
- PRODUCT_LIST: 'product-list',
136
- PAGE_DETAIL: 'page-detail',
137
- PRODUCT_DETAIL: 'product-detail',
138
- PRODUCT_MORE_DETAIL: 'product-more-detail',
139
- COLLECTION_LIST: 'collection-list',
140
- CATEGORY_LIST: 'category-list',
141
- BRAND_LIST: 'brand-list',
142
- BLOG_LIST: 'blog-list',
143
- RICH_TEXT: 'rich-text',
144
- BANNER_WITH_TEXT: 'banner-with-text',
145
- ACCORDION: 'accordion',
146
- HEADER: 'header',
147
- ANNOUNCEMENT: 'announcement',
148
- FOOTER: 'footer',
149
- CONTACT_FORM: 'contact-form',
150
- CART_DETAIL: 'cart-detail',
151
- CHECKOUT_DETAIL: 'checkout-detail',
152
- NOT_FOUND_DETAIL: 'not-found-detail',
153
- SEARCH_DETAIL: 'search-detail',
154
- BLOG_LIST_DETAIL: 'blog-list-detail',
155
- COLLECTION_LIST_DETAIL: 'collection-list-detail'
156
- };
157
- /**
158
- *
159
- * @export
160
- * @enum {string}
161
- */
162
- exports.ContentPositionXEnum = {
163
- CENTER: 'center',
164
- LEFT: 'left',
165
- RIGHT: 'right'
166
- };
167
- /**
168
- *
169
- * @export
170
- * @enum {string}
171
- */
172
- exports.ContentPositionYEnum = {
173
- CENTER: 'center',
174
- TOP: 'top',
175
- BOTTOM: 'bottom'
176
- };
177
88
  /**
178
89
  *
179
90
  * @export
@@ -503,21 +414,6 @@ exports.FileTypeEnum = {
503
414
  DOCUMENT: 'document',
504
415
  OTHER: 'other'
505
416
  };
506
- /**
507
- *
508
- * @export
509
- * @enum {string}
510
- */
511
- exports.FontSizeEnum = {
512
- XS: 'text-xs',
513
- SM: 'text-sm',
514
- BASE: 'text-base',
515
- LG: 'text-lg',
516
- XL: 'text-xl',
517
- _2XL: 'text-2xl',
518
- _4XL: 'text-4xl',
519
- _6XL: 'text-6xl'
520
- };
521
417
  exports.IBrandCollectionQueryParamsDateFieldEnum = {
522
418
  CREATED_AT: 'createdAt',
523
419
  UPDATED_AT: 'updatedAt'
@@ -788,18 +684,6 @@ exports.PlanTypeEnum = {
788
684
  ADVANCED: 'advanced',
789
685
  PREMIUM: 'premium'
790
686
  };
791
- /**
792
- *
793
- * @export
794
- * @enum {string}
795
- */
796
- exports.ProductDetailImageZoomTypeEnum = {
797
- MOVE: 'move',
798
- CLICK: 'click',
799
- HOVER: 'hover',
800
- DIALOG: 'dialog',
801
- NONE: 'none'
802
- };
803
687
  /**
804
688
  *
805
689
  * @export
@@ -11717,6 +11601,43 @@ const ThemeApiAxiosParamCreator = function (configuration) {
11717
11601
  options: localVarRequestOptions,
11718
11602
  };
11719
11603
  },
11604
+ /**
11605
+ *
11606
+ * @param {string} id
11607
+ * @param {File} file
11608
+ * @param {*} [options] Override http request option.
11609
+ * @throws {RequiredError}
11610
+ */
11611
+ updateThemeFiles: async (id, file, options = {}) => {
11612
+ // verify required parameter 'id' is not null or undefined
11613
+ (0, common_1.assertParamExists)('updateThemeFiles', 'id', id);
11614
+ // verify required parameter 'file' is not null or undefined
11615
+ (0, common_1.assertParamExists)('updateThemeFiles', 'file', file);
11616
+ const localVarPath = `/api/themes/{id}/files`
11617
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
11618
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11619
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11620
+ let baseOptions;
11621
+ if (configuration) {
11622
+ baseOptions = configuration.baseOptions;
11623
+ }
11624
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
11625
+ const localVarHeaderParameter = {};
11626
+ const localVarQueryParameter = {};
11627
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
11628
+ if (file !== undefined) {
11629
+ localVarFormParams.append('file', file);
11630
+ }
11631
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
11632
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11634
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11635
+ localVarRequestOptions.data = localVarFormParams;
11636
+ return {
11637
+ url: (0, common_1.toPathString)(localVarUrlObj),
11638
+ options: localVarRequestOptions,
11639
+ };
11640
+ },
11720
11641
  };
11721
11642
  };
11722
11643
  exports.ThemeApiAxiosParamCreator = ThemeApiAxiosParamCreator;
@@ -11811,6 +11732,19 @@ const ThemeApiFp = function (configuration) {
11811
11732
  const localVarOperationServerBasePath = base_1.operationServerMap['ThemeApi.updateTheme']?.[localVarOperationServerIndex]?.url;
11812
11733
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11813
11734
  },
11735
+ /**
11736
+ *
11737
+ * @param {string} id
11738
+ * @param {File} file
11739
+ * @param {*} [options] Override http request option.
11740
+ * @throws {RequiredError}
11741
+ */
11742
+ async updateThemeFiles(id, file, options) {
11743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeFiles(id, file, options);
11744
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11745
+ const localVarOperationServerBasePath = base_1.operationServerMap['ThemeApi.updateThemeFiles']?.[localVarOperationServerIndex]?.url;
11746
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11747
+ },
11814
11748
  };
11815
11749
  };
11816
11750
  exports.ThemeApiFp = ThemeApiFp;
@@ -11883,6 +11817,15 @@ const ThemeApiFactory = function (configuration, basePath, axios) {
11883
11817
  updateTheme(requestParameters, options) {
11884
11818
  return localVarFp.updateTheme(requestParameters.id, requestParameters.iThemePatchRequest, options).then((request) => request(axios, basePath));
11885
11819
  },
11820
+ /**
11821
+ *
11822
+ * @param {ThemeApiUpdateThemeFilesRequest} requestParameters Request parameters.
11823
+ * @param {*} [options] Override http request option.
11824
+ * @throws {RequiredError}
11825
+ */
11826
+ updateThemeFiles(requestParameters, options) {
11827
+ return localVarFp.updateThemeFiles(requestParameters.id, requestParameters.file, options).then((request) => request(axios, basePath));
11828
+ },
11886
11829
  };
11887
11830
  };
11888
11831
  exports.ThemeApiFactory = ThemeApiFactory;
@@ -11962,6 +11905,16 @@ class ThemeApi extends base_1.BaseAPI {
11962
11905
  updateTheme(requestParameters, options) {
11963
11906
  return (0, exports.ThemeApiFp)(this.configuration).updateTheme(requestParameters.id, requestParameters.iThemePatchRequest, options).then((request) => request(this.axios, this.basePath));
11964
11907
  }
11908
+ /**
11909
+ *
11910
+ * @param {ThemeApiUpdateThemeFilesRequest} requestParameters Request parameters.
11911
+ * @param {*} [options] Override http request option.
11912
+ * @throws {RequiredError}
11913
+ * @memberof ThemeApi
11914
+ */
11915
+ updateThemeFiles(requestParameters, options) {
11916
+ return (0, exports.ThemeApiFp)(this.configuration).updateThemeFiles(requestParameters.id, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
11917
+ }
11965
11918
  }
11966
11919
  exports.ThemeApi = ThemeApi;
11967
11920
  /**
package/dist/api/api.mjs CHANGED
@@ -14,19 +14,6 @@
14
14
  import globalAxios from 'axios';
15
15
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from "./common.mjs";
16
16
  import { BASE_PATH, BaseAPI, operationServerMap } from "./base.mjs";
17
- /**
18
- *
19
- * @export
20
- * @enum {string}
21
- */
22
- export const ButtonVariantEnum = {
23
- LINK: 'link',
24
- DEFAULT: 'default',
25
- OUTLINE: 'outline',
26
- DESTRUCTIVE: 'destructive',
27
- SECONDARY: 'secondary',
28
- GHOST: 'ghost'
29
- };
30
17
  /**
31
18
  *
32
19
  * @export
@@ -58,31 +45,6 @@ export const CompanyUserStatusEnum = {
58
45
  UNEMPLOYED: 'unemployed',
59
46
  DELETED: 'deleted'
60
47
  };
61
- /**
62
- *
63
- * @export
64
- * @enum {string}
65
- */
66
- export const ComponentContentTypeEnum = {
67
- HEADING: 'heading',
68
- TEXT: 'text',
69
- CAPTION: 'caption',
70
- BUTTONS: 'buttons',
71
- PRICE: 'price',
72
- VARIANT_PICKER: 'variant-picker',
73
- BUY_BUTTON: 'buy-button',
74
- SHARE: 'share',
75
- PRODUCT_RATING: 'product-rating',
76
- CAROUSEL_ITEM: 'carousel-item',
77
- GRID_ITEM: 'grid-item',
78
- ANNOUNCEMENT_ITEM: 'announcement-item',
79
- ACCORDION_ITEM: 'accordion-item',
80
- PRODUCT_DESCRIPTION: 'product-description',
81
- PRODUCT_REVIEWS: 'product-reviews',
82
- PRODUCT_ATTRIBUTES: 'product-attributes',
83
- IMAGE: 'image',
84
- CONTENT: 'content'
85
- };
86
48
  /**
87
49
  *
88
50
  * @export
@@ -111,57 +73,6 @@ export const ComponentProductTypeEnum = {
111
73
  COLLECTION: 'collection',
112
74
  BRAND: 'brand'
113
75
  };
114
- /**
115
- *
116
- * @export
117
- * @enum {string}
118
- */
119
- export const ComponentTypeEnum = {
120
- CAROUSEL: 'carousel',
121
- BANNER: 'banner',
122
- GRID: 'grid',
123
- PRODUCT_LIST: 'product-list',
124
- PAGE_DETAIL: 'page-detail',
125
- PRODUCT_DETAIL: 'product-detail',
126
- PRODUCT_MORE_DETAIL: 'product-more-detail',
127
- COLLECTION_LIST: 'collection-list',
128
- CATEGORY_LIST: 'category-list',
129
- BRAND_LIST: 'brand-list',
130
- BLOG_LIST: 'blog-list',
131
- RICH_TEXT: 'rich-text',
132
- BANNER_WITH_TEXT: 'banner-with-text',
133
- ACCORDION: 'accordion',
134
- HEADER: 'header',
135
- ANNOUNCEMENT: 'announcement',
136
- FOOTER: 'footer',
137
- CONTACT_FORM: 'contact-form',
138
- CART_DETAIL: 'cart-detail',
139
- CHECKOUT_DETAIL: 'checkout-detail',
140
- NOT_FOUND_DETAIL: 'not-found-detail',
141
- SEARCH_DETAIL: 'search-detail',
142
- BLOG_LIST_DETAIL: 'blog-list-detail',
143
- COLLECTION_LIST_DETAIL: 'collection-list-detail'
144
- };
145
- /**
146
- *
147
- * @export
148
- * @enum {string}
149
- */
150
- export const ContentPositionXEnum = {
151
- CENTER: 'center',
152
- LEFT: 'left',
153
- RIGHT: 'right'
154
- };
155
- /**
156
- *
157
- * @export
158
- * @enum {string}
159
- */
160
- export const ContentPositionYEnum = {
161
- CENTER: 'center',
162
- TOP: 'top',
163
- BOTTOM: 'bottom'
164
- };
165
76
  /**
166
77
  *
167
78
  * @export
@@ -491,21 +402,6 @@ export const FileTypeEnum = {
491
402
  DOCUMENT: 'document',
492
403
  OTHER: 'other'
493
404
  };
494
- /**
495
- *
496
- * @export
497
- * @enum {string}
498
- */
499
- export const FontSizeEnum = {
500
- XS: 'text-xs',
501
- SM: 'text-sm',
502
- BASE: 'text-base',
503
- LG: 'text-lg',
504
- XL: 'text-xl',
505
- _2XL: 'text-2xl',
506
- _4XL: 'text-4xl',
507
- _6XL: 'text-6xl'
508
- };
509
405
  export const IBrandCollectionQueryParamsDateFieldEnum = {
510
406
  CREATED_AT: 'createdAt',
511
407
  UPDATED_AT: 'updatedAt'
@@ -776,18 +672,6 @@ export const PlanTypeEnum = {
776
672
  ADVANCED: 'advanced',
777
673
  PREMIUM: 'premium'
778
674
  };
779
- /**
780
- *
781
- * @export
782
- * @enum {string}
783
- */
784
- export const ProductDetailImageZoomTypeEnum = {
785
- MOVE: 'move',
786
- CLICK: 'click',
787
- HOVER: 'hover',
788
- DIALOG: 'dialog',
789
- NONE: 'none'
790
- };
791
675
  /**
792
676
  *
793
677
  * @export
@@ -11637,6 +11521,43 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
11637
11521
  options: localVarRequestOptions,
11638
11522
  };
11639
11523
  },
11524
+ /**
11525
+ *
11526
+ * @param {string} id
11527
+ * @param {File} file
11528
+ * @param {*} [options] Override http request option.
11529
+ * @throws {RequiredError}
11530
+ */
11531
+ updateThemeFiles: async (id, file, options = {}) => {
11532
+ // verify required parameter 'id' is not null or undefined
11533
+ assertParamExists('updateThemeFiles', 'id', id);
11534
+ // verify required parameter 'file' is not null or undefined
11535
+ assertParamExists('updateThemeFiles', 'file', file);
11536
+ const localVarPath = `/api/themes/{id}/files`
11537
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
11538
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11539
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11540
+ let baseOptions;
11541
+ if (configuration) {
11542
+ baseOptions = configuration.baseOptions;
11543
+ }
11544
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
11545
+ const localVarHeaderParameter = {};
11546
+ const localVarQueryParameter = {};
11547
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
11548
+ if (file !== undefined) {
11549
+ localVarFormParams.append('file', file);
11550
+ }
11551
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
11552
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11554
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11555
+ localVarRequestOptions.data = localVarFormParams;
11556
+ return {
11557
+ url: toPathString(localVarUrlObj),
11558
+ options: localVarRequestOptions,
11559
+ };
11560
+ },
11640
11561
  };
11641
11562
  };
11642
11563
  /**
@@ -11730,6 +11651,19 @@ export const ThemeApiFp = function (configuration) {
11730
11651
  const localVarOperationServerBasePath = operationServerMap['ThemeApi.updateTheme']?.[localVarOperationServerIndex]?.url;
11731
11652
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11732
11653
  },
11654
+ /**
11655
+ *
11656
+ * @param {string} id
11657
+ * @param {File} file
11658
+ * @param {*} [options] Override http request option.
11659
+ * @throws {RequiredError}
11660
+ */
11661
+ async updateThemeFiles(id, file, options) {
11662
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeFiles(id, file, options);
11663
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11664
+ const localVarOperationServerBasePath = operationServerMap['ThemeApi.updateThemeFiles']?.[localVarOperationServerIndex]?.url;
11665
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11666
+ },
11733
11667
  };
11734
11668
  };
11735
11669
  /**
@@ -11801,6 +11735,15 @@ export const ThemeApiFactory = function (configuration, basePath, axios) {
11801
11735
  updateTheme(requestParameters, options) {
11802
11736
  return localVarFp.updateTheme(requestParameters.id, requestParameters.iThemePatchRequest, options).then((request) => request(axios, basePath));
11803
11737
  },
11738
+ /**
11739
+ *
11740
+ * @param {ThemeApiUpdateThemeFilesRequest} requestParameters Request parameters.
11741
+ * @param {*} [options] Override http request option.
11742
+ * @throws {RequiredError}
11743
+ */
11744
+ updateThemeFiles(requestParameters, options) {
11745
+ return localVarFp.updateThemeFiles(requestParameters.id, requestParameters.file, options).then((request) => request(axios, basePath));
11746
+ },
11804
11747
  };
11805
11748
  };
11806
11749
  /**
@@ -11879,6 +11822,16 @@ export class ThemeApi extends BaseAPI {
11879
11822
  updateTheme(requestParameters, options) {
11880
11823
  return ThemeApiFp(this.configuration).updateTheme(requestParameters.id, requestParameters.iThemePatchRequest, options).then((request) => request(this.axios, this.basePath));
11881
11824
  }
11825
+ /**
11826
+ *
11827
+ * @param {ThemeApiUpdateThemeFilesRequest} requestParameters Request parameters.
11828
+ * @param {*} [options] Override http request option.
11829
+ * @throws {RequiredError}
11830
+ * @memberof ThemeApi
11831
+ */
11832
+ updateThemeFiles(requestParameters, options) {
11833
+ return ThemeApiFp(this.configuration).updateThemeFiles(requestParameters.id, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
11834
+ }
11882
11835
  }
11883
11836
  /**
11884
11837
  * UserApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "api-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "3f5595b60d7c3bc0a1c4200f28f1646ff3c84e1a"
40
+ "gitHead": "8b122349bed1b50f72a09b18253fa7421f0ba40b"
41
41
  }