@epilot/entity-client 4.12.0 → 4.14.0-rc1

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/client.d.ts CHANGED
File without changes
package/dist/client.js CHANGED
File without changes
File without changes
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
File without changes
package/dist/openapi.d.ts CHANGED
@@ -1504,6 +1504,10 @@ declare namespace Components {
1504
1504
  icon?: string;
1505
1505
  label?: string;
1506
1506
  };
1507
+ /**
1508
+ * List of attribute names that we show in the summary header
1509
+ */
1510
+ summary_attributes?: string[];
1507
1511
  }
1508
1512
  export interface EntityDefaultTable {
1509
1513
  view_type?: "default";
@@ -1561,20 +1565,29 @@ declare namespace Components {
1561
1565
  classic_view?: string; // uri-reference
1562
1566
  }
1563
1567
  export type EntityId = string; // uuid
1568
+ /**
1569
+ * The parameters for importing entities.
1570
+ */
1564
1571
  export interface EntityImportParams {
1572
+ /**
1573
+ * The S3 bucket and key where the JSON file for import is located.
1574
+ */
1565
1575
  S3Reference: {
1566
1576
  /**
1577
+ * The name of the S3 bucket where the JSON file for import is stored.
1567
1578
  * example:
1568
- * epilot-files-prod
1579
+ * my-bucket
1569
1580
  */
1570
1581
  bucket: string;
1571
1582
  /**
1583
+ * The key or path to the JSON file within the S3 bucket.
1572
1584
  * example:
1573
- * 123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf
1585
+ * imports/my-import.json
1574
1586
  */
1575
1587
  key: string;
1576
1588
  };
1577
1589
  /**
1590
+ * The schema of the entities being imported. This must match the schema of the entities on the platform.
1578
1591
  * example:
1579
1592
  * contact
1580
1593
  */
@@ -2499,7 +2512,9 @@ declare namespace Components {
2499
2512
  view_type?: "disabled";
2500
2513
  }
2501
2514
  /**
2502
- * Export Job Id to get the result
2515
+ * The unique identifier of the import job.
2516
+ * example:
2517
+ * abc123
2503
2518
  */
2504
2519
  export type ExportJobId = string;
2505
2520
  /**
@@ -5897,7 +5912,12 @@ declare namespace Paths {
5897
5912
  namespace ExportEntities {
5898
5913
  namespace Parameters {
5899
5914
  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;
5915
+ export type JobId = /**
5916
+ * The unique identifier of the import job.
5917
+ * example:
5918
+ * abc123
5919
+ */
5920
+ Components.Schemas.ExportJobId;
5901
5921
  export type Language = /* Export headers translation Language */ Components.Schemas.Language;
5902
5922
  }
5903
5923
  export interface QueryParameters {
@@ -6194,16 +6214,26 @@ declare namespace Paths {
6194
6214
  }
6195
6215
  namespace GetSchemaVersions {
6196
6216
  namespace Parameters {
6217
+ export type DraftsFrom = number;
6218
+ export type DraftsSize = number;
6197
6219
  export type Slug = /**
6198
6220
  * URL-friendly identifier for the entity schema
6199
6221
  * example:
6200
6222
  * contact
6201
6223
  */
6202
6224
  Components.Schemas.EntitySlug;
6225
+ export type VersionsFrom = number;
6226
+ export type VersionsSize = number;
6203
6227
  }
6204
6228
  export interface PathParameters {
6205
6229
  slug: Parameters.Slug;
6206
6230
  }
6231
+ export interface QueryParameters {
6232
+ versions_from?: Parameters.VersionsFrom;
6233
+ versions_size?: Parameters.VersionsSize;
6234
+ drafts_from?: Parameters.DraftsFrom;
6235
+ drafts_size?: Parameters.DraftsSize;
6236
+ }
6207
6237
  namespace Responses {
6208
6238
  export interface $200 {
6209
6239
  versions?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
@@ -6229,12 +6259,17 @@ declare namespace Paths {
6229
6259
  }
6230
6260
  namespace ImportEntities {
6231
6261
  namespace Parameters {
6232
- export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
6262
+ export type JobId = /**
6263
+ * The unique identifier of the import job.
6264
+ * example:
6265
+ * abc123
6266
+ */
6267
+ Components.Schemas.ExportJobId;
6233
6268
  }
6234
6269
  export interface QueryParameters {
6235
6270
  job_id?: Parameters.JobId;
6236
6271
  }
6237
- export type RequestBody = Components.Schemas.EntityImportParams;
6272
+ export type RequestBody = /* The parameters for importing entities. */ Components.Schemas.EntityImportParams;
6238
6273
  namespace Responses {
6239
6274
  export interface $201 {
6240
6275
  }
@@ -6845,7 +6880,7 @@ export interface OperationMethods {
6845
6880
  * Get all versions of this schema ordered by the latest versions including drafts.
6846
6881
  */
6847
6882
  'getSchemaVersions'(
6848
- parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
6883
+ parameters?: Parameters<Paths.GetSchemaVersions.PathParameters & Paths.GetSchemaVersions.QueryParameters> | null,
6849
6884
  data?: any,
6850
6885
  config?: AxiosRequestConfig
6851
6886
  ): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
@@ -7285,9 +7320,12 @@ export interface OperationMethods {
7285
7320
  config?: AxiosRequestConfig
7286
7321
  ): OperationResponse<Paths.ExportEntities.Responses.$201>
7287
7322
  /**
7288
- * importEntities - importEntities
7323
+ * importEntities - Import Entities
7324
+ *
7325
+ * This endpoint enables the import of entities into the platform.
7326
+ * The entities should be provided in a CSV format inside an S3 bucket.
7327
+ * This API will return the `job_id`` which can be used to fetch the status of the import process.
7289
7328
  *
7290
- * import entity data from
7291
7329
  */
7292
7330
  'importEntities'(
7293
7331
  parameters?: Parameters<Paths.ImportEntities.QueryParameters> | null,
@@ -7448,7 +7486,7 @@ export interface PathsDictionary {
7448
7486
  * Get all versions of this schema ordered by the latest versions including drafts.
7449
7487
  */
7450
7488
  'get'(
7451
- parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
7489
+ parameters?: Parameters<Paths.GetSchemaVersions.PathParameters & Paths.GetSchemaVersions.QueryParameters> | null,
7452
7490
  data?: any,
7453
7491
  config?: AxiosRequestConfig
7454
7492
  ): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
@@ -7920,9 +7958,12 @@ export interface PathsDictionary {
7920
7958
  }
7921
7959
  ['/v1/entity:import']: {
7922
7960
  /**
7923
- * importEntities - importEntities
7961
+ * importEntities - Import Entities
7962
+ *
7963
+ * This endpoint enables the import of entities into the platform.
7964
+ * The entities should be provided in a CSV format inside an S3 bucket.
7965
+ * This API will return the `job_id`` which can be used to fetch the status of the import process.
7924
7966
  *
7925
- * import entity data from
7926
7967
  */
7927
7968
  'post'(
7928
7969
  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",
@@ -3958,6 +3959,14 @@
3958
3959
  "type": "string"
3959
3960
  }
3960
3961
  }
3962
+ },
3963
+ "summary_attributes": {
3964
+ "description": "List of attribute names that we show in the summary header",
3965
+ "type": "array",
3966
+ "items": {
3967
+ "type": "string",
3968
+ "example": "email"
3969
+ }
3961
3970
  }
3962
3971
  }
3963
3972
  },
@@ -4357,27 +4366,32 @@
4357
4366
  "properties": {
4358
4367
  "bucket": {
4359
4368
  "type": "string",
4360
- "example": "epilot-files-prod"
4369
+ "description": "The name of the S3 bucket where the JSON file for import is stored.",
4370
+ "example": "my-bucket"
4361
4371
  },
4362
4372
  "key": {
4363
4373
  "type": "string",
4364
- "example": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
4374
+ "description": "The key or path to the JSON file within the S3 bucket.",
4375
+ "example": "imports/my-import.json"
4365
4376
  }
4366
4377
  },
4367
4378
  "required": [
4368
4379
  "bucket",
4369
4380
  "key"
4370
- ]
4381
+ ],
4382
+ "description": "The S3 bucket and key where the JSON file for import is located."
4371
4383
  },
4372
4384
  "schema": {
4373
4385
  "type": "string",
4386
+ "description": "The schema of the entities being imported. This must match the schema of the entities on the platform.",
4374
4387
  "example": "contact"
4375
4388
  }
4376
4389
  },
4377
4390
  "required": [
4378
4391
  "S3Reference",
4379
4392
  "schema"
4380
- ]
4393
+ ],
4394
+ "description": "The parameters for importing entities."
4381
4395
  },
4382
4396
  "EntitySearchResults": {
4383
4397
  "type": "object",
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.12.0",
3
+ "version": "4.14.0-rc1",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,7 +63,7 @@
63
63
  "jest": "^26.6.3",
64
64
  "json-loader": "^0.5.7",
65
65
  "openapi-client-axios-typegen": "^7.2.0",
66
- "openapicmd": "^1.16.0",
66
+ "openapicmd": "^1.16.2",
67
67
  "ts-jest": "^26.5.0",
68
68
  "ts-loader": "^8.0.14",
69
69
  "ts-node": "^10.9.1",
@@ -71,5 +71,5 @@
71
71
  "webpack": "^5.18.0",
72
72
  "webpack-cli": "^4.4.0"
73
73
  },
74
- "gitHead": "97a4736bba023e01d999aaa4d86e359f652dcd44"
74
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
75
  }