@infisale-client/api-client 1.1.4 → 1.1.10

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
@@ -471,6 +471,21 @@ export declare const EmailConfigDnsRecordTypeEnum: {
471
471
  readonly MX: "MX";
472
472
  };
473
473
  export type EmailConfigDnsRecordTypeEnum = typeof EmailConfigDnsRecordTypeEnum[keyof typeof EmailConfigDnsRecordTypeEnum];
474
+ /**
475
+ *
476
+ * @export
477
+ * @enum {string}
478
+ */
479
+ export declare const FileKeywordEnum: {
480
+ readonly CAROUSEL: "carousel";
481
+ readonly BANNER: "banner";
482
+ readonly CONTENT: "content";
483
+ readonly LOGO: "logo";
484
+ readonly PRODUCT: "product";
485
+ readonly ATTACHMENT: "attachment";
486
+ readonly COMMENT: "comment";
487
+ };
488
+ export type FileKeywordEnum = typeof FileKeywordEnum[keyof typeof FileKeywordEnum];
474
489
  /**
475
490
  *
476
491
  * @export
@@ -511,6 +526,49 @@ export declare const GridTypeEnum: {
511
526
  readonly _1_1_2: "1-1-2";
512
527
  };
513
528
  export type GridTypeEnum = typeof GridTypeEnum[keyof typeof GridTypeEnum];
529
+ /**
530
+ *
531
+ * @export
532
+ * @interface IAddProductToBasketRequest
533
+ */
534
+ export interface IAddProductToBasketRequest {
535
+ /**
536
+ *
537
+ * @type {string}
538
+ * @memberof IAddProductToBasketRequest
539
+ */
540
+ 'domain': string;
541
+ /**
542
+ *
543
+ * @type {string}
544
+ * @memberof IAddProductToBasketRequest
545
+ */
546
+ 'basket'?: string;
547
+ /**
548
+ *
549
+ * @type {string}
550
+ * @memberof IAddProductToBasketRequest
551
+ */
552
+ 'product': string;
553
+ /**
554
+ *
555
+ * @type {number}
556
+ * @memberof IAddProductToBasketRequest
557
+ */
558
+ 'amount': number;
559
+ /**
560
+ *
561
+ * @type {string}
562
+ * @memberof IAddProductToBasketRequest
563
+ */
564
+ 'main_variant'?: string;
565
+ /**
566
+ *
567
+ * @type {string}
568
+ * @memberof IAddProductToBasketRequest
569
+ */
570
+ 'sub_variant'?: string;
571
+ }
514
572
  /**
515
573
  *
516
574
  * @export
@@ -550,6 +608,118 @@ export interface IAllProductsResponse {
550
608
  */
551
609
  'data': Array<PickIProductIdOrContentsOrCollectionsOrCategory>;
552
610
  }
