@epilot/entity-client 4.13.0 → 4.13.2-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/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +1 -8
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/openapi-runtime.json +737 -737
- package/dist/openapi.d.ts +63 -12
- package/dist/openapi.json +32 -11
- package/dist/schema-model.d.ts +0 -0
- package/dist/schema-model.js +0 -0
- package/package-lock.json +8652 -0
- package/package.json +1 -1
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
2515
|
+
* The unique identifier of the import job.
|
|
2516
|
+
* example:
|
|
2517
|
+
* abc123
|
|
2503
2518
|
*/
|
|
2504
2519
|
export type ExportJobId = string;
|
|
2505
2520
|
/**
|
|
@@ -5132,8 +5147,18 @@ declare namespace Components {
|
|
|
5132
5147
|
};
|
|
5133
5148
|
type?: "status";
|
|
5134
5149
|
options?: ((string | null) | {
|
|
5150
|
+
/**
|
|
5151
|
+
* The stored value of the option
|
|
5152
|
+
*/
|
|
5135
5153
|
value: string;
|
|
5154
|
+
/**
|
|
5155
|
+
* The displayed title of the option
|
|
5156
|
+
*/
|
|
5136
5157
|
title?: string;
|
|
5158
|
+
/**
|
|
5159
|
+
* If true, the option will not be displayed in the UI
|
|
5160
|
+
*/
|
|
5161
|
+
hidden?: boolean;
|
|
5137
5162
|
})[];
|
|
5138
5163
|
}
|
|
5139
5164
|
/**
|
|
@@ -5897,7 +5922,12 @@ declare namespace Paths {
|
|
|
5897
5922
|
namespace ExportEntities {
|
|
5898
5923
|
namespace Parameters {
|
|
5899
5924
|
export type IsTemplate = /* Pass 'true' to generate import template */ Components.Schemas.IsTemplate;
|
|
5900
|
-
export type JobId =
|
|
5925
|
+
export type JobId = /**
|
|
5926
|
+
* The unique identifier of the import job.
|
|
5927
|
+
* example:
|
|
5928
|
+
* abc123
|
|
5929
|
+
*/
|
|
5930
|
+
Components.Schemas.ExportJobId;
|
|
5901
5931
|
export type Language = /* Export headers translation Language */ Components.Schemas.Language;
|
|
5902
5932
|
}
|
|
5903
5933
|
export interface QueryParameters {
|
|
@@ -6194,16 +6224,26 @@ declare namespace Paths {
|
|
|
6194
6224
|
}
|
|
6195
6225
|
namespace GetSchemaVersions {
|
|
6196
6226
|
namespace Parameters {
|
|
6227
|
+
export type DraftsFrom = number;
|
|
6228
|
+
export type DraftsSize = number;
|
|
6197
6229
|
export type Slug = /**
|
|
6198
6230
|
* URL-friendly identifier for the entity schema
|
|
6199
6231
|
* example:
|
|
6200
6232
|
* contact
|
|
6201
6233
|
*/
|
|
6202
6234
|
Components.Schemas.EntitySlug;
|
|
6235
|
+
export type VersionsFrom = number;
|
|
6236
|
+
export type VersionsSize = number;
|
|
6203
6237
|
}
|
|
6204
6238
|
export interface PathParameters {
|
|
6205
6239
|
slug: Parameters.Slug;
|
|
6206
6240
|
}
|
|
6241
|
+
export interface QueryParameters {
|
|
6242
|
+
versions_from?: Parameters.VersionsFrom;
|
|
6243
|
+
versions_size?: Parameters.VersionsSize;
|
|
6244
|
+
drafts_from?: Parameters.DraftsFrom;
|
|
6245
|
+
drafts_size?: Parameters.DraftsSize;
|
|
6246
|
+
}
|
|
6207
6247
|
namespace Responses {
|
|
6208
6248
|
export interface $200 {
|
|
6209
6249
|
versions?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
|
|
@@ -6229,12 +6269,17 @@ declare namespace Paths {
|
|
|
6229
6269
|
}
|
|
6230
6270
|
namespace ImportEntities {
|
|
6231
6271
|
namespace Parameters {
|
|
6232
|
-
export type JobId =
|
|
6272
|
+
export type JobId = /**
|
|
6273
|
+
* The unique identifier of the import job.
|
|
6274
|
+
* example:
|
|
6275
|
+
* abc123
|
|
6276
|
+
*/
|
|
6277
|
+
Components.Schemas.ExportJobId;
|
|
6233
6278
|
}
|
|
6234
6279
|
export interface QueryParameters {
|
|
6235
6280
|
job_id?: Parameters.JobId;
|
|
6236
6281
|
}
|
|
6237
|
-
export type RequestBody = Components.Schemas.EntityImportParams;
|
|
6282
|
+
export type RequestBody = /* The parameters for importing entities. */ Components.Schemas.EntityImportParams;
|
|
6238
6283
|
namespace Responses {
|
|
6239
6284
|
export interface $201 {
|
|
6240
6285
|
}
|
|
@@ -6845,7 +6890,7 @@ export interface OperationMethods {
|
|
|
6845
6890
|
* Get all versions of this schema ordered by the latest versions including drafts.
|
|
6846
6891
|
*/
|
|
6847
6892
|
'getSchemaVersions'(
|
|
6848
|
-
parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
|
|
6893
|
+
parameters?: Parameters<Paths.GetSchemaVersions.PathParameters & Paths.GetSchemaVersions.QueryParameters> | null,
|
|
6849
6894
|
data?: any,
|
|
6850
6895
|
config?: AxiosRequestConfig
|
|
6851
6896
|
): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
|
|
@@ -7285,9 +7330,12 @@ export interface OperationMethods {
|
|
|
7285
7330
|
config?: AxiosRequestConfig
|
|
7286
7331
|
): OperationResponse<Paths.ExportEntities.Responses.$201>
|
|
7287
7332
|
/**
|
|
7288
|
-
* importEntities -
|
|
7333
|
+
* importEntities - Import Entities
|
|
7334
|
+
*
|
|
7335
|
+
* This endpoint enables the import of entities into the platform.
|
|
7336
|
+
* The entities should be provided in a CSV format inside an S3 bucket.
|
|
7337
|
+
* This API will return the `job_id`` which can be used to fetch the status of the import process.
|
|
7289
7338
|
*
|
|
7290
|
-
* import entity data from
|
|
7291
7339
|
*/
|
|
7292
7340
|
'importEntities'(
|
|
7293
7341
|
parameters?: Parameters<Paths.ImportEntities.QueryParameters> | null,
|
|
@@ -7448,7 +7496,7 @@ export interface PathsDictionary {
|
|
|
7448
7496
|
* Get all versions of this schema ordered by the latest versions including drafts.
|
|
7449
7497
|
*/
|
|
7450
7498
|
'get'(
|
|
7451
|
-
parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
|
|
7499
|
+
parameters?: Parameters<Paths.GetSchemaVersions.PathParameters & Paths.GetSchemaVersions.QueryParameters> | null,
|
|
7452
7500
|
data?: any,
|
|
7453
7501
|
config?: AxiosRequestConfig
|
|
7454
7502
|
): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
|
|
@@ -7920,9 +7968,12 @@ export interface PathsDictionary {
|
|
|
7920
7968
|
}
|
|
7921
7969
|
['/v1/entity:import']: {
|
|
7922
7970
|
/**
|
|
7923
|
-
* importEntities -
|
|
7971
|
+
* importEntities - Import Entities
|
|
7972
|
+
*
|
|
7973
|
+
* This endpoint enables the import of entities into the platform.
|
|
7974
|
+
* The entities should be provided in a CSV format inside an S3 bucket.
|
|
7975
|
+
* This API will return the `job_id`` which can be used to fetch the status of the import process.
|
|
7924
7976
|
*
|
|
7925
|
-
* import entity data from
|
|
7926
7977
|
*/
|
|
7927
7978
|
'post'(
|
|
7928
7979
|
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": "
|
|
1673
|
-
"description": "import
|
|
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
|
-
"
|
|
1675
|
+
"Entity Import"
|
|
1676
1676
|
],
|
|
1677
1677
|
"parameters": [
|
|
1678
1678
|
{
|
|
1679
1679
|
"in": "query",
|
|
1680
1680
|
"name": "job_id",
|
|
1681
|
-
"description": "
|
|
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": "
|
|
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": "
|
|
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": [
|
|
@@ -3958,6 +3966,14 @@
|
|
|
3958
3966
|
"type": "string"
|
|
3959
3967
|
}
|
|
3960
3968
|
}
|
|
3969
|
+
},
|
|
3970
|
+
"summary_attributes": {
|
|
3971
|
+
"description": "List of attribute names that we show in the summary header",
|
|
3972
|
+
"type": "array",
|
|
3973
|
+
"items": {
|
|
3974
|
+
"type": "string",
|
|
3975
|
+
"example": "email"
|
|
3976
|
+
}
|
|
3961
3977
|
}
|
|
3962
3978
|
}
|
|
3963
3979
|
},
|
|
@@ -4357,27 +4373,32 @@
|
|
|
4357
4373
|
"properties": {
|
|
4358
4374
|
"bucket": {
|
|
4359
4375
|
"type": "string",
|
|
4360
|
-
"
|
|
4376
|
+
"description": "The name of the S3 bucket where the JSON file for import is stored.",
|
|
4377
|
+
"example": "my-bucket"
|
|
4361
4378
|
},
|
|
4362
4379
|
"key": {
|
|
4363
4380
|
"type": "string",
|
|
4364
|
-
"
|
|
4381
|
+
"description": "The key or path to the JSON file within the S3 bucket.",
|
|
4382
|
+
"example": "imports/my-import.json"
|
|
4365
4383
|
}
|
|
4366
4384
|
},
|
|
4367
4385
|
"required": [
|
|
4368
4386
|
"bucket",
|
|
4369
4387
|
"key"
|
|
4370
|
-
]
|
|
4388
|
+
],
|
|
4389
|
+
"description": "The S3 bucket and key where the JSON file for import is located."
|
|
4371
4390
|
},
|
|
4372
4391
|
"schema": {
|
|
4373
4392
|
"type": "string",
|
|
4393
|
+
"description": "The schema of the entities being imported. This must match the schema of the entities on the platform.",
|
|
4374
4394
|
"example": "contact"
|
|
4375
4395
|
}
|
|
4376
4396
|
},
|
|
4377
4397
|
"required": [
|
|
4378
4398
|
"S3Reference",
|
|
4379
4399
|
"schema"
|
|
4380
|
-
]
|
|
4400
|
+
],
|
|
4401
|
+
"description": "The parameters for importing entities."
|
|
4381
4402
|
},
|
|
4382
4403
|
"EntitySearchResults": {
|
|
4383
4404
|
"type": "object",
|
package/dist/schema-model.d.ts
CHANGED
|
File without changes
|
package/dist/schema-model.js
CHANGED
|
File without changes
|