@ocxp/client 0.2.1 → 0.2.3

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.d.cts CHANGED
@@ -681,6 +681,10 @@ type ContentTreeNode = {
681
681
  * Name
682
682
  */
683
683
  name: string;
684
+ /**
685
+ * Path
686
+ */
687
+ path: string;
684
688
  /**
685
689
  * Type
686
690
  */
@@ -689,6 +693,10 @@ type ContentTreeNode = {
689
693
  * Size
690
694
  */
691
695
  size?: number | null;
696
+ /**
697
+ * Version Id
698
+ */
699
+ version_id?: string | null;
692
700
  /**
693
701
  * Children
694
702
  */
@@ -4437,6 +4445,12 @@ type GetContentTreeData = {
4437
4445
  * Maximum tree depth
4438
4446
  */
4439
4447
  depth?: number;
4448
+ /**
4449
+ * Includeversions
4450
+ *
4451
+ * Include S3 version IDs for files
4452
+ */
4453
+ includeVersions?: boolean;
4440
4454
  };
4441
4455
  url: '/ocxp/context/{content_type}/tree';
4442
4456
  };
@@ -5497,8 +5511,9 @@ declare class OCXPClient {
5497
5511
  }>;
5498
5512
  /**
5499
5513
  * Get hierarchical tree structure from S3 context
5514
+ * @param includeVersions - If true, includes S3 version IDs for files
5500
5515
  */
5501
- tree(type: ContentTypeValue, path?: string, depth?: number): Promise<ContentTreeResponse>;
5516
+ tree(type: ContentTypeValue, path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
5502
5517
  /**
5503
5518
  * Get content statistics
5504
5519
  */
@@ -5989,9 +6004,10 @@ declare class MissionNamespace {
5989
6004
  }>;
5990
6005
  /**
5991
6006
  * Get mission content tree structure from S3
5992
- * @example ocxp.mission.tree('subfolder', 5)
6007
+ * @param includeVersions - If true, includes S3 version IDs for files
6008
+ * @example ocxp.mission.tree('mission-id', 5, true)
5993
6009
  */
5994
- tree(path?: string, depth?: number): Promise<ContentTreeResponse>;
6010
+ tree(path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
5995
6011
  }
5996
6012
  /**
5997
6013
  * Project namespace for convenient project operations
@@ -6056,9 +6072,10 @@ declare class ProjectNamespace {
6056
6072
  removeMission(projectId: string, missionId: string): Promise<ProjectResponse>;
6057
6073
  /**
6058
6074
  * Get project content tree structure from S3
6059
- * @example ocxp.project.tree('subfolder', 5)
6075
+ * @param includeVersions - If true, includes S3 version IDs for files
6076
+ * @example ocxp.project.tree('subfolder', 5, true)
6060
6077
  */
6061
- tree(path?: string, depth?: number): Promise<ContentTreeResponse>;
6078
+ tree(path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
6062
6079
  }
6063
6080
  /**
6064
6081
  * Session namespace for convenient session operations
@@ -7118,6 +7135,7 @@ interface TreeNode {
7118
7135
  path: string;
7119
7136
  type: 'file' | 'directory';
7120
7137
  size?: number;
7138
+ version_id?: string;
7121
7139
  children?: TreeNode[];
7122
7140
  }
7123
7141
  /**
package/dist/index.d.ts CHANGED
@@ -681,6 +681,10 @@ type ContentTreeNode = {
681
681
  * Name
682
682
  */
683
683
  name: string;
684
+ /**
685
+ * Path
686
+ */
687
+ path: string;
684
688
  /**
685
689
  * Type
686
690
  */
@@ -689,6 +693,10 @@ type ContentTreeNode = {
689
693
  * Size
690
694
  */
691
695
  size?: number | null;
696
+ /**
697
+ * Version Id
698
+ */
699
+ version_id?: string | null;
692
700
  /**
693
701
  * Children
694
702
  */
@@ -4437,6 +4445,12 @@ type GetContentTreeData = {
4437
4445
  * Maximum tree depth
4438
4446
  */
4439
4447
  depth?: number;
4448
+ /**
4449
+ * Includeversions
4450
+ *
4451
+ * Include S3 version IDs for files
4452
+ */
4453
+ includeVersions?: boolean;
4440
4454
  };
4441
4455
  url: '/ocxp/context/{content_type}/tree';
4442
4456
  };
@@ -5497,8 +5511,9 @@ declare class OCXPClient {
5497
5511
  }>;
5498
5512
  /**
5499
5513
  * Get hierarchical tree structure from S3 context
5514
+ * @param includeVersions - If true, includes S3 version IDs for files
5500
5515
  */
5501
- tree(type: ContentTypeValue, path?: string, depth?: number): Promise<ContentTreeResponse>;
5516
+ tree(type: ContentTypeValue, path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
5502
5517
  /**
5503
5518
  * Get content statistics
5504
5519
  */
@@ -5989,9 +6004,10 @@ declare class MissionNamespace {
5989
6004
  }>;
5990
6005
  /**
5991
6006
  * Get mission content tree structure from S3
5992
- * @example ocxp.mission.tree('subfolder', 5)
6007
+ * @param includeVersions - If true, includes S3 version IDs for files
6008
+ * @example ocxp.mission.tree('mission-id', 5, true)
5993
6009
  */
5994
- tree(path?: string, depth?: number): Promise<ContentTreeResponse>;
6010
+ tree(path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
5995
6011
  }
5996
6012
  /**
5997
6013
  * Project namespace for convenient project operations
@@ -6056,9 +6072,10 @@ declare class ProjectNamespace {
6056
6072
  removeMission(projectId: string, missionId: string): Promise<ProjectResponse>;
6057
6073
  /**
6058
6074
  * Get project content tree structure from S3
6059
- * @example ocxp.project.tree('subfolder', 5)
6075
+ * @param includeVersions - If true, includes S3 version IDs for files
6076
+ * @example ocxp.project.tree('subfolder', 5, true)
6060
6077
  */
6061
- tree(path?: string, depth?: number): Promise<ContentTreeResponse>;
6078
+ tree(path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
6062
6079
  }
6063
6080
  /**
6064
6081
  * Session namespace for convenient session operations
@@ -7118,6 +7135,7 @@ interface TreeNode {
7118
7135
  path: string;
7119
7136
  type: 'file' | 'directory';
7120
7137
  size?: number;
7138
+ version_id?: string;
7121
7139
  children?: TreeNode[];
7122
7140
  }
7123
7141
  /**
package/dist/index.js CHANGED
@@ -1544,13 +1544,14 @@ var OCXPClient = class {
1544
1544
  // ============== Tree & Stats ==============
1545
1545
  /**
1546
1546
  * Get hierarchical tree structure from S3 context
1547
+ * @param includeVersions - If true, includes S3 version IDs for files
1547
1548
  */
1548
- async tree(type, path, depth) {
1549
+ async tree(type, path, depth, includeVersions) {
1549
1550
  const headers = await this.getHeaders();
1550
1551
  const response = await getContentTree({
1551
1552
  client: this.client,
1552
1553
  path: { content_type: type },
1553
- query: { path, depth },
1554
+ query: { path, depth, includeVersions },
1554
1555
  headers
1555
1556
  });
1556
1557
  return extractData(response);
@@ -2497,10 +2498,11 @@ var MissionNamespace = class {
2497
2498
  }
2498
2499
  /**
2499
2500
  * Get mission content tree structure from S3
2500
- * @example ocxp.mission.tree('subfolder', 5)
2501
+ * @param includeVersions - If true, includes S3 version IDs for files
2502
+ * @example ocxp.mission.tree('mission-id', 5, true)
2501
2503
  */
2502
- async tree(path, depth) {
2503
- return this.client.tree("mission", path, depth);
2504
+ async tree(path, depth, includeVersions) {
2505
+ return this.client.tree("mission", path, depth, includeVersions);
2504
2506
  }
2505
2507
  };
2506
2508
  var ProjectNamespace = class {
@@ -2578,10 +2580,11 @@ var ProjectNamespace = class {
2578
2580
  }
2579
2581
  /**
2580
2582
  * Get project content tree structure from S3
2581
- * @example ocxp.project.tree('subfolder', 5)
2583
+ * @param includeVersions - If true, includes S3 version IDs for files
2584
+ * @example ocxp.project.tree('subfolder', 5, true)
2582
2585
  */
2583
- async tree(path, depth) {
2584
- return this.client.tree("project", path, depth);
2586
+ async tree(path, depth, includeVersions) {
2587
+ return this.client.tree("project", path, depth, includeVersions);
2585
2588
  }
2586
2589
  };
2587
2590
  var SessionNamespace = class {
@@ -3410,6 +3413,7 @@ var TreeNodeSchema = z.lazy(
3410
3413
  path: z.string(),
3411
3414
  type: z.enum(["file", "directory"]),
3412
3415
  size: z.number().optional(),
3416
+ version_id: z.string().optional(),
3413
3417
  children: z.array(TreeNodeSchema).optional()
3414
3418
  })
3415
3419
  );