611
+ /**
612
+ *
613
+ * @export
614
+ * @interface IBasketMergeRequest
615
+ */
616
+ export interface IBasketMergeRequest {
617
+ /**
618
+ *
619
+ * @type {string}
620
+ * @memberof IBasketMergeRequest
621
+ */
622
+ 'id': string;
623
+ }
624
+ /**
625
+ *
626
+ * @export
627
+ * @interface IBasketResponse
628
+ */
629
+ export interface IBasketResponse {
630
+ /**
631
+ *
632
+ * @type {string}
633
+ * @memberof IBasketResponse
634
+ */
635
+ 'company': string;
636
+ /**
637
+ *
638
+ * @type {string}
639
+ * @memberof IBasketResponse
640
+ */
641
+ '_id': string;
642
+ /**
643
+ *
644
+ * @type {number}
645
+ * @memberof IBasketResponse
646
+ */
647
+ '__v': number;
648
+ /**
649
+ *
650
+ * @type {string}
651
+ * @memberof IBasketResponse
652
+ */
653
+ 'createdAt': string;
654
+ /**
655
+ *
656
+ * @type {string}
657
+ * @memberof IBasketResponse
658
+ */
659
+ 'updatedAt': string;
660
+ /**
661
+ *
662
+ * @type {string}
663
+ * @memberof IBasketResponse
664
+ */
665
+ 'user': string;
666
+ /**
667
+ *
668
+ * @type {Array<IBasketResponseItemsInner>}
669
+ * @memberof IBasketResponse
670
+ */
671
+ 'items': Array<IBasketResponseItemsInner>;
672
+ }
673
+ /**
674
+ *
675
+ * @export
676
+ * @interface IBasketResponseItemsInner
677
+ */
678
+ export interface IBasketResponseItemsInner {
679
+ /**
680
+ *
681
+ * @type {string}
682
+ * @memberof IBasketResponseItemsInner
683
+ */
684
+ 'sub_variant'?: string;
685
+ /**
686
+ *
687
+ * @type {string}
688
+ * @memberof IBasketResponseItemsInner
689
+ */
690
+ 'main_variant'?: string;
691
+ /**
692
+ *
693
+ * @type {number}
694
+ * @memberof IBasketResponseItemsInner
695
+ */
696
+ 'amount': number;
697
+ /**
698
+ *
699
+ * @type {IProductsResponse}
700
+ * @memberof IBasketResponseItemsInner
701
+ */
702
+ 'product': IProductsResponse;
703
+ /**
704
+ *
705
+ * @type {string}
706
+ * @memberof IBasketResponseItemsInner
707
+ */
708
+ '_id': string;
709
+ }
710
+ /**
711
+ *
712
+ * @export
713
+ * @interface IBasketUpdateAmountRequest
714
+ */
715
+ export interface IBasketUpdateAmountRequest {
716
+ /**
717
+ *
718
+ * @type {number}
719
+ * @memberof IBasketUpdateAmountRequest
720
+ */
721
+ 'amount': number;
722
+ }
553
723
  /**
554
724
  *
555
725
  * @export
@@ -1653,6 +1823,12 @@ export interface ICompany {
1653
1823
  * @memberof ICompany
1654
1824
  */
1655
1825
  'sender_email'?: string;
1826
+ /**
1827
+ *
1828
+ * @type {string}
1829
+ * @memberof ICompany
1830
+ */
1831
+ 'sender_name'?: string;
1656
1832
  /**
1657
1833
  *
1658
1834
  * @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
@@ -2110,12 +2286,6 @@ export interface ICompanyPatchRequest {
2110
2286
  * @memberof ICompanyPatchRequest
2111
2287
  */
2112
2288
  'warehouses'?: Array<ICompanyPostRequestWarehousesInner>;
2113
- /**
2114
- *
2115
- * @type {string}
2116
- * @memberof ICompanyPatchRequest
2117
- */
2118
- 'sender_email'?: string;
2119
2289
  /**
2120
2290
  *
2121
2291
  * @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
@@ -2241,12 +2411,6 @@ export interface ICompanyPostRequest {
2241
2411
  * @memberof ICompanyPostRequest
2242
2412
  */
2243
2413
  'currencies': RecordCurrencyEnumCurrency;
2244
- /**
2245
- *
2246
- * @type {string}
2247
- * @memberof ICompanyPostRequest
2248
- */
2249
- 'sender_email'?: string;
2250
2414
  /**
2251
2415
  *
2252
2416
  * @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
@@ -2562,6 +2726,12 @@ export interface ICompanyResponse {
2562
2726
  * @memberof ICompanyResponse
2563
2727
  */
2564
2728
  'sender_email'?: string;
2729
+ /**
2730
+ *
2731
+ * @type {string}
2732
+ * @memberof ICompanyResponse
2733
+ */
2734
+ 'sender_name'?: string;
2565
2735
  /**
2566
2736
  *
2567
2737
  * @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
@@ -3408,13 +3578,13 @@ export interface IFileCollectionQueryParams {
3408
3578
  * @type {string}
3409
3579
  * @memberof IFileCollectionQueryParams
3410
3580
  */
3411
- 'user'?: string;
3581
+ 'company': string;
3412
3582
  /**
3413
3583
  *
3414
- * @type {string}
3584
+ * @type {Array<FileKeywordEnum>}
3415
3585
  * @memberof IFileCollectionQueryParams
3416
3586
  */
