@rezamirzapour/pod-sdk 1.0.11 → 1.0.12

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/index.mjs CHANGED
@@ -3517,6 +3517,577 @@ var CmsTagService = class {
3517
3517
  );
3518
3518
  }
3519
3519
  };
3520
+ var CmsContentTypeService = class {
3521
+ http;
3522
+ clientId;
3523
+ apiToken;
3524
+ revalidate;
3525
+ constructor(options) {
3526
+ this.clientId = options.clientId || "";
3527
+ this.apiToken = options.apiToken || "";
3528
+ this.revalidate = Number(options.revalidate) || 0;
3529
+ this.http = options.http || createNextHttp({
3530
+ baseUrl: options.baseUrl || "https://api.pod.ir/srv/cms-server",
3531
+ serviceName: "POD-CMS-CONTENT-TYPE",
3532
+ queryArrayFormat: "brackets"
3533
+ });
3534
+ }
3535
+ normalizeParams(params) {
3536
+ const arrayFields = [
3537
+ "excludeItems",
3538
+ "tagTreeCategoryIds",
3539
+ "tags",
3540
+ "tagTrees",
3541
+ "webhookServices",
3542
+ "webhookUrls",
3543
+ "webhookDurations",
3544
+ "webhookEnables",
3545
+ "webhookHeaders",
3546
+ "excludeFields",
3547
+ "postIds",
3548
+ "dealerBusinessId",
3549
+ "dealerBusinessShareType",
3550
+ "dealerBusinessShare"
3551
+ ];
3552
+ const result = { ...params };
3553
+ for (const field of arrayFields) {
3554
+ if (result[field] !== void 0 && result[field] !== null && !Array.isArray(result[field])) {
3555
+ result[field] = [result[field]];
3556
+ }
3557
+ }
3558
+ return result;
3559
+ }
3560
+ get commonHeaders() {
3561
+ return {
3562
+ "Client-Id": this.clientId,
3563
+ "Content-Type": "application/json"
3564
+ };
3565
+ }
3566
+ get managingHeaders() {
3567
+ return {
3568
+ ...this.commonHeaders,
3569
+ "Access-Token": this.apiToken
3570
+ };
3571
+ }
3572
+ // =========================================================================
3573
+ // 1. TEMPLATES & CLASSIFICATIONS (Swagger: tag=content-type)
3574
+ // =========================================================================
3575
+ /**
3576
+ * Retrieves list of all attribute templates.
3577
+ * Swagger: GET /api/core/content-types/templates
3578
+ */
3579
+ async getTemplates(params = {}, options = {}) {
3580
+ try {
3581
+ return await this.http.get(
3582
+ "/api/core/content-types/templates",
3583
+ {
3584
+ params: this.normalizeParams(params),
3585
+ queryArrayFormat: options.queryArrayFormat,
3586
+ headers: {
3587
+ ...this.managingHeaders,
3588
+ ...options.headers
3589
+ },
3590
+ cache: options.cache,
3591
+ signal: options.signal,
3592
+ next: {
3593
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3594
+ }
3595
+ }
3596
+ );
3597
+ } catch {
3598
+ return { hasError: true, result: [] };
3599
+ }
3600
+ }
3601
+ /**
3602
+ * Retrieves classification IG lists (end user).
3603
+ * Swagger: GET /api/core/content-types/template-igs
3604
+ */
3605
+ async getTemplateIgs(params = {}, options = {}) {
3606
+ try {
3607
+ return await this.http.get(
3608
+ "/api/core/content-types/template-igs",
3609
+ {
3610
+ params: this.normalizeParams(params),
3611
+ queryArrayFormat: options.queryArrayFormat,
3612
+ headers: {
3613
+ ...this.commonHeaders,
3614
+ ...options.headers
3615
+ },
3616
+ cache: options.cache,
3617
+ signal: options.signal,
3618
+ next: {
3619
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3620
+ }
3621
+ }
3622
+ );
3623
+ } catch {
3624
+ return { hasError: true, result: [] };
3625
+ }
3626
+ }
3627
+ /**
3628
+ * Retrieves template category lists (end user).
3629
+ * Swagger: GET /api/core/content-types/template-categories
3630
+ */
3631
+ async getTemplateCategories(params = {}, options = {}) {
3632
+ try {
3633
+ return await this.http.get(
3634
+ "/api/core/content-types/template-categories",
3635
+ {
3636
+ params: this.normalizeParams(params),
3637
+ queryArrayFormat: options.queryArrayFormat,
3638
+ headers: {
3639
+ ...this.commonHeaders,
3640
+ ...options.headers
3641
+ },
3642
+ cache: options.cache,
3643
+ signal: options.signal,
3644
+ next: {
3645
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3646
+ }
3647
+ }
3648
+ );
3649
+ } catch {
3650
+ return { hasError: true, result: [] };
3651
+ }
3652
+ }
3653
+ // =========================================================================
3654
+ // 2. CONTENT TYPES CRUD & LISTING (Swagger: tag=content-type)
3655
+ // =========================================================================
3656
+ /**
3657
+ * Retrieves list of all content types.
3658
+ * Swagger: GET /api/core/content-types
3659
+ */
3660
+ async getContentTypes(params = {}, options = {}) {
3661
+ try {
3662
+ return await this.http.get(
3663
+ "/api/core/content-types",
3664
+ {
3665
+ params: this.normalizeParams(params),
3666
+ queryArrayFormat: options.queryArrayFormat,
3667
+ headers: {
3668
+ ...this.managingHeaders,
3669
+ ...options.headers
3670
+ },
3671
+ cache: options.cache,
3672
+ signal: options.signal,
3673
+ next: {
3674
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3675
+ }
3676
+ }
3677
+ );
3678
+ } catch {
3679
+ return { hasError: true, result: [] };
3680
+ }
3681
+ }
3682
+ /**
3683
+ * Retrieves list of current client's content types.
3684
+ * Swagger: GET /api/core/content-types/my
3685
+ */
3686
+ async getMyContentTypes(params = {}, options = {}) {
3687
+ try {
3688
+ return await this.http.get(
3689
+ "/api/core/content-types/my",
3690
+ {
3691
+ params: this.normalizeParams(params),
3692
+ queryArrayFormat: options.queryArrayFormat,
3693
+ headers: {
3694
+ ...this.managingHeaders,
3695
+ ...options.headers
3696
+ },
3697
+ cache: options.cache,
3698
+ signal: options.signal,
3699
+ next: {
3700
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3701
+ }
3702
+ }
3703
+ );
3704
+ } catch {
3705
+ return { hasError: true, result: [] };
3706
+ }
3707
+ }
3708
+ /**
3709
+ * Retrieves a single content type by unique ID.
3710
+ * Swagger: GET /api/core/content-types/{contentTypeUniqueId}
3711
+ */
3712
+ async getContentType(contentTypeUniqueId, params = {}, options = {}) {
3713
+ try {
3714
+ return await this.http.get(
3715
+ `/api/core/content-types/${contentTypeUniqueId}`,
3716
+ {
3717
+ params: this.normalizeParams(params),
3718
+ queryArrayFormat: options.queryArrayFormat,
3719
+ headers: {
3720
+ ...this.managingHeaders,
3721
+ ...options.headers
3722
+ },
3723
+ cache: options.cache,
3724
+ signal: options.signal,
3725
+ next: {
3726
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3727
+ }
3728
+ }
3729
+ );
3730
+ } catch {
3731
+ return { hasError: true, result: {} };
3732
+ }
3733
+ }
3734
+ /**
3735
+ * Retrieves an enabled content type by unique ID.
3736
+ * Swagger: GET /api/core/content-types/{contentTypeUniqueId}/enable
3737
+ */
3738
+ async getEnabledContentType(contentTypeUniqueId, params = {}, options = {}) {
3739
+ try {
3740
+ return await this.http.get(
3741
+ `/api/core/content-types/${contentTypeUniqueId}/enable`,
3742
+ {
3743
+ params: this.normalizeParams(params),
3744
+ queryArrayFormat: options.queryArrayFormat,
3745
+ headers: {
3746
+ ...this.managingHeaders,
3747
+ ...options.headers
3748
+ },
3749
+ cache: options.cache,
3750
+ signal: options.signal,
3751
+ next: {
3752
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3753
+ }
3754
+ }
3755
+ );
3756
+ } catch {
3757
+ return { hasError: true, result: {} };
3758
+ }
3759
+ }
3760
+ /**
3761
+ * Retrieves all fields (self and related) of a content type.
3762
+ * Swagger: GET /api/core/content-types/{contentTypeUniqueId}/fields
3763
+ */
3764
+ async getContentTypeFields(contentTypeUniqueId, options = {}) {
3765
+ try {
3766
+ return await this.http.get(
3767
+ `/api/core/content-types/${contentTypeUniqueId}/fields`,
3768
+ {
3769
+ headers: {
3770
+ ...this.managingHeaders,
3771
+ ...options.headers
3772
+ },
3773
+ cache: options.cache,
3774
+ signal: options.signal,
3775
+ next: {
3776
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3777
+ }
3778
+ }
3779
+ );
3780
+ } catch {
3781
+ return { hasError: true, result: [] };
3782
+ }
3783
+ }
3784
+ /**
3785
+ * Retrieves brief list of content types.
3786
+ * Swagger: GET /api/core/content-types/brief
3787
+ */
3788
+ async getBrief(params = {}, options = {}) {
3789
+ try {
3790
+ return await this.http.get(
3791
+ "/api/core/content-types/brief",
3792
+ {
3793
+ params,
3794
+ headers: {
3795
+ ...this.managingHeaders,
3796
+ ...options.headers
3797
+ },
3798
+ cache: options.cache,
3799
+ signal: options.signal,
3800
+ next: {
3801
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3802
+ }
3803
+ }
3804
+ );
3805
+ } catch {
3806
+ return { hasError: true, result: [] };
3807
+ }
3808
+ }
3809
+ /**
3810
+ * Creates a new content type.
3811
+ * Swagger: POST /api/core/content-types
3812
+ */
3813
+ async createContentType(params, options = {}) {
3814
+ return this.http.post(
3815
+ "/api/core/content-types",
3816
+ {},
3817
+ {
3818
+ params: this.normalizeParams(params),
3819
+ queryArrayFormat: options.queryArrayFormat,
3820
+ headers: {
3821
+ ...this.managingHeaders,
3822
+ ...options.headers
3823
+ }
3824
+ }
3825
+ );
3826
+ }
3827
+ /**
3828
+ * Updates an existing content type.
3829
+ * Swagger: POST /api/core/content-types/{unique_id}
3830
+ */
3831
+ async updateContentType(uniqueId, params, options = {}) {
3832
+ return this.http.post(
3833
+ `/api/core/content-types/${uniqueId}`,
3834
+ {},
3835
+ {
3836
+ params: this.normalizeParams(params),
3837
+ queryArrayFormat: options.queryArrayFormat,
3838
+ headers: {
3839
+ ...this.managingHeaders,
3840
+ ...options.headers
3841
+ }
3842
+ }
3843
+ );
3844
+ }
3845
+ /**
3846
+ * Updates current client's content type.
3847
+ * Swagger: POST /api/core/content-types/my/{unique_id}
3848
+ */
3849
+ async updateMyContentType(uniqueId, params, options = {}) {
3850
+ return this.http.post(
3851
+ `/api/core/content-types/my/${uniqueId}`,
3852
+ {},
3853
+ {
3854
+ params: this.normalizeParams(params),
3855
+ queryArrayFormat: options.queryArrayFormat,
3856
+ headers: {
3857
+ ...this.managingHeaders,
3858
+ ...options.headers
3859
+ }
3860
+ }
3861
+ );
3862
+ }
3863
+ // =========================================================================
3864
+ // 3. ARCHIVE / UNARCHIVE (Swagger: tag=content-type)
3865
+ // =========================================================================
3866
+ /**
3867
+ * Retrieves all archived content types.
3868
+ * Swagger: GET /api/core/content-types/archive
3869
+ */
3870
+ async getArchivedContentTypes(params = {}, options = {}) {
3871
+ try {
3872
+ return await this.http.get(
3873
+ "/api/core/content-types/archive",
3874
+ {
3875
+ params: this.normalizeParams(params),
3876
+ queryArrayFormat: options.queryArrayFormat,
3877
+ headers: {
3878
+ ...this.managingHeaders,
3879
+ ...options.headers
3880
+ },
3881
+ cache: options.cache,
3882
+ signal: options.signal,
3883
+ next: {
3884
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3885
+ }
3886
+ }
3887
+ );
3888
+ } catch {
3889
+ return { hasError: true, result: [] };
3890
+ }
3891
+ }
3892
+ /**
3893
+ * Archives content types by postIds.
3894
+ * Swagger: POST /api/core/content-types/archive
3895
+ */
3896
+ async archiveContentTypes(postIdsOrParams, options = {}) {
3897
+ const rawParams = Array.isArray(postIdsOrParams) ? { postIds: postIdsOrParams } : postIdsOrParams;
3898
+ return this.http.post(
3899
+ "/api/core/content-types/archive",
3900
+ {},
3901
+ {
3902
+ params: this.normalizeParams(rawParams),
3903
+ queryArrayFormat: options.queryArrayFormat,
3904
+ headers: {
3905
+ ...this.managingHeaders,
3906
+ ...options.headers
3907
+ }
3908
+ }
3909
+ );
3910
+ }
3911
+ /**
3912
+ * Unarchives content types by postIds.
3913
+ * Swagger: POST /api/core/content-types/unarchive
3914
+ */
3915
+ async unarchiveContentTypes(postIdsOrParams, options = {}) {
3916
+ const rawParams = Array.isArray(postIdsOrParams) ? { postIds: postIdsOrParams } : postIdsOrParams;
3917
+ return this.http.post(
3918
+ "/api/core/content-types/unarchive",
3919
+ {},
3920
+ {
3921
+ params: this.normalizeParams(rawParams),
3922
+ queryArrayFormat: options.queryArrayFormat,
3923
+ headers: {
3924
+ ...this.managingHeaders,
3925
+ ...options.headers
3926
+ }
3927
+ }
3928
+ );
3929
+ }
3930
+ // =========================================================================
3931
+ // 4. MULTI-INVOICE PERCENT & SHARE (Swagger: tag=content-type)
3932
+ // =========================================================================
3933
+ /**
3934
+ * Retrieves list of multi invoice shares for a content type.
3935
+ * Swagger: GET /api/core/content-types/{contentTypeUniqueId}/multi-invoice-share
3936
+ */
3937
+ async getMultiInvoiceShares(contentTypeUniqueId, params = {}, options = {}) {
3938
+ try {
3939
+ return await this.http.get(
3940
+ `/api/core/content-types/${contentTypeUniqueId}/multi-invoice-share`,
3941
+ {
3942
+ params: this.normalizeParams(params),
3943
+ queryArrayFormat: options.queryArrayFormat,
3944
+ headers: {
3945
+ ...this.managingHeaders,
3946
+ ...options.headers
3947
+ },
3948
+ cache: options.cache,
3949
+ signal: options.signal,
3950
+ next: {
3951
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
3952
+ }
3953
+ }
3954
+ );
3955
+ } catch {
3956
+ return { hasError: true, result: [] };
3957
+ }
3958
+ }
3959
+ /**
3960
+ * Adds multi invoice percent configuration.
3961
+ * Swagger: POST /api/core/content-types/{contentTypeUniqueId}/multi-invoice-percent
3962
+ */
3963
+ async addMultiInvoicePercent(contentTypeUniqueId, params, options = {}) {
3964
+ return this.http.post(
3965
+ `/api/core/content-types/${contentTypeUniqueId}/multi-invoice-percent`,
3966
+ {},
3967
+ {
3968
+ params: this.normalizeParams(params),
3969
+ queryArrayFormat: options.queryArrayFormat,
3970
+ headers: {
3971
+ ...this.managingHeaders,
3972
+ ...options.headers
3973
+ }
3974
+ }
3975
+ );
3976
+ }
3977
+ /**
3978
+ * Updates multi invoice percent configuration.
3979
+ * Swagger: PUT /api/core/content-types/{contentTypeUniqueId}/multi-invoice-percent
3980
+ */
3981
+ async updateMultiInvoicePercent(contentTypeUniqueId, params, options = {}) {
3982
+ return this.http.put(
3983
+ `/api/core/content-types/${contentTypeUniqueId}/multi-invoice-percent`,
3984
+ {},
3985
+ {
3986
+ params: this.normalizeParams(params),
3987
+ queryArrayFormat: options.queryArrayFormat,
3988
+ headers: {
3989
+ ...this.managingHeaders,
3990
+ ...options.headers
3991
+ }
3992
+ }
3993
+ );
3994
+ }
3995
+ /**
3996
+ * Deletes multi invoice percent configuration.
3997
+ * Swagger: DELETE /api/core/content-types/{contentTypeUniqueId}/multi-invoice-percent
3998
+ */
3999
+ async deleteMultiInvoicePercent(contentTypeUniqueId, params = {}, options = {}) {
4000
+ return this.http.delete(
4001
+ `/api/core/content-types/${contentTypeUniqueId}/multi-invoice-percent`,
4002
+ {
4003
+ params,
4004
+ headers: {
4005
+ ...this.managingHeaders,
4006
+ ...options.headers
4007
+ }
4008
+ }
4009
+ );
4010
+ }
4011
+ // =========================================================================
4012
+ // 5. RELATED CONTENT TYPES (Swagger: tag=related-content-type)
4013
+ // =========================================================================
4014
+ /**
4015
+ * Retrieves related content type fields.
4016
+ * Swagger: GET /api/core/related-content-types/{contentTypeUniqueId}
4017
+ */
4018
+ async getRelatedContentTypes(contentTypeUniqueId, options = {}) {
4019
+ try {
4020
+ return await this.http.get(
4021
+ `/api/core/related-content-types/${contentTypeUniqueId}`,
4022
+ {
4023
+ headers: {
4024
+ ...this.managingHeaders,
4025
+ ...options.headers
4026
+ },
4027
+ cache: options.cache,
4028
+ signal: options.signal,
4029
+ next: {
4030
+ revalidate: options.revalidate !== void 0 ? options.revalidate === false ? 0 : options.revalidate : this.revalidate
4031
+ }
4032
+ }
4033
+ );
4034
+ } catch {
4035
+ return { hasError: true, result: [] };
4036
+ }
4037
+ }
4038
+ /**
4039
+ * Adds new related-content-type fields.
4040
+ * Swagger: POST /api/core/related-content-types/{contentTypeUniqueId}
4041
+ */
4042
+ async addRelatedContentTypes(contentTypeUniqueId, body, options = {}) {
4043
+ const payload = Array.isArray(body) ? { fields: body } : body;
4044
+ return this.http.post(
4045
+ `/api/core/related-content-types/${contentTypeUniqueId}`,
4046
+ payload,
4047
+ {
4048
+ headers: {
4049
+ ...this.managingHeaders,
4050
+ ...options.headers
4051
+ }
4052
+ }
4053
+ );
4054
+ }
4055
+ /**
4056
+ * Deletes a related-content-type field.
4057
+ * Swagger: POST /api/core/related-content-types/delete/{contentTypeUniqueId}
4058
+ */
4059
+ async deleteRelatedContentType(contentTypeUniqueId, codeOrParams, options = {}) {
4060
+ const params = typeof codeOrParams === "string" ? { code: codeOrParams } : codeOrParams;
4061
+ return this.http.post(
4062
+ `/api/core/related-content-types/delete/${contentTypeUniqueId}`,
4063
+ {},
4064
+ {
4065
+ params,
4066
+ headers: {
4067
+ ...this.managingHeaders,
4068
+ ...options.headers
4069
+ }
4070
+ }
4071
+ );
4072
+ }
4073
+ /**
4074
+ * Updates related-content-type fields.
4075
+ * Swagger: POST /api/core/related-content-types/update/{contentTypeUniqueId}
4076
+ */
4077
+ async updateRelatedContentTypes(contentTypeUniqueId, body, options = {}) {
4078
+ const payload = Array.isArray(body) ? { fields: body } : body;
4079
+ return this.http.post(
4080
+ `/api/core/related-content-types/update/${contentTypeUniqueId}`,
4081
+ payload,
4082
+ {
4083
+ headers: {
4084
+ ...this.managingHeaders,
4085
+ ...options.headers
4086
+ }
4087
+ }
4088
+ );
4089
+ }
4090
+ };
3520
4091
 
