@epilot/entity-client 4.12.0 → 4.13.1-RC.0

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/openapi.d.ts CHANGED
@@ -1561,20 +1561,29 @@ declare namespace Components {
1561
1561
  classic_view?: string; // uri-reference
1562
1562
  }
1563
1563
  export type EntityId = string; // uuid
1564
+ /**
1565
+ * The parameters for importing entities.
1566
+ */
1564
1567
  export interface EntityImportParams {
1568
+ /**
1569
+ * The S3 bucket and key where the JSON file for import is located.
1570
+ */
1565
1571
  S3Reference: {
1566
1572
  /**
1573
+ * The name of the S3 bucket where the JSON file for import is stored.
1567
1574
  * example:
1568
- * epilot-files-prod
1575
+ * my-bucket
1569
1576
  */
1570
1577
  bucket: string;
1571
1578
  /**
1579
+ * The key or path to the JSON file within the S3 bucket.
1572
1580
  * example:
1573
- * 123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf
1581
+ * imports/my-import.json
1574
1582
  */
1575
1583
  key: string;
1576
1584
  };
1577
1585
  /**
1586
+ * The schema of the entities being imported. This must match the schema of the entities on the platform.
1578
1587
  * example:
1579
1588
  * contact
1580
1589
  */
@@ -2499,7 +2508,9 @@ declare namespace Components {
2499
2508
  view_type?: "disabled";
2500
2509
  }
2501
2510
  /**
2502
- * Export Job Id to get the result
2511
+ * The unique identifier of the import job.
2512
+ * example:
2513
+ * abc123
2503
2514
  */
2504
2515
  export type ExportJobId = string;
2505
2516
  /**
@@ -5132,8 +5143,18 @@ declare namespace Components {
5132
5143
  };
5133
5144
  type?: "status";
5134
5145
  options?: ((string | null) | {
5146
+ /**
5147
+ * The stored value of the option
5148
+ */
5135
5149
  value: string;
5150
+ /**
5151
+ * The displayed title of the option
5152
+ */
5136
5153
  title?: string;
5154
+ /**
5155
+ * If true, the option will not be displayed in the UI
5156
+ */
5157
+ hidden?: boolean;
5137
5158
  })[];
5138
5159
  }
5139
5160
  /**
@@ -5897,7 +5918,12 @@ declare namespace Paths {
5897
5918
  namespace ExportEntities {
5898
5919
  namespace Parameters {
5899
5920
  export type IsTemplate = /* Pass 'true' to generate import template */ Components.Schemas.IsTemplate;
5900
- export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
5921
+ export type JobId = /**
5922
+ * The unique identifier of the import job.
5923
+ * example:
5924
+ * abc123
5925
+ */
5926
+ Components.Schemas.ExportJobId;
5901
5927
  export type Language = /* Export headers translation Language */ Components.Schemas.Language;
5902
5928
  }