3417
- 'company'?: string;
3587
+ 'keywords'?: Array<FileKeywordEnum>;
3418
3588
  /**
3419
3589
  *
3420
3590
  * @type {FileTypeEnum}
@@ -3442,10 +3612,10 @@ export interface IFilePatchRequest {
3442
3612
  'name'?: string;
3443
3613
  /**
3444
3614
  *
3445
- * @type {FileStatusEnum}
3615
+ * @type {Array<FileKeywordEnum>}
3446
3616
  * @memberof IFilePatchRequest
3447
3617
  */
3448
- 'status'?: FileStatusEnum;
3618
+ 'keywords'?: Array<FileKeywordEnum>;
3449
3619
  }
3450
3620
  /**
3451
3621
  *
@@ -3453,18 +3623,6 @@ export interface IFilePatchRequest {
3453
3623
  * @interface IFileResponse
3454
3624
  */
3455
3625
  export interface IFileResponse {
3456
- /**
3457
- *
3458
- * @type {string}
3459
- * @memberof IFileResponse
3460
- */
3461
- 'name': string;
3462
- /**
3463
- *
3464
- * @type {FileStatusEnum}
3465
- * @memberof IFileResponse
3466
- */
3467
- 'status': FileStatusEnum;
3468
3626
  /**
3469
3627
  *
3470
3628
  * @type {string}
@@ -3491,78 +3649,52 @@ export interface IFileResponse {
3491
3649
  'updatedAt': string;
3492
3650
  /**
3493
3651
  *
3494
- * @type {FileTypeEnum}
3652
+ * @type {string}
3495
3653
  * @memberof IFileResponse
3496
3654
  */
3497
- 'type': FileTypeEnum;
3655
+ 'name': string;
3498
3656
  /**
3499
3657
  *
3500
- * @type {Array<IImagePathsInner>}
3658
+ * @type {string}
3501
3659
  * @memberof IFileResponse
3502
3660
  */
3503
- 'paths': Array<IImagePathsInner>;
3661
+ 'user'?: string;
3504
3662
  /**
3505
3663
  *
3506
3664
  * @type {string}
3507
3665
  * @memberof IFileResponse
3508
3666
  */
3509
- 'mimetype': string;
3667
+ 'company'?: string;
3510
3668
  /**
3511
3669
  *
3512
- * @type {IFileResponseUser}
3670
+ * @type {Array<IImagePathsInner>}
3513
3671
  * @memberof IFileResponse
3514
3672
  */
3515
- 'user'?: IFileResponseUser;
3673
+ 'paths': Array<IImagePathsInner>;
3516
3674
  /**
3517
3675
  *
3518
- * @type {IFileResponseCompany}
3676
+ * @type {FileTypeEnum}
3519
3677
  * @memberof IFileResponse
3520
3678
  */
3521
- 'company'?: IFileResponseCompany;
3522
- }
3523
- /**
3524
- *
3525
- * @export
3526
- * @interface IFileResponseCompany
3527
- */
3528
- export interface IFileResponseCompany {
3529
- /**
3530
- *
3531
- * @type {string}
3532
- * @memberof IFileResponseCompany
3533
- */
3534
- 'name': string;
3535
- /**
3536
- *
3537
- * @type {string}
3538
- * @memberof IFileResponseCompany
3539
- */
3540
- '_id': string;
3541
- }
3542
- /**
3543
- *
3544
- * @export
3545
- * @interface IFileResponseUser
3546
- */
3547
- export interface IFileResponseUser {
3679
+ 'type': FileTypeEnum;
3548
3680
  /**
3549
3681
  *
3550
- * @type {string}
3551
- * @memberof IFileResponseUser
3682
+ * @type {Array<FileKeywordEnum>}
3683
+ * @memberof IFileResponse
3552
3684
  */
3553
- 'email': string;
3685
+ 'keywords'?: Array<FileKeywordEnum>;
3554
3686
  /**
3555
3687
  *
3556
3688
  * @type {string}
3557
- * @memberof IFileResponseUser
3689
+ * @memberof IFileResponse
3558
3690
  */
3559
- 'name': string;
3691
+ 'mimetype': string;
3560
3692
  /**
3561
3693
  *
3562
- * @type {string}
3563
- * @memberof IFileResponseUser
3694
+ * @type {FileStatusEnum}
3695
+ * @memberof IFileResponse
3564
3696
  */
3565
- '_id': string;
3697
+ 'status': FileStatusEnum;
3566
3698
  }
