@rezamirzapour/pod-sdk 1.0.3 → 1.0.4
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/README.md +58 -1
- package/dist/index.d.mts +258 -9
- package/dist/index.d.ts +258 -9
- package/dist/index.js +409 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +409 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
| :--- | :--- | :--- | :--- |
|
|
29
29
|
| **CMS Content** | `sdk.cms` | `content` | Fetch, publish, edit, draft, archive, and categorize CMS articles with generic metadata `<T, P>`. |
|
|
30
30
|
| **CMS Product** | `sdk.product` / `sdk.cms.products` | `product` | Product catalog, price & discount range filters, barcode lookup, batch publish, and AI search. |
|
|
31
|
+
| **CMS Tags & Tree** | `sdk.tags` / `sdk.cms.tags` | `tags` | Manage tag categories and hierarchical tag trees (nodes, parent updates, ancestors, codes). |
|
|
31
32
|
| **CustomPost** | `sdk.customPost` | - | Search timeline by metadata `<T>`, custom post CRUD, and high-level typed repository. |
|
|
32
33
|
| **SSO** | `sdk.sso` | - | OAuth2 handshake, OTP dispatch with digital RSA signature, OTP verify, token generation, and user profile. |
|
|
33
34
|
| **Podspace** | `sdk.podspace` | - | File upload (FormData) and public/private download URL resolution. |
|
|
@@ -485,7 +486,63 @@ export class ProductsApi {
|
|
|
485
486
|
|
|
486
487
|
---
|
|
487
488
|
|
|
488
|
-
## Deep Dive 3:
|
|
489
|
+
## Deep Dive 3: CMS Tags & Tag Categories (RAD API Swagger: tag=tags)
|
|
490
|
+
|
|
491
|
+
Manage tag categories and multi-level hierarchical tag trees ([Swagger documentation](https://rad-sandbox.sandpod.ir/api/documentation?tag=tags)).
|
|
492
|
+
|
|
493
|
+
### Accessing Tag Services
|
|
494
|
+
|
|
495
|
+
Access via `podSdk.tags` or `podSdk.cms.tags`:
|
|
496
|
+
|
|
497
|
+
```typescript
|
|
498
|
+
// Category Management (with Access-Token)
|
|
499
|
+
const categories = await podSdk.tags.getTagCategories({ size: 20 });
|
|
500
|
+
await podSdk.tags.createTagCategory({ name: 'Technology', desc: 'Tech articles' });
|
|
501
|
+
await podSdk.tags.publishTagCategory(categoryId);
|
|
502
|
+
|
|
503
|
+
// Public Hierarchical Tag Tree (without token, defaults to 'root')
|
|
504
|
+
const rootTree = await podSdk.tags.getTagTree('root', { levelCount: 3 });
|
|
505
|
+
|
|
506
|
+
// Backward-compatible shortcut
|
|
507
|
+
const categoriesTree = await podSdk.cms.getCategories({ levelCount: 3 });
|
|
508
|
+
|
|
509
|
+
// Tree Node Management (create, update parent, code, ancestors)
|
|
510
|
+
await podSdk.tags.createTagTreeItem('technology', {
|
|
511
|
+
name: 'Next.js',
|
|
512
|
+
code: 'NEXTJS',
|
|
513
|
+
parentId: 10,
|
|
514
|
+
});
|
|
515
|
+
await podSdk.tags.updateTagTreeParent('technology', nodeId, newParentId);
|
|
516
|
+
await podSdk.tags.updateTagTreeCode('technology', nodeId, 'NEW_CODE');
|
|
517
|
+
const ancestors = await podSdk.tags.getTagTreeAncestors('technology', nodeId);
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### Tag Methods Reference (`podSdk.tags` / `podSdk.cms.tags`)
|
|
521
|
+
|
|
522
|
+
| Method | HTTP | Path | Description |
|
|
523
|
+
| :--- | :--- | :--- | :--- |
|
|
524
|
+
| `getTagCategories(params)` | `GET` | `/api/core/tags/category` | List tag categories (manage). |
|
|
525
|
+
| `createTagCategory(params)` | `POST` | `/api/core/tags/category` | Create new tag category. |
|
|
526
|
+
| `getTagCategory(id)` | `GET` | `/api/core/tags/category/{id}` | Show single tag category. |
|
|
527
|
+
| `updateTagCategory(id, params)` | `PUT` | `/api/core/tags/category/{id}` | Update tag category. |
|
|
528
|
+
| `publishTagCategory(id)` | `PUT` | `/api/core/tags/category/{id}/publish` | Publish tag category. |
|
|
529
|
+
| `unpublishTagCategory(id)` | `PUT` | `/api/core/tags/category/{id}/unpublish` | Unpublish tag category. |
|
|
530
|
+
| `getTagTree(categoryId, params)` | `GET` | `/api/core/tags/{categoryId}/tree/enable` | Get enabled tag tree (public). |
|
|
531
|
+
| `getManageTagTree(categoryId, params)` | `GET` | `/api/core/tags/{categoryId}/tree/manage` | Get tag tree (manage with token). |
|
|
532
|
+
| `createTagTreeItem(categoryId, params)` | `POST` | `/api/core/tags/{categoryId}/tree` | Create tag tree node for category. |
|
|
533
|
+
| `getTagTreeItem(categoryId, id)` | `GET` | `/api/core/tags/{categoryId}/tree/{id}/enable` | Show enabled tag tree node. |
|
|
534
|
+
| `getManageTagTreeItem(categoryId, id)` | `GET` | `/api/core/tags/{categoryId}/tree/{id}/manage` | Show tag tree node (manage). |
|
|
535
|
+
| `updateTagTreeItem(categoryId, id, params)` | `PUT` | `/api/core/tags/{categoryId}/tree/{id}` | Update tag tree node. |
|
|
536
|
+
| `publishTagTreeItem(categoryId, id)` | `PUT` | `/api/core/tags/{categoryId}/tree/publish/{id}` | Publish tag tree node. |
|
|
537
|
+
| `unpublishTagTreeItem(categoryId, id)` | `PUT` | `/api/core/tags/{categoryId}/tree/unpublish/{id}` | Unpublish tag tree node. |
|
|
538
|
+
| `updateTagTreeParent(categoryId, id, parentId)` | `PUT` | `/api/core/tags/{categoryId}/tree/parent/{id}` | Update parent of tag tree node. |
|
|
539
|
+
| `getTagTreeAncestors(categoryId, id, params)` | `GET` | `/api/core/tags/{categoryId}/tree/parent/{id}/enable` | Get node ancestors (public). |
|
|
540
|
+
| `getManageTagTreeAncestors(categoryId, id, params)`| `GET` | `/api/core/tags/{categoryId}/tree/parent/{id}/manage` | Get node ancestors (manage). |
|
|
541
|
+
| `updateTagTreeCode(categoryId, id, code)` | `PUT` | `/api/core/tags/{categoryId}/tree/code/{id}` | Update code of tag tree node. |
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
## Deep Dive 4: CustomPost & Generic Typed Repositories
|
|
489
546
|
|
|
490
547
|
`CustomPost` allows persisting arbitrary JSON schemas on the POD Platform. `@rezamirzapour/pod-sdk` provides two complementary approaches:
|
|
491
548
|
|
package/dist/index.d.mts
CHANGED
|
@@ -637,21 +637,50 @@ type MetaContent = {
|
|
|
637
637
|
value: any;
|
|
638
638
|
type: string;
|
|
639
639
|
});
|
|
640
|
+
interface TagTreeMetadata {
|
|
641
|
+
icon?: string;
|
|
642
|
+
related_contents?: {
|
|
643
|
+
id: number;
|
|
644
|
+
}[];
|
|
645
|
+
longDescription?: string;
|
|
646
|
+
description?: string;
|
|
647
|
+
content?: string;
|
|
648
|
+
link?: string;
|
|
649
|
+
target?: string;
|
|
650
|
+
preview?: string;
|
|
651
|
+
displayName?: string;
|
|
652
|
+
englishName?: string;
|
|
653
|
+
created?: any[];
|
|
654
|
+
updated?: any[];
|
|
655
|
+
published?: any[];
|
|
656
|
+
unpublished?: any[];
|
|
657
|
+
parentModifier?: any[];
|
|
658
|
+
codeModifier?: any[];
|
|
659
|
+
enabled?: any[];
|
|
660
|
+
disabled?: any[];
|
|
661
|
+
[key: string]: any;
|
|
662
|
+
}
|
|
640
663
|
interface TagtreesType {
|
|
641
664
|
id: number;
|
|
642
665
|
name: string;
|
|
643
666
|
code: string;
|
|
644
667
|
categoryName?: string;
|
|
645
668
|
siblingOrder?: number;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
669
|
+
level?: number;
|
|
670
|
+
parent?: number;
|
|
671
|
+
orderInSiblings?: number;
|
|
672
|
+
enable?: boolean;
|
|
673
|
+
creationDate?: number;
|
|
674
|
+
category?: {
|
|
675
|
+
id: number;
|
|
676
|
+
name: string;
|
|
677
|
+
businessSoftSrv?: any;
|
|
678
|
+
creationDate?: number;
|
|
679
|
+
enable?: boolean;
|
|
653
680
|
[key: string]: any;
|
|
654
681
|
};
|
|
682
|
+
metadata?: TagTreeMetadata;
|
|
683
|
+
[key: string]: any;
|
|
655
684
|
}
|
|
656
685
|
interface CmsMetadata {
|
|
657
686
|
content_type_id?: string;
|
|
@@ -1032,6 +1061,111 @@ interface CmsRequestOptions<TSubject = any> {
|
|
|
1032
1061
|
headers?: HeadersInit;
|
|
1033
1062
|
signal?: AbortSignal;
|
|
1034
1063
|
}
|
|
1064
|
+
interface TagCategoryItem {
|
|
1065
|
+
id: number;
|
|
1066
|
+
name: string;
|
|
1067
|
+
businessSoftSrv?: any;
|
|
1068
|
+
creationDate?: string;
|
|
1069
|
+
enable?: boolean;
|
|
1070
|
+
desc?: string;
|
|
1071
|
+
[key: string]: any;
|
|
1072
|
+
}
|
|
1073
|
+
interface TagCategoryListParams {
|
|
1074
|
+
offset?: number;
|
|
1075
|
+
size?: number;
|
|
1076
|
+
id?: number | string;
|
|
1077
|
+
name?: string;
|
|
1078
|
+
query?: string;
|
|
1079
|
+
[key: string]: any;
|
|
1080
|
+
}
|
|
1081
|
+
interface CreateTagCategoryParams {
|
|
1082
|
+
name: string;
|
|
1083
|
+
desc?: string;
|
|
1084
|
+
[key: string]: any;
|
|
1085
|
+
}
|
|
1086
|
+
interface UpdateTagCategoryParams {
|
|
1087
|
+
name: string;
|
|
1088
|
+
desc?: string;
|
|
1089
|
+
enable?: boolean;
|
|
1090
|
+
[key: string]: any;
|
|
1091
|
+
}
|
|
1092
|
+
interface GetTagCategoriesResponse {
|
|
1093
|
+
referenceNumber?: string;
|
|
1094
|
+
hasError: boolean;
|
|
1095
|
+
errorCode?: number;
|
|
1096
|
+
refId?: string;
|
|
1097
|
+
message?: string | any[];
|
|
1098
|
+
count?: number;
|
|
1099
|
+
aggregations?: number;
|
|
1100
|
+
result: TagCategoryItem[];
|
|
1101
|
+
[key: string]: any;
|
|
1102
|
+
}
|
|
1103
|
+
interface GetTagTreeParams {
|
|
1104
|
+
parentId?: number | string;
|
|
1105
|
+
id?: string | number;
|
|
1106
|
+
parentCode?: string;
|
|
1107
|
+
includeParent?: boolean;
|
|
1108
|
+
excludeTree?: boolean;
|
|
1109
|
+
levelCount?: number;
|
|
1110
|
+
level?: number;
|
|
1111
|
+
name?: string;
|
|
1112
|
+
size?: number;
|
|
1113
|
+
offset?: number;
|
|
1114
|
+
siblingOrder?: string;
|
|
1115
|
+
enable?: boolean;
|
|
1116
|
+
[key: string]: any;
|
|
1117
|
+
}
|
|
1118
|
+
interface CreateTagTreeItemParams {
|
|
1119
|
+
name: string;
|
|
1120
|
+
parentId?: number | string;
|
|
1121
|
+
code?: string;
|
|
1122
|
+
relatedContentIds?: number[];
|
|
1123
|
+
icon?: string;
|
|
1124
|
+
description?: string;
|
|
1125
|
+
longDescription?: string;
|
|
1126
|
+
link?: string;
|
|
1127
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
1128
|
+
content?: string;
|
|
1129
|
+
preview?: string;
|
|
1130
|
+
siblingOrder?: number;
|
|
1131
|
+
displayName?: string;
|
|
1132
|
+
englishName?: string;
|
|
1133
|
+
[key: string]: any;
|
|
1134
|
+
}
|
|
1135
|
+
interface UpdateTagTreeItemParams {
|
|
1136
|
+
name?: string;
|
|
1137
|
+
parentId?: number | string;
|
|
1138
|
+
code?: string;
|
|
1139
|
+
relatedContentIds?: number[];
|
|
1140
|
+
icon?: string;
|
|
1141
|
+
description?: string;
|
|
1142
|
+
longDescription?: string;
|
|
1143
|
+
link?: string;
|
|
1144
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
1145
|
+
content?: string;
|
|
1146
|
+
preview?: string;
|
|
1147
|
+
siblingOrder?: number;
|
|
1148
|
+
displayName?: string;
|
|
1149
|
+
englishName?: string;
|
|
1150
|
+
[key: string]: any;
|
|
1151
|
+
}
|
|
1152
|
+
interface TagTreeAncestorsParams {
|
|
1153
|
+
levelCount?: number;
|
|
1154
|
+
level?: number;
|
|
1155
|
+
[key: string]: any;
|
|
1156
|
+
}
|
|
1157
|
+
interface GetTagTreeResponse {
|
|
1158
|
+
referenceNumber?: string;
|
|
1159
|
+
hasError: boolean;
|
|
1160
|
+
errorCode?: number;
|
|
1161
|
+
refId?: string;
|
|
1162
|
+
message?: string | any[];
|
|
1163
|
+
count?: number;
|
|
1164
|
+
aggregations?: number;
|
|
1165
|
+
result: TagtreesType[];
|
|
1166
|
+
metadata?: any[];
|
|
1167
|
+
[key: string]: any;
|
|
1168
|
+
}
|
|
1035
1169
|
|
|
1036
1170
|
declare class CmsDataFormatter {
|
|
1037
1171
|
private podspaceUrl;
|
|
@@ -1180,6 +1314,114 @@ declare class CmsProductService {
|
|
|
1180
1314
|
timelineSearch(query?: TimelineSearchBody): Promise<TimelineResponse>;
|
|
1181
1315
|
}
|
|
1182
1316
|
|
|
1317
|
+
interface CmsTagServiceOptions {
|
|
1318
|
+
baseUrl?: string;
|
|
1319
|
+
clientId: string;
|
|
1320
|
+
apiToken?: string;
|
|
1321
|
+
revalidate?: number | string;
|
|
1322
|
+
http?: NextHttp;
|
|
1323
|
+
}
|
|
1324
|
+
declare class CmsTagService {
|
|
1325
|
+
private http;
|
|
1326
|
+
private clientId;
|
|
1327
|
+
private apiToken;
|
|
1328
|
+
private revalidate;
|
|
1329
|
+
constructor(options: CmsTagServiceOptions);
|
|
1330
|
+
private get commonHeaders();
|
|
1331
|
+
private get managingHeaders();
|
|
1332
|
+
/**
|
|
1333
|
+
* Retrieves list of tag categories.
|
|
1334
|
+
* Swagger: GET /api/core/tags/category
|
|
1335
|
+
*/
|
|
1336
|
+
getTagCategories(params?: TagCategoryListParams, options?: CmsRequestOptions): Promise<GetTagCategoriesResponse>;
|
|
1337
|
+
/**
|
|
1338
|
+
* Creates a new tag category.
|
|
1339
|
+
* Swagger: POST /api/core/tags/category
|
|
1340
|
+
*/
|
|
1341
|
+
createTagCategory(params: CreateTagCategoryParams, options?: CmsRequestOptions): Promise<any>;
|
|
1342
|
+
/**
|
|
1343
|
+
* Retrieves single tag category by ID.
|
|
1344
|
+
* Swagger: GET /api/core/tags/category/{id}
|
|
1345
|
+
*/
|
|
1346
|
+
getTagCategory(id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Updates an existing tag category.
|
|
1349
|
+
* Swagger: PUT /api/core/tags/category/{id}
|
|
1350
|
+
*/
|
|
1351
|
+
updateTagCategory(id: number | string, params: UpdateTagCategoryParams, options?: CmsRequestOptions): Promise<any>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Publishes a tag category.
|
|
1354
|
+
* Swagger: PUT /api/core/tags/category/{id}/publish
|
|
1355
|
+
*/
|
|
1356
|
+
publishTagCategory(id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1357
|
+
/**
|
|
1358
|
+
* Unpublishes a tag category.
|
|
1359
|
+
* Swagger: PUT /api/core/tags/category/{id}/unpublish
|
|
1360
|
+
*/
|
|
1361
|
+
unpublishTagCategory(id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Retrieves enabled published tag tree for category (defaults to 'root').
|
|
1364
|
+
* End user call (without requiring Access-Token).
|
|
1365
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/enable
|
|
1366
|
+
*/
|
|
1367
|
+
getTagTree(categoryId?: string | number, params?: GetTagTreeParams, options?: CmsRequestOptions): Promise<GetTagTreeResponse>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Retrieves tag tree for category with management credentials.
|
|
1370
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/manage
|
|
1371
|
+
*/
|
|
1372
|
+
getManageTagTree(categoryId: string | number, params?: GetTagTreeParams, options?: CmsRequestOptions): Promise<GetTagTreeResponse>;
|
|
1373
|
+
/**
|
|
1374
|
+
* Creates a new tag tree node for category.
|
|
1375
|
+
* Swagger: POST /api/core/tags/{categoryId}/tree
|
|
1376
|
+
*/
|
|
1377
|
+
createTagTreeItem(categoryId: string | number, params: CreateTagTreeItemParams, options?: CmsRequestOptions): Promise<any>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Shows a single enabled tag tree item for end users.
|
|
1380
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/{id}/enable
|
|
1381
|
+
*/
|
|
1382
|
+
getTagTreeItem(categoryId: string | number, id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Shows a single tag tree item for manager (with token).
|
|
1385
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/{id}/manage
|
|
1386
|
+
*/
|
|
1387
|
+
getManageTagTreeItem(categoryId: string | number, id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1388
|
+
/**
|
|
1389
|
+
* Updates an existing tag tree node.
|
|
1390
|
+
* Swagger: PUT /api/core/tags/{categoryId}/tree/{id}
|
|
1391
|
+
*/
|
|
1392
|
+
updateTagTreeItem(categoryId: string | number, id: number | string, params: UpdateTagTreeItemParams, options?: CmsRequestOptions): Promise<any>;
|
|
1393
|
+
/**
|
|
1394
|
+
* Publishes a tag tree item.
|
|
1395
|
+
* Swagger: PUT /api/core/tags/{categoryId}/tree/publish/{id}
|
|
1396
|
+
*/
|
|
1397
|
+
publishTagTreeItem(categoryId: string | number, id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Unpublishes a tag tree item.
|
|
1400
|
+
* Swagger: PUT /api/core/tags/{categoryId}/tree/unpublish/{id}
|
|
1401
|
+
*/
|
|
1402
|
+
unpublishTagTreeItem(categoryId: string | number, id: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1403
|
+
/**
|
|
1404
|
+
* Updates the parent of a tag tree item.
|
|
1405
|
+
* Swagger: PUT /api/core/tags/{categoryId}/tree/parent/{id}
|
|
1406
|
+
*/
|
|
1407
|
+
updateTagTreeParent(categoryId: string | number, id: number | string, parentId?: number | string, options?: CmsRequestOptions): Promise<any>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Retrieves tag tree ancestors for end user.
|
|
1410
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/parent/{id}/enable
|
|
1411
|
+
*/
|
|
1412
|
+
getTagTreeAncestors(categoryId: string | number, id: number | string, params?: TagTreeAncestorsParams, options?: CmsRequestOptions): Promise<GetTagTreeResponse>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Retrieves tag tree ancestors for manager (with token).
|
|
1415
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/parent/{id}/manage
|
|
1416
|
+
*/
|
|
1417
|
+
getManageTagTreeAncestors(categoryId: string | number, id: number | string, params?: TagTreeAncestorsParams, options?: CmsRequestOptions): Promise<GetTagTreeResponse>;
|
|
1418
|
+
/**
|
|
1419
|
+
* Updates tag tree code for category.
|
|
1420
|
+
* Swagger: PUT /api/core/tags/{categoryId}/tree/code/{id}
|
|
1421
|
+
*/
|
|
1422
|
+
updateTagTreeCode(categoryId: string | number, id: number | string, code: string, options?: CmsRequestOptions): Promise<any>;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1183
1425
|
interface CmsServiceOptions {
|
|
1184
1426
|
baseUrl: string;
|
|
1185
1427
|
clientId: string;
|
|
@@ -1198,6 +1440,11 @@ declare class CmsService {
|
|
|
1198
1440
|
* Swagger: tag=product
|
|
1199
1441
|
*/
|
|
1200
1442
|
readonly products: CmsProductService;
|
|
1443
|
+
/**
|
|
1444
|
+
* Dedicated CMS Tags & Tag Categories sub-service.
|
|
1445
|
+
* Swagger: tag=tags
|
|
1446
|
+
*/
|
|
1447
|
+
readonly tags: CmsTagService;
|
|
1201
1448
|
constructor(options: CmsServiceOptions);
|
|
1202
1449
|
private get commonHeaders();
|
|
1203
1450
|
private get managingHeaders();
|
|
@@ -1358,7 +1605,8 @@ declare class CmsService {
|
|
|
1358
1605
|
getDislikes(contentUniqueId: string, entityId: number | string, params?: GetReactionsParams): Promise<any>;
|
|
1359
1606
|
/**
|
|
1360
1607
|
* Retrieves tag/category tree.
|
|
1361
|
-
*
|
|
1608
|
+
* Backward-compatible delegate pointing to `cms.tags.getTagTree('root', params, options)`.
|
|
1609
|
+
* Swagger: GET /api/core/tags/{categoryId}/tree/enable
|
|
1362
1610
|
*/
|
|
1363
1611
|
getCategories(params?: GetCategoriesParams, options?: CmsRequestOptions): Promise<GetCategoryResponse>;
|
|
1364
1612
|
/**
|
|
@@ -1429,6 +1677,7 @@ declare class PodSdk {
|
|
|
1429
1677
|
readonly social: SocialService;
|
|
1430
1678
|
readonly cms: CmsService;
|
|
1431
1679
|
readonly product: CmsProductService;
|
|
1680
|
+
readonly tags: CmsTagService;
|
|
1432
1681
|
readonly iums: IumsService;
|
|
1433
1682
|
constructor(config: PodSdkConfig);
|
|
1434
1683
|
/**
|
|
@@ -1448,4 +1697,4 @@ declare function createPodSdk(config: PodSdkConfig): PodSdk;
|
|
|
1448
1697
|
declare function encodeBase64(str: string): string;
|
|
1449
1698
|
declare function generatePodSignatureHeader(keyId: string, privateKeyPem?: string): Promise<string>;
|
|
1450
1699
|
|
|
1451
|
-
export { type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, type CommentItem, type ContentBody, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, type EditContentParams, type EditProductParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type GetCategoriesParams, type GetCategoryResponse, type GetCommentListParams, type GetCommentsParams, type GetContentByEntityIdParams, type GetContentParams, type GetContentResponse, type GetCustomPostParams, type GetCustomPostResponse, type GetInfOfGraduatedByGraduateDateResponse, type GetProductByEntityIdParams, type GetProductParams, type GetProductResponse, type GetReactionsParams, type GetSessionClassInCurrentDayResponse, type HandshakeResponse, type IumsResponse, IumsService, type IumsServiceOptions, type LikeCommentParams, type LikePostParams, type MetaContent, type Metadata, NotificationService, type NotificationServiceOptions, type PodFormItem, type PodFormResponse, PodFormService, type PodFormServiceOptions, type PodResponse, PodSdk, type PodSdkConfig, type PodUrlsConfig, PodspaceService, type PodspaceServiceOptions, type PodspaceUploadResponse, type PodspaceUploadResult, type ProductBody, type ProductItem, type ProductItemWithFormatted, type Rate, type ResultItem, type ResultItemWithFormatted, type SearchTimelineByMetadataParam, type SearchTimelineParamMetaQuery, type SearchTimelineResponse, type SearchTimelineResultItem, type SendOtpOptions, type SendSmsParams, type SendSmsResponse, type SeoType, type SocialResponse, SocialService, type SocialServiceOptions, SsoService, type SsoServiceOptions, type SsoUserProfile, type Subject, type TagtreesType, type TimelineResponse, type TimelineSearchBody, type TokenResponse, type UpdateCustomPostParams, type UserPostInfo, type VerifyResponse, createPodSdk, PodSdk as default, encodeBase64, generatePodSignatureHeader };
|
|
1700
|
+
export { type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, type EditContentParams, type EditProductParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type GetCategoriesParams, type GetCategoryResponse, type GetCommentListParams, type GetCommentsParams, type GetContentByEntityIdParams, type GetContentParams, type GetContentResponse, type GetCustomPostParams, type GetCustomPostResponse, type GetInfOfGraduatedByGraduateDateResponse, type GetProductByEntityIdParams, type GetProductParams, type GetProductResponse, type GetReactionsParams, type GetSessionClassInCurrentDayResponse, type GetTagCategoriesResponse, type GetTagTreeParams, type GetTagTreeResponse, type HandshakeResponse, type IumsResponse, IumsService, type IumsServiceOptions, type LikeCommentParams, type LikePostParams, type MetaContent, type Metadata, NotificationService, type NotificationServiceOptions, type PodFormItem, type PodFormResponse, PodFormService, type PodFormServiceOptions, type PodResponse, PodSdk, type PodSdkConfig, type PodUrlsConfig, PodspaceService, type PodspaceServiceOptions, type PodspaceUploadResponse, type PodspaceUploadResult, type ProductBody, type ProductItem, type ProductItemWithFormatted, type Rate, type ResultItem, type ResultItemWithFormatted, type SearchTimelineByMetadataParam, type SearchTimelineParamMetaQuery, type SearchTimelineResponse, type SearchTimelineResultItem, type SendOtpOptions, type SendSmsParams, type SendSmsResponse, type SeoType, type SocialResponse, SocialService, type SocialServiceOptions, SsoService, type SsoServiceOptions, type SsoUserProfile, type Subject, type TagCategoryItem, type TagCategoryListParams, type TagTreeAncestorsParams, type TagTreeMetadata, type TagtreesType, type TimelineResponse, type TimelineSearchBody, type TokenResponse, type UpdateCustomPostParams, type UpdateTagCategoryParams, type UpdateTagTreeItemParams, type UserPostInfo, type VerifyResponse, createPodSdk, PodSdk as default, encodeBase64, generatePodSignatureHeader };
|