5903
5929
  export interface QueryParameters {
@@ -6194,16 +6220,26 @@ declare namespace Paths {
6194
6220
  }
6195
6221
  namespace GetSchemaVersions {
6196
6222
  namespace Parameters {
6223
+ export type DraftsFrom = number;
6224
+ export type DraftsSize = number;
6197
6225
  export type Slug = /**
6198
6226
  * URL-friendly identifier for the entity schema
6199
6227
  * example:
6200
6228
  * contact
6201
6229
  */
6202
6230
  Components.Schemas.EntitySlug;
6231
+ export type VersionsFrom = number;
6232
+ export type VersionsSize = number;
6203
6233
  }
6204
6234
  export interface PathParameters {
6205
6235
  slug: Parameters.Slug;
6206
6236
  }
6237
+ export interface QueryParameters {
6238
+ versions_from?: Parameters.VersionsFrom;
6239
+ versions_size?: Parameters.VersionsSize;
6240
+ drafts_from?: Parameters.DraftsFrom;
6241
+ drafts_size?: Parameters.DraftsSize;
6242
+ }
6207
6243
  namespace Responses {
6208
6244
  export interface $200 {
6209
6245
  versions?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
@@ -6229,12 +6265,17 @@ declare namespace Paths {
6229
6265
  }
6230
6266
  namespace ImportEntities {
6231
6267
  namespace Parameters {
6232
- export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
6268
+ export type JobId = /**
6269
+ * The unique identifier of the import job.
6270
+ * example:
6271
+ * abc123
6272
+ */
6273
+ Components.Schemas.ExportJobId;
6233
6274
  }
6234
6275
  export interface QueryParameters {
6235
6276
  job_id?: Parameters.JobId;
6236
6277
  }
6237
- export type RequestBody = Components.Schemas.EntityImportParams;
6278
+ export type RequestBody = /* The parameters for importing entities. */ Components.Schemas.EntityImportParams;
6238
6279
  namespace Responses {
6239
6280
  export interface $201 {
6240
6281
  }
@@ -6845,7 +6886,7 @@ export interface OperationMethods {
6845
6886
  * Get all versions of this schema ordered by the latest versions including drafts.
6846
6887
  */
6847
6888
  'getSchemaVersions'(
6848
- parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
6889
+ parameters?: Parameters<Paths.GetSchemaVersions.PathParameters & Paths.GetSchemaVersions.QueryParameters> | null,
6849
6890
  data?: any,
6850
6891
  config?: AxiosRequestConfig
6851
6892
  ): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
@@ -7285,9 +7326,12 @@ export interface OperationMethods {
7285
7326
  config?: AxiosRequestConfig
7286
7327
  ): OperationResponse<Paths.ExportEntities.Responses.$201>
7287
7328
  /**
7288
- * importEntities - importEntities
7329
+ * importEntities - Import Entities
7330
+ *
7331
+ * This endpoint enables the import of entities into the platform.
7332
+ * The entities should be provided in a CSV format inside an S3 bucket.
7333
+ * This API will return the `job_id`` which can be used to fetch the status of the import process.
7289
7334
  *
7290
- * import entity data from
7291
7335
  */
7292
7336
  'importEntities'(
7293
7337
  parameters?: Parameters<Paths.ImportEntities.QueryParameters> | null,
@@ -7448,7 +7492,7 @@ export interface PathsDictionary {
7448
7492
  * Get all versions of this schema ordered by the latest versions including drafts.
7449
7493
  */
7450
7494
  'get'(
7451
- parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
7495
+ parameters?: Parameters<Paths.GetSchemaVersions.PathParameters & Paths.GetSchemaVersions.QueryParameters> | null,
7452
7496
  data?: any,
7453
7497
  config?: AxiosRequestConfig
7454
7498
  ): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
@@ -7920,9 +7964,12 @@ export interface PathsDictionary {
7920
7964
  }
7921
7965
  ['/v1/entity:import']: {
7922
7966
  /**
7923
- * importEntities - importEntities
7967
+ * importEntities - Import Entities
7968
+ *
7969
+ * This endpoint enables the import of entities into the platform.
7970
+ * The entities should be provided in a CSV format inside an S3 bucket.
7971
+ * This API will return the `job_id`` which can be used to fetch the status of the import process.
7924
7972
  *
7925
- * import entity data from
7926
7973
  */
7927
7974
  'post'(
7928
7975
  parameters?: Parameters<Paths.ImportEntities.QueryParameters> | null,
package/dist/openapi.json CHANGED
@@ -1669,16 +1669,16 @@
1669
1669
  "/v1/entity:import": {
1670
1670
  "post": {
1671
1671
  "operationId": "importEntities",
1672
- "summary": "importEntities",
1673
- "description": "import entity data from",
1672
+ "summary": "Import Entities",
1673
+ "description": "This endpoint enables the import of entities into the platform.\nThe entities should be provided in a CSV format inside an S3 bucket.\nThis API will return the `job_id`` which can be used to fetch the status of the import process.\n",
1674
1674
  "tags": [
1675
- "Export"
1675
+ "Entity Import"
1676
1676
  ],
1677
1677
  "parameters": [
1678
1678
  {
1679
1679
  "in": "query",
1680
1680
  "name": "job_id",
1681
- "description": "Import Job Id to get the result",
1681
+ "description": "The ID of the import job. This ID is used to track the progress and fetch the result of the import operation.",
1682
1682
  "schema": {
1683
1683
  "$ref": "#/components/schemas/ExportJobId"
1684
1684
  }
@@ -1695,7 +1695,7 @@
1695
1695
  },
1696
1696
  "responses": {
1697
1697
  "201": {
1698
- "description": "created import url and download url"
1698
+ "description": "The import operation was initiated successfully.\nThe response includes the URLs for the files containing the successful and failed imported entities.\n"
1699
1699
  }
1700
1700
  }
1701
1701
  }
@@ -2121,8 +2121,9 @@
2121
2121
  },
2122
2122
  "schemas": {
2123
2123
  "ExportJobId": {
2124
- "description": "Export Job Id to get the result",
2125
- "type": "string"
2124
+ "description": "The unique identifier of the import job.",
2125
+ "type": "string",
2126
+ "example": "abc123"
2126
2127
  },
2127
2128
  "Language": {
2128
2129
  "description": "Export headers translation Language",
@@ -2940,10 +2941,17 @@
2940
2941
  "type": "object",
2941
2942
  "properties": {
2942
2943
  "value": {
2944
+ "description": "The stored value of the option",
2943
2945
  "type": "string"
2944
2946
  },
2945
2947
  "title": {
2948
+ "description": "The displayed title of the option",
2946
2949
  "type": "string"
2950
+ },
2951
+ "hidden": {
2952
+ "description": "If true, the option will not be displayed in the UI",
2953
+ "type": "boolean",
2954
+ "default": false
2947
2955
  }
2948
2956
  },
2949
2957
  "required": [
@@ -4357,27 +4365,32 @@
4357
4365
  "properties": {
4358
4366
  "bucket": {
4359
4367
  "type": "string",
4360
- "example": "epilot-files-prod"
4368
+ "description": "The name of the S3 bucket where the JSON file for import is stored.",
4369
+ "example": "my-bucket"
4361
4370
  },
4362
4371
  "key": {
4363
4372
  "type": "string",
4364
- "example": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
4373
+ "description": "The key or path to the JSON file within the S3 bucket.",
4374
+ "example": "imports/my-import.json"
4365
4375
  }
4366
4376
  },
4367
4377
  "required": [
4368
4378
  "bucket",
4369
4379
  "key"
4370
- ]
4380
+ ],
4381
+ "description": "The S3 bucket and key where the JSON file for import is located."
4371
4382
  },
4372
4383
  "schema": {
4373
4384
  "type": "string",
4385
+ "description": "The schema of the entities being imported. This must match the schema of the entities on the platform.",
4374
4386
  "example": "contact"
4375
4387
  }
4376
4388
  },
4377
4389
  "required": [
4378
4390
  "S3Reference",
4379
4391
  "schema"
4380
- ]
4392
+ ],
4393
+ "description": "The parameters for importing entities."
4381
4394
  },
4382
4395
  "EntitySearchResults": {
4383
4396
  "type": "object",