3567
3699
  /**
3568
3700
  *
@@ -6065,12 +6197,6 @@ export interface IUserPatchRequest {
6065
6197
  * @memberof IUserPatchRequest
6066
6198
  */
6067
6199
  'name'?: string;
6068
- /**
6069
- *
6070
- * @type {string}
6071
- * @memberof IUserPatchRequest
6072
- */
6073
- 'email'?: string;
6074
6200
  /**
6075
6201
  *
6076
6202
  * @type {string}
@@ -6089,12 +6215,6 @@ export interface IUserPatchRequest {
6089
6215
  * @memberof IUserPatchRequest
6090
6216
  */
6091
6217
  'roles'?: Array<UserRoleEnum>;
6092
- /**
6093
- *
6094
- * @type {UserStatusEnum}
6095
- * @memberof IUserPatchRequest
6096
- */
6097
- 'status'?: UserStatusEnum;
6098
6218
  }
6099
6219
  /**
6100
6220
  *
@@ -6132,12 +6252,6 @@ export interface IUserPostRequest {
6132
6252
  * @memberof IUserPostRequest
6133
6253
  */
6134
6254
  'roles'?: Array<UserRoleEnum>;
6135
- /**
6136
- *
6137
- * @type {UserStatusEnum}
6138
- * @memberof IUserPostRequest
6139
- */
6140
- 'status'?: UserStatusEnum;
6141
6255
  }
6142
6256
  /**
6143
6257
  *
package/dist/api/api.js CHANGED
@@ -16,8 +16,8 @@ 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.PageApiFp = exports.PageApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaginationLimitEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
20
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = void 0;
19
+ exports.PageApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaginationLimitEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
20
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = void 0;
21
21
  const axios_1 = __importDefault(require("axios"));
22
22
  // Some imports not used depending on template conditions
23
23
  // @ts-ignore
@@ -425,6 +425,20 @@ exports.EmailConfigDnsRecordTypeEnum = {
425
425
  TXT: 'TXT',
426
426
  MX: 'MX'
427
427
  };
428
+ /**
429
+ *
430
+ * @export
431
+ * @enum {string}
432
+ */
433
+ exports.FileKeywordEnum = {
434
+ CAROUSEL: 'carousel',
435
+ BANNER: 'banner',
436
+ CONTENT: 'content',
437
+ LOGO: 'logo',
438
+ PRODUCT: 'product',
439
+ ATTACHMENT: 'attachment',
440
+ COMMENT: 'comment'
441
+ };
428
442
  /**
429
443
  *
430
444
  * @export
package/dist/api/api.mjs CHANGED
@@ -415,6 +415,20 @@ export const EmailConfigDnsRecordTypeEnum = {
415
415
  TXT: 'TXT',
416
416
  MX: 'MX'
417
417
  };
418
+ /**
419
+ *
420
+ * @export
421
+ * @enum {string}
422
+ */
423
+ export const FileKeywordEnum = {
424
+ CAROUSEL: 'carousel',
425
+ BANNER: 'banner',
426
+ CONTENT: 'content',
427
+ LOGO: 'logo',
428
+ PRODUCT: 'product',
429
+ ATTACHMENT: 'attachment',
430
+ COMMENT: 'comment'
431
+ };
418
432
  /**
419
433
  *
420
434
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.1.4",
3
+ "version": "1.1.10",
4
4
  "description": "api-client-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/infisale/infisale-client/issues"
38
38
  },
39
- "gitHead": "936cf671efa80b7bb00ca1721e70543af2ab3b70"
39
+ "gitHead": "ef2b72236d0d7f5e25a7ea4f3bd2d74f0b95cf84"
40
40
  }