3521
4092
  // src/services/cms/index.ts
3522
4093
  var CmsService = class {
@@ -3535,6 +4106,11 @@ var CmsService = class {
3535
4106
  * Swagger: tag=tags
3536
4107
  */
3537
4108
  tags;
4109
+ /**
4110
+ * Dedicated CMS Content Type & Related Content Type sub-service.
4111
+ * Swagger: tag=content-type, tag=related-content-type
4112
+ */
4113
+ contentTypes;
3538
4114
  constructor(options) {
3539
4115
  this.clientId = options.clientId || "";
3540
4116
  this.apiToken = options.apiToken || "";
@@ -3558,6 +4134,12 @@ var CmsService = class {
3558
4134
  apiToken: this.apiToken,
3559
4135
  revalidate: this.revalidate
3560
4136
  });
4137
+ this.contentTypes = new CmsContentTypeService({
4138
+ http: this.http,
4139
+ clientId: this.clientId,
4140
+ apiToken: this.apiToken,
4141
+ revalidate: this.revalidate
4142
+ });
3561
4143
  }
3562
4144
  normalizeParams(params) {
3563
4145
  const arrayFields = [
@@ -4078,13 +4660,7 @@ var CmsService = class {
4078
4660
  * Swagger: GET /api/core/content-types/{contentTypeUniqueId}
4079
4661
  */
4080
4662
  async getContentTypeDetail(contentTypeUniqueId) {
4081
- try {
4082
- return await this.http.get(`/api/core/content-types/${contentTypeUniqueId}`, {
4083
- headers: this.managingHeaders
4084
- });
4085
- } catch {
4086
- return {};
4087
- }
4663
+ return this.contentTypes.getContentType(contentTypeUniqueId);
4088
4664
  }
4089
4665
  /**
4090
4666
  * Performs advanced AI timeline search on content.
@@ -4287,6 +4863,8 @@ var PodSdk = class {
4287
4863
  cms;
4288
4864
  product;
4289
4865
  tags;
4866
+ contentType;
4867
+ contentTypes;
4290
4868
  iums;
4291
4869
  urls;
4292
4870
  constructor(config = {}) {
@@ -4348,6 +4926,8 @@ var PodSdk = class {
4348
4926
  });
4349
4927
  this.product = this.cms.products;
4350
4928
  this.tags = this.cms.tags;
4929
+ this.contentType = this.cms.contentTypes;
4930
+ this.contentTypes = this.cms.contentTypes;
4351
4931
  this.iums = new IumsService({
4352
4932
  baseUrl: urls.iums,
4353
4933
  clientId,
@@ -4505,7 +5085,6 @@ var POD_OPENAPI_ENDPOINTS = [
4505
5085
  e("CMS Content", "get", "/api/core/contents/{contentTypeUniqueId}/comments/{entityId}", "cmsGetComments", "List content comments", { query: ["offset", "size"], security: "cmsPublic" }),
4506
5086
  e("CMS Content", "get", "/api/core/contents/{contentUniqueId}/like/{entityId}", "cmsGetLikes", "List content likes", { query: ["offset", "size"], security: "cmsPublic" }),
4507
5087
  e("CMS Content", "get", "/api/core/contents/{contentUniqueId}/dislike/{entityId}", "cmsGetDislikes", "List content dislikes", { query: ["offset", "size"], security: "cmsPublic" }),
4508
- e("CMS Content", "get", "/api/core/content-types/{contentTypeUniqueId}", "cmsGetContentTypeDetail", "Get content type details", { security: "cmsManage" }),
4509
5088
  e("CMS Content", "get", "/api/core/contents/ai/timeline-search/enable", "cmsTimelineSearch", "Run advanced content timeline search", { query: ["advance", "newVersion", "offset", "size"], security: "cmsPublic" }),
4510
5089
  // CMS products
4511
5090
  e("CMS Products", "get", "/api/core/products/enable", "cmsGetProducts", "List enabled products", { query: ["offset", "size", "showDetail", "productTypeUniqueId", "tags"], security: "cmsPublic" }),
@@ -4554,6 +5133,30 @@ var POD_OPENAPI_ENDPOINTS = [
4554
5133
  e("CMS Tags", "get", "/api/core/tags/{categoryId}/tree/parent/{id}/enable", "cmsGetTagTreeAncestors", "Get enabled tag ancestors", { query: ["includeCurrent"], security: "cmsPublic" }),
4555
5134
  e("CMS Tags", "get", "/api/core/tags/{categoryId}/tree/parent/{id}/manage", "cmsGetManageTagTreeAncestors", "Get tag ancestors for management", { query: ["includeCurrent"], security: "cmsManage" }),
4556
5135
  e("CMS Tags", "put", "/api/core/tags/{categoryId}/tree/code/{id}", "cmsUpdateTagTreeCode", "Update a tag tree code", { body: "json", bodyRequired: true, security: "cmsManage" }),
5136
+ // CMS Content Types
5137
+ e("CMS Content Types", "get", "/api/core/content-types/templates", "cmsGetContentTypeTemplates", "List content type attribute templates", { query: ["offset", "size", "guildCode", "attributeTemplateCode", "attributeTemplateName", "firstId", "lastId"], security: "cmsManage" }),
5138
+ e("CMS Content Types", "get", "/api/core/content-types/template-igs", "cmsGetTemplateIgs", "List template IG classifications", { query: ["baseNodeId", "igCode", "query", "showLatestVersion"], security: "cmsPublic" }),
5139
+ e("CMS Content Types", "get", "/api/core/content-types/template-categories", "cmsGetTemplateCategories", "List template category nodes", { query: ["baseNodeId", "maxLevel", "includeBaseNode"], security: "cmsPublic" }),
5140
+ e("CMS Content Types", "get", "/api/core/content-types", "cmsGetContentTypes", "List all content types", { query: ["offset", "size", "type", "name", "uniqueId", "ig", "isCustom", "excludeItems", "permissionType"], security: "cmsManage" }),
5141
+ e("CMS Content Types", "get", "/api/core/content-types/my", "cmsGetMyContentTypes", "List current client content types", { query: ["offset", "size", "type", "name", "uniqueId", "ig", "isCustom", "permissionType"], security: "cmsManage" }),
5142
+ e("CMS Content Types", "get", "/api/core/content-types/{contentTypeUniqueId}", "cmsGetContentType", "Get content type details by unique ID", { query: ["excludeItems"], security: "cmsManage", sdkMethods: ["getContentType", "getContentTypeDetail"] }),
5143
+ e("CMS Content Types", "get", "/api/core/content-types/{contentTypeUniqueId}/enable", "cmsGetEnabledContentType", "Get enabled content type details", { query: ["excludeItems"], security: "cmsManage" }),
5144
+ e("CMS Content Types", "get", "/api/core/content-types/{contentTypeUniqueId}/fields", "cmsGetContentTypeFields", "Get all fields of a content type", { security: "cmsManage" }),
5145
+ e("CMS Content Types", "get", "/api/core/content-types/brief", "cmsGetBriefContentTypes", "List brief content types", { query: ["search"], security: "cmsManage" }),
5146
+ e("CMS Content Types", "post", "/api/core/content-types", "cmsCreateContentType", "Create a new content type", { query: ["name!", "code!", "type!", "description!", "ig", "tagTreeCategoryId", "tagTreeCategoryIds", "tags", "tagTrees", "webhookServices", "webhookUrls", "webhookDurations", "webhookEnables", "webhookHeaders", "ownerId", "allFields", "excludeFields", "requiredTag", "requiredTagTree", "icon", "image", "permissionType", "isPublic", "isGuest", "uploadFolder", "activityInfo", "showFileMetadataDetail", "folderForContentFiles", "isTokenIssuedByClient", "financialLevel"], security: "cmsManage" }),
5147
+ e("CMS Content Types", "post", "/api/core/content-types/{unique_id}", "cmsUpdateContentType", "Update a content type", { query: ["name!", "description!", "code", "ig", "tagTreeCategoryId", "tagTreeCategoryIds", "tags", "tagTrees", "webhookServices", "webhookUrls", "webhookDurations", "webhookEnables", "webhookHeaders", "ownerId", "requiredTag", "requiredTagTree", "icon", "image", "permissionType", "isPublic", "isGuest", "uploadFolder", "activityInfo", "showFileMetadataDetail", "folderForContentFiles", "isTokenIssuedByClient", "financialLevel"], security: "cmsManage" }),
5148
+ e("CMS Content Types", "post", "/api/core/content-types/my/{unique_id}", "cmsUpdateMyContentType", "Update current client content type", { query: ["name!", "description!", "code", "ig", "tagTreeCategoryId", "tagTreeCategoryIds", "tags", "tagTrees", "webhookServices", "webhookUrls", "webhookDurations", "webhookEnables", "webhookHeaders", "requiredTag", "requiredTagTree", "icon", "image", "permissionType", "isPublic", "isGuest", "activityInfo", "showFileMetadataDetail", "folderForContentFiles", "isTokenIssuedByClient", "financialLevel"], security: "cmsManage" }),
5149
+ e("CMS Content Types", "get", "/api/core/content-types/archive", "cmsGetArchivedContentTypes", "List archived content types", { query: ["offset", "size", "type", "uniqueId", "postIds", "permissionType"], security: "cmsManage" }),
5150
+ e("CMS Content Types", "post", "/api/core/content-types/archive", "cmsArchiveContentTypes", "Archive content types by postIds", { query: ["postIds!"], security: "cmsManage" }),
5151
+ e("CMS Content Types", "post", "/api/core/content-types/unarchive", "cmsUnarchiveContentTypes", "Unarchive content types by postIds", { query: ["postIds!"], security: "cmsManage" }),
5152
+ e("CMS Content Types", "get", "/api/core/content-types/{contentTypeUniqueId}/multi-invoice-share", "cmsGetMultiInvoiceShares", "List multi invoice percentage shares", { query: ["excludeItems"], security: "cmsManage" }),
5153
+ e("CMS Content Types", "post", "/api/core/content-types/{contentTypeUniqueId}/multi-invoice-percent", "cmsAddMultiInvoicePercent", "Add multi invoice percent configuration", { query: ["main!", "provider!", "seller!", "enable", "mainShareType", "providerShareType", "sellerShareType", "dealerBusinessId", "dealerBusinessShareType", "dealerBusinessShare", "clientMetadata", "uniqueId", "businessLevel"], security: "cmsManage" }),
5154
+ e("CMS Content Types", "put", "/api/core/content-types/{contentTypeUniqueId}/multi-invoice-percent", "cmsUpdateMultiInvoicePercent", "Update multi invoice percent configuration", { query: ["main!", "provider!", "seller!", "enable", "mainShareType", "providerShareType", "sellerShareType", "dealerBusinessId", "dealerBusinessShareType", "dealerBusinessShare", "clientMetadata", "uniqueId", "businessLevel"], security: "cmsManage" }),
5155
+ e("CMS Content Types", "delete", "/api/core/content-types/{contentTypeUniqueId}/multi-invoice-percent", "cmsDeleteMultiInvoicePercent", "Delete multi invoice percent configuration", { query: ["uniqueId"], security: "cmsManage" }),
5156
+ e("CMS Content Types", "get", "/api/core/related-content-types/{contentTypeUniqueId}", "cmsGetRelatedContentTypes", "Get related content type fields", { security: "cmsManage" }),
5157
+ e("CMS Content Types", "post", "/api/core/related-content-types/{contentTypeUniqueId}", "cmsAddRelatedContentTypes", "Add related content type fields", { body: "json", bodyRequired: true, security: "cmsManage" }),
5158
+ e("CMS Content Types", "post", "/api/core/related-content-types/delete/{contentTypeUniqueId}", "cmsDeleteRelatedContentType", "Delete a related content type field", { query: ["code!"], security: "cmsManage" }),
5159
+ e("CMS Content Types", "post", "/api/core/related-content-types/update/{contentTypeUniqueId}", "cmsUpdateRelatedContentTypes", "Update related content type fields", { body: "json", bodyRequired: true, security: "cmsManage" }),
4557
5160
  // Podspace upload, download and file operations
4558
5161
  e("Podspace Files", "post", "/api/files", "podspaceUploadFile", "Upload a file", { query: ["path", "isPublic", "fileName", "parentHash"], body: "multipart", bodyRequired: true, security: "bearer" }),
4559
5162
  e("Podspace Files", "post", "/api/files/multiple", "podspaceUploadMultipleFiles", "Upload multiple files", { query: ["path", "isPublic", "parentHash"], body: "multipart", bodyRequired: true, security: "bearer" }),
@@ -4851,6 +5454,6 @@ function createPodOpenApiDocument(options = {}) {
4851
5454
  var POD_OPENAPI_DOCUMENT = createPodOpenApiDocument();
4852
5455
  var podSwaggerDocument = POD_OPENAPI_DOCUMENT;
4853
5456
 
4854
- export { CaptchaService, CmsDataFormatter, CmsProductService, CmsService, CmsTagService, CustomPostCrudService, CustomPostService, DEFAULT_POD_URLS, IumsService, NotificationService, POD_OPENAPI_DOCUMENT, POD_OPENAPI_ENDPOINTS, PodFormService, PodSdk, PodspaceBookmarksService, PodspaceFilesService, PodspaceFoldersService, PodspaceLinksService, PodspaceMeService, PodspaceMetadataService, PodspaceResumableService, PodspaceService, PodspaceSharesService, PodspaceTagsService, PodspaceTrashService, PodspaceUploadDownloadService, PodspaceUserGroupsService, PodspaceWorkspacesService, SANDBOX_POD_URLS, SocialService, SsoService, createPodOpenApiDocument, createPodSdk, client_default as default, encodeBase64, generatePodSignatureHeader, podSwaggerDocument, resolvePodUrls };
5457
+ export { CaptchaService, CmsContentTypeService, CmsDataFormatter, CmsProductService, CmsService, CmsTagService, CustomPostCrudService, CustomPostService, DEFAULT_POD_URLS, IumsService, NotificationService, POD_OPENAPI_DOCUMENT, POD_OPENAPI_ENDPOINTS, PodFormService, PodSdk, PodspaceBookmarksService, PodspaceFilesService, PodspaceFoldersService, PodspaceLinksService, PodspaceMeService, PodspaceMetadataService, PodspaceResumableService, PodspaceService, PodspaceSharesService, PodspaceTagsService, PodspaceTrashService, PodspaceUploadDownloadService, PodspaceUserGroupsService, PodspaceWorkspacesService, SANDBOX_POD_URLS, SocialService, SsoService, createPodOpenApiDocument, createPodSdk, client_default as default, encodeBase64, generatePodSignatureHeader, podSwaggerDocument, resolvePodUrls };
4855
5458
  //# sourceMappingURL=index.mjs.map
4856
5459
  //# sourceMappingURL=index.mjs.map